Block library: styles step uses the token styles.css; test that every token utility exists in the preset

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-10-29 14:17:00 +01:00
co-authored by Claude Opus 5.5
parent e686fb2af5
commit f338324762
2 changed files with 34 additions and 2 deletions
+6 -2
View File
@@ -61,11 +61,15 @@ export const blockRegistry = createBlockRegistry(content, {
The plugin never imports `next/*` itself, so `Image` and `Link` are passed in. `createPageRoute(content, { blocks: blockRegistry, … })`
or `<RenderBlocks components={blockRegistry} />` renders them (docs/frontend.md, docs/blocks.md).
**3. Styles.** The components use the token utilities of the design-token preset (`@intecion/ipal-kit/tailwind.css`)
and Tailwind must scan the plugin's files — the line projects already have:
**3. Styles.** The components use the token utilities of the design-token preset, and Tailwind must scan the
plugin's files. The standard `styles.css` ([design-tokens.md](./design-tokens.md)) already does both:
```css
@import "tailwindcss";
@import "@intecion/ipal-kit/fluid-wide.css";
@import "@intecion/ipal-kit/tokens.css";
@import "@intecion/ipal-kit/tailwind.css";
@import "../../design/tokens.css";
@source "../../../node_modules/@intecion/ipal-kit/dist/**/*.js";
```