@dodopayments/ui 1.7.1 → 1.8.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/ai/component-registry.json +1579 -219
- package/ai/component-registry.md +43 -39
- package/ai/components/app-top-bar.md +17 -5
- package/ai/components/area-chart.md +2 -0
- package/ai/components/avatar.md +3 -0
- package/ai/components/bar-chart.md +2 -0
- package/ai/components/breadcrumb.md +2 -0
- package/ai/components/button-group.md +2 -0
- package/ai/components/chart-legend.md +2 -0
- package/ai/components/checkout-page.md +2 -0
- package/ai/components/color-input.md +2 -0
- package/ai/components/combobox.md +199 -0
- package/ai/components/composed-chart.md +2 -0
- package/ai/components/container.md +2 -0
- package/ai/components/context-menu.md +2 -0
- package/ai/components/data-grid.md +1 -1
- package/ai/components/dialog.md +1 -0
- package/ai/components/direction-provider.md +2 -0
- package/ai/components/drawer.md +2 -0
- package/ai/components/field.md +2 -0
- package/ai/components/filter-grid.md +2 -0
- package/ai/components/flag.md +22 -0
- package/ai/components/funnel-chart.md +2 -0
- package/ai/components/fx-conversion.md +2 -0
- package/ai/components/gauge-chart.md +2 -0
- package/ai/components/heatmap-chart.md +2 -0
- package/ai/components/invoice-document.md +2 -0
- package/ai/components/link.md +3 -3
- package/ai/components/list-toolbar.md +3 -1
- package/ai/components/live-activity.md +2 -0
- package/ai/components/new-items-pill.md +2 -0
- package/ai/components/page-header.md +13 -11
- package/ai/components/payment-logos.md +5 -4
- package/ai/components/payment-result.md +2 -0
- package/ai/components/pie-chart.md +2 -0
- package/ai/components/plan-picker.md +2 -0
- package/ai/components/product-card.md +2 -0
- package/ai/components/proration-preview.md +2 -0
- package/ai/components/radar-chart.md +2 -0
- package/ai/components/reorder-list.md +3 -0
- package/ai/components/required-mark.md +22 -0
- package/ai/components/ring-chart.md +2 -0
- package/ai/components/sale-share-card.md +2 -0
- package/ai/components/sankey-chart.md +2 -0
- package/ai/components/scatter-chart.md +2 -0
- package/ai/components/segmented-control.md +14 -1
- package/ai/components/settings-section.md +2 -0
- package/ai/components/sheet.md +8 -4
- package/ai/components/sidebar.md +13 -2
- package/ai/components/slider.md +2 -0
- package/ai/components/spinner.md +2 -0
- package/ai/components/sunburst-chart.md +2 -0
- package/ai/components/switch-transition.md +91 -0
- package/ai/components/task-steps.md +2 -0
- package/ai/components/test-mode-banner.md +2 -2
- package/ai/components/timestamp.md +8 -8
- package/ai/components/timezone-select.md +2 -0
- package/ai/components/typing-indicator.md +2 -0
- package/ai/components/wallet-buttons.md +2 -0
- package/ai/components/wizard-steps.md +2 -0
- package/ai/skills/dodo-charts/SKILL.md +21 -12
- package/ai/skills/dodo-design/SKILL.md +32 -16
- package/bin/registry.js +15 -4
- package/bin/scan.d.ts +3 -2
- package/bin/scan.js +4 -4
- package/dist/components/app-top-bar/app-top-bar.d.ts +17 -3
- package/dist/components/app-top-bar/app-top-bar.d.ts.map +1 -1
- package/dist/components/app-top-bar/app-top-bar.js +37 -16
- package/dist/components/app-top-bar/app-top-bar.js.map +1 -1
- package/dist/components/app-top-bar/index.d.ts +1 -1
- package/dist/components/app-top-bar/index.d.ts.map +1 -1
- package/dist/components/app-top-bar/index.js +1 -1
- package/dist/components/app-top-bar/index.js.map +1 -1
- package/dist/components/avatar/avatar.d.ts +22 -1
- package/dist/components/avatar/avatar.d.ts.map +1 -1
- package/dist/components/avatar/avatar.js +13 -3
- package/dist/components/avatar/avatar.js.map +1 -1
- package/dist/components/card/card.d.ts +1 -1
- package/dist/components/card/card.d.ts.map +1 -1
- package/dist/components/card/card.js +11 -2
- package/dist/components/card/card.js.map +1 -1
- package/dist/components/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/checkbox/checkbox.js +7 -3
- package/dist/components/checkbox/checkbox.js.map +1 -1
- package/dist/components/{select/select-combobox.d.ts → combobox/combobox.d.ts} +1 -1
- package/dist/components/combobox/combobox.d.ts.map +1 -0
- package/dist/components/{select/select-combobox.js → combobox/combobox.js} +1 -1
- package/dist/components/combobox/combobox.js.map +1 -0
- package/dist/components/combobox/index.d.ts +2 -0
- package/dist/components/combobox/index.d.ts.map +1 -0
- package/dist/components/combobox/index.js +2 -0
- package/dist/components/combobox/index.js.map +1 -0
- package/dist/components/country-select/country-select.js +1 -1
- package/dist/components/country-select/country-select.js.map +1 -1
- package/dist/components/currency-select/currency-select.js +1 -1
- package/dist/components/currency-select/currency-select.js.map +1 -1
- package/dist/components/data-grid/data-grid.d.ts +1 -1
- package/dist/components/data-grid/data-grid.js +4 -4
- package/dist/components/data-grid/data-grid.js.map +1 -1
- package/dist/components/date-picker/date-picker.d.ts +1 -1
- package/dist/components/date-picker/date-picker.d.ts.map +1 -1
- package/dist/components/date-picker/date-picker.js +8 -7
- package/dist/components/date-picker/date-picker.js.map +1 -1
- package/dist/components/date-picker/index.d.ts +1 -1
- package/dist/components/date-picker/index.d.ts.map +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-picker/index.js.map +1 -1
- package/dist/components/dialog/confirm-dialog.d.ts +7 -1
- package/dist/components/dialog/confirm-dialog.d.ts.map +1 -1
- package/dist/components/dialog/confirm-dialog.js +2 -2
- package/dist/components/dialog/confirm-dialog.js.map +1 -1
- package/dist/components/field/field.d.ts +0 -19
- package/dist/components/field/field.d.ts.map +1 -1
- package/dist/components/field/field.js +2 -13
- package/dist/components/field/field.js.map +1 -1
- package/dist/components/field/index.d.ts +1 -1
- package/dist/components/field/index.d.ts.map +1 -1
- package/dist/components/field/index.js +1 -1
- package/dist/components/field/index.js.map +1 -1
- package/dist/components/field/label.d.ts +0 -8
- package/dist/components/field/label.d.ts.map +1 -1
- package/dist/components/field/label.js +1 -9
- package/dist/components/field/label.js.map +1 -1
- package/dist/components/filter-grid/filter-grid.js +1 -1
- package/dist/components/filter-grid/filter-grid.js.map +1 -1
- package/dist/components/flag/country-flag.d.ts.map +1 -0
- package/dist/components/flag/country-flag.js.map +1 -0
- package/dist/components/flag/flag.d.ts.map +1 -0
- package/dist/components/{payment-logos → flag}/flag.js +1 -1
- package/dist/components/flag/flag.js.map +1 -0
- package/dist/components/flag/index.d.ts +2 -0
- package/dist/components/flag/index.d.ts.map +1 -0
- package/dist/components/flag/index.js +2 -0
- package/dist/components/flag/index.js.map +1 -0
- package/dist/components/form/form.js +1 -1
- package/dist/components/form/form.js.map +1 -1
- package/dist/components/form-field/form-field.d.ts.map +1 -1
- package/dist/components/form-field/form-field.js +2 -1
- package/dist/components/form-field/form-field.js.map +1 -1
- package/dist/components/input/chips-field.d.ts +6 -0
- package/dist/components/input/chips-field.d.ts.map +1 -1
- package/dist/components/input/chips-field.js +3 -1
- package/dist/components/input/chips-field.js.map +1 -1
- package/dist/components/input/input-chips-suggestions.js +1 -1
- package/dist/components/input/input-chips-suggestions.js.map +1 -1
- package/dist/components/input/input-phone.js +1 -1
- package/dist/components/input/input-phone.js.map +1 -1
- package/dist/components/input/input.d.ts +15 -0
- package/dist/components/input/input.d.ts.map +1 -1
- package/dist/components/input/input.js +9 -4
- package/dist/components/input/input.js.map +1 -1
- package/dist/components/link/link.d.ts +5 -5
- package/dist/components/link/link.js +5 -5
- package/dist/components/link/link.js.map +1 -1
- package/dist/components/list-toolbar/list-toolbar-date-range.d.ts +1 -1
- package/dist/components/list-toolbar/list-toolbar-date-range.js +3 -3
- package/dist/components/list-toolbar/list-toolbar-date-range.js.map +1 -1
- package/dist/components/list-toolbar/list-toolbar.d.ts +3 -1
- package/dist/components/list-toolbar/list-toolbar.d.ts.map +1 -1
- package/dist/components/list-toolbar/list-toolbar.js +14 -3
- package/dist/components/list-toolbar/list-toolbar.js.map +1 -1
- package/dist/components/page-header/page-header.d.ts +11 -7
- package/dist/components/page-header/page-header.d.ts.map +1 -1
- package/dist/components/page-header/page-header.js +34 -11
- package/dist/components/page-header/page-header.js.map +1 -1
- package/dist/components/payment-logos/index.d.ts +1 -1
- package/dist/components/payment-logos/index.d.ts.map +1 -1
- package/dist/components/payment-logos/index.js +1 -1
- package/dist/components/payment-logos/index.js.map +1 -1
- package/dist/components/payment-logos/payment-logos.d.ts +8 -3
- package/dist/components/payment-logos/payment-logos.d.ts.map +1 -1
- package/dist/components/payment-logos/payment-logos.js +5 -5
- package/dist/components/payment-logos/payment-logos.js.map +1 -1
- package/dist/components/radio-group/radio-group.d.ts +2 -2
- package/dist/components/radio-group/radio-group.js +5 -5
- package/dist/components/radio-group/radio-group.js.map +1 -1
- package/dist/components/record-header/record-header.js +1 -1
- package/dist/components/record-header/record-header.js.map +1 -1
- package/dist/components/reorder-list/reorder-list.d.ts +7 -1
- package/dist/components/reorder-list/reorder-list.d.ts.map +1 -1
- package/dist/components/reorder-list/reorder-list.js +11 -5
- package/dist/components/reorder-list/reorder-list.js.map +1 -1
- package/dist/components/required-mark/index.d.ts +2 -0
- package/dist/components/required-mark/index.d.ts.map +1 -0
- package/dist/components/required-mark/index.js +2 -0
- package/dist/components/required-mark/index.js.map +1 -0
- package/dist/components/required-mark/required-mark.d.ts +9 -0
- package/dist/components/required-mark/required-mark.d.ts.map +1 -0
- package/dist/components/required-mark/required-mark.js +11 -0
- package/dist/components/required-mark/required-mark.js.map +1 -0
- package/dist/components/segmented-control/index.d.ts +1 -1
- package/dist/components/segmented-control/index.d.ts.map +1 -1
- package/dist/components/segmented-control/index.js +1 -1
- package/dist/components/segmented-control/index.js.map +1 -1
- package/dist/components/segmented-control/segmented-control.d.ts +19 -0
- package/dist/components/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/components/segmented-control/segmented-control.js +28 -7
- package/dist/components/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/select/select.d.ts.map +1 -1
- package/dist/components/select/select.js +10 -4
- package/dist/components/select/select.js.map +1 -1
- package/dist/components/settings-section/settings-section.d.ts +3 -1
- package/dist/components/settings-section/settings-section.d.ts.map +1 -1
- package/dist/components/settings-section/settings-section.js +6 -5
- package/dist/components/settings-section/settings-section.js.map +1 -1
- package/dist/components/sheet/sheet.d.ts +6 -4
- package/dist/components/sheet/sheet.d.ts.map +1 -1
- package/dist/components/sheet/sheet.js +4 -2
- package/dist/components/sheet/sheet.js.map +1 -1
- package/dist/components/sidebar/index.d.ts +1 -1
- package/dist/components/sidebar/index.d.ts.map +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sidebar/index.js.map +1 -1
- package/dist/components/sidebar/sidebar.d.ts +22 -3
- package/dist/components/sidebar/sidebar.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar.js +28 -12
- package/dist/components/sidebar/sidebar.js.map +1 -1
- package/dist/components/spinner/spinner.d.ts +12 -1
- package/dist/components/spinner/spinner.d.ts.map +1 -1
- package/dist/components/spinner/spinner.js +2 -2
- package/dist/components/spinner/spinner.js.map +1 -1
- package/dist/components/switch-transition/index.d.ts +2 -0
- package/dist/components/switch-transition/index.d.ts.map +1 -0
- package/dist/components/switch-transition/index.js +2 -0
- package/dist/components/switch-transition/index.js.map +1 -0
- package/dist/components/switch-transition/switch-transition.d.ts +30 -0
- package/dist/components/switch-transition/switch-transition.d.ts.map +1 -0
- package/dist/components/switch-transition/switch-transition.js +80 -0
- package/dist/components/switch-transition/switch-transition.js.map +1 -0
- package/dist/components/test-mode-banner/test-mode-banner.d.ts +1 -1
- package/dist/components/test-mode-banner/test-mode-banner.js +2 -2
- package/dist/components/test-mode-banner/test-mode-banner.js.map +1 -1
- package/dist/components/timestamp/timestamp.d.ts +5 -7
- package/dist/components/timestamp/timestamp.d.ts.map +1 -1
- package/dist/components/timestamp/timestamp.js +18 -14
- package/dist/components/timestamp/timestamp.js.map +1 -1
- package/dist/icons/index.d.ts +22 -0
- package/dist/icons/index.d.ts.map +1 -1
- package/dist/icons/index.js +22 -0
- package/dist/icons/index.js.map +1 -1
- package/dist/icons/ui/ai-agents.d.ts +3 -1
- package/dist/icons/ui/ai-agents.d.ts.map +1 -1
- package/dist/icons/ui/ai-agents.js +3 -1
- package/dist/icons/ui/ai-agents.js.map +1 -1
- package/dist/icons/ui/badge-check-2-outline-duo.d.ts +3 -0
- package/dist/icons/ui/badge-check-2-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/badge-check-2-outline-duo.js +5 -0
- package/dist/icons/ui/badge-check-2-outline-duo.js.map +1 -0
- package/dist/icons/ui/ban-outline-duo.d.ts +3 -0
- package/dist/icons/ui/ban-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/ban-outline-duo.js +5 -0
- package/dist/icons/ui/ban-outline-duo.js.map +1 -0
- package/dist/icons/ui/chart-column-outline-duo.d.ts +3 -0
- package/dist/icons/ui/chart-column-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/chart-column-outline-duo.js +5 -0
- package/dist/icons/ui/chart-column-outline-duo.js.map +1 -0
- package/dist/icons/ui/check-glyph-12.d.ts +3 -1
- package/dist/icons/ui/check-glyph-12.d.ts.map +1 -1
- package/dist/icons/ui/check-glyph-12.js +3 -1
- package/dist/icons/ui/check-glyph-12.js.map +1 -1
- package/dist/icons/ui/circle-user-outline-duo.d.ts +3 -0
- package/dist/icons/ui/circle-user-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/circle-user-outline-duo.js +5 -0
- package/dist/icons/ui/circle-user-outline-duo.js.map +1 -0
- package/dist/icons/ui/credit-card-outline-duo.d.ts +3 -0
- package/dist/icons/ui/credit-card-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/credit-card-outline-duo.js +5 -0
- package/dist/icons/ui/credit-card-outline-duo.js.map +1 -0
- package/dist/icons/ui/crown.d.ts +3 -0
- package/dist/icons/ui/crown.d.ts.map +1 -0
- package/dist/icons/ui/crown.js +5 -0
- package/dist/icons/ui/crown.js.map +1 -0
- package/dist/icons/ui/envelope-outline-duo.d.ts +3 -0
- package/dist/icons/ui/envelope-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/envelope-outline-duo.js +5 -0
- package/dist/icons/ui/envelope-outline-duo.js.map +1 -0
- package/dist/icons/ui/gear-outline-duo.d.ts +3 -0
- package/dist/icons/ui/gear-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/gear-outline-duo.js +5 -0
- package/dist/icons/ui/gear-outline-duo.js.map +1 -0
- package/dist/icons/ui/greek-temple-2-outline-duo.d.ts +3 -0
- package/dist/icons/ui/greek-temple-2-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/greek-temple-2-outline-duo.js +5 -0
- package/dist/icons/ui/greek-temple-2-outline-duo.js.map +1 -0
- package/dist/icons/ui/heart-glyph.d.ts +3 -1
- package/dist/icons/ui/heart-glyph.d.ts.map +1 -1
- package/dist/icons/ui/heart-glyph.js +3 -1
- package/dist/icons/ui/heart-glyph.js.map +1 -1
- package/dist/icons/ui/heart.d.ts +3 -1
- package/dist/icons/ui/heart.d.ts.map +1 -1
- package/dist/icons/ui/heart.js +3 -1
- package/dist/icons/ui/heart.js.map +1 -1
- package/dist/icons/ui/laptop-2.d.ts +3 -0
- package/dist/icons/ui/laptop-2.d.ts.map +1 -0
- package/dist/icons/ui/laptop-2.js +5 -0
- package/dist/icons/ui/laptop-2.js.map +1 -0
- package/dist/icons/ui/life-ring-outline-duo.d.ts +3 -0
- package/dist/icons/ui/life-ring-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/life-ring-outline-duo.js +5 -0
- package/dist/icons/ui/life-ring-outline-duo.js.map +1 -0
- package/dist/icons/ui/mobile.d.ts +3 -0
- package/dist/icons/ui/mobile.d.ts.map +1 -0
- package/dist/icons/ui/mobile.js +5 -0
- package/dist/icons/ui/mobile.js.map +1 -0
- package/dist/icons/ui/office-3-outline-duo.d.ts +3 -0
- package/dist/icons/ui/office-3-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/office-3-outline-duo.js +5 -0
- package/dist/icons/ui/office-3-outline-duo.js.map +1 -0
- package/dist/icons/ui/palette-2-outline-duo.d.ts +3 -0
- package/dist/icons/ui/palette-2-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/palette-2-outline-duo.js +5 -0
- package/dist/icons/ui/palette-2-outline-duo.js.map +1 -0
- package/dist/icons/ui/plug-2-outline-duo.d.ts +3 -0
- package/dist/icons/ui/plug-2-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/plug-2-outline-duo.js +5 -0
- package/dist/icons/ui/plug-2-outline-duo.js.map +1 -0
- package/dist/icons/ui/plug-sparkle-outline-duo.d.ts +3 -0
- package/dist/icons/ui/plug-sparkle-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/plug-sparkle-outline-duo.js +5 -0
- package/dist/icons/ui/plug-sparkle-outline-duo.js.map +1 -0
- package/dist/icons/ui/refresh-clockwise-outline-duo.d.ts +3 -0
- package/dist/icons/ui/refresh-clockwise-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/refresh-clockwise-outline-duo.js +5 -0
- package/dist/icons/ui/refresh-clockwise-outline-duo.js.map +1 -0
- package/dist/icons/ui/scale-outline-duo.d.ts +3 -0
- package/dist/icons/ui/scale-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/scale-outline-duo.js +5 -0
- package/dist/icons/ui/scale-outline-duo.js.map +1 -0
- package/dist/icons/ui/shop-outline-duo.d.ts +3 -0
- package/dist/icons/ui/shop-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/shop-outline-duo.js +5 -0
- package/dist/icons/ui/shop-outline-duo.js.map +1 -0
- package/dist/icons/ui/tag-outline-duo.d.ts +3 -0
- package/dist/icons/ui/tag-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/tag-outline-duo.js +5 -0
- package/dist/icons/ui/tag-outline-duo.js.map +1 -0
- package/dist/icons/ui/ticket-outline-duo.d.ts +3 -0
- package/dist/icons/ui/ticket-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/ticket-outline-duo.js +5 -0
- package/dist/icons/ui/ticket-outline-duo.js.map +1 -0
- package/dist/icons/ui/trash-2.d.ts +3 -1
- package/dist/icons/ui/trash-2.d.ts.map +1 -1
- package/dist/icons/ui/trash-2.js +3 -1
- package/dist/icons/ui/trash-2.js.map +1 -1
- package/dist/icons/ui/users-6-outline-duo.d.ts +3 -0
- package/dist/icons/ui/users-6-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/users-6-outline-duo.js +5 -0
- package/dist/icons/ui/users-6-outline-duo.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/{components/date-picker/day-label.d.ts → lib/calendar-day.d.ts} +1 -1
- package/dist/lib/calendar-day.d.ts.map +1 -0
- package/dist/{components/date-picker/day-label.js → lib/calendar-day.js} +1 -1
- package/dist/lib/calendar-day.js.map +1 -0
- package/dist/lib/cn-tables.js +5 -5
- package/dist/lib/cn-tables.js.map +1 -1
- package/dist/lib/column-title.d.ts.map +1 -0
- package/dist/lib/column-title.js.map +1 -0
- package/dist/{components/date-picker/presets.d.ts → lib/date-presets.d.ts} +2 -2
- package/dist/lib/date-presets.d.ts.map +1 -0
- package/dist/{components/date-picker/presets.js → lib/date-presets.js} +2 -2
- package/dist/lib/date-presets.js.map +1 -0
- package/dist/lib/field-context.d.ts +21 -0
- package/dist/lib/field-context.d.ts.map +1 -0
- package/dist/lib/field-context.js +14 -0
- package/dist/lib/field-context.js.map +1 -0
- package/dist/lib/motion.d.ts +4 -2
- package/dist/lib/motion.d.ts.map +1 -1
- package/dist/lib/motion.js +4 -2
- package/dist/lib/motion.js.map +1 -1
- package/dist/lib/use-animated-height.d.ts +6 -0
- package/dist/lib/use-animated-height.d.ts.map +1 -0
- package/dist/lib/use-animated-height.js +67 -0
- package/dist/lib/use-animated-height.js.map +1 -0
- package/dist/primitives/lib/segmented-control.js +2 -2
- package/dist/primitives/lib/segmented-control.js.map +1 -1
- package/dist/primitives/ui/autocomplete.js +1 -1
- package/dist/primitives/ui/autocomplete.js.map +1 -1
- package/dist/primitives/ui/button.js +6 -6
- package/dist/primitives/ui/button.js.map +1 -1
- package/dist/primitives/ui/card.js +1 -1
- package/dist/primitives/ui/card.js.map +1 -1
- package/dist/primitives/ui/checkbox.js +1 -1
- package/dist/primitives/ui/checkbox.js.map +1 -1
- package/dist/primitives/ui/combobox.js +3 -3
- package/dist/primitives/ui/combobox.js.map +1 -1
- package/dist/primitives/ui/dialog.d.ts.map +1 -1
- package/dist/primitives/ui/dialog.js +4 -2
- package/dist/primitives/ui/dialog.js.map +1 -1
- package/dist/primitives/ui/drawer.js +1 -1
- package/dist/primitives/ui/drawer.js.map +1 -1
- package/dist/primitives/ui/empty.js +2 -2
- package/dist/primitives/ui/empty.js.map +1 -1
- package/dist/primitives/ui/group.js +2 -2
- package/dist/primitives/ui/group.js.map +1 -1
- package/dist/primitives/ui/input-group.js +1 -1
- package/dist/primitives/ui/input-group.js.map +1 -1
- package/dist/primitives/ui/input.js +2 -2
- package/dist/primitives/ui/input.js.map +1 -1
- package/dist/primitives/ui/menu.d.ts +1 -1
- package/dist/primitives/ui/menu.d.ts.map +1 -1
- package/dist/primitives/ui/menu.js +1 -1
- package/dist/primitives/ui/menu.js.map +1 -1
- package/dist/primitives/ui/number-field.js +1 -1
- package/dist/primitives/ui/number-field.js.map +1 -1
- package/dist/primitives/ui/otp-field.js +1 -1
- package/dist/primitives/ui/otp-field.js.map +1 -1
- package/dist/primitives/ui/popover.js +1 -1
- package/dist/primitives/ui/popover.js.map +1 -1
- package/dist/primitives/ui/preview-card.js +1 -1
- package/dist/primitives/ui/preview-card.js.map +1 -1
- package/dist/primitives/ui/radio-group.js +1 -1
- package/dist/primitives/ui/radio-group.js.map +1 -1
- package/dist/primitives/ui/select.js +2 -2
- package/dist/primitives/ui/select.js.map +1 -1
- package/dist/primitives/ui/sheet.d.ts +4 -3
- package/dist/primitives/ui/sheet.d.ts.map +1 -1
- package/dist/primitives/ui/sheet.js +113 -7
- package/dist/primitives/ui/sheet.js.map +1 -1
- package/dist/primitives/ui/sidebar.js +2 -2
- package/dist/primitives/ui/sidebar.js.map +1 -1
- package/dist/primitives/ui/skeleton.js +1 -1
- package/dist/primitives/ui/skeleton.js.map +1 -1
- package/dist/primitives/ui/switch.d.ts +2 -2
- package/dist/primitives/ui/switch.d.ts.map +1 -1
- package/dist/primitives/ui/switch.js +2 -2
- package/dist/primitives/ui/switch.js.map +1 -1
- package/dist/primitives/ui/table.js +4 -4
- package/dist/primitives/ui/table.js.map +1 -1
- package/dist/primitives/ui/textarea.js +2 -2
- package/dist/primitives/ui/textarea.js.map +1 -1
- package/dist/primitives/ui/toast.js +2 -2
- package/dist/primitives/ui/toast.js.map +1 -1
- package/dist/primitives/ui/toggle-group.js +1 -1
- package/dist/primitives/ui/toggle-group.js.map +1 -1
- package/dist/primitives/ui/toggle.js +1 -1
- package/dist/primitives/ui/toggle.js.map +1 -1
- package/dist/primitives/ui/toolbar.js +1 -1
- package/dist/primitives/ui/toolbar.js.map +1 -1
- package/dist/primitives/ui/tooltip.js +1 -1
- package/dist/primitives/ui/tooltip.js.map +1 -1
- package/dist/styles/extensions.css +5 -0
- package/dist/styles/hover.test.tsx +154 -0
- package/dist/styles/rtl.test.tsx +1 -1
- package/dist/styles/theme-switch-tokens.test.tsx +96 -0
- package/dist/styles/theme.css +90 -10
- package/dist/styles/tokens-artwork.css +115 -0
- package/dist/styles/tokens-charts.css +81 -0
- package/dist/styles/tokens-motion.css +60 -0
- package/dist/styles/tokens.css +113 -342
- package/dist/styles/tokens.test.tsx +187 -4
- package/eslint/restricted-classes.js +6 -0
- package/package.json +5 -1
- package/stylelint/index.d.ts +1 -1
- package/stylelint/index.js +9 -2
- package/dist/components/country-select/country-flag.d.ts.map +0 -1
- package/dist/components/country-select/country-flag.js.map +0 -1
- package/dist/components/data-grid/column-title.d.ts.map +0 -1
- package/dist/components/data-grid/column-title.js.map +0 -1
- package/dist/components/date-picker/day-label.d.ts.map +0 -1
- package/dist/components/date-picker/day-label.js.map +0 -1
- package/dist/components/date-picker/presets.d.ts.map +0 -1
- package/dist/components/date-picker/presets.js.map +0 -1
- package/dist/components/payment-logos/flag.d.ts.map +0 -1
- package/dist/components/payment-logos/flag.js.map +0 -1
- package/dist/components/select/select-combobox.d.ts.map +0 -1
- package/dist/components/select/select-combobox.js.map +0 -1
- /package/dist/components/{country-select → flag}/country-flag.d.ts +0 -0
- /package/dist/components/{country-select → flag}/country-flag.js +0 -0
- /package/dist/components/{payment-logos → flag}/flag.d.ts +0 -0
- /package/dist/{components/data-grid → lib}/column-title.d.ts +0 -0
- /package/dist/{components/data-grid → lib}/column-title.js +0 -0
package/dist/styles/tokens.css
CHANGED
|
@@ -7,17 +7,22 @@
|
|
|
7
7
|
*
|
|
8
8
|
* `.dark` (a class on <html>) switches the theme; `.light` scopes a subtree back to light (ThemeProvider
|
|
9
9
|
* uses both). This is the only file with literal colours.
|
|
10
|
+
*
|
|
11
|
+
* Chart, artwork and motion tokens live in the three files imported below. The longer notes that explain
|
|
12
|
+
* groups of tokens are in docs/token-notes.md; each comment here keeps the first sentence.
|
|
10
13
|
*/
|
|
11
14
|
|
|
15
|
+
@import "./tokens-charts.css";
|
|
16
|
+
@import "./tokens-artwork.css";
|
|
17
|
+
@import "./tokens-motion.css";
|
|
18
|
+
|
|
12
19
|
:root,
|
|
13
20
|
.light {
|
|
14
21
|
color-scheme: light;
|
|
15
22
|
|
|
16
23
|
/*
|
|
17
|
-
* Dodo Nest primitives (Figma "Dodo Nest Design System" > Foundations > Colors): 12 steps per family,
|
|
18
|
-
*
|
|
19
|
-
* and pink replace Tailwind's ramps of the same name, so every token that reads them follows the Dodo
|
|
20
|
-
* Nest palette. White (`--color-white`, Figma White & Black/White) is a primitive of its own.
|
|
24
|
+
* Dodo Nest primitives (Figma "Dodo Nest Design System" > Foundations > Colors): 12 steps per family, 25 =
|
|
25
|
+
* lightest, 950 = darkest.
|
|
21
26
|
*/
|
|
22
27
|
--color-grey-25: #fbfbfb;
|
|
23
28
|
--color-grey-50: #f7f7f7;
|
|
@@ -31,7 +36,7 @@
|
|
|
31
36
|
--color-grey-800: #2a2a2a;
|
|
32
37
|
--color-grey-900: #202020;
|
|
33
38
|
--color-grey-950: #171717;
|
|
34
|
-
--color-grey-975: #
|
|
39
|
+
--color-grey-975: #0e0e0e; /* the dark page: below 950 so dark mode reads black, not grey */
|
|
35
40
|
|
|
36
41
|
--color-pulse-25: #f9feef;
|
|
37
42
|
--color-pulse-50: #eefcd4;
|
|
@@ -79,11 +84,11 @@
|
|
|
79
84
|
--color-amber-300: #fec674;
|
|
80
85
|
--color-amber-400: #fdaf35;
|
|
81
86
|
--color-amber-500: #ed9617;
|
|
82
|
-
--color-amber-600: #
|
|
83
|
-
--color-amber-700: #
|
|
84
|
-
--color-amber-800: #
|
|
85
|
-
--color-amber-900: #
|
|
86
|
-
--color-amber-950: #
|
|
87
|
+
--color-amber-600: #ab6404;
|
|
88
|
+
--color-amber-700: #8c4f01;
|
|
89
|
+
--color-amber-800: #713c01;
|
|
90
|
+
--color-amber-900: #5a2d00;
|
|
91
|
+
--color-amber-950: #411e00;
|
|
87
92
|
|
|
88
93
|
--color-red-25: #fff8f8;
|
|
89
94
|
--color-red-50: #ffefee;
|
|
@@ -105,11 +110,11 @@
|
|
|
105
110
|
--color-orange-300: #ffc29a;
|
|
106
111
|
--color-orange-400: #ffaa74;
|
|
107
112
|
--color-orange-500: #ff8b37;
|
|
108
|
-
--color-orange-600: #
|
|
109
|
-
--color-orange-700: #
|
|
110
|
-
--color-orange-800: #
|
|
111
|
-
--color-orange-900: #
|
|
112
|
-
--color-orange-950: #
|
|
113
|
+
--color-orange-600: #b74d02;
|
|
114
|
+
--color-orange-700: #943b00;
|
|
115
|
+
--color-orange-800: #722a00;
|
|
116
|
+
--color-orange-900: #591d00;
|
|
117
|
+
--color-orange-950: #360e00;
|
|
113
118
|
|
|
114
119
|
--color-violet-25: #fafaff;
|
|
115
120
|
--color-violet-50: #f4f2ff;
|
|
@@ -137,10 +142,35 @@
|
|
|
137
142
|
--color-pink-900: #62003f;
|
|
138
143
|
--color-pink-950: #49002c;
|
|
139
144
|
|
|
145
|
+
/* White and black (Figma White & Black), declared with the palette they belong to. */
|
|
146
|
+
--color-white: #ffffff;
|
|
147
|
+
--color-black: #000000;
|
|
148
|
+
|
|
140
149
|
/*
|
|
141
|
-
*
|
|
142
|
-
*
|
|
150
|
+
* Artwork colours (`--color-art-*`): the exact shades of the Dodo logo and of drawn artwork (milestone gems,
|
|
151
|
+
* leaderboard medals) that the ramps above do not hold.
|
|
143
152
|
*/
|
|
153
|
+
--color-art-ink: #00160d; /* the logo's glyph and wordmark */
|
|
154
|
+
--color-art-lime-edge: #b3e910; /* the logo mark's edge */
|
|
155
|
+
--color-art-sky-200: #b2ddff;
|
|
156
|
+
--color-art-sky-300: #84caff;
|
|
157
|
+
--color-art-sky-400: #53b1fd;
|
|
158
|
+
--color-art-sky-600: #1570ef;
|
|
159
|
+
--color-art-mint-200: #abefc6;
|
|
160
|
+
--color-art-mint-300: #75e0a7;
|
|
161
|
+
--color-art-mint-400: #47cd89;
|
|
162
|
+
--color-art-indigo-300: #a4bcfd;
|
|
163
|
+
--color-art-indigo-400: #8098f9;
|
|
164
|
+
--color-art-indigo-700: #3538cd;
|
|
165
|
+
--color-art-purple-700: #5925dc;
|
|
166
|
+
--color-art-slate-300: #d0d5dd;
|
|
167
|
+
--color-art-taupe-400: #b8afaf;
|
|
168
|
+
--color-art-iron-500: #6b6b6b;
|
|
169
|
+
--color-art-gold: #efa006;
|
|
170
|
+
--color-art-silver: #868b95;
|
|
171
|
+
--color-art-bronze: #d67d56;
|
|
172
|
+
|
|
173
|
+
/* coss tokens with the Dodo Nest values (Figma > Foundations > Color Tokens). */
|
|
144
174
|
--background: var(--color-white); /* surface/primary: the page */
|
|
145
175
|
--field: initial; /* unset: fields paint the --background of their own context (merchant themes too) */
|
|
146
176
|
--card: var(--color-white); /* surface/primary */
|
|
@@ -173,17 +203,10 @@
|
|
|
173
203
|
--primary: var(--color-grey-950); /* the primary button fill and checked controls */
|
|
174
204
|
--primary-foreground: var(--color-white); /* content/inverted */
|
|
175
205
|
--link: var(--color-blue-600); /* content/accent: link text; a theme fits it to 4.5:1 */
|
|
176
|
-
/*
|
|
177
|
-
* Brand (Figma surface/brand, Button "Primary"): the Pulse lime for the one brand action in a view.
|
|
178
|
-
* The fill is a gradient from --brand to --brand-hover; hover moves one step darker, pressed is flat
|
|
179
|
-
* --brand-pressed. Text and icons use --brand-foreground (grey/950). The same in both themes.
|
|
180
|
-
*/
|
|
206
|
+
/* Brand (Figma surface/brand): the Pulse lime for brand-filled controls and marks. */
|
|
181
207
|
--brand: var(--color-pulse-200);
|
|
182
|
-
--brand-hover: var(--color-pulse-300);
|
|
183
|
-
--brand-pressed: var(--color-pulse-400);
|
|
184
208
|
--brand-foreground: var(--color-grey-950); /* text/on-brand */
|
|
185
209
|
--brand-border: var(--color-pulse-400); /* border/brand-primary: the edge of brand-filled controls */
|
|
186
|
-
--brand-shadow: var(--color-pulse-700); /* shadow colour, used at 14% */
|
|
187
210
|
/* Status: the base token is the strong 500 step (fills, dots, borders); *-foreground is the 600 text
|
|
188
211
|
* (700 for warning). */
|
|
189
212
|
--destructive: var(--color-red-500); /* surface/error-primary */
|
|
@@ -198,11 +221,7 @@
|
|
|
198
221
|
* about 4.3:1, below WCAG AA (4.5:1), and the axe checks fail. amber/700 passes.
|
|
199
222
|
*/
|
|
200
223
|
--warning-foreground: var(--color-amber-700);
|
|
201
|
-
/*
|
|
202
|
-
* Soft tones (Figma surface/<tone>-secondary and border/<tone>): the fill and the 1px border of a Badge.
|
|
203
|
-
* The text of a tone is its *-foreground. Orange, pink and violet are category tones with no status
|
|
204
|
-
* meaning. --border-highlight is the lighter line just inside a badge's border (border/highlight).
|
|
205
|
-
*/
|
|
224
|
+
/* Soft tones (Figma surface/<tone>-secondary and border/<tone>): the fill and the 1px border of a Badge. */
|
|
206
225
|
--destructive-subtle: var(--color-red-50);
|
|
207
226
|
--destructive-border: var(--color-red-200);
|
|
208
227
|
--info-subtle: var(--color-blue-50);
|
|
@@ -212,7 +231,7 @@
|
|
|
212
231
|
--warning-subtle: var(--color-amber-50);
|
|
213
232
|
--warning-border: var(--color-amber-200);
|
|
214
233
|
/* TestModeBanner strip: the dark strip the dashboard used (#1F2329), on the grey palette. */
|
|
215
|
-
--test-banner: var(--color-grey-
|
|
234
|
+
--test-banner: var(--color-grey-950);
|
|
216
235
|
--test-banner-foreground: var(--color-white);
|
|
217
236
|
--orange-subtle: var(--color-orange-50);
|
|
218
237
|
--orange-border: var(--color-orange-200);
|
|
@@ -230,16 +249,12 @@
|
|
|
230
249
|
--pink: var(--color-pink-500); /* surface/pink-primary: solid pink fills (Progress) */
|
|
231
250
|
--violet: var(--color-violet-500); /* surface/violet-primary: solid violet fills (Progress) */
|
|
232
251
|
--border-highlight: --alpha(var(--color-white) / 48%);
|
|
233
|
-
/*
|
|
234
|
-
* Figma tokens a Checkbox uses. --brand-edge is border/brand (the lime ring of a checked control);
|
|
235
|
-
* --brand-subtle is surface/brand-secondary; --tertiary is surface/tertiary (a disabled checked box)
|
|
236
|
-
* and --tertiary-foreground content/tertiary (disabled text and icons);
|
|
237
|
-
* --border-subtle is border/secondary (a disabled control's ring).
|
|
238
|
-
*/
|
|
252
|
+
/* Figma tokens a Checkbox uses. */
|
|
239
253
|
--brand-edge: var(--color-pulse-200);
|
|
240
|
-
--error-edge: var(--color-red-
|
|
254
|
+
--error-edge: var(--color-red-500); /* border/error-primary: an invalid field or a failed code; 3:1 on white */
|
|
241
255
|
--success-edge: var(--color-green-400); /* border/success-primary: the ring of an accepted code (OTP) */
|
|
242
256
|
--brand-subtle: var(--color-pulse-50);
|
|
257
|
+
--brand-selected: var(--color-pulse-25); /* a selected Radio card's fill */
|
|
243
258
|
--brand-subtle-hover: var(--color-pulse-100); /* a hovered Surface/Brand-secondary control (Dodo Games) */
|
|
244
259
|
--tertiary: var(--color-grey-200);
|
|
245
260
|
--knob: var(--color-white);
|
|
@@ -248,9 +263,8 @@
|
|
|
248
263
|
--data-primary: var(--color-grey-700); /* content/data-primary: the strong data series (reserved balance) */
|
|
249
264
|
--border-subtle: --alpha(var(--color-black) / 8%);
|
|
250
265
|
/*
|
|
251
|
-
* Button fills (Figma > Color Tokens > Gradient/Button-*): the top and bottom stop of each variant, and the
|
|
252
|
-
*
|
|
253
|
-
* to-button-primary-end`; the bottom stop also colours its ring.
|
|
266
|
+
* Button fills (Figma > Color Tokens > Gradient/Button-*): the top and bottom stop of each variant, and the same
|
|
267
|
+
* pair one step darker on hover.
|
|
254
268
|
*/
|
|
255
269
|
--button-primary-start: var(--color-grey-600);
|
|
256
270
|
--button-primary-end: var(--color-grey-950);
|
|
@@ -262,7 +276,7 @@
|
|
|
262
276
|
--button-primary-disabled-foreground: initial;
|
|
263
277
|
--button-primary-disabled-opacity: 40%;
|
|
264
278
|
--button-secondary-start: var(--color-white);
|
|
265
|
-
--button-secondary-end: var(--color-grey-
|
|
279
|
+
--button-secondary-end: var(--color-grey-50);
|
|
266
280
|
--button-secondary-hover-start: var(--color-grey-50);
|
|
267
281
|
--button-secondary-hover-end: var(--color-grey-100);
|
|
268
282
|
--button-destructive-start: var(--color-red-500);
|
|
@@ -273,72 +287,15 @@
|
|
|
273
287
|
--button-warning-end: var(--color-amber-600);
|
|
274
288
|
--button-warning-hover-start: var(--color-amber-600);
|
|
275
289
|
--button-warning-hover-end: var(--color-amber-700);
|
|
276
|
-
/* Wallet buttons (Apple Pay, Google Pay): the brands' required black-on-light / white-on-dark marks. */
|
|
277
|
-
--wallet: #000000;
|
|
278
|
-
--wallet-foreground: #ffffff;
|
|
279
|
-
/* Series, in order. --chart-1 is the dashboard lime (2.1:1, pair it with a label); 2-8 keep 3:1. */
|
|
280
|
-
--chart-1: var(--color-pulse-500);
|
|
281
|
-
--chart-2: var(--color-blue-600); /* content/accent */
|
|
282
|
-
--chart-3: var(--color-violet-600); /* content/violet */
|
|
283
|
-
--chart-4: var(--color-orange-500); /* below 3:1 on white, like --chart-1: pair it with a label */
|
|
284
|
-
--chart-5: var(--color-pink-600); /* content/pink */
|
|
285
|
-
--chart-6: var(--color-amber-600);
|
|
286
|
-
--chart-7: var(--color-green-600);
|
|
287
|
-
--chart-8: var(--color-grey-500);
|
|
288
|
-
/* Bars, lines and areas: solid Pulse and Blue 400, the same in both modes (1.5:1 and 2.8:1 on white, pair them
|
|
289
|
-
* with a label or a tooltip), and Violet 500 for a third series (Violet 400 in dark). */
|
|
290
|
-
--chart-solid-1: var(--color-pulse-400);
|
|
291
|
-
--chart-solid-2: var(--color-blue-400);
|
|
292
|
-
--chart-solid-3: var(--color-violet-500);
|
|
293
|
-
/* The previous period: a dashed reference line, as the dashboard draws it (not a series). */
|
|
294
|
-
--chart-comparison: var(--color-grey-300);
|
|
295
|
-
/* ComparisonBars: the previous-period marker and the hatching where a value fell short. */
|
|
296
|
-
--chart-comparison-marker: var(--color-pulse-700);
|
|
297
|
-
--chart-hatch: repeating-linear-gradient(
|
|
298
|
-
135deg,
|
|
299
|
-
var(--chart-scale-pattern-color) 0 1.5px,
|
|
300
|
-
transparent 1.5px 6px
|
|
301
|
-
);
|
|
302
|
-
/* Up and down values (a delta, the change since last period). Pair them with a sign or an icon. */
|
|
303
|
-
--chart-positive: var(--color-green-600);
|
|
304
|
-
--chart-negative: var(--color-red-500);
|
|
305
|
-
/*
|
|
306
|
-
* Diverging scale (change against a baseline): neg-3 is the strongest decrease, 0 no change, pos-3 the
|
|
307
|
-
* strongest increase. Every step, the grey midpoint included, keeps 3:1 against the background.
|
|
308
|
-
*/
|
|
309
|
-
--chart-diverging-neg-3: var(--color-red-700);
|
|
310
|
-
--chart-diverging-neg-2: var(--color-red-600);
|
|
311
|
-
--chart-diverging-neg-1: var(--color-red-500);
|
|
312
|
-
--chart-diverging-0: var(--color-grey-500);
|
|
313
|
-
--chart-diverging-pos-1: var(--color-green-500);
|
|
314
|
-
--chart-diverging-pos-2: var(--color-green-600);
|
|
315
|
-
--chart-diverging-pos-3: var(--color-green-700);
|
|
316
|
-
/*
|
|
317
|
-
* Sequential chart scale (heatmap, choropleth, binned data), 01 = empty / lowest, 05 = highest. 02-04 are
|
|
318
|
-
* built from --chart-1 over the page background, so they follow the theme without a .dark copy.
|
|
319
|
-
*/
|
|
320
|
-
--chart-scale-01: var(--accent);
|
|
321
|
-
--chart-scale-02: color-mix(in oklab, var(--chart-1) 30%, var(--background));
|
|
322
|
-
--chart-scale-03: color-mix(in oklab, var(--chart-1) 55%, var(--background));
|
|
323
|
-
--chart-scale-04: color-mix(in oklab, var(--chart-1) 80%, var(--background));
|
|
324
|
-
--chart-scale-05: var(--chart-1);
|
|
325
|
-
--chart-scale-pattern-color: var(--border);
|
|
326
|
-
--code: var(--color-white);
|
|
327
|
-
--code-foreground: var(--foreground);
|
|
328
|
-
--code-highlight: --alpha(var(--color-black) / 4%);
|
|
329
290
|
--radius: 0.625rem;
|
|
330
291
|
--sidebar-accent: --alpha(var(--color-black) / 4%);
|
|
331
292
|
--sidebar-accent-foreground: var(--foreground);
|
|
332
293
|
--sidebar-border: --alpha(var(--color-black) / 6%);
|
|
333
294
|
--sidebar-foreground: color-mix(in srgb, var(--foreground) 64%, var(--sidebar));
|
|
334
|
-
--
|
|
335
|
-
--sidebar-primary-foreground: var(--primary-foreground);
|
|
295
|
+
--code-highlight: --alpha(var(--color-black) / 4%);
|
|
336
296
|
--sidebar-ring: var(--color-grey-400);
|
|
337
297
|
|
|
338
|
-
/*
|
|
339
|
-
* Dodo Nest typography primitives (Figma > Foundations > Typography Tokens). theme.css builds the
|
|
340
|
-
* text styles from them (`text-heading-primary` ... `text-label-secondary`). Theme-independent.
|
|
341
|
-
*/
|
|
298
|
+
/* Dodo Nest typography primitives (Figma > Foundations > Typography Tokens). */
|
|
342
299
|
--font-size-12: 0.75rem;
|
|
343
300
|
--font-size-14: 0.875rem;
|
|
344
301
|
--font-size-16: 1rem;
|
|
@@ -360,11 +317,8 @@
|
|
|
360
317
|
--letter-spacing-tightest: -0.4px; /* 24 heading and key figures */
|
|
361
318
|
|
|
362
319
|
/*
|
|
363
|
-
* Elevation. --shadow-color is the colour and strength of `shadow-xs` ... `shadow-xl` (theme.css):
|
|
364
|
-
*
|
|
365
|
-
* (`shadow-lg/5`) sets the alpha outright, as on any Tailwind colour.
|
|
366
|
-
* --shadow-highlight is the 1px edge on the `before:` layer of controls and surfaces (`before:shadow-highlight`):
|
|
367
|
-
* a shade under the bottom edge in light mode, a highlight along the top edge in dark mode.
|
|
320
|
+
* Elevation. --shadow-color is the colour and strength of `shadow-xs` ... `shadow-xl` (theme.css): Tailwind's 10%
|
|
321
|
+
* black, in both themes, so existing shadows do not change.
|
|
368
322
|
*/
|
|
369
323
|
--shadow-color: --alpha(var(--color-black) / 10%);
|
|
370
324
|
--shadow-highlight: 0 1px --alpha(var(--color-black) / 4%);
|
|
@@ -390,85 +344,23 @@
|
|
|
390
344
|
--alpha(var(--brand-border) / 68%) 82%,
|
|
391
345
|
transparent
|
|
392
346
|
);
|
|
393
|
-
/*
|
|
394
|
-
* The Leaderboard podium glows (Figma Leaderboard › .Podium cell): gold, silver and bronze at 40% from the top-left
|
|
395
|
-
* corner, transparent at 70%. Illustration, as in the dashboard code: the same in light and dark.
|
|
396
|
-
*/
|
|
397
|
-
--leaderboard-glow-first: radial-gradient(at top left, rgb(239 160 6 / 40%), transparent 70%);
|
|
398
|
-
--leaderboard-glow-second: radial-gradient(at top left, rgb(134 139 149 / 40%), transparent 70%);
|
|
399
|
-
--leaderboard-glow-third: radial-gradient(at top left, rgb(214 125 86 / 40%), transparent 70%);
|
|
400
|
-
/*
|
|
401
|
-
* The help panel's dot field (the dashboard's support/Blue.png and Green.png): 2px dots on a 5px grid, at half strength,
|
|
402
|
-
* fading in from the top-left and bottom-right corners. Blue in light, the brand lime in dark.
|
|
403
|
-
*/
|
|
404
|
-
--support-art-dots: radial-gradient(circle, var(--color-blue-400) 1.1px, transparent 1.35px);
|
|
405
|
-
--support-art-mask:
|
|
406
|
-
radial-gradient(at top left, black, transparent 45%), radial-gradient(at bottom right, black, transparent 55%);
|
|
407
|
-
/*
|
|
408
|
-
* Featured icon spheres (the dashboard's verification badges, `IconCircleBase`): each tone's fill runs from `-top`
|
|
409
|
-
* to `-bottom` under the sphere's white gloss. Illustration, as in the dashboard; neutral and warning lift in dark.
|
|
410
|
-
*/
|
|
411
|
-
--sphere-neutral-top: #5d5d5d;
|
|
412
|
-
--sphere-neutral-bottom: #454545;
|
|
413
|
-
--sphere-success-top: #079455;
|
|
414
|
-
--sphere-success-bottom: #085d3a;
|
|
415
|
-
--sphere-warning-top: #b54708;
|
|
416
|
-
--sphere-warning-bottom: #b54708;
|
|
417
|
-
--sphere-error-top: #d92d20;
|
|
418
|
-
--sphere-error-bottom: #912018;
|
|
419
|
-
--sphere-info-top: #175cd3;
|
|
420
|
-
--sphere-info-bottom: #175cd3;
|
|
421
|
-
/*
|
|
422
|
-
* Milestones (Design File › Merchant Milestones): per category, `-gem` the gem art, `-tint` the card top, `-edge` its
|
|
423
|
-
* 1px ring, `-sparkle` the dots and the share card top. Gems are the same in both modes.
|
|
424
|
-
*/
|
|
425
|
-
--milestone-geography-gem: #1570ef;
|
|
426
|
-
--milestone-geography-tint: #84caff;
|
|
427
|
-
--milestone-geography-edge: #84caff;
|
|
428
|
-
--milestone-geography-sparkle: #53b1fd;
|
|
429
|
-
--milestone-revenue-gem: #067647;
|
|
430
|
-
--milestone-revenue-tint: #75e0a7;
|
|
431
|
-
--milestone-revenue-edge: #75e0a7;
|
|
432
|
-
--milestone-revenue-sparkle: #47cd89;
|
|
433
|
-
--milestone-growth-gem: #3538cd;
|
|
434
|
-
--milestone-growth-tint: #a4bcfd;
|
|
435
|
-
--milestone-growth-edge: #a4bcfd;
|
|
436
|
-
--milestone-growth-sparkle: #8098f9;
|
|
437
|
-
--milestone-customers-gem: #5925dc;
|
|
438
|
-
--milestone-customers-tint: #bdb4fe;
|
|
439
|
-
--milestone-customers-edge: #bdb4fe;
|
|
440
|
-
--milestone-customers-sparkle: #9b8afb;
|
|
441
|
-
/* The "milestone reached" notice: the category's lightest tint (`-wash`) with a 1px edge a step darker. */
|
|
442
|
-
--milestone-geography-wash: #eff8ff;
|
|
443
|
-
--milestone-geography-wash-edge: #b2ddff;
|
|
444
|
-
--milestone-revenue-wash: #ecfdf3;
|
|
445
|
-
--milestone-revenue-wash-edge: #abefc6;
|
|
446
|
-
--milestone-growth-wash: #eef4ff;
|
|
447
|
-
--milestone-growth-wash-edge: #c7d7fe;
|
|
448
|
-
--milestone-customers-wash: #f4f3ff;
|
|
449
|
-
--milestone-customers-wash-edge: #d9d6fe;
|
|
450
|
-
--milestone-glyph: #ffffff; /* the symbol on a reached gem */
|
|
451
|
-
/* A milestone not reached yet: a grey gem and a grey card top. */
|
|
452
|
-
--milestone-locked-gem: #b8afaf;
|
|
453
|
-
--milestone-locked-glyph: #aeaeae;
|
|
454
|
-
--milestone-locked-tint: #d0d5dd;
|
|
455
|
-
--milestone-locked-edge: var(--border);
|
|
456
|
-
--milestone-edge-end: var(--border); /* the bottom of a reached card's edge */
|
|
457
|
-
/* Glass streaks: white 0-30-0% (reached), 10-40-10% (locked). */
|
|
458
|
-
--milestone-streak: --alpha(var(--color-white) / 30%);
|
|
459
|
-
--milestone-locked-streak: --alpha(var(--color-white) / 40%);
|
|
460
|
-
--milestone-locked-streak-edge: --alpha(var(--color-white) / 10%);
|
|
461
|
-
/* A sale share card: the lime amount and the dark ink of its outline and headline, the same in both themes. */
|
|
462
|
-
--share-amount: var(--color-pulse-200);
|
|
463
|
-
--share-ink: var(--color-pulse-950);
|
|
464
347
|
/* Shadow/Tooltip in Figma: the lift of an overlay panel (the Date picker panel). */
|
|
465
348
|
--shadow-overlay: 0 1px 2px --alpha(var(--color-black) / 4%), 0 4px 12px --alpha(var(--color-black) / 8%);
|
|
466
349
|
/* Shadow/Dialog in Figma: the lift of a dialog tray over the scrim. */
|
|
467
350
|
--shadow-dialog: 0 2px 6px --alpha(var(--color-black) / 6%), 0 16px 32px --alpha(var(--color-black) / 12%);
|
|
468
351
|
/* Shadow/Panel in Figma: the white panel of a tray (Data table rows). */
|
|
469
352
|
--shadow-panel: 0 1px 1px --alpha(var(--color-black) / 5%), 0 3px 3px --alpha(var(--color-black) / 5%);
|
|
470
|
-
|
|
471
|
-
--
|
|
353
|
+
/* Button depth: a two-layer drop (1px tight, 4px soft) and an edge inside the fill. */
|
|
354
|
+
--shadow-button-primary: 0 1px 1px --alpha(var(--color-black) / 12%), 0 2px 4px --alpha(var(--color-black) / 16%);
|
|
355
|
+
--shadow-button-secondary: 0 1px 1px --alpha(var(--color-black) / 3%), 0 2px 4px --alpha(var(--color-black) / 4%);
|
|
356
|
+
--shadow-button-destructive:
|
|
357
|
+
0 1px 1px --alpha(var(--button-destructive-end) / 14%), 0 2px 4px --alpha(var(--button-destructive-end) / 20%);
|
|
358
|
+
--shadow-button-warning:
|
|
359
|
+
0 1px 1px --alpha(var(--button-warning-end) / 14%), 0 2px 4px --alpha(var(--button-warning-end) / 20%);
|
|
360
|
+
--inset-shadow-button-primary: inset 0 1px --alpha(var(--color-white) / 14%);
|
|
361
|
+
--inset-shadow-button-secondary: inset 0 -1px --alpha(var(--color-black) / 6%);
|
|
362
|
+
--inset-shadow-button-solid:
|
|
363
|
+
inset 0 1px --alpha(var(--color-white) / 16%), inset 0 -3px 6px -3px --alpha(var(--color-black) / 20%);
|
|
472
364
|
--inset-shadow-sunken: inset 0 1px --alpha(var(--color-black) / 4%); /* sunken tracks (menu switches) */
|
|
473
365
|
/* The recessed depth of a Switch track: one inner shadow (Figma Switch > depth). */
|
|
474
366
|
--inset-shadow-recessed: inset 0 2px 6px --alpha(var(--color-black) / 12%);
|
|
@@ -480,12 +372,18 @@
|
|
|
480
372
|
--rim-knob: linear-gradient(to bottom, --alpha(var(--color-white) / 30%), --alpha(var(--color-black) / 30%));
|
|
481
373
|
/*
|
|
482
374
|
* The Segmented control (Figma Segmented control): the track's depth is an inner shadow (0 1 2, Black 8%) and a 1px
|
|
483
|
-
* rim that fades from Black 8% at the top to transparent half way down
|
|
484
|
-
* (White to Black, at 16%).
|
|
375
|
+
* rim that fades from Black 8% at the top to transparent half way down.
|
|
485
376
|
*/
|
|
486
377
|
--inset-shadow-segmented: inset 0 1px 2px --alpha(var(--color-black) / 8%);
|
|
487
378
|
--rim-track: linear-gradient(to bottom, --alpha(var(--color-black) / 8%), transparent 50%);
|
|
488
|
-
--rim-segment: linear-gradient(to bottom, --alpha(var(--color-
|
|
379
|
+
--rim-segment: linear-gradient(to bottom, --alpha(var(--color-black) / 10%), --alpha(var(--color-black) / 16%));
|
|
380
|
+
--segment-thumb: var(--background); /* the raised segment: white on the grey track */
|
|
381
|
+
/* Values the primitives used to switch with `dark:` classes. */
|
|
382
|
+
--edge-clip: padding-box;
|
|
383
|
+
--skeleton-highlight: --alpha(var(--color-white) / 64%); /* the sheen across a skeleton */
|
|
384
|
+
--autofill-tint: 4%; /* a field the browser filled: this share of the text colour */
|
|
385
|
+
--stack-shade: 1%;
|
|
386
|
+
--stack-shade-panel: 2%;
|
|
489
387
|
/*
|
|
490
388
|
* The glossy pill of a Progress fill (Figma Progress bar > fill): a 1px rim, faint along the top and dark from the
|
|
491
389
|
* middle down (Black 4% to Black at 22%), and a lit top edge (Shadow/Bar-highlight: White 16% + White 8%).
|
|
@@ -497,25 +395,11 @@
|
|
|
497
395
|
);
|
|
498
396
|
--inset-shadow-bar: inset 0 1px --alpha(var(--color-white) / 16%), inset 0 1px --alpha(var(--color-white) / 8%);
|
|
499
397
|
|
|
500
|
-
/*
|
|
501
|
-
* Focus ring (theme-independent). Controls draw it with `focus-visible:ring-2 focus-visible:ring-offset-1`;
|
|
502
|
-
* custom CSS (`ring-(length:--focus-ring-width)`) and the forced-colours outline in base.css read these.
|
|
503
|
-
*/
|
|
398
|
+
/* Focus ring (theme-independent). */
|
|
504
399
|
--focus-ring-width: 2px;
|
|
505
400
|
--focus-ring-offset: 1px;
|
|
506
401
|
|
|
507
|
-
/*
|
|
508
|
-
--logo-mark: #c6fe1e;
|
|
509
|
-
--logo-mark-edge: #b3e910;
|
|
510
|
-
--logo-glyph: #00160d;
|
|
511
|
-
--logo-wordmark: #00160d;
|
|
512
|
-
--logo-wordmark-on-light: #00160d;
|
|
513
|
-
--logo-wordmark-on-dark: #ffffff;
|
|
514
|
-
|
|
515
|
-
/*
|
|
516
|
-
* Stacking order (theme-independent), mapped to `z-dropdown` ... `z-tooltip` in theme.css. Page-level
|
|
517
|
-
* layers only; portalled primitive popups stack through the `isolate` app root instead.
|
|
518
|
-
*/
|
|
402
|
+
/* Stacking order (theme-independent), mapped to `z-dropdown` ... `z-tooltip` in theme.css. */
|
|
519
403
|
--z-dropdown: 1000; /* non-portalled dropdown panels inside page content */
|
|
520
404
|
--z-sticky: 1100; /* sticky headers, toolbars and table headers */
|
|
521
405
|
--z-overlay: 1200; /* modal backdrops */
|
|
@@ -525,74 +409,24 @@
|
|
|
525
409
|
--z-tooltip: 1600; /* tooltips, always on top */
|
|
526
410
|
|
|
527
411
|
/*
|
|
528
|
-
*
|
|
529
|
-
*
|
|
530
|
-
* Pick a token by what the motion does (the comment), never by the nearest number.
|
|
531
|
-
* src/lib/motion.ts mirrors the durations in milliseconds for JavaScript.
|
|
412
|
+
* Deprecated: nothing in the library, the products or the docs reads these. They still resolve so
|
|
413
|
+
* apps on 1.x keep working, and they are removed in 2.0.0. Do not use them in new code.
|
|
532
414
|
*/
|
|
533
|
-
--
|
|
534
|
-
--
|
|
535
|
-
--
|
|
536
|
-
--
|
|
537
|
-
--
|
|
538
|
-
--
|
|
539
|
-
--
|
|
540
|
-
--
|
|
541
|
-
--
|
|
542
|
-
--motion-ease-bounce: cubic-bezier(0.34, 1.36, 0.64, 1); /* entrance pop (badge); never on a close */
|
|
543
|
-
--motion-ease-bounce-strong: cubic-bezier(0.34, 3.85, 0.64, 1); /* springy hover-out return */
|
|
544
|
-
--motion-ease-sheet: cubic-bezier(0.32, 0.72, 0, 1); /* touch sheets and drawers sliding in or settling after a drag (Vaul) */
|
|
545
|
-
/* A spring with a small overshoot (8%) as CSS: switch thumbs, radio dots, count pops. Never on a close. */
|
|
546
|
-
--motion-ease-spring: linear(
|
|
547
|
-
0,
|
|
548
|
-
0.042,
|
|
549
|
-
0.146,
|
|
550
|
-
0.284,
|
|
551
|
-
0.435,
|
|
552
|
-
0.582,
|
|
553
|
-
0.715,
|
|
554
|
-
0.828,
|
|
555
|
-
0.919,
|
|
556
|
-
0.987,
|
|
557
|
-
1.035,
|
|
558
|
-
1.064,
|
|
559
|
-
1.079,
|
|
560
|
-
1.084,
|
|
561
|
-
1.08,
|
|
562
|
-
1.071,
|
|
563
|
-
1.059,
|
|
564
|
-
1.047,
|
|
565
|
-
1.034,
|
|
566
|
-
1.023,
|
|
567
|
-
1.014,
|
|
568
|
-
1.006,
|
|
569
|
-
1.001,
|
|
570
|
-
0.997,
|
|
571
|
-
1
|
|
572
|
-
);
|
|
573
|
-
--motion-distance-micro: 4px; /* text swap */
|
|
574
|
-
--motion-distance-small: 6px; /* error shake, small segment */
|
|
575
|
-
--motion-distance-base: 8px; /* badge reveal, page slide, error shake large segment */
|
|
576
|
-
--motion-distance-medium: 12px; /* text reveal */
|
|
577
|
-
--motion-distance-large: 30px; /* check badge appear */
|
|
578
|
-
--motion-scale-large: 0.96; /* modal open / close: the scale it animates from */
|
|
579
|
-
--motion-scale-medium: 0.97; /* dropdown open */
|
|
580
|
-
--motion-scale-small: 0.98; /* tooltip open */
|
|
581
|
-
--motion-scale-tiny: 0.99; /* dropdown close */
|
|
582
|
-
--motion-blur-small: 2px; /* panel reveal, icon swap, text swap, skeleton reveal, number pop-in */
|
|
583
|
-
--motion-blur-medium: 3px; /* page slide, text reveal */
|
|
584
|
-
--motion-blur-large: 8px; /* success check open */
|
|
415
|
+
--brand-hover: var(--color-pulse-300); /* the lime button recipe that was never taken */
|
|
416
|
+
--brand-pressed: var(--color-pulse-400);
|
|
417
|
+
--brand-shadow: var(--color-pulse-700);
|
|
418
|
+
--code: var(--color-white); /* Code block paints bg-muted; --code-highlight stays */
|
|
419
|
+
--code-foreground: var(--foreground);
|
|
420
|
+
--sidebar-primary: var(--primary);
|
|
421
|
+
--sidebar-primary-foreground: var(--primary-foreground);
|
|
422
|
+
--inset-shadow-highlight: inset 0 1px --alpha(var(--color-white) / 16%); /* replaced by the button depth tokens */
|
|
423
|
+
--inset-shadow-pressed: inset 0 1px --alpha(var(--color-black) / 8%);
|
|
585
424
|
}
|
|
586
425
|
|
|
587
426
|
.dark {
|
|
588
427
|
color-scheme: dark;
|
|
589
428
|
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
/*
|
|
593
|
-
* Figma > Color Tokens, Dark mode. The Figma role is in the comment after each token. The --brand
|
|
594
|
-
* tokens stay the same in both themes, as Figma asks (content/static does not change).
|
|
595
|
-
*/
|
|
429
|
+
/* Figma > Color Tokens, Dark mode. */
|
|
596
430
|
--primary: var(--color-grey-100); /* surface/inverted */
|
|
597
431
|
--primary-foreground: var(--color-grey-950); /* content/inverted */
|
|
598
432
|
--accent: var(--color-grey-800); /* surface/hover */
|
|
@@ -602,10 +436,8 @@
|
|
|
602
436
|
--border: --alpha(var(--color-white) / 10%); /* border/primary: translucent, so it shows on every dark surface */
|
|
603
437
|
--card: var(--color-grey-975); /* surface/primary */
|
|
604
438
|
--card-foreground: var(--color-grey-100); /* content/primary */
|
|
605
|
-
--destructive: var(--color-red-500); /* surface/error-primary */
|
|
606
439
|
--destructive-foreground: var(--color-red-300); /* content/error */
|
|
607
440
|
--foreground: var(--color-grey-100); /* content/primary */
|
|
608
|
-
--info: var(--color-blue-500); /* surface/accent-primary */
|
|
609
441
|
--info-foreground: var(--color-blue-300); /* content/accent */
|
|
610
442
|
--input: --alpha(var(--color-white) / 15%); /* border/primary */
|
|
611
443
|
--link: var(--color-blue-300); /* content/accent */
|
|
@@ -613,15 +445,20 @@
|
|
|
613
445
|
--muted-foreground: var(--color-grey-400); /* content/secondary */
|
|
614
446
|
--placeholder: var(--muted-foreground);
|
|
615
447
|
--popover: var(--color-grey-900); /* surface/overlay: one step above the Grey 975 page, under the Grey 800 hover */
|
|
448
|
+
--rim-segment: linear-gradient(to bottom, --alpha(var(--color-white) / 16%), --alpha(var(--color-black) / 16%));
|
|
449
|
+
--segment-thumb: var(--accent); /* a step lighter than the track, never the page colour */
|
|
450
|
+
--edge-clip: border-box;
|
|
451
|
+
--skeleton-highlight: --alpha(var(--color-white) / 4%);
|
|
452
|
+
--autofill-tint: 8%;
|
|
453
|
+
--stack-shade: 6%;
|
|
454
|
+
--stack-shade-panel: 6%;
|
|
616
455
|
--scrim: --alpha(var(--color-black) / 64%); /* surface/scrim: darker in dark mode */
|
|
617
456
|
--popover-foreground: var(--color-grey-100); /* content/primary */
|
|
618
457
|
--popover-border: var(--border-subtle); /* a softer edge than --border: floating surfaces also cast a shadow */
|
|
619
458
|
--ring: var(--color-grey-500);
|
|
620
459
|
--secondary: var(--color-grey-950); /* surface/secondary */
|
|
621
460
|
--secondary-foreground: var(--color-grey-100); /* content/primary */
|
|
622
|
-
--success: var(--color-green-500);
|
|
623
461
|
--success-foreground: var(--color-green-300); /* content/success */
|
|
624
|
-
--warning: var(--color-amber-500);
|
|
625
462
|
--warning-foreground: var(--color-amber-300); /* content/warning */
|
|
626
463
|
/* Tone tints mixed into the page (opaque); warning, orange, violet shifted to stay distinct. */
|
|
627
464
|
--destructive-subtle: color-mix(in oklab, var(--color-red-500) 22%, var(--background));
|
|
@@ -649,13 +486,11 @@
|
|
|
649
486
|
--avatar-pink: var(--color-pink-950);
|
|
650
487
|
--avatar-green: var(--color-green-950);
|
|
651
488
|
--violet-foreground: var(--color-violet-300);
|
|
652
|
-
--pink: var(--color-pink-500);
|
|
653
|
-
--violet: var(--color-violet-500);
|
|
654
489
|
--border-highlight: --alpha(var(--color-white) / 8%);
|
|
655
490
|
--brand-edge: var(--color-pulse-100);
|
|
656
491
|
--error-edge: var(--color-red-400);
|
|
657
|
-
--success-edge: var(--color-green-400);
|
|
658
492
|
--brand-subtle: var(--color-pulse-950);
|
|
493
|
+
--brand-selected: var(--color-pulse-950);
|
|
659
494
|
--brand-subtle-hover: var(--color-pulse-900);
|
|
660
495
|
--tertiary: var(--color-grey-700);
|
|
661
496
|
--knob: var(--color-grey-100);
|
|
@@ -676,90 +511,26 @@
|
|
|
676
511
|
--button-secondary-end: var(--color-grey-900);
|
|
677
512
|
--button-secondary-hover-start: var(--color-grey-700);
|
|
678
513
|
--button-secondary-hover-end: var(--color-grey-800);
|
|
679
|
-
--button-destructive-start: var(--color-red-500);
|
|
680
|
-
--button-destructive-end: var(--color-red-600);
|
|
681
|
-
--button-destructive-hover-start: var(--color-red-600);
|
|
682
|
-
--button-destructive-hover-end: var(--color-red-700);
|
|
683
|
-
--button-warning-start: var(--color-amber-500);
|
|
684
|
-
--button-warning-end: var(--color-amber-600);
|
|
685
|
-
--button-warning-hover-start: var(--color-amber-600);
|
|
686
|
-
--button-warning-hover-end: var(--color-amber-700);
|
|
687
|
-
--wallet: #ffffff;
|
|
688
|
-
--wallet-foreground: #000000;
|
|
689
|
-
--chart-1: var(--color-pulse-400);
|
|
690
|
-
--chart-2: var(--color-blue-400);
|
|
691
|
-
--chart-3: var(--color-violet-400);
|
|
692
|
-
--chart-4: var(--color-orange-400);
|
|
693
|
-
--chart-5: var(--color-pink-400);
|
|
694
|
-
--chart-6: var(--color-amber-400);
|
|
695
|
-
--chart-7: var(--color-green-400);
|
|
696
|
-
--chart-8: var(--color-grey-400);
|
|
697
|
-
--chart-solid-1: var(--color-pulse-400);
|
|
698
|
-
--chart-solid-2: var(--color-blue-400);
|
|
699
|
-
--chart-solid-3: var(--color-violet-400);
|
|
700
|
-
--chart-comparison: var(--color-grey-600);
|
|
701
|
-
--chart-comparison-marker: var(--color-pulse-300);
|
|
702
|
-
--chart-positive: var(--color-green-400);
|
|
703
|
-
--chart-negative: var(--color-red-400);
|
|
704
|
-
--chart-diverging-neg-3: var(--color-red-300);
|
|
705
|
-
--chart-diverging-neg-2: var(--color-red-400);
|
|
706
|
-
--chart-diverging-neg-1: var(--color-red-500);
|
|
707
|
-
--chart-diverging-0: var(--color-grey-500);
|
|
708
|
-
--chart-diverging-pos-1: var(--color-green-500);
|
|
709
|
-
--chart-diverging-pos-2: var(--color-green-400);
|
|
710
|
-
--chart-diverging-pos-3: var(--color-green-300);
|
|
711
|
-
/* Again here so a nested .dark recomputes them; 03 is brighter for 4.5:1 text (RetentionMatrix). */
|
|
712
|
-
--chart-scale-01: var(--accent);
|
|
713
|
-
--chart-scale-02: color-mix(in oklab, var(--chart-1) 30%, var(--background));
|
|
714
|
-
--chart-scale-03: color-mix(in oklab, var(--chart-1) 62%, var(--background));
|
|
715
|
-
--chart-scale-04: color-mix(in oklab, var(--chart-1) 80%, var(--background));
|
|
716
|
-
--chart-scale-05: var(--chart-1);
|
|
717
|
-
--chart-hatch: repeating-linear-gradient(
|
|
718
|
-
135deg,
|
|
719
|
-
var(--chart-scale-pattern-color) 0 1.5px,
|
|
720
|
-
transparent 1.5px 6px
|
|
721
|
-
);
|
|
722
|
-
--code: color-mix(in srgb, var(--background) 98%, var(--color-white));
|
|
723
|
-
--code-foreground: var(--foreground);
|
|
724
514
|
--code-highlight: --alpha(var(--color-white) / 4%);
|
|
725
515
|
--sidebar: var(--color-grey-950); /* surface/secondary */
|
|
726
516
|
--sidebar-accent: --alpha(var(--color-white) / 4%);
|
|
727
517
|
--sidebar-accent-foreground: var(--color-grey-100);
|
|
728
518
|
--sidebar-border: --alpha(var(--color-white) / 8%); /* border/secondary */
|
|
729
519
|
--sidebar-foreground: color-mix(in srgb, var(--color-grey-100) 64%, var(--sidebar));
|
|
730
|
-
--sidebar-ring: var(--color-grey-400);
|
|
731
520
|
|
|
732
521
|
--shadow-highlight: 0 -1px --alpha(var(--color-white) / 6%);
|
|
733
522
|
--shadow-highlight-active: 0 -1px --alpha(var(--color-white) / 2%);
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
--
|
|
737
|
-
--
|
|
738
|
-
--
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
--
|
|
744
|
-
--
|
|
745
|
-
--milestone-customers-tint: var(--milestone-customers-sparkle);
|
|
746
|
-
--milestone-geography-wash: color-mix(in srgb, var(--milestone-geography-sparkle) 12%, var(--card));
|
|
747
|
-
--milestone-geography-wash-edge: color-mix(in srgb, var(--milestone-geography-sparkle) 32%, var(--card));
|
|
748
|
-
--milestone-revenue-wash: color-mix(in srgb, var(--milestone-revenue-sparkle) 12%, var(--card));
|
|
749
|
-
--milestone-revenue-wash-edge: color-mix(in srgb, var(--milestone-revenue-sparkle) 32%, var(--card));
|
|
750
|
-
--milestone-growth-wash: color-mix(in srgb, var(--milestone-growth-sparkle) 12%, var(--card));
|
|
751
|
-
--milestone-growth-wash-edge: color-mix(in srgb, var(--milestone-growth-sparkle) 32%, var(--card));
|
|
752
|
-
--milestone-customers-wash: color-mix(in srgb, var(--milestone-customers-sparkle) 12%, var(--card));
|
|
753
|
-
--milestone-customers-wash-edge: color-mix(in srgb, var(--milestone-customers-sparkle) 32%, var(--card));
|
|
754
|
-
--milestone-locked-gem: #1a1a1a;
|
|
755
|
-
--milestone-locked-glyph: #6b6b6b;
|
|
756
|
-
--milestone-locked-tint: #282727;
|
|
757
|
-
--milestone-locked-edge: --alpha(var(--color-white) / 7%);
|
|
758
|
-
--milestone-edge-end: color-mix(in srgb, var(--color-white) 8%, var(--card));
|
|
759
|
-
--milestone-locked-streak: --alpha(var(--color-white) / 12%);
|
|
760
|
-
--milestone-locked-streak-edge: transparent;
|
|
761
|
-
|
|
762
|
-
--logo-wordmark: #ffffff;
|
|
523
|
+
--shadow-button-primary: 0 1px 1px --alpha(var(--color-black) / 30%), 0 2px 4px --alpha(var(--color-black) / 40%);
|
|
524
|
+
--shadow-button-secondary: 0 1px 1px --alpha(var(--color-black) / 20%), 0 2px 4px --alpha(var(--color-black) / 25%);
|
|
525
|
+
--shadow-button-destructive: var(--shadow-button-primary);
|
|
526
|
+
--shadow-button-warning: var(--shadow-button-primary);
|
|
527
|
+
--inset-shadow-button-primary:
|
|
528
|
+
inset 0 1px --alpha(var(--color-white) / 14%), inset 0 -3px 6px -3px --alpha(var(--color-black) / 14%);
|
|
529
|
+
--inset-shadow-button-secondary: inset 0 -1px --alpha(var(--color-black) / 24%);
|
|
530
|
+
|
|
531
|
+
/* Deprecated, removed in 2.0.0 (see :root). */
|
|
532
|
+
--code: color-mix(in srgb, var(--background) 98%, var(--color-white));
|
|
533
|
+
--code-foreground: var(--foreground);
|
|
763
534
|
}
|
|
764
535
|
|
|
765
536
|
/*
|