@czi-sds/mcp 0.5.1 → 0.5.2
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/data/zeroheight-cache.json +1 -1
- package/data/zeroheight-exports/README.md +1 -1
- package/dist/stdio.js +28 -19
- package/package.json +2 -2
package/dist/stdio.js
CHANGED
|
@@ -200,7 +200,7 @@ var listComponentsTool = {
|
|
|
200
200
|
var TAILWIND_TOKEN_GUIDANCE = {
|
|
201
201
|
colors: {
|
|
202
202
|
category: "Colors",
|
|
203
|
-
description: "Theme-aware color tokens
|
|
203
|
+
description: "Theme-aware color tokens support both light and dark modes. Both modes follow the same token name structure: use light-token-name for light mode colors and dark:dark-token-name for dark mode colors.",
|
|
204
204
|
prefixes: [
|
|
205
205
|
"bg-",
|
|
206
206
|
"border-",
|
|
@@ -223,28 +223,31 @@ var TAILWIND_TOKEN_GUIDANCE = {
|
|
|
223
223
|
examples: [
|
|
224
224
|
{
|
|
225
225
|
description: "Basic text and background colors",
|
|
226
|
-
code: `<div className="bg-sds-color-semantic-base-background-primary dark:bg-sds-color-semantic-base-background-primary text-sds-color-semantic-base-text-primary dark:text-sds-color-semantic-base-text-primary">
|
|
226
|
+
code: `<div className="bg-light-sds-color-semantic-base-background-primary dark:bg-dark-sds-color-semantic-base-background-primary text-light-sds-color-semantic-base-text-primary dark:text-dark-sds-color-semantic-base-text-primary">
|
|
227
227
|
Content with semantic colors
|
|
228
228
|
</div>`
|
|
229
229
|
},
|
|
230
230
|
{
|
|
231
231
|
description: "Dark mode with hover states",
|
|
232
|
-
code: `<button className="bg-sds-color-semantic-accent-fill-primary dark:bg-sds-color-semantic-accent-fill-primary
|
|
233
|
-
hover:bg-sds-color-semantic-accent-fill-hover dark:hover:bg-sds-color-semantic-accent-fill-hover">
|
|
232
|
+
code: `<button className="bg-light-sds-color-semantic-accent-fill-primary dark:bg-dark-sds-color-semantic-accent-fill-primary
|
|
233
|
+
hover:bg-light-sds-color-semantic-accent-fill-hover dark:hover:bg-dark-sds-color-semantic-accent-fill-hover">
|
|
234
234
|
Click me
|
|
235
235
|
</button>`
|
|
236
236
|
},
|
|
237
237
|
{
|
|
238
238
|
description: "Border and focus states",
|
|
239
239
|
code: `<input className="
|
|
240
|
-
border-sds-color-semantic-base-border-primary
|
|
241
|
-
hover:border-sds-color-semantic-base-border-primary-hover
|
|
242
|
-
focus:border-sds-color-semantic-base-border-primary-pressed
|
|
240
|
+
border-light-sds-color-semantic-base-border-primary
|
|
241
|
+
hover:border-light-sds-color-semantic-base-border-primary-hover
|
|
242
|
+
focus:border-light-sds-color-semantic-base-border-primary-pressed
|
|
243
|
+
dark:border-dark-sds-color-semantic-base-border-primary
|
|
244
|
+
dark:hover:border-dark-sds-color-semantic-base-border-primary-hover
|
|
245
|
+
dark:focus:border-dark-sds-color-semantic-base-border-primary-pressed
|
|
243
246
|
"/>`
|
|
244
247
|
}
|
|
245
248
|
],
|
|
246
249
|
tips: [
|
|
247
|
-
"Always use semantic colors (e.g., 'sds-color-semantic-base-background-primary') over primitive colors when possible",
|
|
250
|
+
"Always use semantic colors (e.g., 'bg-light-sds-color-semantic-base-background-primary dark:bg-dark-sds-color-semantic-base-background-primary') over primitive colors when possible",
|
|
248
251
|
"Include both light and dark variants for proper theme support"
|
|
249
252
|
]
|
|
250
253
|
},
|
|
@@ -417,18 +420,24 @@ QUICK START:
|
|
|
417
420
|
2. Use semantic tokens over primitive ones when available
|
|
418
421
|
3. Include responsive and theme variants for robust implementations
|
|
419
422
|
4. Use the @czi-sds/components/dist/tailwind.json file to get the exact token name and value
|
|
420
|
-
5. To use the typography tokens, you need to add the @tailwindcss/typography plugin to your tailwind.config.js file and then use the typography tokens in your
|
|
421
|
-
6. Colors
|
|
422
|
-
7. Use spacing tokens like sds-m for paddings, margins, etc. for example p-sds-m for padding-medium
|
|
423
|
-
8. Use borderRadius tokens like sds-default for rounded corners for example rounded-sds-default
|
|
424
|
-
9. Use boxShadow tokens like sds-s for subtle shadows for example shadow-sds-s
|
|
425
|
-
10. Use
|
|
426
|
-
11. Use fontFamily tokens like sds-body for body font for example font-sds-body
|
|
427
|
-
12. Use fontSize tokens like sds-body-m-400-wide for body font size for example text-sds-body-m-400-wide
|
|
428
|
-
13. Use fontVariantNumeric tokens like sds-body-m-400-wide for body font variant numeric for example font-variant-numeric-sds-body-m-400-wide
|
|
429
|
-
14. Use letterSpacing tokens like sds-body-m-400-wide for body letter spacing for example tracking-sds-body-m-400-wide
|
|
423
|
+
5. To use the typography tokens, you need to add the @tailwindcss/typography plugin to your tailwind.config.js file and then use the typography tokens in your Tailwind classes like prose-[typography-token-name] (for example, prose-sds-body-m-400-wide)
|
|
424
|
+
6. Colors are defined for both light and dark modes using the same structure. Use dark:dark-color-token-name for dark mode colors and light-color-token-name for light mode colors
|
|
425
|
+
7. Use spacing tokens like sds-m for paddings, margins, etc. (for example, p-sds-m for padding-medium)
|
|
426
|
+
8. Use borderRadius tokens like sds-default for rounded corners (for example, rounded-sds-default)
|
|
427
|
+
9. Use boxShadow tokens like sds-s for subtle shadows (for example, shadow-sds-s)
|
|
428
|
+
10. Use breakpoint tokens like sds-m for medium breakpoints (for example, md:sds-m)
|
|
429
|
+
11. Use fontFamily tokens like sds-body for body font (for example, font-sds-body)
|
|
430
|
+
12. Use fontSize tokens like sds-body-m-400-wide for body font size (for example, text-sds-body-m-400-wide)
|
|
431
|
+
13. Use fontVariantNumeric tokens like sds-body-m-400-wide for body font variant numeric (for example, font-variant-numeric-sds-body-m-400-wide)
|
|
432
|
+
14. Use letterSpacing tokens like sds-body-m-400-wide for body letter spacing (for example, tracking-sds-body-m-400-wide)
|
|
430
433
|
|
|
431
|
-
For detailed examples, request a specific category
|
|
434
|
+
For detailed examples, request a specific category. To do so, you'll need to call this tool again and pass the category name as an argument. Below are the categories and their descriptions:
|
|
435
|
+
|
|
436
|
+
fontFamily, fontSize, fontVariantNumeric, letterSpacing, lineHeight, textDecoration, textTransform: These categories can be used for separately formatting font styles in the tailwind.config.js file
|
|
437
|
+
typography: This category can be used for formatting typography in the tailwind.config.js file using the typography plugin and also for using the typography tokens in your Tailwind classes like prose-[typography-token-name] (for example, prose-sds-body-m-400-wide)
|
|
438
|
+
height, width, borderRadius, boxShadow, breakpoints: These categories can be used for formatting height, width, border radius, box shadow, and breakpoints in the tailwind.config.js file
|
|
439
|
+
spacing: This category can be used for formatting spacing in the tailwind.config.js file
|
|
440
|
+
colors: This category can be used for formatting colors in the tailwind.config.js file`;
|
|
432
441
|
}
|
|
433
442
|
const guidance = TAILWIND_TOKEN_GUIDANCE[category];
|
|
434
443
|
if (!guidance) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@czi-sds/mcp",
|
|
3
3
|
"description": "The official MCP server for SDS",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.2",
|
|
5
5
|
"main": "dist/stdio.js",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"tsx": "^4.20.3",
|
|
63
63
|
"typescript": "^5.9.2"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "e2553adebb1279bf82ff27b902a8ec2221c607e7"
|
|
66
66
|
}
|