Block extensions
This section lists the block extensions that add sets of BEM blocks via env.levels. The blocks you need get into the build by dependencies.
How it works
A block extension adds a level:
import { fileURLToPath } from 'node:url';
import type { NucktyEnv } from 'nuckty';
export function register(env: NucktyEnv): void {
env.levels.add(fileURLToPath(new URL('../blocks/', import.meta.url)));
}
The full contract is in the block extension guide.
Registry
nuckty-ext-block-root— supplies the standard document handler and therootHTML wrapper.nuckty-ext-block-gallery— a gallery with a lightbox.nuckty-ext-block-grid— a multi-column page layout (:::grid).
Video (@[provider](id)) is also a markdown construct, but without a paired block; the nuckty-ext-markdown-video package is described separately.