sparkdesign 0.4.5 → 0.4.7
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/AI_README.md +60 -0
- package/README.md +74 -22
- package/cli/dist/commands/add.js +23 -13
- package/cli/dist/commands/diff.js +8 -4
- package/cli/dist/commands/init.js +85 -10
- package/cli/dist/commands/list.js +8 -4
- package/cli/dist/index.js +9 -6
- package/cli/dist/utils/config.js +16 -8
- package/cli/dist/utils/package-manager.js +75 -0
- package/cli/dist/utils/registry.js +8 -4
- package/cli/dist/utils/tokens.js +33 -25
- package/cli/dist/utils/transform.js +9 -5
- package/cli/dist/utils/tsconfig.js +182 -0
- package/cli/registry/AGENTS.md +25 -0
- package/cli/registry/__tests__/chat/thinking-indicator.test.tsx +2 -2
- package/cli/registry/agent-manifest.json +794 -0
- package/cli/registry/basic/alert.tsx +76 -0
- package/cli/registry/basic/aspect-ratio.tsx +8 -0
- package/cli/registry/basic/breadcrumb.tsx +117 -0
- package/cli/registry/basic/button-group.tsx +79 -0
- package/cli/registry/basic/button.tsx +1 -1
- package/cli/registry/basic/calendar.tsx +221 -0
- package/cli/registry/basic/card.tsx +103 -0
- package/cli/registry/basic/carousel.tsx +241 -0
- package/cli/registry/basic/chart.tsx +372 -0
- package/cli/registry/basic/checkbox.tsx +42 -0
- package/cli/registry/basic/collapsible-card.tsx +2 -2
- package/cli/registry/basic/combobox.tsx +75 -0
- package/cli/registry/basic/command.tsx +184 -0
- package/cli/registry/basic/context-menu.tsx +239 -0
- package/cli/registry/basic/data-table.tsx +73 -0
- package/cli/registry/basic/date-picker.tsx +13 -0
- package/cli/registry/basic/dialog.tsx +169 -0
- package/cli/registry/basic/direction.tsx +25 -0
- package/cli/registry/basic/drawer.tsx +164 -0
- package/cli/registry/basic/dropdown-menu.tsx +0 -4
- package/cli/registry/basic/empty.tsx +104 -0
- package/cli/registry/basic/field.tsx +248 -0
- package/cli/registry/basic/hover-card.tsx +58 -0
- package/cli/registry/basic/input-group.tsx +168 -0
- package/cli/registry/basic/input-otp.tsx +75 -0
- package/cli/registry/basic/input.tsx +27 -0
- package/cli/registry/basic/item.tsx +204 -0
- package/cli/registry/basic/label.tsx +24 -0
- package/cli/registry/basic/menubar.tsx +274 -0
- package/cli/registry/basic/native-select.tsx +62 -0
- package/cli/registry/basic/navigation-menu.tsx +168 -0
- package/cli/registry/basic/popover.tsx +59 -0
- package/cli/registry/basic/scroll-area.tsx +58 -0
- package/cli/registry/basic/select.tsx +2 -1
- package/cli/registry/basic/separator.tsx +26 -0
- package/cli/registry/basic/sheet.tsx +18 -0
- package/cli/registry/basic/textarea.tsx +25 -0
- package/cli/registry/basic/toggle.tsx +1 -1
- package/cli/registry/basic/typography.tsx +1 -1
- package/cli/registry/chat/chat-input/chat-input-folder-selector.tsx +1 -1
- package/cli/registry/chat/chat-input/chat-input-textarea.tsx +1 -1
- package/cli/registry/chat/chat-input/compound.tsx +4 -3
- package/cli/registry/chat/chat-input/context.tsx +4 -1
- package/cli/registry/chat/chat-input/folder-permission-dialog.tsx +2 -2
- package/cli/registry/chat/code-block-part.tsx +1 -1
- package/cli/registry/chat/conversation-anchor-nav.tsx +349 -0
- package/cli/registry/chat/file-attachment.tsx +2 -1
- package/cli/registry/chat/file-review-part.tsx +21 -21
- package/cli/registry/chat/image-generating.tsx +1 -1
- package/cli/registry/chat/markdown.tsx +2 -2
- package/cli/registry/chat/queue-indicator.tsx +1 -0
- package/cli/registry/chat/response/context.tsx +1 -1
- package/cli/registry/chat/streaming-markdown-block.tsx +12 -8
- package/cli/registry/chat/thinking-indicator.tsx +1 -1
- package/cli/registry/chat/tool-invocation-card.tsx +4 -1
- package/cli/registry/lib/file-icon-maps.ts +22 -22
- package/cli/registry/meta.json +518 -0
- package/cli/registry/tokens/index.css +8 -5
- package/cli/registry/tokens/ontology.json +404 -0
- package/cli/registry/tokens/scale/presets/compact.css +16 -5
- package/cli/registry/tokens/scale/presets/dense.css +13 -2
- package/cli/registry/tokens/scale/presets/sharp.css +18 -6
- package/cli/registry/tokens/scale/presets/soft.css +23 -1
- package/cli/registry/tokens/theme-base.css +235 -0
- package/{dist/tokens/themes/dark-qoder.css → cli/registry/tokens/themes/dark-mint.css} +1 -1
- package/cli/registry/tokens/themes/dark-parchment.css +104 -103
- package/{dist/tokens/themes/light-qoder.css → cli/registry/tokens/themes/light-mint.css} +1 -1
- package/cli/registry/tokens/themes/light-parchment.css +103 -102
- package/dist/registry/basic/alert-dialog.d.ts +7 -5
- package/dist/registry/basic/alert.d.ts +24 -0
- package/dist/registry/basic/aspect-ratio.d.ts +16 -0
- package/dist/registry/basic/avatar.d.ts +7 -5
- package/dist/registry/basic/breadcrumb.d.ts +24 -0
- package/dist/registry/basic/button-group.d.ts +26 -0
- package/dist/registry/basic/button.d.ts +1 -1
- package/dist/registry/basic/calendar.d.ts +22 -0
- package/dist/registry/basic/card.d.ts +27 -0
- package/dist/registry/basic/carousel.d.ts +19 -0
- package/dist/registry/basic/chart.d.ts +55 -0
- package/dist/registry/basic/checkbox.d.ts +21 -0
- package/dist/registry/basic/collapse.d.ts +7 -5
- package/dist/registry/basic/collapsible-card.d.ts +7 -6
- package/dist/registry/basic/collapsible.d.ts +7 -5
- package/dist/registry/basic/combobox.d.ts +26 -0
- package/dist/registry/basic/command.d.ts +18 -0
- package/dist/registry/basic/context-menu.d.ts +44 -0
- package/dist/registry/basic/data-table.d.ts +26 -0
- package/dist/registry/basic/date-picker.d.ts +18 -0
- package/dist/registry/basic/dialog.d.ts +39 -0
- package/dist/registry/basic/direction.d.ts +19 -0
- package/dist/registry/basic/drawer.d.ts +37 -0
- package/dist/registry/basic/dropdown-menu.d.ts +7 -5
- package/dist/registry/basic/empty.d.ts +22 -0
- package/dist/registry/basic/field.d.ts +24 -0
- package/dist/registry/basic/hover-card.d.ts +22 -0
- package/dist/registry/basic/icons-inline.d.ts +7 -5
- package/dist/registry/basic/input-group.d.ts +27 -0
- package/dist/registry/basic/input-otp.d.ts +22 -0
- package/dist/registry/basic/input.d.ts +15 -0
- package/dist/registry/basic/item.d.ts +34 -0
- package/dist/registry/basic/kbd.d.ts +7 -5
- package/dist/registry/basic/label.d.ts +16 -0
- package/dist/registry/basic/menubar.d.ts +37 -0
- package/dist/registry/basic/native-select.d.ts +18 -0
- package/dist/registry/basic/navigation-menu.d.ts +25 -0
- package/dist/registry/basic/pagination.d.ts +7 -5
- package/dist/registry/basic/popover.d.ts +23 -0
- package/dist/registry/basic/progress.d.ts +7 -5
- package/dist/registry/basic/radio-group.d.ts +7 -5
- package/dist/registry/basic/resizable.d.ts +7 -5
- package/dist/registry/basic/scroll-area.d.ts +5 -0
- package/dist/registry/basic/select.d.ts +7 -5
- package/dist/registry/basic/separator.d.ts +16 -0
- package/dist/registry/basic/sheet.d.ts +13 -0
- package/dist/registry/basic/slider.d.ts +7 -5
- package/dist/registry/basic/sonner.d.ts +7 -5
- package/dist/registry/basic/switch.d.ts +7 -5
- package/dist/registry/basic/tabs.d.ts +7 -5
- package/dist/registry/basic/tag.d.ts +7 -5
- package/dist/registry/basic/textarea.d.ts +15 -0
- package/dist/registry/basic/theme-from-document.d.ts +7 -5
- package/dist/registry/basic/toggle.d.ts +1 -1
- package/dist/registry/basic/tooltip.d.ts +7 -5
- package/dist/registry/basic/typography.d.ts +7 -5
- package/dist/registry/chat/ask-user-part.d.ts +9 -3
- package/dist/registry/chat/browser-action-part.d.ts +9 -3
- package/dist/registry/chat/chat-input/compound.d.ts +7 -5
- package/dist/registry/chat/chat-input/context.d.ts +10 -6
- package/dist/registry/chat/chat-input/index.d.ts +7 -5
- package/dist/registry/chat/chat-input/types.d.ts +9 -3
- package/dist/registry/chat/chat-input/useAutoResizeTextarea.d.ts +9 -3
- package/dist/registry/chat/code-block-part.d.ts +9 -3
- package/dist/registry/chat/conversation-anchor-nav.d.ts +72 -0
- package/dist/registry/chat/file-attachment.d.ts +7 -5
- package/dist/registry/chat/file-review-part.d.ts +9 -4
- package/dist/registry/chat/generated-images-grid.d.ts +9 -3
- package/dist/registry/chat/generation-status-bar.d.ts +8 -4
- package/dist/registry/chat/hint-banner.d.ts +9 -3
- package/dist/registry/chat/mermaid-part.d.ts +9 -3
- package/dist/registry/chat/plan-part.d.ts +9 -3
- package/dist/registry/chat/reasoning-step/index.d.ts +8 -6
- package/dist/registry/chat/reasoning-step/types.d.ts +9 -3
- package/dist/registry/chat/related-prompts.d.ts +9 -3
- package/dist/registry/chat/response/index.d.ts +8 -6
- package/dist/registry/chat/response/types.d.ts +9 -3
- package/dist/registry/chat/task-part.d.ts +9 -3
- package/dist/registry/chat/terminal-code-block-part.d.ts +9 -3
- package/dist/registry/chat/tool-invocation-card.d.ts +2 -0
- package/dist/registry/chat/user-question/UserQuestionCard.d.ts +9 -3
- package/dist/registry/chat/user-question/UserQuestionFooter.d.ts +9 -3
- package/dist/registry/chat/user-question/UserQuestionHeader.d.ts +9 -3
- package/dist/registry/chat/user-question/types.d.ts +8 -5
- package/dist/registry/lib/file-icon-maps.d.ts +7 -7
- package/dist/registry/lib/utils.d.ts +8 -6
- package/dist/scale/presets/compact.css +16 -5
- package/dist/scale/presets/dense.css +13 -2
- package/dist/scale/presets/sharp.css +18 -6
- package/dist/scale/presets/soft.css +23 -1
- package/dist/spark-design.cjs.js +40 -36
- package/dist/spark-design.es.js +8653 -8663
- package/dist/sparkdesign.css +2 -0
- package/dist/src/components/basic/Alert/index.d.ts +13 -0
- package/dist/src/components/basic/AlertDialog/index.d.ts +7 -5
- package/dist/src/components/basic/AspectRatio/index.d.ts +13 -0
- package/dist/src/components/basic/Avatar/index.d.ts +9 -3
- package/dist/src/components/basic/Breadcrumb/index.d.ts +12 -0
- package/dist/src/components/basic/Button/index.d.ts +9 -3
- package/dist/src/components/basic/ButtonGroup/index.d.ts +13 -0
- package/dist/src/components/basic/Calendar/index.d.ts +13 -0
- package/dist/src/components/basic/Card/index.d.ts +13 -0
- package/dist/src/components/basic/Carousel/index.d.ts +12 -0
- package/dist/src/components/basic/Chart/index.d.ts +13 -0
- package/dist/src/components/basic/Checkbox/index.d.ts +13 -0
- package/dist/src/components/basic/Collapse/index.d.ts +7 -4
- package/dist/src/components/basic/Collapsible/index.d.ts +9 -4
- package/dist/src/components/basic/CollapsibleCard/index.d.ts +9 -3
- package/dist/src/components/basic/CollapsibleSection/index.d.ts +7 -7
- package/dist/src/components/basic/Combobox/index.d.ts +13 -0
- package/dist/src/components/basic/Command/index.d.ts +12 -0
- package/dist/src/components/basic/ContextMenu/index.d.ts +19 -0
- package/dist/src/components/basic/DataTable/index.d.ts +13 -0
- package/dist/src/components/basic/DatePicker/index.d.ts +13 -0
- package/dist/src/components/basic/Dialog/index.d.ts +16 -0
- package/dist/src/components/basic/Direction/index.d.ts +13 -0
- package/dist/src/components/basic/Drawer/index.d.ts +16 -0
- package/dist/src/components/basic/DropdownMenu/index.d.ts +7 -5
- package/dist/src/components/basic/EllipsisText/index.d.ts +7 -15
- package/dist/src/components/basic/Empty/index.d.ts +12 -0
- package/dist/src/components/basic/Field/index.d.ts +12 -0
- package/dist/src/components/basic/HoverCard/index.d.ts +16 -0
- package/dist/src/components/basic/IconButton/index.d.ts +9 -3
- package/dist/src/components/basic/Input/index.d.ts +13 -0
- package/dist/src/components/basic/InputGroup/index.d.ts +12 -0
- package/dist/src/components/basic/InputOTP/index.d.ts +12 -0
- package/dist/src/components/basic/Item/index.d.ts +12 -0
- package/dist/src/components/basic/Kbd/index.d.ts +9 -3
- package/dist/src/components/basic/Label/index.d.ts +13 -0
- package/dist/src/components/basic/Menubar/index.d.ts +12 -0
- package/dist/src/components/basic/NativeSelect/index.d.ts +12 -0
- package/dist/src/components/basic/NavigationMenu/index.d.ts +12 -0
- package/dist/src/components/basic/OptionList/index.d.ts +9 -3
- package/dist/src/components/basic/Pagination/index.d.ts +9 -3
- package/dist/src/components/basic/Popover/index.d.ts +16 -0
- package/dist/src/components/basic/Progress/index.d.ts +9 -3
- package/dist/src/components/basic/RadioGroup/index.d.ts +9 -3
- package/dist/src/components/basic/Resizable/index.d.ts +9 -3
- package/dist/src/components/basic/ScrollArea/index.d.ts +12 -0
- package/dist/src/components/basic/Scrollbar/index.d.ts +9 -3
- package/dist/src/components/basic/Select/index.d.ts +7 -4
- package/dist/src/components/basic/Separator/index.d.ts +13 -0
- package/dist/src/components/basic/Sheet/index.d.ts +13 -0
- package/dist/src/components/basic/ShimmeringText/index.d.ts +9 -3
- package/dist/src/components/basic/Skeleton/index.d.ts +9 -3
- package/dist/src/components/basic/Slider/index.d.ts +9 -3
- package/dist/src/components/basic/Spinner/index.d.ts +9 -3
- package/dist/src/components/basic/Switch/index.d.ts +8 -5
- package/dist/src/components/basic/Table/index.d.ts +9 -3
- package/dist/src/components/basic/Tabs/index.d.ts +9 -3
- package/dist/src/components/basic/Tag/index.d.ts +7 -4
- package/dist/src/components/basic/Textarea/index.d.ts +13 -0
- package/dist/src/components/basic/Toggle/index.d.ts +9 -3
- package/dist/src/components/basic/Tooltip/index.d.ts +7 -4
- package/dist/src/components/basic/Typography/index.d.ts +9 -3
- package/dist/src/components/chat/ConversationAnchorNav/index.d.ts +13 -0
- package/dist/src/components/chat/GeneratedImagesGrid/index.d.ts +9 -3
- package/dist/src/components/chat/GenerationStatusBar/index.d.ts +9 -3
- package/dist/src/components/chat/Markdown/demo-content.d.ts +1 -1
- package/dist/src/components/chat/Markdown/index.d.ts +9 -3
- package/dist/src/components/chat/Response/StreamingMarkdownBlock.d.ts +9 -3
- package/dist/src/components/chat/Response/index.d.ts +8 -6
- package/dist/src/components/chat/StreamingMarkdownBlock/index.d.ts +13 -0
- package/dist/src/components/chat/UserMessage/index.d.ts +9 -3
- package/dist/src/components/index.d.ts +64 -9
- package/dist/src/icons/context.d.ts +7 -6
- package/dist/src/icons/types.d.ts +7 -5
- package/dist/src/lib/ThemeStyleContext.d.ts +9 -9
- package/dist/src/lib/file-icon.d.ts +7 -6
- package/dist/src/lib/i18n.d.ts +7 -6
- package/dist/src/lib/index.d.ts +9 -3
- package/dist/src/lib/utils.d.ts +7 -5
- package/dist/theme-base.css +7 -8
- package/dist/theme.css +2 -2
- package/dist/themes/{dark-qoder.css → dark-mint.css} +1 -1
- package/dist/themes/{light-qoder.css → light-mint.css} +1 -1
- package/dist/tokens/AGENTS.md +48 -0
- package/dist/tokens/index.css +10 -19
- package/dist/tokens/scale/presets/compact.css +16 -5
- package/dist/tokens/scale/presets/dense.css +13 -2
- package/dist/tokens/scale/presets/sharp.css +18 -6
- package/dist/tokens/scale/presets/soft.css +23 -1
- package/dist/tokens/theme-base.css +7 -8
- package/dist/tokens/theme.css +2 -2
- package/dist/tokens/themes/dark-mint.css +133 -0
- package/dist/tokens/themes/light-mint.css +132 -0
- package/docs/agent/component-selection.md +60 -0
- package/docs/agent/token-ontology.md +37 -0
- package/package.json +41 -9
- package/registry/agent-manifest.json +794 -0
- package/registry/tokens/ontology.json +404 -0
- package/cli/registry/tokens/themes/dark-qoder.css +0 -132
- package/cli/registry/tokens/themes/light-qoder.css +0 -131
- package/dist/_basePickBy-DnQN8w3y.js +0 -151
- package/dist/_basePickBy-a-kPMlkg.cjs +0 -1
- package/dist/_baseUniq-B-N2NQ50.js +0 -614
- package/dist/_baseUniq-Cc_zbSif.cjs +0 -1
- package/dist/arc-BQBhijZ6.js +0 -83
- package/dist/arc-mWQt0Yph.cjs +0 -1
- package/dist/architectureDiagram-VXUJARFQ-BMZEucno.cjs +0 -36
- package/dist/architectureDiagram-VXUJARFQ-DTdjD3Bp.js +0 -4661
- package/dist/blockDiagram-VD42YOAC-CzHn0yob.js +0 -2256
- package/dist/blockDiagram-VD42YOAC-DDxdHAlz.cjs +0 -122
- package/dist/c4Diagram-YG6GDRKO-4Gz0I4gj.cjs +0 -10
- package/dist/c4Diagram-YG6GDRKO-BIy--yVN.js +0 -1580
- package/dist/channel-BQn0o8bs.js +0 -5
- package/dist/channel-DaN7XniJ.cjs +0 -1
- package/dist/chunk-4BX2VUAB-BlQFTQqz.cjs +0 -1
- package/dist/chunk-4BX2VUAB-Czitj3Kc.js +0 -8
- package/dist/chunk-55IACEB6-DXacNZbO.js +0 -8
- package/dist/chunk-55IACEB6-DnDxpye9.cjs +0 -1
- package/dist/chunk-B4BG7PRW-CBdN0q_V.js +0 -1375
- package/dist/chunk-B4BG7PRW-DbGvUkGO.cjs +0 -165
- package/dist/chunk-DI55MBZ5-D1YJMs6x.cjs +0 -220
- package/dist/chunk-DI55MBZ5-NCQTvayw.js +0 -1370
- package/dist/chunk-FMBD7UC4-CsGMbrtr.js +0 -19
- package/dist/chunk-FMBD7UC4-Di7cUUh5.cjs +0 -15
- package/dist/chunk-QN33PNHL-0j5LC8Lm.cjs +0 -1
- package/dist/chunk-QN33PNHL-3GERZBRm.js +0 -19
- package/dist/chunk-QZHKN3VN-AVEY9ImQ.js +0 -15
- package/dist/chunk-QZHKN3VN-s8Z0a8mc.cjs +0 -1
- package/dist/chunk-TZMSLE5B-CAf87HPt.cjs +0 -1
- package/dist/chunk-TZMSLE5B-sbiflal0.js +0 -64
- package/dist/classDiagram-2ON5EDUG-Ct9JLIN2.cjs +0 -1
- package/dist/classDiagram-2ON5EDUG-Dzfrft3a.js +0 -16
- package/dist/classDiagram-v2-WZHVMYZB-Ct9JLIN2.cjs +0 -1
- package/dist/classDiagram-v2-WZHVMYZB-Dzfrft3a.js +0 -16
- package/dist/clone-Cde_NQ8V.js +0 -8
- package/dist/clone-DCNjWuM2.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-0uLijMro.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-Bb08N431.js +0 -2608
- package/dist/cytoscape.esm-CNUX3VTg.cjs +0 -321
- package/dist/cytoscape.esm-Cvf3sx9F.js +0 -18704
- package/dist/dagre-6UL2VRFP-CY_Wz5Zd.js +0 -444
- package/dist/dagre-6UL2VRFP-Dxe7_qZc.cjs +0 -4
- package/dist/defaultLocale-BgPVtth8.js +0 -171
- package/dist/defaultLocale-C4wbwF1n.cjs +0 -1
- package/dist/diagram-PSM6KHXK-D2bdb7MT.js +0 -531
- package/dist/diagram-PSM6KHXK-YF69SUjY.cjs +0 -24
- package/dist/diagram-QEK2KX5R-BpUSoh0-.js +0 -217
- package/dist/diagram-QEK2KX5R-DZPGteon.cjs +0 -43
- package/dist/diagram-S2PKOQOG-ht-zdvFG.cjs +0 -24
- package/dist/diagram-S2PKOQOG-zFeLJ50Z.js +0 -142
- package/dist/erDiagram-Q2GNP2WA-B38iJ6ts.js +0 -841
- package/dist/erDiagram-Q2GNP2WA-RgS80DDU.cjs +0 -60
- package/dist/flowDiagram-NV44I4VS-BHilOs2p.cjs +0 -162
- package/dist/flowDiagram-NV44I4VS-BrBJcoce.js +0 -1620
- package/dist/ganttDiagram-JELNMOA3-pZiJeFio.cjs +0 -267
- package/dist/ganttDiagram-JELNMOA3-tw6FhkWJ.js +0 -2670
- package/dist/gitGraphDiagram-V2S2FVAM-BWn5uIK5.js +0 -699
- package/dist/gitGraphDiagram-V2S2FVAM-DKKeG-9R.cjs +0 -65
- package/dist/graph-DIbblrZP.cjs +0 -1
- package/dist/graph-DPcK91G3.js +0 -247
- package/dist/infoDiagram-HS3SLOUP-B8gwwhct.cjs +0 -2
- package/dist/infoDiagram-HS3SLOUP-D47PNcP_.js +0 -24
- package/dist/init-CHZsXQcr.cjs +0 -1
- package/dist/init-DjUOC4st.js +0 -16
- package/dist/journeyDiagram-XKPGCS4Q-BG3cfhyU.js +0 -834
- package/dist/journeyDiagram-XKPGCS4Q-D8DVLJof.cjs +0 -139
- package/dist/kanban-definition-3W4ZIXB7-4OCnEouP.cjs +0 -89
- package/dist/kanban-definition-3W4ZIXB7-CWi_ssF9.js +0 -719
- package/dist/layout-Byuh8f-J.cjs +0 -1
- package/dist/layout-CdLdvj1j.js +0 -1335
- package/dist/linear-C2Q_PI9B.js +0 -259
- package/dist/linear-C69aPBW1.cjs +0 -1
- package/dist/mermaid.core-DBwAx_jp.cjs +0 -249
- package/dist/mermaid.core-gFR0XUlD.js +0 -15300
- package/dist/mindmap-definition-VGOIOE7T-8P7obVV4.cjs +0 -68
- package/dist/mindmap-definition-VGOIOE7T-DnOa7WJ9.js +0 -784
- package/dist/ordinal-B6-f3MAq.js +0 -61
- package/dist/ordinal-CagbB1m8.cjs +0 -1
- package/dist/pieDiagram-ADFJNKIX-5NAlvhMo.js +0 -161
- package/dist/pieDiagram-ADFJNKIX-CQBG4yR9.cjs +0 -30
- package/dist/qoder-design.css +0 -2
- package/dist/quadrantDiagram-AYHSOK5B-Oe4y7RZ0.cjs +0 -7
- package/dist/quadrantDiagram-AYHSOK5B-rh2DPEP1.js +0 -1022
- package/dist/requirementDiagram-UZGBJVZJ-DcWaCuXr.js +0 -850
- package/dist/requirementDiagram-UZGBJVZJ-gfdlrFiq.cjs +0 -64
- package/dist/sankeyDiagram-TZEHDZUN-CQIKFwD0.js +0 -810
- package/dist/sankeyDiagram-TZEHDZUN-DvPtzQvC.cjs +0 -10
- package/dist/sequenceDiagram-WL72ISMW-BNrsMagL.cjs +0 -145
- package/dist/sequenceDiagram-WL72ISMW-iCX3ckKx.js +0 -2511
- package/dist/stateDiagram-FKZM4ZOC-DBvJ_eeL.cjs +0 -1
- package/dist/stateDiagram-FKZM4ZOC-ZVsJlaHJ.js +0 -263
- package/dist/stateDiagram-v2-4FDKWEC3-CB_nTHcE.js +0 -16
- package/dist/stateDiagram-v2-4FDKWEC3-Xkx17v6T.cjs +0 -1
- package/dist/timeline-definition-IT6M3QCI-BmGkYQiz.cjs +0 -61
- package/dist/timeline-definition-IT6M3QCI-Ck8zTt6w.js +0 -795
- package/dist/tokens/CLAUDE.md +0 -305
- package/dist/treemap-GDKQZRPO-B9sfERx8.js +0 -17922
- package/dist/treemap-GDKQZRPO-BVfJRs0Z.cjs +0 -160
- package/dist/xychartDiagram-PRI3JC2R-By_S8NzN.js +0 -1340
- package/dist/xychartDiagram-PRI3JC2R-CNfDrGxM.cjs +0 -7
|
@@ -0,0 +1,404 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "0.1.0",
|
|
3
|
+
"library": "sparkdesign",
|
|
4
|
+
"purpose": "Machine-readable design token ontology for AI agents choosing semantic styling without reading CSS internals first.",
|
|
5
|
+
"axes": {
|
|
6
|
+
"theme": {
|
|
7
|
+
"attribute": "data-theme",
|
|
8
|
+
"intent": "Controls color palette independently from layout density or geometry.",
|
|
9
|
+
"knownValues": [
|
|
10
|
+
"light",
|
|
11
|
+
"dark",
|
|
12
|
+
"light-parchment",
|
|
13
|
+
"dark-parchment"
|
|
14
|
+
],
|
|
15
|
+
"rules": [
|
|
16
|
+
"Do not infer layout density from data-theme.",
|
|
17
|
+
"Custom themes should define --token-color-* values and rely on theme-base.css mappings.",
|
|
18
|
+
"Components should consume --color-* semantic tokens rather than raw --token-color-* internals."
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"style": {
|
|
22
|
+
"attribute": "data-style",
|
|
23
|
+
"intent": "Controls spacing, radius, and typography rhythm independently from color.",
|
|
24
|
+
"knownValues": [
|
|
25
|
+
"neutral",
|
|
26
|
+
"compact",
|
|
27
|
+
"soft",
|
|
28
|
+
"sharp",
|
|
29
|
+
"dense"
|
|
30
|
+
],
|
|
31
|
+
"rules": [
|
|
32
|
+
"Use neutral when no product density preference is known.",
|
|
33
|
+
"Use compact for efficiency-oriented workspaces that need tighter controls without becoming spreadsheet-dense.",
|
|
34
|
+
"Use dense for data-heavy UI where text-sm, line-height, spacing, and radius all need compression.",
|
|
35
|
+
"Use soft for airy, approachable, reading-friendly surfaces with larger radius and more breathing room.",
|
|
36
|
+
"Use sharp when square geometry and mono-like precision are a deliberate product direction."
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"families": {
|
|
41
|
+
"color.primary": {
|
|
42
|
+
"tokens": [
|
|
43
|
+
"--color-primary",
|
|
44
|
+
"--color-primary-hover",
|
|
45
|
+
"--color-primary-active",
|
|
46
|
+
"--color-primary-bg",
|
|
47
|
+
"--color-primary-bg-hover",
|
|
48
|
+
"--color-primary-border",
|
|
49
|
+
"--color-primary-border-hover",
|
|
50
|
+
"--color-primary-text",
|
|
51
|
+
"--color-primary-text-hover",
|
|
52
|
+
"--color-primary-text-active",
|
|
53
|
+
"--color-text-on-primary"
|
|
54
|
+
],
|
|
55
|
+
"intent": "Brand and primary action emphasis.",
|
|
56
|
+
"useFor": [
|
|
57
|
+
"Primary action buttons",
|
|
58
|
+
"Selected controls",
|
|
59
|
+
"Active navigation accents",
|
|
60
|
+
"Focused brand emphasis"
|
|
61
|
+
],
|
|
62
|
+
"avoidFor": [
|
|
63
|
+
"Large page backgrounds",
|
|
64
|
+
"Destructive actions",
|
|
65
|
+
"Neutral metadata",
|
|
66
|
+
"Multiple competing actions in the same group"
|
|
67
|
+
],
|
|
68
|
+
"agentRules": [
|
|
69
|
+
"Use only one primary action per decision surface.",
|
|
70
|
+
"Use --color-text-on-primary for text placed directly on --color-primary."
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
"color.text": {
|
|
74
|
+
"tokens": [
|
|
75
|
+
"--color-text",
|
|
76
|
+
"--color-text-secondary",
|
|
77
|
+
"--color-text-tertiary",
|
|
78
|
+
"--color-text-quaternary",
|
|
79
|
+
"--color-text-base"
|
|
80
|
+
],
|
|
81
|
+
"intent": "Readable hierarchy for foreground content.",
|
|
82
|
+
"useFor": [
|
|
83
|
+
"Body copy",
|
|
84
|
+
"Headings",
|
|
85
|
+
"Metadata",
|
|
86
|
+
"Disabled-looking low-emphasis support text"
|
|
87
|
+
],
|
|
88
|
+
"avoidFor": [
|
|
89
|
+
"Status semantics that need success, warning, error, or info color",
|
|
90
|
+
"Decorative accents"
|
|
91
|
+
],
|
|
92
|
+
"agentRules": [
|
|
93
|
+
"Use --color-text for primary readable content.",
|
|
94
|
+
"Use secondary and tertiary text only after hierarchy is established."
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
"color.background": {
|
|
98
|
+
"tokens": [
|
|
99
|
+
"--color-bg-base",
|
|
100
|
+
"--color-bg-container",
|
|
101
|
+
"--color-bg-elevated",
|
|
102
|
+
"--color-bg-layout",
|
|
103
|
+
"--color-bg-spotlight",
|
|
104
|
+
"--color-bg-mask",
|
|
105
|
+
"--color-bg-highlight",
|
|
106
|
+
"--color-bg-highlight-hover"
|
|
107
|
+
],
|
|
108
|
+
"intent": "Page, container, elevation, overlay, and spotlight surfaces.",
|
|
109
|
+
"useFor": [
|
|
110
|
+
"Application background",
|
|
111
|
+
"Cards and panels",
|
|
112
|
+
"Popover and modal surfaces",
|
|
113
|
+
"Overlay masks",
|
|
114
|
+
"Temporary highlight surfaces"
|
|
115
|
+
],
|
|
116
|
+
"avoidFor": [
|
|
117
|
+
"Text foreground",
|
|
118
|
+
"Status messages without semantic color",
|
|
119
|
+
"Arbitrary decorative blocks"
|
|
120
|
+
],
|
|
121
|
+
"agentRules": [
|
|
122
|
+
"Use --color-bg-layout for app-level backgrounds.",
|
|
123
|
+
"Use --color-bg-container or --color-bg-base for content surfaces.",
|
|
124
|
+
"Use --color-bg-mask only for modal, drawer, dialog, and popover overlays."
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
"color.border": {
|
|
128
|
+
"tokens": [
|
|
129
|
+
"--color-border",
|
|
130
|
+
"--color-border-secondary",
|
|
131
|
+
"--color-border-tertiary",
|
|
132
|
+
"--color-input",
|
|
133
|
+
"--color-ring"
|
|
134
|
+
],
|
|
135
|
+
"intent": "Separation, input affordance, and keyboard focus indication.",
|
|
136
|
+
"useFor": [
|
|
137
|
+
"Card and panel boundaries",
|
|
138
|
+
"Dividers",
|
|
139
|
+
"Input borders",
|
|
140
|
+
"Focus rings"
|
|
141
|
+
],
|
|
142
|
+
"avoidFor": [
|
|
143
|
+
"Primary semantic emphasis",
|
|
144
|
+
"Replacing spacing as the only separator"
|
|
145
|
+
],
|
|
146
|
+
"agentRules": [
|
|
147
|
+
"Use --color-ring for focus indication.",
|
|
148
|
+
"Prefer border-secondary or border-tertiary for low-emphasis separators."
|
|
149
|
+
]
|
|
150
|
+
},
|
|
151
|
+
"color.fill": {
|
|
152
|
+
"tokens": [
|
|
153
|
+
"--color-fill",
|
|
154
|
+
"--color-fill-secondary",
|
|
155
|
+
"--color-fill-tertiary",
|
|
156
|
+
"--color-fill-quaternary",
|
|
157
|
+
"--color-fill-disable",
|
|
158
|
+
"--color-accent",
|
|
159
|
+
"--color-muted"
|
|
160
|
+
],
|
|
161
|
+
"intent": "Subtle non-surface fills for controls, hover areas, muted chips, and disabled states.",
|
|
162
|
+
"useFor": [
|
|
163
|
+
"Hover backgrounds",
|
|
164
|
+
"Secondary controls",
|
|
165
|
+
"Muted chips",
|
|
166
|
+
"Disabled fill areas"
|
|
167
|
+
],
|
|
168
|
+
"avoidFor": [
|
|
169
|
+
"Primary page background",
|
|
170
|
+
"High-risk status feedback",
|
|
171
|
+
"Readable foreground text"
|
|
172
|
+
],
|
|
173
|
+
"agentRules": [
|
|
174
|
+
"Use fill tokens to support interaction affordance without adding new brand colors.",
|
|
175
|
+
"Use --color-fill-disable only when disabled semantics are explicit."
|
|
176
|
+
]
|
|
177
|
+
},
|
|
178
|
+
"color.semantic": {
|
|
179
|
+
"tokens": [
|
|
180
|
+
"--color-link",
|
|
181
|
+
"--color-error",
|
|
182
|
+
"--color-error-hover",
|
|
183
|
+
"--color-error-bg",
|
|
184
|
+
"--color-error-bg-hover",
|
|
185
|
+
"--color-error-border",
|
|
186
|
+
"--color-info",
|
|
187
|
+
"--color-info-hover",
|
|
188
|
+
"--color-info-bg",
|
|
189
|
+
"--color-info-bg-hover",
|
|
190
|
+
"--color-info-border",
|
|
191
|
+
"--color-success",
|
|
192
|
+
"--color-success-hover",
|
|
193
|
+
"--color-success-bg",
|
|
194
|
+
"--color-success-bg-hover",
|
|
195
|
+
"--color-success-border",
|
|
196
|
+
"--color-warning",
|
|
197
|
+
"--color-warning-hover",
|
|
198
|
+
"--color-warning-bg",
|
|
199
|
+
"--color-warning-bg-hover",
|
|
200
|
+
"--color-warning-border"
|
|
201
|
+
],
|
|
202
|
+
"intent": "Meaningful status communication.",
|
|
203
|
+
"useFor": [
|
|
204
|
+
"Validation errors",
|
|
205
|
+
"Warnings",
|
|
206
|
+
"Success confirmations",
|
|
207
|
+
"Informational callouts",
|
|
208
|
+
"Links"
|
|
209
|
+
],
|
|
210
|
+
"avoidFor": [
|
|
211
|
+
"Pure decoration",
|
|
212
|
+
"Brand emphasis",
|
|
213
|
+
"Dense rainbow categorization without labels"
|
|
214
|
+
],
|
|
215
|
+
"agentRules": [
|
|
216
|
+
"Do not rely on color alone; pair semantic color with text or icon labels.",
|
|
217
|
+
"Use background and border companions for Alert-like surfaces."
|
|
218
|
+
]
|
|
219
|
+
},
|
|
220
|
+
"color.accent": {
|
|
221
|
+
"tokens": [
|
|
222
|
+
"--color-pink",
|
|
223
|
+
"--color-pink-bg",
|
|
224
|
+
"--color-pink-bg-hover",
|
|
225
|
+
"--color-purple",
|
|
226
|
+
"--color-purple-bg",
|
|
227
|
+
"--color-purple-bg-hover",
|
|
228
|
+
"--color-yellow",
|
|
229
|
+
"--color-yellow-bg",
|
|
230
|
+
"--color-yellow-bg-hover",
|
|
231
|
+
"--color-orange",
|
|
232
|
+
"--color-orange-bg",
|
|
233
|
+
"--color-orange-bg-hover",
|
|
234
|
+
"--color-teal",
|
|
235
|
+
"--color-teal-bg",
|
|
236
|
+
"--color-teal-bg-hover",
|
|
237
|
+
"--color-blue",
|
|
238
|
+
"--color-blue-bg",
|
|
239
|
+
"--color-blue-bg-hover",
|
|
240
|
+
"--color-mauve",
|
|
241
|
+
"--color-mauve-bg",
|
|
242
|
+
"--color-mauve-bg-hover",
|
|
243
|
+
"--color-slate",
|
|
244
|
+
"--color-slate-bg",
|
|
245
|
+
"--color-slate-bg-hover",
|
|
246
|
+
"--color-lavender",
|
|
247
|
+
"--color-lavender-bg",
|
|
248
|
+
"--color-lavender-bg-hover",
|
|
249
|
+
"--color-sage",
|
|
250
|
+
"--color-sage-bg",
|
|
251
|
+
"--color-sage-bg-hover"
|
|
252
|
+
],
|
|
253
|
+
"intent": "Categorical accents for tags, files, generated artifacts, or non-status grouping.",
|
|
254
|
+
"useFor": [
|
|
255
|
+
"Category tags",
|
|
256
|
+
"File type accents",
|
|
257
|
+
"Non-critical visual grouping",
|
|
258
|
+
"Generated artifact previews"
|
|
259
|
+
],
|
|
260
|
+
"avoidFor": [
|
|
261
|
+
"Primary actions",
|
|
262
|
+
"Error, warning, success, or info status",
|
|
263
|
+
"Long-form text"
|
|
264
|
+
],
|
|
265
|
+
"agentRules": [
|
|
266
|
+
"Use accents sparingly and label categories explicitly.",
|
|
267
|
+
"Do not invent new accent colors in generated UI."
|
|
268
|
+
]
|
|
269
|
+
},
|
|
270
|
+
"spacing": {
|
|
271
|
+
"tokens": [
|
|
272
|
+
"--spacing-0",
|
|
273
|
+
"--spacing-px",
|
|
274
|
+
"--spacing-0.5",
|
|
275
|
+
"--spacing-1",
|
|
276
|
+
"--spacing-1.5",
|
|
277
|
+
"--spacing-2",
|
|
278
|
+
"--spacing-2.5",
|
|
279
|
+
"--spacing-3",
|
|
280
|
+
"--spacing-3.5",
|
|
281
|
+
"--spacing-4",
|
|
282
|
+
"--spacing-5",
|
|
283
|
+
"--spacing-6",
|
|
284
|
+
"--spacing-8",
|
|
285
|
+
"--spacing-10",
|
|
286
|
+
"--spacing-12",
|
|
287
|
+
"--spacing-16",
|
|
288
|
+
"--spacing-20",
|
|
289
|
+
"--spacing-24"
|
|
290
|
+
],
|
|
291
|
+
"intent": "Rhythm and density controlled by data-style.",
|
|
292
|
+
"useFor": [
|
|
293
|
+
"Component padding",
|
|
294
|
+
"Stack gaps",
|
|
295
|
+
"Grid gutters",
|
|
296
|
+
"Inline icon-label spacing"
|
|
297
|
+
],
|
|
298
|
+
"avoidFor": [
|
|
299
|
+
"One-off pixel nudges",
|
|
300
|
+
"Encoding visual hierarchy only through whitespace",
|
|
301
|
+
"Breaking sibling rhythm without a reason"
|
|
302
|
+
],
|
|
303
|
+
"agentRules": [
|
|
304
|
+
"Prefer existing Tailwind spacing utilities mapped to Spark tokens.",
|
|
305
|
+
"Use larger spacing for section rhythm and smaller spacing for control internals."
|
|
306
|
+
]
|
|
307
|
+
},
|
|
308
|
+
"radius": {
|
|
309
|
+
"tokens": [
|
|
310
|
+
"--radius-none",
|
|
311
|
+
"--radius-sm",
|
|
312
|
+
"--radius-md",
|
|
313
|
+
"--radius-lg",
|
|
314
|
+
"--radius-xl",
|
|
315
|
+
"--radius-2xl",
|
|
316
|
+
"--radius-3xl",
|
|
317
|
+
"--radius-full"
|
|
318
|
+
],
|
|
319
|
+
"intent": "Geometry and softness controlled by data-style.",
|
|
320
|
+
"useFor": [
|
|
321
|
+
"Buttons",
|
|
322
|
+
"Cards",
|
|
323
|
+
"Inputs",
|
|
324
|
+
"Pills",
|
|
325
|
+
"Panels"
|
|
326
|
+
],
|
|
327
|
+
"avoidFor": [
|
|
328
|
+
"Mixing unrelated radii in a single component",
|
|
329
|
+
"Using full radius for large rectangular panels",
|
|
330
|
+
"Overriding sharp or dense styles with arbitrary rounded values"
|
|
331
|
+
],
|
|
332
|
+
"agentRules": [
|
|
333
|
+
"Let data-style drive geometry unless a component has a documented exception.",
|
|
334
|
+
"Use --radius-full only for pills, avatars, and circular controls."
|
|
335
|
+
]
|
|
336
|
+
},
|
|
337
|
+
"typography": {
|
|
338
|
+
"tokens": [
|
|
339
|
+
"--font-size-xs",
|
|
340
|
+
"--font-size-sm",
|
|
341
|
+
"--font-size-base",
|
|
342
|
+
"--font-size-lg",
|
|
343
|
+
"--font-size-xl",
|
|
344
|
+
"--font-size-2xl",
|
|
345
|
+
"--font-size-3xl",
|
|
346
|
+
"--font-size-4xl",
|
|
347
|
+
"--font-size-5xl",
|
|
348
|
+
"--font-size-6xl",
|
|
349
|
+
"--font-size-7xl",
|
|
350
|
+
"--font-size-8xl",
|
|
351
|
+
"--font-size-9xl"
|
|
352
|
+
],
|
|
353
|
+
"intent": "Readable type hierarchy controlled by data-style.",
|
|
354
|
+
"useFor": [
|
|
355
|
+
"Body text",
|
|
356
|
+
"Labels",
|
|
357
|
+
"Section headings",
|
|
358
|
+
"Display headings"
|
|
359
|
+
],
|
|
360
|
+
"avoidFor": [
|
|
361
|
+
"Decorative scale jumps without information hierarchy",
|
|
362
|
+
"Tiny text for required content",
|
|
363
|
+
"Long paragraphs above base size without layout reason"
|
|
364
|
+
],
|
|
365
|
+
"agentRules": [
|
|
366
|
+
"Use base or sm for dense application text.",
|
|
367
|
+
"Use larger sizes to express hierarchy, not decoration."
|
|
368
|
+
]
|
|
369
|
+
},
|
|
370
|
+
"motion": {
|
|
371
|
+
"tokens": [
|
|
372
|
+
"--motion-duration-fast",
|
|
373
|
+
"--motion-duration-base",
|
|
374
|
+
"--motion-duration-slow",
|
|
375
|
+
"--motion-ease-standard",
|
|
376
|
+
"--motion-ease-emphasized",
|
|
377
|
+
"--motion-ease-out"
|
|
378
|
+
],
|
|
379
|
+
"intent": "Purposeful feedback and state transition timing.",
|
|
380
|
+
"useFor": [
|
|
381
|
+
"Hover and press feedback",
|
|
382
|
+
"Disclosure transitions",
|
|
383
|
+
"Modal and popover entry/exit",
|
|
384
|
+
"Streaming or generation state changes"
|
|
385
|
+
],
|
|
386
|
+
"avoidFor": [
|
|
387
|
+
"Purely decorative delay",
|
|
388
|
+
"Animating large layout shifts without user benefit",
|
|
389
|
+
"Long-running loops that distract from task work"
|
|
390
|
+
],
|
|
391
|
+
"agentRules": [
|
|
392
|
+
"Use fast durations for control feedback.",
|
|
393
|
+
"Use base or slow only for surface transitions that clarify spatial change."
|
|
394
|
+
]
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
"forbiddenPatterns": [
|
|
398
|
+
"Hard-coded hex colors in component className or style props.",
|
|
399
|
+
"Raw rgba overlays when --color-bg-mask or a semantic token exists.",
|
|
400
|
+
"Arbitrary radius values that fight data-style.",
|
|
401
|
+
"One-off spacing values that break sibling rhythm.",
|
|
402
|
+
"Using accent colors to communicate status without labels."
|
|
403
|
+
]
|
|
404
|
+
}
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
/* ============================================
|
|
2
|
-
* Theme: Dark (暗色模式)
|
|
3
|
-
* 复制此文件作为自定义主题模板
|
|
4
|
-
* ============================================ */
|
|
5
|
-
|
|
6
|
-
[data-theme="dark"] {
|
|
7
|
-
color-scheme: dark;
|
|
8
|
-
/* --- Primary --- */
|
|
9
|
-
--color-primary: #8EE5A1;
|
|
10
|
-
--color-primary-hover: #9BE6B3;
|
|
11
|
-
--color-primary-active: #73CD94;
|
|
12
|
-
--color-primary-bg: #14261C;
|
|
13
|
-
--color-primary-bg-hover: #1A2E21;
|
|
14
|
-
--color-primary-border: #335942;
|
|
15
|
-
--color-primary-border-hover: #407354;
|
|
16
|
-
--color-primary-text: #8EE5A1;
|
|
17
|
-
--color-primary-text-hover: #9BE6B3;
|
|
18
|
-
--color-primary-text-active: #73CD94;
|
|
19
|
-
--color-text-on-primary: #0D0D0D;
|
|
20
|
-
|
|
21
|
-
/* --- Text --- */
|
|
22
|
-
--color-text: #FAF9F5;
|
|
23
|
-
--color-text-secondary: #9C9D9E;
|
|
24
|
-
--color-text-tertiary: #7C7D7F;
|
|
25
|
-
--color-text-quaternary: #717374;
|
|
26
|
-
--color-text-base: #F0F2F3;
|
|
27
|
-
|
|
28
|
-
/* --- Border --- */
|
|
29
|
-
--color-border: #404040;
|
|
30
|
-
--color-border-secondary: #2A2A2A;
|
|
31
|
-
--color-border-tertiary: #262626;
|
|
32
|
-
|
|
33
|
-
/* --- Fill --- */
|
|
34
|
-
--color-fill: #454545;
|
|
35
|
-
--color-fill-secondary: #363636;
|
|
36
|
-
--color-fill-tertiary: #1A1A1A;
|
|
37
|
-
--color-fill-quaternary: #1A1A1A;
|
|
38
|
-
--color-fill-disable: #525252;
|
|
39
|
-
|
|
40
|
-
/* --- Background --- */
|
|
41
|
-
--color-bg-container: #0D0D0D;
|
|
42
|
-
--color-bg-elevated: #080808;
|
|
43
|
-
--color-bg-layout: #050505;
|
|
44
|
-
--color-bg-spotlight: #080808;
|
|
45
|
-
--color-bg-mask: rgba(0, 0, 0, 0.7);
|
|
46
|
-
--color-mask-shimmer-weak: rgba(0, 0, 0, 0.3);
|
|
47
|
-
--color-mask-shimmer-strong: rgba(0, 0, 0, 0.8);
|
|
48
|
-
--color-mask-shimmer-full: rgba(0, 0, 0, 1);
|
|
49
|
-
--color-bg-base: #000000;
|
|
50
|
-
--color-bg-highlight: #d0d0d0;
|
|
51
|
-
--color-bg-highlight-hover: #e0e0e0;
|
|
52
|
-
|
|
53
|
-
/* --- Semantic Colors --- */
|
|
54
|
-
--color-link: #8EE5A1;
|
|
55
|
-
--color-error: #FF4D4F;
|
|
56
|
-
--color-error-hover: #FF7875;
|
|
57
|
-
--color-error-bg: #4A1A1B;
|
|
58
|
-
--color-error-bg-hover: #5C2224;
|
|
59
|
-
--color-error-border: #663338;
|
|
60
|
-
--color-info: #0B83F1;
|
|
61
|
-
--color-info-hover: #5EBCFF;
|
|
62
|
-
--color-info-bg: #19080E;
|
|
63
|
-
--color-info-bg-hover: #220A12;
|
|
64
|
-
--color-info-border: #4F1C0E;
|
|
65
|
-
--color-success: #73CD94;
|
|
66
|
-
--color-success-hover: #8EE5A1;
|
|
67
|
-
--color-success-bg: #14261C;
|
|
68
|
-
--color-success-bg-hover: #1A2E21;
|
|
69
|
-
--color-success-border: #335942;
|
|
70
|
-
--color-warning: #FAAD14;
|
|
71
|
-
--color-warning-hover: #FFD666;
|
|
72
|
-
--color-warning-bg: #4A4019;
|
|
73
|
-
--color-warning-bg-hover: #5C4E1F;
|
|
74
|
-
--color-warning-border: #664D19;
|
|
75
|
-
|
|
76
|
-
/* --- Accent Colors --- */
|
|
77
|
-
--color-pink: #EC4899;
|
|
78
|
-
--color-pink-bg: #4A1C31;
|
|
79
|
-
--color-pink-bg-hover: #5C2440;
|
|
80
|
-
--color-purple: #615CED;
|
|
81
|
-
--color-purple-bg: #14160E;
|
|
82
|
-
--color-purple-bg-hover: #1C1E14;
|
|
83
|
-
--color-yellow: #FAC414;
|
|
84
|
-
--color-yellow-bg: #4A4030;
|
|
85
|
-
--color-yellow-bg-hover: #5C5040;
|
|
86
|
-
--color-orange: #FA8125;
|
|
87
|
-
--color-orange-bg: #4A1021;
|
|
88
|
-
--color-orange-bg-hover: #5C1429;
|
|
89
|
-
--color-teal: #14B8A6;
|
|
90
|
-
--color-teal-bg: #21080E;
|
|
91
|
-
--color-teal-bg-hover: #2E0E14;
|
|
92
|
-
--color-blue: #0090FF;
|
|
93
|
-
--color-blue-bg: #21120E;
|
|
94
|
-
--color-blue-bg-hover: #2E1A14;
|
|
95
|
-
--color-mauve: #8E8C99;
|
|
96
|
-
--color-mauve-bg: #0E0D0C;
|
|
97
|
-
--color-mauve-bg-hover: #1A1818;
|
|
98
|
-
--color-slate: #363636;
|
|
99
|
-
--color-slate-bg: #1a1a1a;
|
|
100
|
-
--color-slate-bg-hover: #262626;
|
|
101
|
-
--color-lavender: #B99DFF;
|
|
102
|
-
--color-lavender-bg: #131B0E;
|
|
103
|
-
--color-lavender-bg-hover: #1C2614;
|
|
104
|
-
--color-sage: #6BB394;
|
|
105
|
-
--color-sage-bg: #100C0D;
|
|
106
|
-
--color-sage-bg-hover: #1A1418;
|
|
107
|
-
|
|
108
|
-
/* --- Component aliases --- */
|
|
109
|
-
--color-input: var(--color-border-tertiary);
|
|
110
|
-
--color-ring: var(--color-primary-border);
|
|
111
|
-
--color-popover: var(--color-bg-container);
|
|
112
|
-
--color-popover-foreground: var(--color-text);
|
|
113
|
-
--color-accent: var(--color-fill-secondary);
|
|
114
|
-
--color-accent-foreground: var(--color-text);
|
|
115
|
-
--color-muted: var(--color-fill-tertiary);
|
|
116
|
-
--color-muted-foreground: var(--color-text-secondary);
|
|
117
|
-
--color-background: var(--color-bg-base);
|
|
118
|
-
|
|
119
|
-
/* --- Diff --- */
|
|
120
|
-
--color-diff-insert: #73CD94;
|
|
121
|
-
--color-diff-insert-bg: #14261C;
|
|
122
|
-
--color-diff-remove: #FC6B83;
|
|
123
|
-
--color-diff-remove-bg: #1C2E2A;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
/* SendButton: dark 模式下 normal 状态使用 success 色 */
|
|
127
|
-
[data-theme="dark"] .SendButton-send {
|
|
128
|
-
background-color: var(--color-success);
|
|
129
|
-
}
|
|
130
|
-
[data-theme="dark"] .SendButton-send:hover:not(:disabled) {
|
|
131
|
-
background-color: var(--color-success-hover);
|
|
132
|
-
}
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
/* ============================================
|
|
2
|
-
* Theme: Light (亮色模式)
|
|
3
|
-
* 复制此文件作为自定义主题模板
|
|
4
|
-
* ============================================ */
|
|
5
|
-
|
|
6
|
-
:root,
|
|
7
|
-
[data-theme="light"] {
|
|
8
|
-
color-scheme: light;
|
|
9
|
-
/* --- Primary --- */
|
|
10
|
-
--color-primary: #8EE5A1;
|
|
11
|
-
--color-primary-hover: #73CD94;
|
|
12
|
-
--color-primary-active: #5CB870;
|
|
13
|
-
--color-primary-bg: #F1FAF3;
|
|
14
|
-
--color-primary-bg-hover: #E6F7EC;
|
|
15
|
-
--color-primary-border: #CDEFD9;
|
|
16
|
-
--color-primary-border-hover: #B3E6C7;
|
|
17
|
-
--color-primary-text: #141414;
|
|
18
|
-
--color-primary-text-hover: #73CD94;
|
|
19
|
-
--color-primary-text-active: #5CB870;
|
|
20
|
-
--color-text-on-primary: #FDFDFD;
|
|
21
|
-
|
|
22
|
-
/* --- Text --- */
|
|
23
|
-
--color-text: #141414;
|
|
24
|
-
--color-text-secondary: #636261;
|
|
25
|
-
--color-text-tertiary: #838280;
|
|
26
|
-
--color-text-quaternary: #8E8C8B;
|
|
27
|
-
--color-text-base: #0F0D0C;
|
|
28
|
-
|
|
29
|
-
/* --- Border --- */
|
|
30
|
-
--color-border: #BCBBBA;
|
|
31
|
-
--color-border-secondary: #DDDDDD;
|
|
32
|
-
--color-border-tertiary: #E6E6E6;
|
|
33
|
-
|
|
34
|
-
/* --- Fill --- */
|
|
35
|
-
--color-fill: #DFDFDF;
|
|
36
|
-
--color-fill-secondary: #EFEFEF;
|
|
37
|
-
--color-fill-tertiary: #F9F9F9;
|
|
38
|
-
--color-fill-quaternary: #FCFCFC;
|
|
39
|
-
--color-fill-disable: #DAD9D8;
|
|
40
|
-
|
|
41
|
-
/* --- Background --- */
|
|
42
|
-
--color-bg-container: #FFFFFF;
|
|
43
|
-
--color-bg-elevated: #F9F9F9;
|
|
44
|
-
--color-bg-layout: #FDFDFD;
|
|
45
|
-
--color-bg-spotlight: #FAFAFA;
|
|
46
|
-
--color-bg-mask: rgba(0, 0, 0, 0.5);
|
|
47
|
-
--color-mask-shimmer-weak: rgba(0, 0, 0, 0.3);
|
|
48
|
-
--color-mask-shimmer-strong: rgba(0, 0, 0, 0.8);
|
|
49
|
-
--color-mask-shimmer-full: rgba(0, 0, 0, 1);
|
|
50
|
-
--color-bg-base: #FFFFFF;
|
|
51
|
-
--color-bg-highlight: #080807;
|
|
52
|
-
--color-bg-highlight-hover: #1a1a1a;
|
|
53
|
-
|
|
54
|
-
/* --- Shadow --- */
|
|
55
|
-
--color-shadow-primary: rgba(0, 0, 0, 0.02);
|
|
56
|
-
--color-shadow-secondary: rgba(0, 0, 0, 0.035);
|
|
57
|
-
--color-shadow-tertiary: rgba(0, 0, 0, 0.055);
|
|
58
|
-
--color-shadow-quaternary: rgba(0, 0, 0, 0.075);
|
|
59
|
-
|
|
60
|
-
/* --- Semantic Colors --- */
|
|
61
|
-
--color-link: #5CB870;
|
|
62
|
-
--color-error: #FF4D4F;
|
|
63
|
-
--color-error-hover: #FF7875;
|
|
64
|
-
--color-error-bg: #FFF2F0;
|
|
65
|
-
--color-error-bg-hover: #FFE4E0;
|
|
66
|
-
--color-error-border: #FFCCC7;
|
|
67
|
-
--color-info: #0B83F1;
|
|
68
|
-
--color-info-hover: #5EBCFF;
|
|
69
|
-
--color-info-bg: #E6F7FF;
|
|
70
|
-
--color-info-bg-hover: #D0EFFF;
|
|
71
|
-
--color-info-border: #B0E3FF;
|
|
72
|
-
--color-success: #73CD94;
|
|
73
|
-
--color-success-hover: #8EE5A1;
|
|
74
|
-
--color-success-bg: #F1FAF3;
|
|
75
|
-
--color-success-bg-hover: #E6F7EC;
|
|
76
|
-
--color-success-border: #CDEFD9;
|
|
77
|
-
--color-warning: #FAAD14;
|
|
78
|
-
--color-warning-hover: #FFD666;
|
|
79
|
-
--color-warning-bg: #FFFBE6;
|
|
80
|
-
--color-warning-bg-hover: #FFF3CF;
|
|
81
|
-
--color-warning-border: #FFE5BF;
|
|
82
|
-
|
|
83
|
-
/* --- Accent Colors --- */
|
|
84
|
-
--color-pink: #EC4899;
|
|
85
|
-
--color-pink-bg: #F9E3F3;
|
|
86
|
-
--color-pink-bg-hover: #F5D4EB;
|
|
87
|
-
--color-purple: #615CED;
|
|
88
|
-
--color-purple-bg: #EBE9FF;
|
|
89
|
-
--color-purple-bg-hover: #DDDAFF;
|
|
90
|
-
--color-yellow: #FAC414;
|
|
91
|
-
--color-yellow-bg: #FFF3CF;
|
|
92
|
-
--color-yellow-bg-hover: #FFE9A8;
|
|
93
|
-
--color-orange: #FA8125;
|
|
94
|
-
--color-orange-bg: #FFEFDE;
|
|
95
|
-
--color-orange-bg-hover: #FFE3C7;
|
|
96
|
-
--color-teal: #14B8A6;
|
|
97
|
-
--color-teal-bg: #DEF7F1;
|
|
98
|
-
--color-teal-bg-hover: #CAF0E8;
|
|
99
|
-
--color-blue: #0090FF;
|
|
100
|
-
--color-blue-bg: #DEEDFF;
|
|
101
|
-
--color-blue-bg-hover: #C8E3FF;
|
|
102
|
-
--color-mauve: #8E8C99;
|
|
103
|
-
--color-mauve-bg: #F1F2F3;
|
|
104
|
-
--color-mauve-bg-hover: #E4E5E7;
|
|
105
|
-
--color-slate: #404040;
|
|
106
|
-
--color-slate-bg: #FAFAFA;
|
|
107
|
-
--color-slate-bg-hover: #EFEFEF;
|
|
108
|
-
--color-lavender: #B99DFF;
|
|
109
|
-
--color-lavender-bg: #ECE4FF;
|
|
110
|
-
--color-lavender-bg-hover: #E0D4FF;
|
|
111
|
-
--color-sage: #6BB394;
|
|
112
|
-
--color-sage-bg: #EFF3F2;
|
|
113
|
-
--color-sage-bg-hover: #E2EAE8;
|
|
114
|
-
|
|
115
|
-
/* --- Component aliases --- */
|
|
116
|
-
--color-input: var(--color-border-tertiary);
|
|
117
|
-
--color-ring: var(--color-primary-border);
|
|
118
|
-
--color-popover: var(--color-bg-container);
|
|
119
|
-
--color-popover-foreground: var(--color-text);
|
|
120
|
-
--color-accent: var(--color-fill-secondary);
|
|
121
|
-
--color-accent-foreground: var(--color-text);
|
|
122
|
-
--color-muted: var(--color-fill-tertiary);
|
|
123
|
-
--color-muted-foreground: var(--color-text-secondary);
|
|
124
|
-
--color-background: var(--color-bg-base);
|
|
125
|
-
|
|
126
|
-
/* --- Diff --- */
|
|
127
|
-
--color-diff-insert: #A6DCBA;
|
|
128
|
-
--color-diff-insert-bg: #D9EBE0;
|
|
129
|
-
--color-diff-remove: #FC6B83;
|
|
130
|
-
--color-diff-remove-bg: #E3D1D5;
|
|
131
|
-
}
|