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 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
- The `canvas-ui-sdk/tailwind` import tells Tailwind to scan the SDK's compiled output for utility classes and maps the SDK's design tokens to Tailwind's semantic color names (`bg-muted`, `text-primary`, etc.).
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 tells Tailwind v4 to scan the SDK's compiled output for utility classes and maps the SDK's design tokens to Tailwind's semantic color names (\`bg-muted\`, \`text-primary\`, etc.)
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
- The \`canvas-ui-sdk/tailwind\` import handles the \`@source\` directive internally (relative to the SDK package, not your project), so you don't need to worry about getting the path right.
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canvas-ui-sdk",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "type": "module",
5
5
  "description": "A comprehensive UI component library with design tokens for building beautiful interfaces",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,3 @@
1
- /* Tell Tailwind to scan SDK dist for class usage */
2
- @source "../dist";
3
-
4
1
  /* Map shadcn/ui semantic color names to canvas design tokens */
5
2
  @theme inline {
6
3
  --color-background: var(--canvas-background);