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:
co-authored by
Claude Opus 5.5
parent
e686fb2af5
commit
f338324762
@@ -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";
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user