@k8ordo/ui 3.0.0 → 4.0.0
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 +73 -182
- package/dist/{integrations/_shared → catalog}/icon-map.d.mts +4 -2
- package/dist/catalog/icon-map.mjs +212 -0
- package/dist/catalog/icon-names.d.mts +1 -0
- package/dist/{integrations/_shared → catalog}/icon-names.mjs +3 -1
- package/dist/catalog/index.d.mts +1289 -0
- package/dist/catalog/index.mjs +419 -0
- package/dist/catalog/render.css +34 -0
- package/dist/catalog/render.d.mts +72 -0
- package/dist/catalog/render.mjs +631 -0
- package/dist/catalog/render.module.mjs +11 -0
- package/dist/{integrations/_shared → catalog}/schemas.d.mts +120 -132
- package/dist/{integrations/_shared → catalog}/schemas.mjs +189 -131
- package/dist/catalog/to-tree.d.mts +4 -0
- package/dist/catalog/to-tree.mjs +17 -0
- package/dist/components/_internal/checked-values.d.mts +1 -0
- package/dist/components/_internal/checked-values.mjs +5 -0
- package/dist/components/_internal/field-message.css +25 -0
- package/dist/components/_internal/field-message.d.mts +10 -0
- package/dist/components/_internal/field-message.mjs +22 -0
- package/dist/components/_internal/field-message.module.mjs +9 -0
- package/dist/components/_internal/focus-ring.css +1 -1
- package/dist/components/_internal/high-contrast.css +1 -0
- package/dist/components/{observers/in-view → _internal}/in-view.mjs +1 -1
- package/dist/components/{observers/resize → _internal}/resize.mjs +1 -1
- package/dist/components/ai/_internal/attachment-preview.mjs +1 -1
- package/dist/components/ai/_internal/collapsible.mjs +1 -1
- package/dist/components/ai/attachment/attachment.d.mts +1 -1
- package/dist/components/ai/attachment/index.d.mts +1 -1
- package/dist/components/ai/conversation/conversation.mjs +4 -4
- package/dist/components/ai/index.d.mts +2 -2
- package/dist/components/ai/message/index.d.mts +2 -2
- package/dist/components/ai/message/message.d.mts +2 -2
- package/dist/components/ai/message/message.mjs +9 -9
- package/dist/components/ai/prompt-input/prompt-input.mjs +4 -4
- package/dist/components/ai/source/index.d.mts +2 -2
- package/dist/components/ai/source/source.d.mts +2 -2
- package/dist/components/ai/source/source.mjs +1 -1
- package/dist/components/ai/tool-invocation/approval-bar.mjs +11 -22
- package/dist/components/ai/tool-invocation/tool-invocation.d.mts +2 -2
- package/dist/components/buttons/button/button.css +1 -1
- package/dist/components/buttons/button/button.d.mts +34 -37
- package/dist/components/buttons/button/button.mjs +37 -24
- package/dist/components/buttons/button/button.module.mjs +0 -1
- package/dist/components/buttons/button/index.d.mts +2 -2
- package/dist/components/buttons/copy-button/copy-button.mjs +4 -4
- package/dist/components/buttons/icon-button/icon-button.css +3 -3
- package/dist/components/buttons/icon-button/icon-button.d.mts +37 -43
- package/dist/components/buttons/icon-button/icon-button.mjs +73 -63
- package/dist/components/buttons/icon-button/icon-button.module.mjs +2 -2
- package/dist/components/buttons/icon-button/index.d.mts +2 -2
- package/dist/components/buttons/toolbar/toolbar.css +5 -1
- package/dist/components/buttons/toolbar/toolbar.mjs +1 -1
- package/dist/components/data-display/accordion/accordion-button.d.mts +4 -1
- package/dist/components/data-display/accordion/accordion-button.mjs +4 -4
- package/dist/components/data-display/accordion/index.d.mts +3 -3
- package/dist/components/data-display/card/card-action.d.mts +6 -0
- package/dist/components/data-display/card/card-action.mjs +21 -0
- package/dist/components/data-display/card/card.css +24 -0
- package/dist/components/data-display/card/card.d.mts +26 -3
- package/dist/components/data-display/card/card.mjs +46 -6
- package/dist/components/data-display/card/card.module.mjs +4 -1
- package/dist/components/data-display/card/index.d.mts +2 -2
- package/dist/components/data-display/carousel/carousel.mjs +2 -2
- package/dist/components/data-display/code/code.css +4 -0
- package/dist/components/data-display/code-block/code-block.mjs +1 -1
- package/dist/components/data-display/data-table/data-table.css +0 -3
- package/dist/components/data-display/data-table/data-table.mjs +25 -26
- package/dist/components/data-display/tree/tree.d.mts +1 -1
- package/dist/components/data-display/tree/tree.mjs +6 -5
- package/dist/components/feedback/alert/alert.d.mts +2 -7
- package/dist/components/feedback/alert/alert.mjs +11 -11
- package/dist/components/feedback/alert/index.d.mts +2 -2
- package/dist/components/feedback/callout/callout.mjs +2 -2
- package/dist/components/feedback/progress/progress.mjs +1 -1
- package/dist/components/feedback/toast/context.d.mts +4 -5
- package/dist/components/feedback/toast/index.d.mts +2 -2
- package/dist/components/feedback/toast/provider.d.mts +7 -2
- package/dist/components/feedback/toast/provider.mjs +7 -2
- package/dist/components/feedback/toast/toast.d.mts +2 -3
- package/dist/components/form/autocomplete/autocomplete.d.mts +2 -2
- package/dist/components/form/autocomplete/autocomplete.mjs +12 -9
- package/dist/components/form/calendar/calendar.mjs +3 -5
- package/dist/components/form/checkbox/checkbox.d.mts +3 -1
- package/dist/components/form/checkbox/checkbox.mjs +44 -45
- package/dist/components/form/checkbox-card/checkbox-card.d.mts +3 -2
- package/dist/components/form/checkbox-card/checkbox-card.mjs +13 -6
- package/dist/components/form/checkbox-group/checkbox-group.d.mts +15 -20
- package/dist/components/form/checkbox-group/checkbox-group.mjs +18 -26
- package/dist/components/form/checkbox-group/index.d.mts +2 -34
- package/dist/components/form/checkbox-group/index.mjs +1 -8
- package/dist/components/form/color-picker/color-picker.css +3 -5
- package/dist/components/form/color-picker/color-picker.d.mts +0 -1
- package/dist/components/form/color-picker/color-picker.mjs +4 -4
- package/dist/components/form/combobox/combobox.d.mts +0 -1
- package/dist/components/form/combobox/combobox.mjs +9 -8
- package/dist/components/form/date-picker/date-picker.css +0 -5
- package/dist/components/form/date-picker/date-picker.mjs +21 -22
- package/dist/components/form/file-field/file-field.d.mts +6 -3
- package/dist/components/form/file-field/file-field.mjs +41 -18
- package/dist/components/form/file-field/index.d.mts +4 -1
- package/dist/components/form/form/form.mjs +0 -1
- package/dist/components/form/form-control/form-control.css +0 -15
- package/dist/components/form/form-control/form-control.d.mts +3 -4
- package/dist/components/form/form-control/form-control.mjs +44 -46
- package/dist/components/form/form-control/form-control.module.mjs +0 -3
- package/dist/components/form/number-field/number-field.d.mts +2 -2
- package/dist/components/form/number-field/number-field.mjs +13 -52
- package/dist/components/form/password-input/password-input.mjs +1 -1
- package/dist/components/form/radio/radio.mjs +4 -2
- package/dist/components/form/radio-card/radio-card.mjs +9 -2
- package/dist/components/form/range-slider/range-slider.d.mts +4 -2
- package/dist/components/form/range-slider/range-slider.mjs +2 -4
- package/dist/components/form/select/select.css +6 -4
- package/dist/components/form/select/select.d.mts +5 -0
- package/dist/components/form/select/select.mjs +10 -7
- package/dist/components/form/slider/slider.d.mts +2 -2
- package/dist/components/form/slider/slider.mjs +3 -6
- package/dist/components/form/switch/switch.d.mts +3 -0
- package/dist/components/form/switch/switch.mjs +43 -31
- package/dist/components/form/text-field/index.d.mts +2 -2
- package/dist/components/form/text-field/text-field.css +4 -0
- package/dist/components/form/text-field/text-field.d.mts +1 -1
- package/dist/components/form/textarea/textarea.d.mts +0 -1
- package/dist/components/form/textarea/textarea.mjs +1 -1
- package/dist/components/icons/base.d.mts +0 -1
- package/dist/components/icons/base.mjs +1 -2
- package/dist/components/icons/clipboard-check.d.mts +3 -0
- package/dist/components/icons/clipboard-check.mjs +18 -0
- package/dist/components/icons/git-pull-request.d.mts +3 -0
- package/dist/components/icons/git-pull-request.mjs +20 -0
- package/dist/components/icons/index.d.mts +9 -7
- package/dist/components/icons/index.mjs +30 -28
- package/dist/components/index.d.mts +58 -66
- package/dist/components/index.mjs +13 -19
- package/dist/components/layout/resizable-panels/resizable-panels.mjs +3 -3
- package/dist/components/navigation/anchor/anchor.css +3 -3
- package/dist/components/navigation/anchor/anchor.mjs +20 -7
- package/dist/components/navigation/anchor/anchor.module.mjs +1 -1
- package/dist/components/navigation/breadcrumb/breadcrumb.d.mts +6 -4
- package/dist/components/navigation/breadcrumb/breadcrumb.mjs +3 -2
- package/dist/components/navigation/pagination/pagination.d.mts +2 -2
- package/dist/components/navigation/pagination/pagination.mjs +2 -2
- package/dist/components/navigation/side-nav/side-nav.mjs +1 -1
- package/dist/components/navigation/stepper/stepper.mjs +3 -3
- package/dist/components/navigation/tabs/index.d.mts +10 -5
- package/dist/components/navigation/tabs/tabs.d.mts +11 -6
- package/dist/components/navigation/tabs/tabs.mjs +24 -27
- package/dist/components/overlays/_internal/modal-header.css +38 -0
- package/dist/components/overlays/_internal/modal-header.d.mts +7 -0
- package/dist/components/overlays/_internal/modal-header.mjs +32 -0
- package/dist/components/overlays/_internal/modal-header.module.mjs +10 -0
- package/dist/components/overlays/command-palette/command-palette.d.mts +2 -2
- package/dist/components/overlays/command-palette/command-palette.mjs +9 -8
- package/dist/components/overlays/context-menu/context-menu.mjs +3 -3
- package/dist/components/overlays/context-menu/index.d.mts +27 -2
- package/dist/components/overlays/dialog/dialog.css +3 -21
- package/dist/components/overlays/dialog/dialog.d.mts +20 -9
- package/dist/components/overlays/dialog/dialog.mjs +35 -73
- package/dist/components/overlays/dialog/dialog.module.mjs +1 -3
- package/dist/components/overlays/dialog/index.d.mts +2 -15
- package/dist/components/overlays/dialog/index.mjs +1 -8
- package/dist/components/overlays/drawer/drawer.css +4 -26
- package/dist/components/overlays/drawer/drawer.d.mts +7 -2
- package/dist/components/overlays/drawer/drawer.mjs +24 -37
- package/dist/components/overlays/drawer/drawer.module.mjs +2 -6
- package/dist/components/overlays/dropdown-menu/dropdown-menu.d.mts +35 -5
- package/dist/components/overlays/dropdown-menu/dropdown-menu.mjs +29 -11
- package/dist/components/overlays/dropdown-menu/hooks.d.mts +1 -1
- package/dist/components/overlays/dropdown-menu/hooks.mjs +1 -1
- package/dist/components/overlays/dropdown-menu/index.d.mts +34 -4
- package/dist/components/overlays/dropdown-menu/shared.css +1 -0
- package/dist/components/overlays/dropdown-menu/sub-menu.mjs +4 -4
- package/dist/components/overlays/list-box/hooks.mjs +2 -2
- package/dist/components/overlays/list-box/index.d.mts +2 -25
- package/dist/components/overlays/list-box/index.mjs +1 -9
- package/dist/components/overlays/list-box/list-box.d.mts +11 -16
- package/dist/components/overlays/list-box/list-box.mjs +23 -16
- package/dist/components/overlays/modal/modal.d.mts +8 -7
- package/dist/components/overlays/modal/modal.mjs +23 -32
- package/dist/components/overlays/popover/anchor-positioning.d.mts +3 -16
- package/dist/components/overlays/popover/anchor-positioning.mjs +14 -6
- package/dist/components/overlays/popover/hooks.d.mts +0 -2
- package/dist/components/overlays/popover/hooks.mjs +0 -2
- package/dist/components/overlays/popover/index.d.mts +19 -2
- package/dist/components/overlays/popover/index.mjs +7 -2
- package/dist/components/overlays/popover/popover.css +6 -0
- package/dist/components/overlays/popover/popover.d.mts +15 -2
- package/dist/components/overlays/popover/popover.mjs +28 -13
- package/dist/components/overlays/popover/popover.module.mjs +2 -1
- package/dist/components/overlays/tooltip/bridge.css +1 -1
- package/dist/components/overlays/tooltip/tooltip.mjs +5 -5
- package/dist/helpers/index.mjs +1 -1
- package/dist/i18n/en.mjs +1 -2
- package/dist/i18n/index.d.mts +3 -4
- package/dist/i18n/index.mjs +1 -2
- package/dist/i18n/ja.mjs +1 -2
- package/dist/i18n/messages.d.mts +2 -4
- package/dist/i18n/usage.d.mts +2 -1
- package/dist/i18n/usage.mjs +3 -3
- package/dist/index.d.mts +30 -36
- package/dist/index.mjs +4 -10
- package/dist/internal/iso-date.mjs +1 -1
- package/dist/styles/index.css +79 -225
- package/dist/styles/tailwind.css +1 -1
- package/dist/styles/tokens.css +281 -0
- package/dist/styles/tokens.d.mts +1 -1
- package/dist/styles/tokens.mjs +1 -1
- package/dist/types/index.d.mts +2 -2
- package/dist/types/variables.d.mts +4 -2
- package/docs/GUIDE.md +141 -66
- package/docs/llms.txt +38 -11
- package/docs/props.generated.json +752 -481
- package/docs/references/ai-chat.md +87 -39
- package/docs/references/color.md +15 -15
- package/docs/references/components.md +568 -499
- package/docs/references/generative-ui.md +373 -185
- package/docs/references/interaction-design.md +6 -5
- package/docs/references/spatial-design.md +8 -8
- package/docs/references/types.md +22 -25
- package/package.json +37 -70
- package/dist/components/form/date-field/date-field.css +0 -31
- package/dist/components/form/date-field/date-field.d.mts +0 -7
- package/dist/components/form/date-field/date-field.mjs +0 -19
- package/dist/components/form/date-field/date-field.module.mjs +0 -4
- package/dist/components/form/date-field/index.d.mts +0 -2
- package/dist/components/form/date-field/index.mjs +0 -1
- package/dist/components/observers/in-view/index.d.mts +0 -2
- package/dist/components/observers/in-view/index.mjs +0 -1
- package/dist/components/observers/resize/index.d.mts +0 -2
- package/dist/components/observers/resize/index.mjs +0 -1
- package/dist/components/overlays/_internal/modal-dialog-context.d.mts +0 -11
- package/dist/components/overlays/_internal/modal-dialog-context.mjs +0 -12
- package/dist/components/providers/index.d.mts +0 -3
- package/dist/components/providers/index.mjs +0 -3
- package/dist/components/providers/portal-root.d.mts +0 -8
- package/dist/components/providers/portal-root.mjs +0 -11
- package/dist/components/providers/ui-provider.d.mts +0 -2
- package/dist/components/providers/ui-provider.mjs +0 -6
- package/dist/integrations/_shared/icon-map.mjs +0 -208
- package/dist/integrations/_shared/icon-names.d.mts +0 -1
- package/dist/integrations/_shared/openui-defs.d.mts +0 -15
- package/dist/integrations/_shared/openui-defs.mjs +0 -230
- package/dist/integrations/_shared/renderers.css +0 -50
- package/dist/integrations/_shared/renderers.d.mts +0 -88
- package/dist/integrations/_shared/renderers.mjs +0 -880
- package/dist/integrations/_shared/renderers.module.mjs +0 -13
- package/dist/integrations/ai-sdk/index.d.mts +0 -3
- package/dist/integrations/ai-sdk/index.mjs +0 -1
- package/dist/integrations/ai-sdk/map-parts.d.mts +0 -44
- package/dist/integrations/ai-sdk/map-parts.mjs +0 -56
- package/dist/integrations/json-render/catalog.d.mts +0 -1359
- package/dist/integrations/json-render/catalog.mjs +0 -373
- package/dist/integrations/json-render/registry.d.mts +0 -26
- package/dist/integrations/json-render/registry.mjs +0 -192
- package/dist/integrations/openui/form-views.d.mts +0 -24
- package/dist/integrations/openui/form-views.mjs +0 -89
- package/dist/integrations/openui/library.d.mts +0 -202
- package/dist/integrations/openui/library.mjs +0 -83
- package/dist/integrations/openui/prompt.d.mts +0 -2
- package/dist/integrations/openui/prompt.mjs +0 -18
- /package/dist/components/{observers → _internal}/fragment-instance.d.mts +0 -0
- /package/dist/components/{observers/in-view → _internal}/in-view.d.mts +0 -0
- /package/dist/components/{observers/resize → _internal}/resize.d.mts +0 -0
package/dist/styles/tokens.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const tokens = {"version":"2025.10","resolutionOrder":[{"type":"set","name":":root","sources":[{"white":{"$type":"color","$value":{"colorSpace":"oklch","components":[1,0,0]}},"gray-50":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.975,0.001,235]}},"gray-100":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.955,0.0015,235]}},"gray-200":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.925,0.003,235]}},"gray-300":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.84,0.004,235]}},"gray-400":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.75,0.005,235]}},"gray-500":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.66,0.006,235]}},"gray-600":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.52,0.006,235]}},"gray-700":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.42,0.003,235]}},"gray-800":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.3,0.002,235]}},"gray-900":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.25,0.0015,235]}},"gray-950":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.18,0.001,235]}},"red-50":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.975,0.016,25]}},"red-100":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.945,0.042,25]}},"red-200":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.9,0.084,25]}},"red-300":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.84,0.15,25]}},"red-400":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.75,0.225,25]}},"red-500":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.66,0.27,25]}},"red-600":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.575,0.255,25]}},"red-700":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.49,0.22,25]}},"red-800":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.41,0.18,25]}},"red-900":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.37,0.14,25]}},"red-950":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.18,0.1,25]}},"pink-50":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.975,0.016,350]}},"pink-100":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.945,0.038,350]}},"pink-200":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.9,0.078,350]}},"pink-300":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.84,0.145,350]}},"pink-400":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.75,0.225,350]}},"pink-500":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.66,0.27,350]}},"pink-600":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.575,0.26,350]}},"pink-700":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.49,0.23,350]}},"pink-800":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.41,0.19,350]}},"pink-900":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.37,0.15,350]}},"pink-950":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.18,0.108,350]}},"purple-50":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.975,0.018,305]}},"purple-100":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.945,0.042,305]}},"purple-200":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.9,0.082,305]}},"purple-300":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.84,0.155,305]}},"purple-400":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.75,0.24,305]}},"purple-500":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.66,0.29,305]}},"purple-600":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.575,0.295,305]}},"purple-700":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.49,0.265,305]}},"purple-800":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.41,0.22,305]}},"purple-900":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.37,0.175,305]}},"purple-950":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.18,0.125,305]}},"cyan-50":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.975,0.022,210]}},"cyan-100":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.955,0.04,210]}},"cyan-200":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.9,0.098,210]}},"cyan-300":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.84,0.155,210]}},"cyan-400":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.75,0.18,210]}},"cyan-500":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.66,0.17,210]}},"cyan-600":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.575,0.15,210]}},"cyan-700":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.49,0.128,210]}},"cyan-800":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.41,0.105,210]}},"cyan-900":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.37,0.082,210]}},"cyan-950":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.18,0.058,210]}},"blue-50":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.975,0.016,260]}},"blue-100":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.945,0.04,260]}},"blue-200":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.9,0.078,260]}},"blue-300":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.84,0.145,260]}},"blue-400":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.75,0.21,260]}},"blue-500":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.66,0.255,260]}},"blue-600":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.575,0.275,260]}},"blue-700":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.49,0.26,260]}},"blue-800":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.41,0.215,260]}},"blue-900":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.37,0.165,260]}},"blue-950":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.18,0.118,260]}},"teal-50":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.975,0.02,180]}},"teal-100":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.955,0.042,180]}},"teal-200":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.9,0.11,180]}},"teal-300":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.84,0.16,180]}},"teal-400":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.75,0.175,180]}},"teal-500":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.66,0.165,180]}},"teal-600":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.575,0.145,180]}},"teal-700":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.49,0.12,180]}},"teal-800":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.41,0.098,180]}},"teal-900":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.37,0.078,180]}},"teal-950":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.18,0.055,180]}},"green-50":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.975,0.02,150]}},"green-100":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.945,0.052,150]}},"green-200":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.9,0.1,150]}},"green-300":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.84,0.175,150]}},"green-400":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.75,0.235,150]}},"green-500":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.66,0.245,150]}},"green-600":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.575,0.22,150]}},"green-700":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.49,0.18,150]}},"green-800":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.41,0.14,150]}},"green-900":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.37,0.108,150]}},"green-950":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.18,0.075,150]}},"yellow-50":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.975,0.03,90]}},"yellow-100":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.945,0.08,90]}},"yellow-200":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.9,0.148,90]}},"yellow-300":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.84,0.2,90]}},"yellow-400":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.75,0.2,90]}},"yellow-500":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.66,0.18,90]}},"yellow-600":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.575,0.158,90]}},"yellow-700":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.49,0.135,90]}},"yellow-800":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.41,0.11,90]}},"yellow-900":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.37,0.085,90]}},"yellow-950":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.18,0.06,90]}},"orange-50":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.975,0.02,55]}},"orange-100":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.945,0.05,55]}},"orange-200":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.9,0.098,55]}},"orange-300":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.84,0.165,55]}},"orange-400":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.75,0.22,55]}},"orange-500":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.66,0.24,55]}},"orange-600":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.575,0.235,55]}},"orange-700":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.49,0.2,55]}},"orange-800":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.41,0.165,55]}},"orange-900":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.37,0.128,55]}},"orange-950":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.18,0.09,55]}},"color-fg-base":{"$type":"color","$value":"{gray-900}"},"color-fg-subtle":{"$type":"color","$value":"{gray-600}"},"color-fg-mute":{"$type":"color","$value":"{gray-700}"},"color-fg-inverse":{"$type":"color","$value":"{gray-50}"},"color-fg-info":{"$type":"color","$value":"{blue-800}"},"color-fg-success":{"$type":"color","$value":"{green-800}"},"color-fg-warning":{"$type":"color","$value":"{yellow-800}"},"color-fg-error":{"$type":"color","$value":"{red-800}"},"color-bg-base":{"$type":"color","$value":"{white}"},"color-bg-raised":{"$type":"color","$value":"{white}"},"color-bg-surface":{"$type":"color","$value":"{gray-50}"},"color-bg-subtle":{"$type":"color","$value":"{gray-100}"},"color-bg-mute":{"$type":"color","$value":"{gray-200}"},"color-bg-emphasize":{"$type":"color","$value":"{gray-300}"},"color-bg-inverse":{"$type":"color","$value":"{gray-900}"},"color-bg-info":{"$type":"color","$value":"{blue-100}"},"color-bg-success":{"$type":"color","$value":"{green-100}"},"color-bg-warning":{"$type":"color","$value":"{yellow-100}"},"color-bg-error":{"$type":"color","$value":"{red-100}"},"color-border-base":{"$type":"color","$value":"{gray-400}"},"color-border-subtle":{"$type":"color","$value":"{gray-100}"},"color-border-mute":{"$type":"color","$value":"{gray-200}"},"color-border-emphasize":{"$type":"color","$value":"{gray-500}"},"color-border-inverse":{"$type":"color","$value":"{gray-700}"},"color-border-info":{"$type":"color","$value":"{blue-500}"},"color-border-success":{"$type":"color","$value":"{green-500}"},"color-border-warning":{"$type":"color","$value":"{yellow-500}"},"color-border-error":{"$type":"color","$value":"{red-500}"},"color-primary-fg":{"$type":"color","$value":"{teal-800}"},"color-primary-bg":{"$type":"color","$value":"{teal-200}"},"color-primary-bg-subtle":{"$type":"color","$value":"{teal-50}"},"color-primary-bg-mute":{"$type":"color","$value":"{teal-100}"},"color-primary-bg-emphasize":{"$type":"color","$value":"{teal-300}"},"color-primary-border":{"$type":"color","$value":"{teal-500}"},"color-secondary-fg":{"$type":"color","$value":"{cyan-800}"},"color-secondary-bg":{"$type":"color","$value":"{cyan-200}"},"color-secondary-bg-subtle":{"$type":"color","$value":"{cyan-50}"},"color-secondary-bg-mute":{"$type":"color","$value":"{cyan-100}"},"color-secondary-bg-emphasize":{"$type":"color","$value":"{cyan-300}"},"color-secondary-border":{"$type":"color","$value":"{cyan-500}"},"color-back-drop":{"$type":"color","$value":{"colorSpace":"srgb","components":[0,0,0],"alpha":0.5}},"color-group-primary":{"$type":"color","$value":"{teal-800}"},"color-group-secondary":{"$type":"color","$value":"{cyan-800}"},"color-group-tertiary":{"$type":"color","$value":"{pink-800}"},"color-group-quaternary":{"$type":"color","$value":"{purple-800}"},"color-system-canvas-text":{"$value":"CanvasText"},"color-system-gray-text":{"$value":"GrayText"},"color-system-highlight":{"$value":"Highlight"},"color-system-highlight-text":{"$value":"HighlightText"},"spacing":{"$type":"dimension","$value":{"value":0.25,"unit":"rem"}},"spacing-em":{"$value":"0.25em"},"radius-xs":{"$type":"dimension","$value":{"value":0.125,"unit":"rem"}},"radius-sm":{"$type":"dimension","$value":{"value":0.375,"unit":"rem"}},"radius-md":{"$type":"dimension","$value":{"value":0.5,"unit":"rem"}},"radius-lg":{"$type":"dimension","$value":{"value":0.75,"unit":"rem"}},"radius-xl":{"$type":"dimension","$value":{"value":1,"unit":"rem"}},"radius-2xl":{"$type":"dimension","$value":{"value":1.25,"unit":"rem"}},"radius-full":{"$value":"calc(infinity * 1px)"},"radius-em":{"$value":"0.5em"},"font-family-sans":{"$type":"fontFamily","$value":["-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue","Noto Sans","Arial","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"]},"font-family-mono":{"$type":"fontFamily","$value":["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas","Liberation Mono","Courier New","monospace"]},"font-size-xs":{"$type":"dimension","$value":{"value":0.75,"unit":"rem"}},"font-size-sm":{"$type":"dimension","$value":{"value":0.875,"unit":"rem"}},"font-size-md":{"$type":"dimension","$value":{"value":1,"unit":"rem"}},"font-size-lg":{"$type":"dimension","$value":{"value":1.125,"unit":"rem"}},"font-size-xl":{"$type":"dimension","$value":{"value":1.25,"unit":"rem"}},"font-size-2xl":{"$type":"dimension","$value":{"value":1.5,"unit":"rem"}},"font-size-3xl":{"$type":"dimension","$value":{"value":1.875,"unit":"rem"}},"font-size-emphasize":{"$type":"dimension","$value":{"value":3,"unit":"rem"}},"font-size-highlight":{"$type":"dimension","$value":{"value":6,"unit":"rem"}},"font-size-code":{"$value":"0.875em"},"font-size-kbd":{"$value":"0.8125em"},"font-size-callout":{"$value":"0.9em"},"font-weight-medium":{"$type":"fontWeight","$value":450},"font-weight-bold":{"$type":"fontWeight","$value":700},"line-height-xs":{"$value":"calc(1 / 0.75)"},"line-height-sm":{"$value":"calc(1.25 / 0.875)"},"line-height-md":{"$type":"number","$value":1.5},"line-height-lg":{"$value":"calc(1.75 / 1.125)"},"line-height-xl":{"$value":"calc(1.75 / 1.25)"},"line-height-2xl":{"$value":"calc(2 / 1.5)"},"line-height-3xl":{"$value":"calc(2.25 / 1.875)"},"line-height-emphasize":{"$type":"number","$value":1},"line-height-highlight":{"$type":"number","$value":1},"line-height-none":{"$type":"number","$value":1},"line-height-tight":{"$type":"number","$value":1.25},"line-height-snug":{"$type":"number","$value":1.375},"line-height-normal":{"$type":"number","$value":1.5},"line-height-relaxed":{"$type":"number","$value":1.625},"line-height-loose":{"$type":"number","$value":2},"line-height-callout":{"$type":"number","$value":1.4},"letter-spacing-none":{"$type":"dimension","$value":{"value":0,"unit":"px"}},"letter-spacing-normal":{"$value":"0.025em"},"shadow-2xs":{"$type":"shadow","$value":{"color":{"colorSpace":"srgb","components":[0,0,0],"alpha":0.05},"offsetX":{"value":0,"unit":"px"},"offsetY":{"value":1,"unit":"px"},"blur":{"value":0,"unit":"px"},"spread":{"value":0,"unit":"px"}}},"shadow-xs":{"$type":"shadow","$value":{"color":{"colorSpace":"srgb","components":[0,0,0],"alpha":0.05},"offsetX":{"value":0,"unit":"px"},"offsetY":{"value":1,"unit":"px"},"blur":{"value":2,"unit":"px"},"spread":{"value":0,"unit":"px"}}},"shadow-sm":{"$type":"shadow","$value":[{"color":{"colorSpace":"srgb","components":[0,0,0],"alpha":0.1},"offsetX":{"value":0,"unit":"px"},"offsetY":{"value":1,"unit":"px"},"blur":{"value":3,"unit":"px"},"spread":{"value":0,"unit":"px"}},{"color":{"colorSpace":"srgb","components":[0,0,0],"alpha":0.1},"offsetX":{"value":0,"unit":"px"},"offsetY":{"value":1,"unit":"px"},"blur":{"value":2,"unit":"px"},"spread":{"value":-1,"unit":"px"}}]},"shadow-md":{"$type":"shadow","$value":[{"color":{"colorSpace":"srgb","components":[0,0,0],"alpha":0.1},"offsetX":{"value":0,"unit":"px"},"offsetY":{"value":4,"unit":"px"},"blur":{"value":6,"unit":"px"},"spread":{"value":-1,"unit":"px"}},{"color":{"colorSpace":"srgb","components":[0,0,0],"alpha":0.1},"offsetX":{"value":0,"unit":"px"},"offsetY":{"value":2,"unit":"px"},"blur":{"value":4,"unit":"px"},"spread":{"value":-2,"unit":"px"}}]},"shadow-lg":{"$type":"shadow","$value":[{"color":{"colorSpace":"srgb","components":[0,0,0],"alpha":0.1},"offsetX":{"value":0,"unit":"px"},"offsetY":{"value":10,"unit":"px"},"blur":{"value":15,"unit":"px"},"spread":{"value":-3,"unit":"px"}},{"color":{"colorSpace":"srgb","components":[0,0,0],"alpha":0.1},"offsetX":{"value":0,"unit":"px"},"offsetY":{"value":4,"unit":"px"},"blur":{"value":6,"unit":"px"},"spread":{"value":-4,"unit":"px"}}]},"shadow-xl":{"$type":"shadow","$value":[{"color":{"colorSpace":"srgb","components":[0,0,0],"alpha":0.1},"offsetX":{"value":0,"unit":"px"},"offsetY":{"value":20,"unit":"px"},"blur":{"value":25,"unit":"px"},"spread":{"value":-5,"unit":"px"}},{"color":{"colorSpace":"srgb","components":[0,0,0],"alpha":0.1},"offsetX":{"value":0,"unit":"px"},"offsetY":{"value":8,"unit":"px"},"blur":{"value":10,"unit":"px"},"spread":{"value":-6,"unit":"px"}}]},"shadow-2xl":{"$type":"shadow","$value":{"color":{"colorSpace":"srgb","components":[0,0,0],"alpha":0.25},"offsetX":{"value":0,"unit":"px"},"offsetY":{"value":25,"unit":"px"},"blur":{"value":50,"unit":"px"},"spread":{"value":-12,"unit":"px"}}},"shadow-inset-2xs":{"$type":"shadow","$value":{"color":{"colorSpace":"srgb","components":[0,0,0],"alpha":0.05},"offsetX":{"value":0,"unit":"px"},"offsetY":{"value":1,"unit":"px"},"blur":{"value":0,"unit":"px"},"spread":{"value":0,"unit":"px"},"inset":true}},"shadow-inset-xs":{"$type":"shadow","$value":{"color":{"colorSpace":"srgb","components":[0,0,0],"alpha":0.05},"offsetX":{"value":0,"unit":"px"},"offsetY":{"value":1,"unit":"px"},"blur":{"value":1,"unit":"px"},"spread":{"value":0,"unit":"px"},"inset":true}},"shadow-inset-sm":{"$type":"shadow","$value":{"color":{"colorSpace":"srgb","components":[0,0,0],"alpha":0.05},"offsetX":{"value":0,"unit":"px"},"offsetY":{"value":2,"unit":"px"},"blur":{"value":4,"unit":"px"},"spread":{"value":0,"unit":"px"},"inset":true}},"shadow-ring-info":{"$type":"shadow","$value":{"color":"{color-border-info}","offsetX":{"value":0,"unit":"px"},"offsetY":{"value":0,"unit":"px"},"blur":{"value":0,"unit":"px"},"spread":{"value":2,"unit":"px"}}},"shadow-ring-error":{"$type":"shadow","$value":{"color":"{color-border-error}","offsetX":{"value":0,"unit":"px"},"offsetY":{"value":0,"unit":"px"},"blur":{"value":0,"unit":"px"},"spread":{"value":2,"unit":"px"}}},"shadow-ring-inset-info":{"$type":"shadow","$value":{"color":"{color-border-info}","offsetX":{"value":0,"unit":"px"},"offsetY":{"value":0,"unit":"px"},"blur":{"value":0,"unit":"px"},"spread":{"value":2,"unit":"px"},"inset":true}},"shadow-ring-offset-info":{"$type":"shadow","$value":[{"color":"{white}","offsetX":{"value":0,"unit":"px"},"offsetY":{"value":0,"unit":"px"},"blur":{"value":0,"unit":"px"},"spread":{"value":2,"unit":"px"}},{"color":"{color-border-info}","offsetX":{"value":0,"unit":"px"},"offsetY":{"value":0,"unit":"px"},"blur":{"value":0,"unit":"px"},"spread":{"value":4,"unit":"px"}}]},"z-index-raised":{"$type":"number","$value":10},"z-index-overlay":{"$type":"number","$value":1000},"z-index-modal":{"$type":"number","$value":1300},"z-index-toast":{"$type":"number","$value":1500},"duration-fast":{"$type":"duration","$value":{"value":150,"unit":"ms"}},"duration-moderate":{"$type":"duration","$value":{"value":200,"unit":"ms"}},"duration-slow":{"$type":"duration","$value":{"value":300,"unit":"ms"}},"duration-spin":{"$type":"duration","$value":{"value":1,"unit":"s"}},"duration-pulse":{"$type":"duration","$value":{"value":2,"unit":"s"}},"easing-out":{"$type":"cubicBezier","$value":[0,0,0.2,1]},"easing-in-out":{"$type":"cubicBezier","$value":[0.4,0,0.2,1]},"easing-pulse":{"$type":"cubicBezier","$value":[0.4,0,0.6,1]},"breakpoint-sm":{"$type":"dimension","$value":{"value":40,"unit":"rem"}},"breakpoint-md":{"$type":"dimension","$value":{"value":48,"unit":"rem"}},"breakpoint-lg":{"$type":"dimension","$value":{"value":64,"unit":"rem"}},"breakpoint-xl":{"$type":"dimension","$value":{"value":80,"unit":"rem"}},"breakpoint-2xl":{"$type":"dimension","$value":{"value":96,"unit":"rem"}},"writing":{"$value":"horizontal"}}]},{"type":"modifier","name":".dark","contexts":{"off":[],"on":[{"color-fg-base":{"$type":"color","$value":"{gray-50}"},"color-fg-subtle":{"$type":"color","$value":"{gray-400}"},"color-fg-mute":{"$type":"color","$value":"{gray-300}"},"color-fg-inverse":{"$type":"color","$value":"{gray-900}"},"color-fg-info":{"$type":"color","$value":"{blue-200}"},"color-fg-success":{"$type":"color","$value":"{green-200}"},"color-fg-warning":{"$type":"color","$value":"{yellow-200}"},"color-fg-error":{"$type":"color","$value":"{red-200}"},"color-bg-base":{"$type":"color","$value":"{gray-800}"},"color-bg-raised":{"$type":"color","$value":"{gray-800}"},"color-bg-surface":{"$type":"color","$value":"{gray-950}"},"color-bg-subtle":{"$type":"color","$value":"{gray-900}"},"color-bg-mute":{"$type":"color","$value":"{gray-700}"},"color-bg-emphasize":{"$type":"color","$value":"{gray-600}"},"color-bg-inverse":{"$type":"color","$value":"{white}"},"color-bg-info":{"$type":"color","$value":"{blue-900}"},"color-bg-success":{"$type":"color","$value":"{green-900}"},"color-bg-warning":{"$type":"color","$value":"{yellow-900}"},"color-bg-error":{"$type":"color","$value":"{red-900}"},"color-border-base":{"$type":"color","$value":"{gray-600}"},"color-border-subtle":{"$type":"color","$value":"{gray-700}"},"color-border-mute":{"$type":"color","$value":"{gray-600}"},"color-border-emphasize":{"$type":"color","$value":"{gray-500}"},"color-border-inverse":{"$type":"color","$value":"{gray-300}"},"color-border-info":{"$type":"color","$value":"{blue-400}"},"color-border-success":{"$type":"color","$value":"{green-400}"},"color-border-warning":{"$type":"color","$value":"{yellow-400}"},"color-border-error":{"$type":"color","$value":"{red-400}"},"color-primary-fg":{"$type":"color","$value":"{teal-300}"},"color-primary-bg":{"$type":"color","$value":"{teal-900}"},"color-primary-bg-subtle":{"$type":"color","$value":"{teal-950}"},"color-primary-bg-mute":{"$type":"color","$value":"{teal-900}"},"color-primary-bg-emphasize":{"$type":"color","$value":"{teal-800}"},"color-primary-border":{"$type":"color","$value":"{teal-500}"},"color-secondary-fg":{"$type":"color","$value":"{cyan-300}"},"color-secondary-bg":{"$type":"color","$value":"{cyan-900}"},"color-secondary-bg-subtle":{"$type":"color","$value":"{cyan-950}"},"color-secondary-bg-mute":{"$type":"color","$value":"{cyan-900}"},"color-secondary-bg-emphasize":{"$type":"color","$value":"{cyan-800}"},"color-secondary-border":{"$type":"color","$value":"{cyan-500}"},"color-group-primary":{"$type":"color","$value":"{teal-200}"},"color-group-secondary":{"$type":"color","$value":"{cyan-200}"},"color-group-tertiary":{"$type":"color","$value":"{pink-200}"},"color-group-quaternary":{"$type":"color","$value":"{purple-200}"},"shadow-ring-info":{"$type":"shadow","$value":{"color":"{color-border-info}","offsetX":{"value":0,"unit":"px"},"offsetY":{"value":0,"unit":"px"},"blur":{"value":0,"unit":"px"},"spread":{"value":2,"unit":"px"}}},"shadow-ring-error":{"$type":"shadow","$value":{"color":"{color-border-error}","offsetX":{"value":0,"unit":"px"},"offsetY":{"value":0,"unit":"px"},"blur":{"value":0,"unit":"px"},"spread":{"value":2,"unit":"px"}}},"shadow-ring-inset-info":{"$type":"shadow","$value":{"color":"{color-border-info}","offsetX":{"value":0,"unit":"px"},"offsetY":{"value":0,"unit":"px"},"blur":{"value":0,"unit":"px"},"spread":{"value":2,"unit":"px"},"inset":true}},"shadow-ring-offset-info":{"$type":"shadow","$value":[{"color":"{white}","offsetX":{"value":0,"unit":"px"},"offsetY":{"value":0,"unit":"px"},"blur":{"value":0,"unit":"px"},"spread":{"value":2,"unit":"px"}},{"color":"{color-border-info}","offsetX":{"value":0,"unit":"px"},"offsetY":{"value":0,"unit":"px"},"blur":{"value":0,"unit":"px"},"spread":{"value":4,"unit":"px"}}]}}]},"default":"off"},{"type":"modifier","name":"@media (prefers-contrast: more) :root:where(:not(.dark))","contexts":{"off":[],"on":[{"color-fg-base":{"$type":"color","$value":"{gray-950}"},"color-fg-subtle":{"$type":"color","$value":"{gray-800}"},"color-fg-mute":{"$type":"color","$value":"{gray-900}"},"color-fg-info":{"$type":"color","$value":"{blue-900}"},"color-fg-success":{"$type":"color","$value":"{green-900}"},"color-fg-warning":{"$type":"color","$value":"{yellow-900}"},"color-fg-error":{"$type":"color","$value":"{red-900}"},"color-border-base":{"$type":"color","$value":"{gray-600}"},"color-border-subtle":{"$type":"color","$value":"{gray-500}"},"color-border-mute":{"$type":"color","$value":"{gray-500}"},"color-border-emphasize":{"$type":"color","$value":"{gray-800}"},"color-border-info":{"$type":"color","$value":"{blue-700}"},"color-border-success":{"$type":"color","$value":"{green-700}"},"color-border-warning":{"$type":"color","$value":"{yellow-700}"},"color-border-error":{"$type":"color","$value":"{red-700}"},"color-primary-fg":{"$type":"color","$value":"{teal-900}"},"color-primary-border":{"$type":"color","$value":"{teal-700}"},"color-secondary-fg":{"$type":"color","$value":"{cyan-900}"},"color-secondary-border":{"$type":"color","$value":"{cyan-700}"}}]},"default":"off"},{"type":"modifier","name":"@media (prefers-contrast: more) .dark","contexts":{"off":[],"on":[{"color-fg-base":{"$type":"color","$value":"{white}"},"color-fg-subtle":{"$type":"color","$value":"{gray-200}"},"color-fg-mute":{"$type":"color","$value":"{gray-100}"},"color-fg-info":{"$type":"color","$value":"{blue-100}"},"color-fg-success":{"$type":"color","$value":"{green-100}"},"color-fg-warning":{"$type":"color","$value":"{yellow-100}"},"color-fg-error":{"$type":"color","$value":"{red-100}"},"color-bg-emphasize":{"$type":"color","$value":"{gray-700}"},"color-border-base":{"$type":"color","$value":"{gray-400}"},"color-border-subtle":{"$type":"color","$value":"{gray-500}"},"color-border-mute":{"$type":"color","$value":"{gray-400}"},"color-border-emphasize":{"$type":"color","$value":"{gray-200}"},"color-border-info":{"$type":"color","$value":"{blue-300}"},"color-border-success":{"$type":"color","$value":"{green-300}"},"color-border-warning":{"$type":"color","$value":"{yellow-300}"},"color-border-error":{"$type":"color","$value":"{red-300}"},"color-primary-fg":{"$type":"color","$value":"{teal-100}"},"color-primary-border":{"$type":"color","$value":"{teal-300}"},"color-secondary-fg":{"$type":"color","$value":"{cyan-100}"},"color-secondary-border":{"$type":"color","$value":"{cyan-300}"}}]},"default":"off"},{"type":"modifier","name":"@media print .dark:where(:not(:has(.print-as-shown)))","contexts":{"off":[],"on":[{"color-fg-base":{"$type":"color","$value":"{gray-900}"},"color-fg-subtle":{"$type":"color","$value":"{gray-600}"},"color-fg-mute":{"$type":"color","$value":"{gray-700}"},"color-fg-inverse":{"$type":"color","$value":"{gray-50}"},"color-fg-info":{"$type":"color","$value":"{blue-800}"},"color-fg-success":{"$type":"color","$value":"{green-800}"},"color-fg-warning":{"$type":"color","$value":"{yellow-800}"},"color-fg-error":{"$type":"color","$value":"{red-800}"},"color-bg-base":{"$type":"color","$value":"{white}"},"color-bg-raised":{"$type":"color","$value":"{white}"},"color-bg-surface":{"$type":"color","$value":"{gray-50}"},"color-bg-subtle":{"$type":"color","$value":"{gray-100}"},"color-bg-mute":{"$type":"color","$value":"{gray-200}"},"color-bg-emphasize":{"$type":"color","$value":"{gray-300}"},"color-bg-inverse":{"$type":"color","$value":"{gray-900}"},"color-bg-info":{"$type":"color","$value":"{blue-100}"},"color-bg-success":{"$type":"color","$value":"{green-100}"},"color-bg-warning":{"$type":"color","$value":"{yellow-100}"},"color-bg-error":{"$type":"color","$value":"{red-100}"},"color-border-base":{"$type":"color","$value":"{gray-400}"},"color-border-subtle":{"$type":"color","$value":"{gray-100}"},"color-border-mute":{"$type":"color","$value":"{gray-200}"},"color-border-emphasize":{"$type":"color","$value":"{gray-500}"},"color-border-inverse":{"$type":"color","$value":"{gray-700}"},"color-border-info":{"$type":"color","$value":"{blue-500}"},"color-border-success":{"$type":"color","$value":"{green-500}"},"color-border-warning":{"$type":"color","$value":"{yellow-500}"},"color-border-error":{"$type":"color","$value":"{red-500}"},"color-primary-fg":{"$type":"color","$value":"{teal-800}"},"color-primary-bg":{"$type":"color","$value":"{teal-200}"},"color-primary-bg-subtle":{"$type":"color","$value":"{teal-50}"},"color-primary-bg-mute":{"$type":"color","$value":"{teal-100}"},"color-primary-bg-emphasize":{"$type":"color","$value":"{teal-300}"},"color-primary-border":{"$type":"color","$value":"{teal-500}"},"color-secondary-fg":{"$type":"color","$value":"{cyan-800}"},"color-secondary-bg":{"$type":"color","$value":"{cyan-200}"},"color-secondary-bg-subtle":{"$type":"color","$value":"{cyan-50}"},"color-secondary-bg-mute":{"$type":"color","$value":"{cyan-100}"},"color-secondary-bg-emphasize":{"$type":"color","$value":"{cyan-300}"},"color-secondary-border":{"$type":"color","$value":"{cyan-500}"},"color-group-primary":{"$type":"color","$value":"{teal-800}"},"color-group-secondary":{"$type":"color","$value":"{cyan-800}"},"color-group-tertiary":{"$type":"color","$value":"{pink-800}"},"color-group-quaternary":{"$type":"color","$value":"{purple-800}"}}]},"default":"off"},{"type":"modifier","name":"@media print and (prefers-contrast: more) .dark:where(:not(:has(.print-as-shown)))","contexts":{"off":[],"on":[{"color-fg-base":{"$type":"color","$value":"{gray-950}"},"color-fg-subtle":{"$type":"color","$value":"{gray-800}"},"color-fg-mute":{"$type":"color","$value":"{gray-900}"},"color-fg-info":{"$type":"color","$value":"{blue-900}"},"color-fg-success":{"$type":"color","$value":"{green-900}"},"color-fg-warning":{"$type":"color","$value":"{yellow-900}"},"color-fg-error":{"$type":"color","$value":"{red-900}"},"color-border-base":{"$type":"color","$value":"{gray-600}"},"color-border-subtle":{"$type":"color","$value":"{gray-500}"},"color-border-mute":{"$type":"color","$value":"{gray-500}"},"color-border-emphasize":{"$type":"color","$value":"{gray-800}"},"color-border-info":{"$type":"color","$value":"{blue-700}"},"color-border-success":{"$type":"color","$value":"{green-700}"},"color-border-warning":{"$type":"color","$value":"{yellow-700}"},"color-border-error":{"$type":"color","$value":"{red-700}"},"color-primary-fg":{"$type":"color","$value":"{teal-900}"},"color-primary-border":{"$type":"color","$value":"{teal-700}"},"color-secondary-fg":{"$type":"color","$value":"{cyan-900}"},"color-secondary-border":{"$type":"color","$value":"{cyan-700}"}}]},"default":"off"},{"type":"modifier","name":".writing-h","contexts":{"off":[],"on":[{"writing":{"$value":"horizontal"}}]},"default":"off"},{"type":"modifier","name":".writing-v","contexts":{"off":[],"on":[{"writing":{"$value":"vertical"}}]},"default":"off"}]};
|
|
1
|
+
export const tokens = {"version":"2025.10","resolutionOrder":[{"type":"set","name":":root","sources":[{"white":{"$type":"color","$value":{"colorSpace":"oklch","components":[1,0,0]}},"gray-50":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.975,0.001,235]}},"gray-100":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.955,0.0015,235]}},"gray-200":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.925,0.003,235]}},"gray-300":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.84,0.004,235]}},"gray-400":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.75,0.005,235]}},"gray-500":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.66,0.006,235]}},"gray-600":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.52,0.006,235]}},"gray-700":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.42,0.003,235]}},"gray-800":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.3,0.002,235]}},"gray-900":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.25,0.0015,235]}},"gray-950":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.18,0.001,235]}},"red-50":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.975,0.016,25]}},"red-100":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.945,0.042,25]}},"red-200":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.9,0.084,25]}},"red-300":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.84,0.15,25]}},"red-400":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.75,0.225,25]}},"red-500":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.66,0.27,25]}},"red-600":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.575,0.255,25]}},"red-700":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.49,0.22,25]}},"red-800":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.41,0.18,25]}},"red-900":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.37,0.14,25]}},"red-950":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.18,0.1,25]}},"pink-50":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.975,0.016,350]}},"pink-100":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.945,0.038,350]}},"pink-200":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.9,0.078,350]}},"pink-300":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.84,0.145,350]}},"pink-400":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.75,0.225,350]}},"pink-500":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.66,0.27,350]}},"pink-600":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.575,0.26,350]}},"pink-700":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.49,0.23,350]}},"pink-800":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.41,0.19,350]}},"pink-900":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.37,0.15,350]}},"pink-950":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.18,0.108,350]}},"purple-50":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.975,0.018,305]}},"purple-100":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.945,0.042,305]}},"purple-200":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.9,0.082,305]}},"purple-300":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.84,0.155,305]}},"purple-400":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.75,0.24,305]}},"purple-500":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.66,0.29,305]}},"purple-600":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.575,0.295,305]}},"purple-700":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.49,0.265,305]}},"purple-800":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.41,0.22,305]}},"purple-900":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.37,0.175,305]}},"purple-950":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.18,0.125,305]}},"cyan-50":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.975,0.022,210]}},"cyan-100":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.955,0.04,210]}},"cyan-200":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.9,0.098,210]}},"cyan-300":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.84,0.155,210]}},"cyan-400":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.75,0.18,210]}},"cyan-500":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.66,0.17,210]}},"cyan-600":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.575,0.15,210]}},"cyan-700":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.49,0.128,210]}},"cyan-800":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.41,0.105,210]}},"cyan-900":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.37,0.082,210]}},"cyan-950":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.18,0.058,210]}},"blue-50":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.975,0.016,260]}},"blue-100":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.945,0.04,260]}},"blue-200":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.9,0.078,260]}},"blue-300":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.84,0.145,260]}},"blue-400":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.75,0.21,260]}},"blue-500":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.66,0.255,260]}},"blue-600":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.575,0.275,260]}},"blue-700":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.49,0.26,260]}},"blue-800":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.41,0.215,260]}},"blue-900":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.37,0.165,260]}},"blue-950":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.18,0.118,260]}},"teal-50":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.975,0.02,180]}},"teal-100":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.955,0.042,180]}},"teal-200":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.9,0.11,180]}},"teal-300":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.84,0.16,180]}},"teal-400":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.75,0.175,180]}},"teal-500":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.66,0.165,180]}},"teal-600":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.575,0.145,180]}},"teal-700":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.49,0.12,180]}},"teal-800":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.41,0.098,180]}},"teal-900":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.37,0.078,180]}},"teal-950":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.18,0.055,180]}},"green-50":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.975,0.02,150]}},"green-100":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.945,0.052,150]}},"green-200":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.9,0.1,150]}},"green-300":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.84,0.175,150]}},"green-400":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.75,0.235,150]}},"green-500":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.66,0.245,150]}},"green-600":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.575,0.22,150]}},"green-700":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.49,0.18,150]}},"green-800":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.41,0.14,150]}},"green-900":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.37,0.108,150]}},"green-950":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.18,0.075,150]}},"yellow-50":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.975,0.03,90]}},"yellow-100":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.945,0.08,90]}},"yellow-200":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.9,0.148,90]}},"yellow-300":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.84,0.2,90]}},"yellow-400":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.75,0.2,90]}},"yellow-500":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.66,0.18,90]}},"yellow-600":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.575,0.158,90]}},"yellow-700":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.49,0.135,90]}},"yellow-800":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.41,0.11,90]}},"yellow-900":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.37,0.085,90]}},"yellow-950":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.18,0.06,90]}},"orange-50":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.975,0.02,55]}},"orange-100":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.945,0.05,55]}},"orange-200":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.9,0.098,55]}},"orange-300":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.84,0.165,55]}},"orange-400":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.75,0.22,55]}},"orange-500":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.66,0.24,55]}},"orange-600":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.575,0.235,55]}},"orange-700":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.49,0.2,55]}},"orange-800":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.41,0.165,55]}},"orange-900":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.37,0.128,55]}},"orange-950":{"$type":"color","$value":{"colorSpace":"oklch","components":[0.18,0.09,55]}},"color-fg-base":{"$type":"color","$value":"{gray-900}"},"color-fg-subtle":{"$type":"color","$value":"{gray-600}"},"color-fg-mute":{"$type":"color","$value":"{gray-700}"},"color-fg-inverse":{"$type":"color","$value":"{gray-50}"},"color-fg-info":{"$type":"color","$value":"{blue-800}"},"color-fg-success":{"$type":"color","$value":"{green-800}"},"color-fg-warning":{"$type":"color","$value":"{yellow-800}"},"color-fg-error":{"$type":"color","$value":"{red-800}"},"color-bg-base":{"$type":"color","$value":"{white}"},"color-bg-raised":{"$type":"color","$value":"{white}"},"color-bg-surface":{"$type":"color","$value":"{gray-50}"},"color-bg-subtle":{"$type":"color","$value":"{gray-100}"},"color-bg-mute":{"$type":"color","$value":"{gray-200}"},"color-bg-emphasize":{"$type":"color","$value":"{gray-300}"},"color-bg-inverse":{"$type":"color","$value":"{gray-900}"},"color-bg-info":{"$type":"color","$value":"{blue-100}"},"color-bg-success":{"$type":"color","$value":"{green-100}"},"color-bg-warning":{"$type":"color","$value":"{yellow-100}"},"color-bg-error":{"$type":"color","$value":"{red-100}"},"color-border-base":{"$type":"color","$value":"{gray-400}"},"color-border-subtle":{"$type":"color","$value":"{gray-100}"},"color-border-mute":{"$type":"color","$value":"{gray-200}"},"color-border-emphasize":{"$type":"color","$value":"{gray-500}"},"color-border-inverse":{"$type":"color","$value":"{gray-700}"},"color-border-info":{"$type":"color","$value":"{blue-500}"},"color-border-success":{"$type":"color","$value":"{green-500}"},"color-border-warning":{"$type":"color","$value":"{yellow-500}"},"color-border-error":{"$type":"color","$value":"{red-500}"},"color-primary-fg":{"$type":"color","$value":"{teal-800}"},"color-primary-bg":{"$type":"color","$value":"{teal-200}"},"color-primary-bg-subtle":{"$type":"color","$value":"{teal-50}"},"color-primary-bg-mute":{"$type":"color","$value":"{teal-100}"},"color-primary-bg-emphasize":{"$type":"color","$value":"{teal-300}"},"color-primary-border":{"$type":"color","$value":"{teal-500}"},"color-secondary-fg":{"$type":"color","$value":"{cyan-800}"},"color-secondary-bg":{"$type":"color","$value":"{cyan-200}"},"color-secondary-bg-subtle":{"$type":"color","$value":"{cyan-50}"},"color-secondary-bg-mute":{"$type":"color","$value":"{cyan-100}"},"color-secondary-bg-emphasize":{"$type":"color","$value":"{cyan-300}"},"color-secondary-border":{"$type":"color","$value":"{cyan-500}"},"color-back-drop":{"$type":"color","$value":{"colorSpace":"srgb","components":[0,0,0],"alpha":0.5}},"color-group-primary":{"$type":"color","$value":"{teal-800}"},"color-group-secondary":{"$type":"color","$value":"{cyan-800}"},"color-group-tertiary":{"$type":"color","$value":"{pink-800}"},"color-group-quaternary":{"$type":"color","$value":"{purple-800}"},"color-system-canvas-text":{"$value":"CanvasText"},"color-system-gray-text":{"$value":"GrayText"},"color-system-highlight":{"$value":"Highlight"},"color-system-highlight-text":{"$value":"HighlightText"},"spacing":{"$type":"dimension","$value":{"value":0.25,"unit":"rem"}},"spacing-em":{"$value":"0.25em"},"radius-xs":{"$type":"dimension","$value":{"value":0.125,"unit":"rem"}},"radius-sm":{"$type":"dimension","$value":{"value":0.375,"unit":"rem"}},"radius-md":{"$type":"dimension","$value":{"value":0.5,"unit":"rem"}},"radius-lg":{"$type":"dimension","$value":{"value":0.75,"unit":"rem"}},"radius-xl":{"$type":"dimension","$value":{"value":1,"unit":"rem"}},"radius-2xl":{"$type":"dimension","$value":{"value":1.25,"unit":"rem"}},"radius-full":{"$value":"calc(infinity * 1px)"},"radius-em":{"$value":"0.5em"},"font-family-sans":{"$type":"fontFamily","$value":["-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue","Noto Sans","Arial","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"]},"font-family-mono":{"$type":"fontFamily","$value":["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas","Liberation Mono","Courier New","monospace"]},"font-size-xs":{"$type":"dimension","$value":{"value":0.75,"unit":"rem"}},"font-size-sm":{"$type":"dimension","$value":{"value":0.875,"unit":"rem"}},"font-size-md":{"$type":"dimension","$value":{"value":1,"unit":"rem"}},"font-size-lg":{"$type":"dimension","$value":{"value":1.125,"unit":"rem"}},"font-size-xl":{"$type":"dimension","$value":{"value":1.25,"unit":"rem"}},"font-size-2xl":{"$type":"dimension","$value":{"value":1.5,"unit":"rem"}},"font-size-3xl":{"$type":"dimension","$value":{"value":1.875,"unit":"rem"}},"font-size-emphasize":{"$type":"dimension","$value":{"value":3,"unit":"rem"}},"font-size-highlight":{"$type":"dimension","$value":{"value":6,"unit":"rem"}},"font-size-code":{"$value":"0.875em"},"font-size-kbd":{"$value":"0.8125em"},"font-size-callout":{"$value":"0.9em"},"font-weight-medium":{"$type":"fontWeight","$value":450},"font-weight-bold":{"$type":"fontWeight","$value":700},"line-height-xs":{"$value":"calc(1 / 0.75)"},"line-height-sm":{"$value":"calc(1.25 / 0.875)"},"line-height-md":{"$type":"number","$value":1.5},"line-height-lg":{"$value":"calc(1.75 / 1.125)"},"line-height-xl":{"$value":"calc(1.75 / 1.25)"},"line-height-2xl":{"$value":"calc(2 / 1.5)"},"line-height-3xl":{"$value":"calc(2.25 / 1.875)"},"line-height-emphasize":{"$type":"number","$value":1},"line-height-highlight":{"$type":"number","$value":1},"line-height-none":{"$type":"number","$value":1},"line-height-tight":{"$type":"number","$value":1.25},"line-height-snug":{"$type":"number","$value":1.375},"line-height-normal":{"$type":"number","$value":1.5},"line-height-relaxed":{"$type":"number","$value":1.625},"line-height-loose":{"$type":"number","$value":2},"line-height-callout":{"$type":"number","$value":1.4},"letter-spacing-none":{"$type":"dimension","$value":{"value":0,"unit":"px"}},"letter-spacing-normal":{"$value":"0.025em"},"shadow-2xs":{"$type":"shadow","$value":{"color":{"colorSpace":"srgb","components":[0,0,0],"alpha":0.05},"offsetX":{"value":0,"unit":"px"},"offsetY":{"value":1,"unit":"px"},"blur":{"value":0,"unit":"px"},"spread":{"value":0,"unit":"px"}}},"shadow-xs":{"$type":"shadow","$value":{"color":{"colorSpace":"srgb","components":[0,0,0],"alpha":0.05},"offsetX":{"value":0,"unit":"px"},"offsetY":{"value":1,"unit":"px"},"blur":{"value":2,"unit":"px"},"spread":{"value":0,"unit":"px"}}},"shadow-sm":{"$type":"shadow","$value":[{"color":{"colorSpace":"srgb","components":[0,0,0],"alpha":0.1},"offsetX":{"value":0,"unit":"px"},"offsetY":{"value":1,"unit":"px"},"blur":{"value":3,"unit":"px"},"spread":{"value":0,"unit":"px"}},{"color":{"colorSpace":"srgb","components":[0,0,0],"alpha":0.1},"offsetX":{"value":0,"unit":"px"},"offsetY":{"value":1,"unit":"px"},"blur":{"value":2,"unit":"px"},"spread":{"value":-1,"unit":"px"}}]},"shadow-md":{"$type":"shadow","$value":[{"color":{"colorSpace":"srgb","components":[0,0,0],"alpha":0.1},"offsetX":{"value":0,"unit":"px"},"offsetY":{"value":4,"unit":"px"},"blur":{"value":6,"unit":"px"},"spread":{"value":-1,"unit":"px"}},{"color":{"colorSpace":"srgb","components":[0,0,0],"alpha":0.1},"offsetX":{"value":0,"unit":"px"},"offsetY":{"value":2,"unit":"px"},"blur":{"value":4,"unit":"px"},"spread":{"value":-2,"unit":"px"}}]},"shadow-lg":{"$type":"shadow","$value":[{"color":{"colorSpace":"srgb","components":[0,0,0],"alpha":0.1},"offsetX":{"value":0,"unit":"px"},"offsetY":{"value":10,"unit":"px"},"blur":{"value":15,"unit":"px"},"spread":{"value":-3,"unit":"px"}},{"color":{"colorSpace":"srgb","components":[0,0,0],"alpha":0.1},"offsetX":{"value":0,"unit":"px"},"offsetY":{"value":4,"unit":"px"},"blur":{"value":6,"unit":"px"},"spread":{"value":-4,"unit":"px"}}]},"shadow-xl":{"$type":"shadow","$value":[{"color":{"colorSpace":"srgb","components":[0,0,0],"alpha":0.1},"offsetX":{"value":0,"unit":"px"},"offsetY":{"value":20,"unit":"px"},"blur":{"value":25,"unit":"px"},"spread":{"value":-5,"unit":"px"}},{"color":{"colorSpace":"srgb","components":[0,0,0],"alpha":0.1},"offsetX":{"value":0,"unit":"px"},"offsetY":{"value":8,"unit":"px"},"blur":{"value":10,"unit":"px"},"spread":{"value":-6,"unit":"px"}}]},"shadow-2xl":{"$type":"shadow","$value":{"color":{"colorSpace":"srgb","components":[0,0,0],"alpha":0.25},"offsetX":{"value":0,"unit":"px"},"offsetY":{"value":25,"unit":"px"},"blur":{"value":50,"unit":"px"},"spread":{"value":-12,"unit":"px"}}},"shadow-inset-2xs":{"$type":"shadow","$value":{"color":{"colorSpace":"srgb","components":[0,0,0],"alpha":0.05},"offsetX":{"value":0,"unit":"px"},"offsetY":{"value":1,"unit":"px"},"blur":{"value":0,"unit":"px"},"spread":{"value":0,"unit":"px"},"inset":true}},"shadow-inset-xs":{"$type":"shadow","$value":{"color":{"colorSpace":"srgb","components":[0,0,0],"alpha":0.05},"offsetX":{"value":0,"unit":"px"},"offsetY":{"value":1,"unit":"px"},"blur":{"value":1,"unit":"px"},"spread":{"value":0,"unit":"px"},"inset":true}},"shadow-inset-sm":{"$type":"shadow","$value":{"color":{"colorSpace":"srgb","components":[0,0,0],"alpha":0.05},"offsetX":{"value":0,"unit":"px"},"offsetY":{"value":2,"unit":"px"},"blur":{"value":4,"unit":"px"},"spread":{"value":0,"unit":"px"},"inset":true}},"shadow-ring-info":{"$type":"shadow","$value":{"color":"{color-border-info}","offsetX":{"value":0,"unit":"px"},"offsetY":{"value":0,"unit":"px"},"blur":{"value":0,"unit":"px"},"spread":{"value":2,"unit":"px"}}},"shadow-ring-error":{"$type":"shadow","$value":{"color":"{color-border-error}","offsetX":{"value":0,"unit":"px"},"offsetY":{"value":0,"unit":"px"},"blur":{"value":0,"unit":"px"},"spread":{"value":2,"unit":"px"}}},"shadow-ring-inset-info":{"$type":"shadow","$value":{"color":"{color-border-info}","offsetX":{"value":0,"unit":"px"},"offsetY":{"value":0,"unit":"px"},"blur":{"value":0,"unit":"px"},"spread":{"value":2,"unit":"px"},"inset":true}},"shadow-ring-offset-info":{"$type":"shadow","$value":[{"color":"{white}","offsetX":{"value":0,"unit":"px"},"offsetY":{"value":0,"unit":"px"},"blur":{"value":0,"unit":"px"},"spread":{"value":2,"unit":"px"}},{"color":"{color-border-info}","offsetX":{"value":0,"unit":"px"},"offsetY":{"value":0,"unit":"px"},"blur":{"value":0,"unit":"px"},"spread":{"value":4,"unit":"px"}}]},"z-index-raised":{"$type":"number","$value":10},"z-index-overlay":{"$type":"number","$value":1000},"z-index-modal":{"$type":"number","$value":1300},"z-index-toast":{"$type":"number","$value":1500},"duration-fast":{"$type":"duration","$value":{"value":150,"unit":"ms"}},"duration-moderate":{"$type":"duration","$value":{"value":200,"unit":"ms"}},"duration-slow":{"$type":"duration","$value":{"value":300,"unit":"ms"}},"duration-spin":{"$type":"duration","$value":{"value":1,"unit":"s"}},"duration-pulse":{"$type":"duration","$value":{"value":2,"unit":"s"}},"easing-out":{"$type":"cubicBezier","$value":[0,0,0.2,1]},"easing-in-out":{"$type":"cubicBezier","$value":[0.4,0,0.2,1]},"easing-pulse":{"$type":"cubicBezier","$value":[0.4,0,0.6,1]},"breakpoint-sm":{"$type":"dimension","$value":{"value":40,"unit":"rem"}},"breakpoint-md":{"$type":"dimension","$value":{"value":48,"unit":"rem"}},"breakpoint-lg":{"$type":"dimension","$value":{"value":64,"unit":"rem"}},"breakpoint-xl":{"$type":"dimension","$value":{"value":80,"unit":"rem"}},"breakpoint-2xl":{"$type":"dimension","$value":{"value":96,"unit":"rem"}},"writing":{"$value":"horizontal"}}]},{"type":"modifier","name":":root color-scheme: dark","contexts":{"off":[],"on":[{"color-fg-base":{"$type":"color","$value":"{gray-50}"},"color-fg-subtle":{"$type":"color","$value":"{gray-400}"},"color-fg-mute":{"$type":"color","$value":"{gray-300}"},"color-fg-inverse":{"$type":"color","$value":"{gray-900}"},"color-fg-info":{"$type":"color","$value":"{blue-200}"},"color-fg-success":{"$type":"color","$value":"{green-200}"},"color-fg-warning":{"$type":"color","$value":"{yellow-200}"},"color-fg-error":{"$type":"color","$value":"{red-200}"},"color-bg-base":{"$type":"color","$value":"{gray-800}"},"color-bg-raised":{"$type":"color","$value":"{gray-800}"},"color-bg-surface":{"$type":"color","$value":"{gray-950}"},"color-bg-subtle":{"$type":"color","$value":"{gray-900}"},"color-bg-mute":{"$type":"color","$value":"{gray-700}"},"color-bg-emphasize":{"$type":"color","$value":"{gray-600}"},"color-bg-inverse":{"$type":"color","$value":"{white}"},"color-bg-info":{"$type":"color","$value":"{blue-900}"},"color-bg-success":{"$type":"color","$value":"{green-900}"},"color-bg-warning":{"$type":"color","$value":"{yellow-900}"},"color-bg-error":{"$type":"color","$value":"{red-900}"},"color-border-base":{"$type":"color","$value":"{gray-600}"},"color-border-subtle":{"$type":"color","$value":"{gray-700}"},"color-border-mute":{"$type":"color","$value":"{gray-600}"},"color-border-emphasize":{"$type":"color","$value":"{gray-500}"},"color-border-inverse":{"$type":"color","$value":"{gray-300}"},"color-border-info":{"$type":"color","$value":"{blue-400}"},"color-border-success":{"$type":"color","$value":"{green-400}"},"color-border-warning":{"$type":"color","$value":"{yellow-400}"},"color-border-error":{"$type":"color","$value":"{red-400}"},"color-primary-fg":{"$type":"color","$value":"{teal-300}"},"color-primary-bg":{"$type":"color","$value":"{teal-900}"},"color-primary-bg-subtle":{"$type":"color","$value":"{teal-950}"},"color-primary-bg-mute":{"$type":"color","$value":"{teal-900}"},"color-primary-bg-emphasize":{"$type":"color","$value":"{teal-800}"},"color-primary-border":{"$type":"color","$value":"{teal-500}"},"color-secondary-fg":{"$type":"color","$value":"{cyan-300}"},"color-secondary-bg":{"$type":"color","$value":"{cyan-900}"},"color-secondary-bg-subtle":{"$type":"color","$value":"{cyan-950}"},"color-secondary-bg-mute":{"$type":"color","$value":"{cyan-900}"},"color-secondary-bg-emphasize":{"$type":"color","$value":"{cyan-800}"},"color-secondary-border":{"$type":"color","$value":"{cyan-500}"},"color-group-primary":{"$type":"color","$value":"{teal-200}"},"color-group-secondary":{"$type":"color","$value":"{cyan-200}"},"color-group-tertiary":{"$type":"color","$value":"{pink-200}"},"color-group-quaternary":{"$type":"color","$value":"{purple-200}"}}]},"default":"off"},{"type":"modifier","name":"@media (prefers-contrast: more) :root","contexts":{"off":[],"on":[{"color-fg-base":{"$type":"color","$value":"{gray-950}"},"color-fg-subtle":{"$type":"color","$value":"{gray-800}"},"color-fg-mute":{"$type":"color","$value":"{gray-900}"},"color-fg-info":{"$type":"color","$value":"{blue-900}"},"color-fg-success":{"$type":"color","$value":"{green-900}"},"color-fg-warning":{"$type":"color","$value":"{yellow-900}"},"color-fg-error":{"$type":"color","$value":"{red-900}"},"color-bg-emphasize":{"$type":"color","$value":"{gray-300}"},"color-border-base":{"$type":"color","$value":"{gray-600}"},"color-border-subtle":{"$type":"color","$value":"{gray-500}"},"color-border-mute":{"$type":"color","$value":"{gray-500}"},"color-border-emphasize":{"$type":"color","$value":"{gray-800}"},"color-border-info":{"$type":"color","$value":"{blue-700}"},"color-border-success":{"$type":"color","$value":"{green-700}"},"color-border-warning":{"$type":"color","$value":"{yellow-700}"},"color-border-error":{"$type":"color","$value":"{red-700}"},"color-primary-fg":{"$type":"color","$value":"{teal-900}"},"color-primary-border":{"$type":"color","$value":"{teal-700}"},"color-secondary-fg":{"$type":"color","$value":"{cyan-900}"},"color-secondary-border":{"$type":"color","$value":"{cyan-700}"}}]},"default":"off"},{"type":"modifier","name":"@media (prefers-contrast: more) :root color-scheme: dark","contexts":{"off":[],"on":[{"color-fg-base":{"$type":"color","$value":"{white}"},"color-fg-subtle":{"$type":"color","$value":"{gray-200}"},"color-fg-mute":{"$type":"color","$value":"{gray-100}"},"color-fg-info":{"$type":"color","$value":"{blue-100}"},"color-fg-success":{"$type":"color","$value":"{green-100}"},"color-fg-warning":{"$type":"color","$value":"{yellow-100}"},"color-fg-error":{"$type":"color","$value":"{red-100}"},"color-bg-emphasize":{"$type":"color","$value":"{gray-700}"},"color-border-base":{"$type":"color","$value":"{gray-400}"},"color-border-subtle":{"$type":"color","$value":"{gray-500}"},"color-border-mute":{"$type":"color","$value":"{gray-400}"},"color-border-emphasize":{"$type":"color","$value":"{gray-200}"},"color-border-info":{"$type":"color","$value":"{blue-300}"},"color-border-success":{"$type":"color","$value":"{green-300}"},"color-border-warning":{"$type":"color","$value":"{yellow-300}"},"color-border-error":{"$type":"color","$value":"{red-300}"},"color-primary-fg":{"$type":"color","$value":"{teal-100}"},"color-primary-border":{"$type":"color","$value":"{teal-300}"},"color-secondary-fg":{"$type":"color","$value":"{cyan-100}"},"color-secondary-border":{"$type":"color","$value":"{cyan-300}"}}]},"default":"off"},{"type":"modifier","name":".writing-h","contexts":{"off":[],"on":[{"writing":{"$value":"horizontal"}}]},"default":"off"},{"type":"modifier","name":".writing-v","contexts":{"off":[],"on":[{"writing":{"$value":"vertical"}}]},"default":"off"}]};
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Direction, DrawerSide,
|
|
2
|
-
export type { Direction, DrawerSide,
|
|
1
|
+
import { DialogSide, Direction, DrawerSide, Option, Placement, Status } from "./variables.mjs";
|
|
2
|
+
export type { DialogSide, Direction, DrawerSide, Option, Placement, Status };
|
|
@@ -6,12 +6,14 @@ export type Direction = 'up' | 'down' | 'right' | 'left';
|
|
|
6
6
|
*/
|
|
7
7
|
export type Placement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
|
|
8
8
|
/**
|
|
9
|
-
* ビューポートのどこに貼り付くかで決まるオーバーレイ(
|
|
9
|
+
* ビューポートのどこに貼り付くかで決まるオーバーレイ(Dialog / Drawer)の配置。
|
|
10
10
|
* アンカー要素からの相対配置である `Placement` とは別概念なので、prop 名も
|
|
11
11
|
* `placement` ではなく `side` で分ける。
|
|
12
12
|
*/
|
|
13
13
|
export type ModalSide = 'center' | 'bottom' | 'left' | 'right';
|
|
14
|
-
/**
|
|
14
|
+
/** Dialog は画面の中央か下から出る。 */
|
|
15
|
+
export type DialogSide = Extract<ModalSide, 'center' | 'bottom'>;
|
|
16
|
+
/** Drawer は左右の縁から出る。 */
|
|
15
17
|
export type DrawerSide = Extract<ModalSide, 'left' | 'right'>;
|
|
16
18
|
export type Option = Readonly<{
|
|
17
19
|
value: string;
|
package/docs/GUIDE.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
How to build UI with the `@k8ordo/ui` design system.
|
|
4
4
|
|
|
5
|
+
Like every k8ordo package it assumes React 19 and Server Components, uses only
|
|
6
|
+
what has reached Baseline newly available, and ships no polyfills or legacy
|
|
7
|
+
fallbacks.
|
|
8
|
+
|
|
5
9
|
## Setup
|
|
6
10
|
|
|
7
11
|
```bash
|
|
@@ -11,14 +15,14 @@ npm install @k8ordo/ui
|
|
|
11
15
|
```tsx
|
|
12
16
|
// 1. Load the stylesheet (once, at your entry point)
|
|
13
17
|
import '@k8ordo/ui/styles.css';
|
|
14
|
-
// 2. Wrap the app in
|
|
15
|
-
import {
|
|
18
|
+
// 2. Wrap the app in ToastProvider if it opens toasts with useToast
|
|
19
|
+
import { ToastProvider } from '@k8ordo/ui';
|
|
16
20
|
|
|
17
21
|
function App() {
|
|
18
22
|
return (
|
|
19
|
-
<
|
|
23
|
+
<ToastProvider>
|
|
20
24
|
<YourApp />
|
|
21
|
-
</
|
|
25
|
+
</ToastProvider>
|
|
22
26
|
);
|
|
23
27
|
}
|
|
24
28
|
|
|
@@ -53,13 +57,59 @@ one rule that does not yield is the reset's
|
|
|
53
57
|
`[hidden] { display: none !important }`.
|
|
54
58
|
|
|
55
59
|
The CSS is written for what browsers ship today: `@scope`, container style
|
|
56
|
-
queries, `light-dark()`, `:dir()`, nesting.
|
|
57
|
-
|
|
58
|
-
|
|
60
|
+
queries, `light-dark()`, `:dir()`, nesting. Lightning CSS, which transforms
|
|
61
|
+
and minifies CSS in Vite and in Next.js, rewrites them for an older target,
|
|
62
|
+
and the rewrites change what they do:
|
|
63
|
+
|
|
64
|
+
- `light-dark()` becomes variables resolved where each token is declared,
|
|
65
|
+
so a `.dark` below `<html>` no longer darkens what it holds.
|
|
66
|
+
- `:dir(rtl)` becomes `:lang()` selectors, which do not follow `dir`.
|
|
67
|
+
- A `&` inside `@scope` becomes `:scope`, which adds a class's specificity,
|
|
68
|
+
so the rule beats classes it was written to lose to.
|
|
69
|
+
|
|
70
|
+
Both tools target older browsers by default, so aim the CSS at the browsers
|
|
71
|
+
this library is built for. In Vite, set `build.cssTarget`, and
|
|
72
|
+
`css.lightningcss.targets` too when `css.transformer` is `'lightningcss'`:
|
|
73
|
+
the transform reads that one, and only the minifier reads `build.cssTarget`.
|
|
74
|
+
|
|
75
|
+
```ts
|
|
76
|
+
// vite.config.ts
|
|
77
|
+
export default defineConfig({
|
|
78
|
+
build: { cssTarget: ['chrome146', 'edge146', 'firefox151', 'safari26'] },
|
|
79
|
+
css: {
|
|
80
|
+
transformer: 'lightningcss',
|
|
81
|
+
lightningcss: {
|
|
82
|
+
targets: {
|
|
83
|
+
chrome: 146 << 16,
|
|
84
|
+
edge: 146 << 16,
|
|
85
|
+
firefox: 151 << 16,
|
|
86
|
+
safari: 26 << 16,
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
});
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
In Next.js, set `browserslist` in `package.json`:
|
|
94
|
+
|
|
95
|
+
```json
|
|
96
|
+
{
|
|
97
|
+
"browserslist": [
|
|
98
|
+
"chrome >= 146",
|
|
99
|
+
"edge >= 146",
|
|
100
|
+
"firefox >= 151",
|
|
101
|
+
"safari >= 26"
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
```
|
|
59
105
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
106
|
+
A k8ordo application sets neither: `@k8ordo/framework` aims its build at the
|
|
107
|
+
browsers Baseline has newly available unless the config sets its own
|
|
108
|
+
targets.
|
|
109
|
+
|
|
110
|
+
Components take no `className`. To change how one looks, change the tokens. A
|
|
111
|
+
link component of your own (a framework's `<Link>`) goes in through
|
|
112
|
+
`renderAnchor`, which hands you the component's `className` to keep.
|
|
63
113
|
|
|
64
114
|
### Tokens
|
|
65
115
|
|
|
@@ -74,9 +124,19 @@ The tokens are custom properties declared at `:root`, named by category:
|
|
|
74
124
|
They are declared outside any layer, so to override one, declare it after
|
|
75
125
|
`styles.css` is loaded: between unlayered rules of equal specificity, source
|
|
76
126
|
order decides. `@k8ordo/ui/tokens` exports the same tokens as data, a DTCG
|
|
77
|
-
resolver document (Resolver Module 2025.10), with each mode
|
|
78
|
-
|
|
79
|
-
|
|
127
|
+
resolver document (Resolver Module 2025.10), with each mode as a modifier: the
|
|
128
|
+
dark values of the colors (`:root color-scheme: dark`), the
|
|
129
|
+
`prefers-contrast: more` overrides (`@media (prefers-contrast: more) :root`),
|
|
130
|
+
and their dark values
|
|
131
|
+
(`@media (prefers-contrast: more) :root color-scheme: dark`).
|
|
132
|
+
|
|
133
|
+
`@k8ordo/ui/tokens.css` is the tokens as a stylesheet of their own: the
|
|
134
|
+
declarations at `:root`, the `prefers-contrast: more` overrides, and the base
|
|
135
|
+
layer's `color-scheme` rules (`light` on `:root`, `dark` under `.dark`, `light`
|
|
136
|
+
again in print), with no reset and no page-wide defaults. A page that loads
|
|
137
|
+
only this file reads the tokens and darkens them with the `dark` class; to
|
|
138
|
+
follow the OS setting instead, it sets `color-scheme: light dark` on `:root`
|
|
139
|
+
outside any layer.
|
|
80
140
|
|
|
81
141
|
[better-css-modules](https://github.com/k35o/better-css-modules) holds CSS
|
|
82
142
|
Modules to these tokens: list `@k8ordo/ui/styles.css` in its `globalCss`, and
|
|
@@ -113,17 +173,19 @@ see [Typography](references/typography.md#long-form-text-prose).
|
|
|
113
173
|
|
|
114
174
|
### Dark mode
|
|
115
175
|
|
|
116
|
-
The tokens switch on a `dark` class
|
|
117
|
-
|
|
118
|
-
library never adds the class itself. In a k8ordo application
|
|
176
|
+
The tokens switch on a `dark` class, so everything under an element with the
|
|
177
|
+
class is dark. The library never adds the class itself. In a k8ordo application
|
|
119
178
|
`@k8ordo/color-scheme` does, resolving the visitor's choice and the system
|
|
120
179
|
preference into `dark` on `<html>` before the first paint; anything else that
|
|
121
180
|
toggles the class works the same.
|
|
122
181
|
|
|
123
|
-
The
|
|
124
|
-
`:root
|
|
125
|
-
|
|
126
|
-
|
|
182
|
+
The class works through the CSS `color-scheme` property. The base layer sets
|
|
183
|
+
it to `light` on `:root` and `dark` under `.dark`, and each color token holds
|
|
184
|
+
both of its values as `light-dark(<light>, <dark>)` at `:root`. The tokens and
|
|
185
|
+
the browser's own rendering (scrollbars, form controls, a `<dialog>`'s default
|
|
186
|
+
colors) therefore follow the class rather than the OS, and your own CSS follows
|
|
187
|
+
the same way when it reads the tokens. A page that should follow the OS setting
|
|
188
|
+
instead sets `color-scheme: light dark` on `:root` in its own CSS. With
|
|
127
189
|
`tailwind.css`, the `dark:` variant applies under `.dark` and `light:`
|
|
128
190
|
everywhere else.
|
|
129
191
|
|
|
@@ -131,10 +193,10 @@ everywhere else.
|
|
|
131
193
|
|
|
132
194
|
Printing puts the light values back. Browsers leave a page's backgrounds out
|
|
133
195
|
of a printout by default, so the dark values would print light text on white
|
|
134
|
-
paper. Under `@media print`, a `.dark` element takes
|
|
135
|
-
color tokens (the light high-contrast ones under
|
|
136
|
-
`
|
|
137
|
-
switch with them.
|
|
196
|
+
paper. Under `@media print`, a `.dark` element takes `color-scheme: light`, so
|
|
197
|
+
the color tokens give their light values (the light high-contrast ones under
|
|
198
|
+
`prefers-contrast: more`), and the `dark:` and `light:` variants of
|
|
199
|
+
`tailwind.css` switch with them.
|
|
138
200
|
|
|
139
201
|
To print in the scheme on screen, such as a slide deck printed with its
|
|
140
202
|
backgrounds (`print-color-adjust: exact`), put the `print-as-shown` class on an
|
|
@@ -194,8 +256,8 @@ dictionary**. For a component with a wording prop of its own, such as
|
|
|
194
256
|
`getMessages()` from `@k8ordo/ui/i18n` returns the wording in effect for your
|
|
195
257
|
own elements (a `renderItem`, a component beside the library). It is not a
|
|
196
258
|
hook, so it works in a Server Component — which is also why `Spinner`,
|
|
197
|
-
`Breadcrumb`, `Code`, `Alert`, `Callout`, `Reasoning`, and
|
|
198
|
-
are Server Components.
|
|
259
|
+
`Anchor`, `Card`, `Breadcrumb`, `Code`, `Alert`, `Callout`, `Reasoning`, and
|
|
260
|
+
`ToolInvocation` are Server Components.
|
|
199
261
|
|
|
200
262
|
> [Full key list and details](references/components.md) (the "i18n (message dictionary)" section)
|
|
201
263
|
|
|
@@ -326,42 +388,44 @@ import { Button } from '@k8ordo/ui';
|
|
|
326
388
|
// Text only
|
|
327
389
|
<Button variant="skeleton">View details</Button>
|
|
328
390
|
|
|
329
|
-
//
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
//
|
|
333
|
-
<Button
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
)}
|
|
338
|
-
>
|
|
391
|
+
// Work that runs on a press: a transition, with a spinner until it settles
|
|
392
|
+
<Button action={save}>Save</Button>
|
|
393
|
+
|
|
394
|
+
// A link with the same look: href renders an <a>
|
|
395
|
+
<Button color="base" href="/settings" variant="outline">Settings</Button>
|
|
396
|
+
|
|
397
|
+
// A framework's link component, through renderAnchor
|
|
398
|
+
<Button href="/settings" renderAnchor={(props) => <Link {...props} />}>
|
|
339
399
|
Settings
|
|
340
400
|
</Button>
|
|
401
|
+
|
|
402
|
+
// Reset the form it belongs to
|
|
403
|
+
<Button color="base" type="reset" variant="outline">Reset</Button>
|
|
341
404
|
```
|
|
342
405
|
|
|
406
|
+
Put a synchronous update a user may press again at once (a counter, a slide
|
|
407
|
+
change) in `onClick`: `action` ignores presses while its transition is pending.
|
|
408
|
+
A skeleton toggle passes `aria-pressed`, and a skeleton link to the current
|
|
409
|
+
page `aria-current`; the text then takes the info color. A solid or outline
|
|
410
|
+
toggle switches its `variant` or `color` with the state instead. Inside a
|
|
411
|
+
`Toolbar`, the toolbar shows a pressed item by its ground, with `fg-base` text.
|
|
412
|
+
|
|
343
413
|
### IconButton
|
|
344
414
|
|
|
345
|
-
|
|
415
|
+
`variant` picks the ground: `skeleton` (the default) has none, and `solid`
|
|
416
|
+
fills it with the `color` family, as `Button` does. `label` is required; it is
|
|
417
|
+
the accessible name and the tooltip, and the tooltip is not read again as a
|
|
418
|
+
description.
|
|
346
419
|
|
|
347
420
|
```tsx
|
|
348
421
|
import { IconButton } from '@k8ordo/ui';
|
|
349
422
|
import { CopyIcon, HomeIcon, SendIcon } from '@k8ordo/ui/icons';
|
|
350
423
|
|
|
351
|
-
<IconButton
|
|
352
|
-
<IconButton color="primary" label="Send"><SendIcon /></IconButton>
|
|
353
|
-
|
|
354
|
-
//
|
|
355
|
-
|
|
356
|
-
<IconButton
|
|
357
|
-
color="base"
|
|
358
|
-
label="Home"
|
|
359
|
-
renderItem={({ children, disabled: _disabled, triggerProps, type: _type, ...props }) => (
|
|
360
|
-
<a href="/home" {...props} {...triggerProps}>
|
|
361
|
-
{children}
|
|
362
|
-
</a>
|
|
363
|
-
)}
|
|
364
|
-
>
|
|
424
|
+
<IconButton label="Copy"><CopyIcon /></IconButton>
|
|
425
|
+
<IconButton color="primary" label="Send" variant="solid"><SendIcon /></IconButton>
|
|
426
|
+
|
|
427
|
+
// A link: href renders an <a>, named by label and with the same tooltip
|
|
428
|
+
<IconButton href="/home" label="Home">
|
|
365
429
|
<HomeIcon />
|
|
366
430
|
</IconButton>
|
|
367
431
|
```
|
|
@@ -399,8 +463,9 @@ import { Card } from '@k8ordo/ui';
|
|
|
399
463
|
<div className={styles.body}>Card content</div>
|
|
400
464
|
</Card>
|
|
401
465
|
|
|
402
|
-
//
|
|
403
|
-
|
|
466
|
+
// The whole card is a link (href) or a button (action); links and
|
|
467
|
+
// buttons inside it stay pressable on their own
|
|
468
|
+
<Card href="/articles/1">
|
|
404
469
|
<div className={styles.body}>Content</div>
|
|
405
470
|
</Card>
|
|
406
471
|
```
|
|
@@ -414,6 +479,7 @@ import {
|
|
|
414
479
|
Button,
|
|
415
480
|
FileField,
|
|
416
481
|
FormControl,
|
|
482
|
+
RadioCard,
|
|
417
483
|
Select,
|
|
418
484
|
TextField,
|
|
419
485
|
} from '@k8ordo/ui';
|
|
@@ -431,14 +497,24 @@ import {
|
|
|
431
497
|
/>
|
|
432
498
|
)} />
|
|
433
499
|
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
500
|
+
// A field that is a group itself (Radio, RadioCard, CheckboxGroup,
|
|
501
|
+
// CheckboxCard, RangeSlider) takes its name from a heading, not a <label>
|
|
502
|
+
<FormControl label="Plan" labelAs="group" renderInput={(props) => (
|
|
503
|
+
<RadioCard {...props} options={plans} />
|
|
504
|
+
)} />
|
|
505
|
+
|
|
506
|
+
// So does FileField: its trigger is a button, which cannot be required, so the
|
|
507
|
+
// required mark has to be part of the name the trigger reads
|
|
508
|
+
<FormControl label="Photos" labelAs="group" required renderInput={(props) => (
|
|
509
|
+
<FileField.Root {...props} accept="image/*" multiple>
|
|
510
|
+
<FileField.Trigger
|
|
511
|
+
renderItem={(wiring) => (
|
|
512
|
+
<Button {...wiring}>Choose files</Button>
|
|
513
|
+
)}
|
|
514
|
+
/>
|
|
515
|
+
<FileField.ItemList />
|
|
516
|
+
</FileField.Root>
|
|
517
|
+
)} />
|
|
442
518
|
```
|
|
443
519
|
|
|
444
520
|
With `@k8ordo/form`, spread what `form.field(name).input` derives onto the
|
|
@@ -454,7 +530,6 @@ const title = form.field('title');
|
|
|
454
530
|
|
|
455
531
|
<FormControl
|
|
456
532
|
errorText={title.error}
|
|
457
|
-
invalid={title.invalid}
|
|
458
533
|
label="Title"
|
|
459
534
|
required={title.required}
|
|
460
535
|
renderInput={(props) => <TextField {...props} {...title.input} />}
|
|
@@ -483,7 +558,7 @@ Avoid the traits that make a UI recognizably AI-generated at a glance.
|
|
|
483
558
|
## Implementation principles
|
|
484
559
|
|
|
485
560
|
- **Use the existing components**: look for a @k8ordo/ui component before building custom UI
|
|
486
|
-
- **Render from Server Components**: every component, compound ones included (`
|
|
561
|
+
- **Render from Server Components**: every component, compound ones included (`Tabs.Root`, `Accordion.Item`, …), can be placed in a Server Component; only the interactive parts are client modules. A Server Component cannot pass a client module a function other than a Server Action, so a part given one is rendered from a Client Component: `Popover.Trigger`, `Tooltip.Trigger`, `ContextMenu.Trigger`, `Toolbar.Item`, and `FileField.Trigger` (a required `renderItem`), `DataTable` (`getRowId`, a column's `cell`), and any part given `onChange` or another handler. `FormControl` and `Form` are not client modules, so `renderInput` runs where `FormControl` renders: a form of uncontrolled fields that submits to a Server Action is written in a Server Component (`useForm` needs a Client Component)
|
|
487
562
|
- **Keep placed state in `@k8ordo/state`**: state that lives in the URL, a history entry, localStorage, or memory is `defineLocalState` and friends, not a hook from this package
|
|
488
563
|
- **Browser-only rendering is React's**: a component that can only render in a browser calls `use(browser())` (`browser` from `react-dom`) under a `<Suspense>`; there is no `useClient` here and no "mounted" flag
|
|
489
564
|
- **Use semantic tokens**: tokens (`--color-primary-bg`), never raw color values or the palette (`--teal-500`)
|
|
@@ -500,8 +575,8 @@ directly on APIs a browser has and jsdom does not: `ResizeObserver`,
|
|
|
500
575
|
`IntersectionObserver`, `matchMedia`, `HTMLDialogElement`'s `showModal` /
|
|
501
576
|
`close`, and the Popover API. None of them is called through a support check,
|
|
502
577
|
so under jsdom `Tooltip`, `IconButton` (unless `tooltipDisabled`), `Tabs`,
|
|
503
|
-
`Autocomplete`, `Combobox`, `Toolbar`, `ResizablePanels`,
|
|
504
|
-
|
|
578
|
+
`Autocomplete`, `Combobox`, `Toolbar`, `ResizablePanels`, and `Conversation`
|
|
579
|
+
throw as soon as they mount; `Dialog`, `CommandPalette`,
|
|
505
580
|
`Drawer`, `Popover`, `DropdownMenu`, `ContextMenu`, `ListBox`, and `DatePicker`
|
|
506
581
|
throw the moment they open (a `DropdownMenu` holding a `SubMenu` already at
|
|
507
582
|
mount); and a `clearable` `FileField.ItemList` throws once it lists a file.
|
|
@@ -520,4 +595,4 @@ check is the thing it cannot model.
|
|
|
520
595
|
- Component catalog: [references/components.md](references/components.md)
|
|
521
596
|
- Types: [references/types.md](references/types.md)
|
|
522
597
|
- AI chat (Conversation / Message / PromptInput, …): [references/ai-chat.md](references/ai-chat.md)
|
|
523
|
-
- Generative UI (
|
|
598
|
+
- Generative UI (the catalog an LLM composes UIs from, for json-render, OpenUI, A2UI, or any format): [references/generative-ui.md](references/generative-ui.md)
|