canvas-ui-sdk 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/mcp/dist/index.js +4 -2
- package/package.json +1 -1
- package/styles/tailwind.css +0 -3
package/README.md
CHANGED
|
@@ -64,9 +64,11 @@ If you're using Tailwind CSS v4, add these imports to your CSS file:
|
|
|
64
64
|
@import "tailwindcss";
|
|
65
65
|
@import "canvas-ui-sdk/tailwind";
|
|
66
66
|
@import "canvas-ui-sdk/styles";
|
|
67
|
+
@source "../../node_modules/canvas-ui-sdk/dist";
|
|
67
68
|
```
|
|
68
69
|
|
|
69
|
-
|
|
70
|
+
- `canvas-ui-sdk/tailwind` maps the SDK's design tokens to Tailwind's semantic color names (`bg-muted`, `text-primary`, etc.)
|
|
71
|
+
- `@source` tells Tailwind to scan the SDK's compiled output for utility classes — adjust the relative path based on your `globals.css` location
|
|
70
72
|
|
|
71
73
|
## Components
|
|
72
74
|
|
package/mcp/dist/index.js
CHANGED
|
@@ -21940,13 +21940,15 @@ Your \`globals.css\` must include these three lines (in this order):
|
|
|
21940
21940
|
@import "tailwindcss";
|
|
21941
21941
|
@import "canvas-ui-sdk/tailwind";
|
|
21942
21942
|
@import "canvas-ui-sdk/styles";
|
|
21943
|
+
@source "../../node_modules/canvas-ui-sdk/dist";
|
|
21943
21944
|
\`\`\`
|
|
21944
21945
|
|
|
21945
21946
|
- \`@import "tailwindcss"\` \u2014 loads Tailwind v4's base styles
|
|
21946
|
-
- \`@import "canvas-ui-sdk/tailwind"\` \u2014
|
|
21947
|
+
- \`@import "canvas-ui-sdk/tailwind"\` \u2014 maps the SDK's design tokens to Tailwind's semantic color names (\`bg-muted\`, \`text-primary\`, etc.)
|
|
21947
21948
|
- \`@import "canvas-ui-sdk/styles"\` \u2014 loads the design system's CSS variables (colors, typography, spacing, etc.)
|
|
21949
|
+
- \`@source "...canvas-ui-sdk/dist"\` \u2014 tells Tailwind v4 to scan the SDK's compiled output for utility classes
|
|
21948
21950
|
|
|
21949
|
-
|
|
21951
|
+
Adjust the \`@source\` relative path based on your \`globals.css\` location. The path above assumes \`globals.css\` is at \`src/app/globals.css\`.
|
|
21950
21952
|
`;
|
|
21951
21953
|
var FONTS_SECTION = `## Font Setup (Next.js)
|
|
21952
21954
|
|
package/package.json
CHANGED