@dodopayments/ui 1.7.2 → 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 +1453 -236
- package/ai/component-registry.md +42 -38
- package/ai/components/app-top-bar.md +17 -5
- package/ai/components/area-chart.md +2 -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/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/live-activity.md +2 -0
- package/ai/components/new-items-pill.md +2 -0
- 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/settings-section.md +2 -0
- package/ai/components/sheet.md +8 -4
- package/ai/components/slider.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 +21 -10
- 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 +25 -9
- 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/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.js +2 -2
- 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.js +1 -1
- package/dist/components/list-toolbar/list-toolbar.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/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/select/select.d.ts +1 -1
- package/dist/components/select/select.js +2 -2
- 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/sidebar.js +1 -1
- package/dist/components/sidebar/sidebar.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/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/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 +112 -6
- package/dist/primitives/ui/sheet.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/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 +23 -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 +81 -340
- package/dist/styles/tokens.test.tsx +40 -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 and black, and the brand and illustration shades, follow the ramps.
|
|
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;
|
|
@@ -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;
|
|
@@ -143,8 +148,7 @@
|
|
|
143
148
|
|
|
144
149
|
/*
|
|
145
150
|
* Artwork colours (`--color-art-*`): the exact shades of the Dodo logo and of drawn artwork (milestone gems,
|
|
146
|
-
* leaderboard medals) that the ramps above do not hold.
|
|
147
|
-
* a text or a surface never reads them. Artwork tokens below point here, so no token holds a raw value.
|
|
151
|
+
* leaderboard medals) that the ramps above do not hold.
|
|
148
152
|
*/
|
|
149
153
|
--color-art-ink: #00160d; /* the logo's glyph and wordmark */
|
|
150
154
|
--color-art-lime-edge: #b3e910; /* the logo mark's edge */
|
|
@@ -166,10 +170,7 @@
|
|
|
166
170
|
--color-art-silver: #868b95;
|
|
167
171
|
--color-art-bronze: #d67d56;
|
|
168
172
|
|
|
169
|
-
/*
|
|
170
|
-
* coss tokens with the Dodo Nest values (Figma > Foundations > Color Tokens). The Figma role is in the
|
|
171
|
-
* comment after each token. Components use only the coss names (`bg-background`, `text-foreground`).
|
|
172
|
-
*/
|
|
173
|
+
/* coss tokens with the Dodo Nest values (Figma > Foundations > Color Tokens). */
|
|
173
174
|
--background: var(--color-white); /* surface/primary: the page */
|
|
174
175
|
--field: initial; /* unset: fields paint the --background of their own context (merchant themes too) */
|
|
175
176
|
--card: var(--color-white); /* surface/primary */
|
|
@@ -202,17 +203,10 @@
|
|
|
202
203
|
--primary: var(--color-grey-950); /* the primary button fill and checked controls */
|
|
203
204
|
--primary-foreground: var(--color-white); /* content/inverted */
|
|
204
205
|
--link: var(--color-blue-600); /* content/accent: link text; a theme fits it to 4.5:1 */
|
|
205
|
-
/*
|
|
206
|
-
* Brand (Figma surface/brand, Button "Primary"): the Pulse lime for the one brand action in a view.
|
|
207
|
-
* The fill is a gradient from --brand to --brand-hover; hover moves one step darker, pressed is flat
|
|
208
|
-
* --brand-pressed. Text and icons use --brand-foreground (grey/950). The same in both themes.
|
|
209
|
-
*/
|
|
206
|
+
/* Brand (Figma surface/brand): the Pulse lime for brand-filled controls and marks. */
|
|
210
207
|
--brand: var(--color-pulse-200);
|
|
211
|
-
--brand-hover: var(--color-pulse-300);
|
|
212
|
-
--brand-pressed: var(--color-pulse-400);
|
|
213
208
|
--brand-foreground: var(--color-grey-950); /* text/on-brand */
|
|
214
209
|
--brand-border: var(--color-pulse-400); /* border/brand-primary: the edge of brand-filled controls */
|
|
215
|
-
--brand-shadow: var(--color-pulse-700); /* shadow colour, used at 14% */
|
|
216
210
|
/* Status: the base token is the strong 500 step (fills, dots, borders); *-foreground is the 600 text
|
|
217
211
|
* (700 for warning). */
|
|
218
212
|
--destructive: var(--color-red-500); /* surface/error-primary */
|
|
@@ -227,11 +221,7 @@
|
|
|
227
221
|
* about 4.3:1, below WCAG AA (4.5:1), and the axe checks fail. amber/700 passes.
|
|
228
222
|
*/
|
|
229
223
|
--warning-foreground: var(--color-amber-700);
|
|
230
|
-
/*
|
|
231
|
-
* Soft tones (Figma surface/<tone>-secondary and border/<tone>): the fill and the 1px border of a Badge.
|
|
232
|
-
* The text of a tone is its *-foreground. Orange, pink and violet are category tones with no status
|
|
233
|
-
* meaning. --border-highlight is the lighter line just inside a badge's border (border/highlight).
|
|
234
|
-
*/
|
|
224
|
+
/* Soft tones (Figma surface/<tone>-secondary and border/<tone>): the fill and the 1px border of a Badge. */
|
|
235
225
|
--destructive-subtle: var(--color-red-50);
|
|
236
226
|
--destructive-border: var(--color-red-200);
|
|
237
227
|
--info-subtle: var(--color-blue-50);
|
|
@@ -241,7 +231,7 @@
|
|
|
241
231
|
--warning-subtle: var(--color-amber-50);
|
|
242
232
|
--warning-border: var(--color-amber-200);
|
|
243
233
|
/* TestModeBanner strip: the dark strip the dashboard used (#1F2329), on the grey palette. */
|
|
244
|
-
--test-banner: var(--color-grey-
|
|
234
|
+
--test-banner: var(--color-grey-950);
|
|
245
235
|
--test-banner-foreground: var(--color-white);
|
|
246
236
|
--orange-subtle: var(--color-orange-50);
|
|
247
237
|
--orange-border: var(--color-orange-200);
|
|
@@ -259,14 +249,9 @@
|
|
|
259
249
|
--pink: var(--color-pink-500); /* surface/pink-primary: solid pink fills (Progress) */
|
|
260
250
|
--violet: var(--color-violet-500); /* surface/violet-primary: solid violet fills (Progress) */
|
|
261
251
|
--border-highlight: --alpha(var(--color-white) / 48%);
|
|
262
|
-
/*
|
|
263
|
-
* Figma tokens a Checkbox uses. --brand-edge is border/brand (the lime ring of a checked control);
|
|
264
|
-
* --brand-subtle is surface/brand-secondary; --tertiary is surface/tertiary (a disabled checked box)
|
|
265
|
-
* and --tertiary-foreground content/tertiary (disabled text and icons);
|
|
266
|
-
* --border-subtle is border/secondary (a disabled control's ring).
|
|
267
|
-
*/
|
|
252
|
+
/* Figma tokens a Checkbox uses. */
|
|
268
253
|
--brand-edge: var(--color-pulse-200);
|
|
269
|
-
--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 */
|
|
270
255
|
--success-edge: var(--color-green-400); /* border/success-primary: the ring of an accepted code (OTP) */
|
|
271
256
|
--brand-subtle: var(--color-pulse-50);
|
|
272
257
|
--brand-selected: var(--color-pulse-25); /* a selected Radio card's fill */
|
|
@@ -278,9 +263,8 @@
|
|
|
278
263
|
--data-primary: var(--color-grey-700); /* content/data-primary: the strong data series (reserved balance) */
|
|
279
264
|
--border-subtle: --alpha(var(--color-black) / 8%);
|
|
280
265
|
/*
|
|
281
|
-
* Button fills (Figma > Color Tokens > Gradient/Button-*): the top and bottom stop of each variant, and the
|
|
282
|
-
*
|
|
283
|
-
* 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.
|
|
284
268
|
*/
|
|
285
269
|
--button-primary-start: var(--color-grey-600);
|
|
286
270
|
--button-primary-end: var(--color-grey-950);
|
|
@@ -292,7 +276,7 @@
|
|
|
292
276
|
--button-primary-disabled-foreground: initial;
|
|
293
277
|
--button-primary-disabled-opacity: 40%;
|
|
294
278
|
--button-secondary-start: var(--color-white);
|
|
295
|
-
--button-secondary-end: var(--color-grey-
|
|
279
|
+
--button-secondary-end: var(--color-grey-50);
|
|
296
280
|
--button-secondary-hover-start: var(--color-grey-50);
|
|
297
281
|
--button-secondary-hover-end: var(--color-grey-100);
|
|
298
282
|
--button-destructive-start: var(--color-red-500);
|
|
@@ -303,72 +287,15 @@
|
|
|
303
287
|
--button-warning-end: var(--color-amber-600);
|
|
304
288
|
--button-warning-hover-start: var(--color-amber-600);
|
|
305
289
|
--button-warning-hover-end: var(--color-amber-700);
|
|
306
|
-
/* Wallet buttons (Apple Pay, Google Pay): the brands' required black-on-light / white-on-dark marks. */
|
|
307
|
-
--wallet: var(--color-black);
|
|
308
|
-
--wallet-foreground: var(--color-white);
|
|
309
|
-
/* Series, in order. --chart-1 is the dashboard lime (2.1:1, pair it with a label); 2-8 keep 3:1. */
|
|
310
|
-
--chart-1: var(--color-pulse-500);
|
|
311
|
-
--chart-2: var(--color-blue-600); /* content/accent */
|
|
312
|
-
--chart-3: var(--color-violet-600); /* content/violet */
|
|
313
|
-
--chart-4: var(--color-orange-500); /* below 3:1 on white, like --chart-1: pair it with a label */
|
|
314
|
-
--chart-5: var(--color-pink-600); /* content/pink */
|
|
315
|
-
--chart-6: var(--color-amber-600);
|
|
316
|
-
--chart-7: var(--color-green-600);
|
|
317
|
-
--chart-8: var(--color-grey-500);
|
|
318
|
-
/* 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
|
|
319
|
-
* with a label or a tooltip), and Violet 500 for a third series (Violet 400 in dark). */
|
|
320
|
-
--chart-solid-1: var(--color-pulse-400);
|
|
321
|
-
--chart-solid-2: var(--color-blue-400);
|
|
322
|
-
--chart-solid-3: var(--color-violet-500);
|
|
323
|
-
/* The previous period: a dashed reference line, as the dashboard draws it (not a series). */
|
|
324
|
-
--chart-comparison: var(--color-grey-300);
|
|
325
|
-
/* ComparisonBars: the previous-period marker and the hatching where a value fell short. */
|
|
326
|
-
--chart-comparison-marker: var(--color-pulse-700);
|
|
327
|
-
--chart-hatch: repeating-linear-gradient(
|
|
328
|
-
135deg,
|
|
329
|
-
var(--chart-scale-pattern-color) 0 1.5px,
|
|
330
|
-
transparent 1.5px 6px
|
|
331
|
-
);
|
|
332
|
-
/* Up and down values (a delta, the change since last period). Pair them with a sign or an icon. */
|
|
333
|
-
--chart-positive: var(--color-green-600);
|
|
334
|
-
--chart-negative: var(--color-red-500);
|
|
335
|
-
/*
|
|
336
|
-
* Diverging scale (change against a baseline): neg-3 is the strongest decrease, 0 no change, pos-3 the
|
|
337
|
-
* strongest increase. Every step, the grey midpoint included, keeps 3:1 against the background.
|
|
338
|
-
*/
|
|
339
|
-
--chart-diverging-neg-3: var(--color-red-700);
|
|
340
|
-
--chart-diverging-neg-2: var(--color-red-600);
|
|
341
|
-
--chart-diverging-neg-1: var(--color-red-500);
|
|
342
|
-
--chart-diverging-0: var(--color-grey-500);
|
|
343
|
-
--chart-diverging-pos-1: var(--color-green-500);
|
|
344
|
-
--chart-diverging-pos-2: var(--color-green-600);
|
|
345
|
-
--chart-diverging-pos-3: var(--color-green-700);
|
|
346
|
-
/*
|
|
347
|
-
* Sequential chart scale (heatmap, choropleth, binned data), 01 = empty / lowest, 05 = highest. 02-04 are
|
|
348
|
-
* built from --chart-1 over the page background, so they follow the theme without a .dark copy.
|
|
349
|
-
*/
|
|
350
|
-
--chart-scale-01: var(--accent);
|
|
351
|
-
--chart-scale-02: color-mix(in oklab, var(--chart-1) 30%, var(--background));
|
|
352
|
-
--chart-scale-03: color-mix(in oklab, var(--chart-1) 55%, var(--background));
|
|
353
|
-
--chart-scale-04: color-mix(in oklab, var(--chart-1) 80%, var(--background));
|
|
354
|
-
--chart-scale-05: var(--chart-1);
|
|
355
|
-
--chart-scale-pattern-color: var(--border);
|
|
356
|
-
--code: var(--color-white);
|
|
357
|
-
--code-foreground: var(--foreground);
|
|
358
|
-
--code-highlight: --alpha(var(--color-black) / 4%);
|
|
359
290
|
--radius: 0.625rem;
|
|
360
291
|
--sidebar-accent: --alpha(var(--color-black) / 4%);
|
|
361
292
|
--sidebar-accent-foreground: var(--foreground);
|
|
362
293
|
--sidebar-border: --alpha(var(--color-black) / 6%);
|
|
363
294
|
--sidebar-foreground: color-mix(in srgb, var(--foreground) 64%, var(--sidebar));
|
|
364
|
-
--
|
|
365
|
-
--sidebar-primary-foreground: var(--primary-foreground);
|
|
295
|
+
--code-highlight: --alpha(var(--color-black) / 4%);
|
|
366
296
|
--sidebar-ring: var(--color-grey-400);
|
|
367
297
|
|
|
368
|
-
/*
|
|
369
|
-
* Dodo Nest typography primitives (Figma > Foundations > Typography Tokens). theme.css builds the
|
|
370
|
-
* text styles from them (`text-heading-primary` ... `text-label-secondary`). Theme-independent.
|
|
371
|
-
*/
|
|
298
|
+
/* Dodo Nest typography primitives (Figma > Foundations > Typography Tokens). */
|
|
372
299
|
--font-size-12: 0.75rem;
|
|
373
300
|
--font-size-14: 0.875rem;
|
|
374
301
|
--font-size-16: 1rem;
|
|
@@ -390,11 +317,8 @@
|
|
|
390
317
|
--letter-spacing-tightest: -0.4px; /* 24 heading and key figures */
|
|
391
318
|
|
|
392
319
|
/*
|
|
393
|
-
* Elevation. --shadow-color is the colour and strength of `shadow-xs` ... `shadow-xl` (theme.css):
|
|
394
|
-
*
|
|
395
|
-
* (`shadow-lg/5`) sets the alpha outright, as on any Tailwind colour.
|
|
396
|
-
* --shadow-highlight is the 1px edge on the `before:` layer of controls and surfaces (`before:shadow-highlight`):
|
|
397
|
-
* 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.
|
|
398
322
|
*/
|
|
399
323
|
--shadow-color: --alpha(var(--color-black) / 10%);
|
|
400
324
|
--shadow-highlight: 0 1px --alpha(var(--color-black) / 4%);
|
|
@@ -420,86 +344,23 @@
|
|
|
420
344
|
--alpha(var(--brand-border) / 68%) 82%,
|
|
421
345
|
transparent
|
|
422
346
|
);
|
|
423
|
-
/*
|
|
424
|
-
* The Leaderboard podium glows (Figma Leaderboard › .Podium cell): gold, silver and bronze at 40% from the top-left
|
|
425
|
-
* corner, transparent at 70%. Illustration, as in the dashboard code: the same in light and dark.
|
|
426
|
-
*/
|
|
427
|
-
--leaderboard-glow-first: radial-gradient(at top left, --alpha(var(--color-art-gold) / 40%), transparent 70%);
|
|
428
|
-
--leaderboard-glow-second: radial-gradient(at top left, --alpha(var(--color-art-silver) / 40%), transparent 70%);
|
|
429
|
-
--leaderboard-glow-third: radial-gradient(at top left, --alpha(var(--color-art-bronze) / 40%), transparent 70%);
|
|
430
|
-
/*
|
|
431
|
-
* The help panel's dot field (the dashboard's support/Blue.png and Green.png): 2px dots on a 5px grid, at half strength,
|
|
432
|
-
* fading in from the top-left and bottom-right corners. Blue in light, the brand lime in dark.
|
|
433
|
-
*/
|
|
434
|
-
--support-art-dots: radial-gradient(circle, var(--color-blue-400) 1.1px, transparent 1.35px);
|
|
435
|
-
--support-art-mask:
|
|
436
|
-
radial-gradient(at top left, black, transparent 45%), radial-gradient(at bottom right, black, transparent 55%);
|
|
437
|
-
/*
|
|
438
|
-
* Featured icon spheres (the dashboard's verification badges, `IconCircleBase`): each tone's fill runs from `-top`
|
|
439
|
-
* to `-bottom` under the sphere's white gloss, on the status ramps (green, amber, red, blue, grey), the same in
|
|
440
|
-
* both themes. Warning starts at amber/600: amber/500 is too light under the white glyph.
|
|
441
|
-
*/
|
|
442
|
-
--sphere-neutral-top: var(--color-grey-600);
|
|
443
|
-
--sphere-neutral-bottom: var(--color-grey-700);
|
|
444
|
-
--sphere-success-top: var(--color-green-500);
|
|
445
|
-
--sphere-success-bottom: var(--color-green-700);
|
|
446
|
-
--sphere-warning-top: var(--color-amber-600);
|
|
447
|
-
--sphere-warning-bottom: var(--color-amber-700);
|
|
448
|
-
--sphere-error-top: var(--color-red-500);
|
|
449
|
-
--sphere-error-bottom: var(--color-red-700);
|
|
450
|
-
--sphere-info-top: var(--color-blue-500);
|
|
451
|
-
--sphere-info-bottom: var(--color-blue-600);
|
|
452
|
-
/*
|
|
453
|
-
* Milestones (Design File › Merchant Milestones): per category, `-gem` the gem art, `-tint` the card top, `-edge` its
|
|
454
|
-
* 1px ring, `-sparkle` the dots and the share card top. Gems are the same in both modes.
|
|
455
|
-
*/
|
|
456
|
-
--milestone-geography-gem: var(--color-art-sky-600);
|
|
457
|
-
--milestone-geography-tint: var(--color-art-sky-300);
|
|
458
|
-
--milestone-geography-edge: var(--color-art-sky-300);
|
|
459
|
-
--milestone-geography-sparkle: var(--color-art-sky-400);
|
|
460
|
-
--milestone-revenue-gem: var(--color-green-600);
|
|
461
|
-
--milestone-revenue-tint: var(--color-art-mint-300);
|
|
462
|
-
--milestone-revenue-edge: var(--color-art-mint-300);
|
|
463
|
-
--milestone-revenue-sparkle: var(--color-art-mint-400);
|
|
464
|
-
--milestone-growth-gem: var(--color-art-indigo-700);
|
|
465
|
-
--milestone-growth-tint: var(--color-art-indigo-300);
|
|
466
|
-
--milestone-growth-edge: var(--color-art-indigo-300);
|
|
467
|
-
--milestone-growth-sparkle: var(--color-art-indigo-400);
|
|
468
|
-
--milestone-customers-gem: var(--color-art-purple-700);
|
|
469
|
-
--milestone-customers-tint: var(--color-violet-300);
|
|
470
|
-
--milestone-customers-edge: var(--color-violet-300);
|
|
471
|
-
--milestone-customers-sparkle: var(--color-violet-400);
|
|
472
|
-
/* The "milestone reached" notice: the category's lightest tint (`-wash`) with a 1px edge a step darker. */
|
|
473
|
-
--milestone-geography-wash: var(--color-blue-25);
|
|
474
|
-
--milestone-geography-wash-edge: var(--color-art-sky-200);
|
|
475
|
-
--milestone-revenue-wash: var(--color-green-50);
|
|
476
|
-
--milestone-revenue-wash-edge: var(--color-art-mint-200);
|
|
477
|
-
--milestone-growth-wash: var(--color-blue-50);
|
|
478
|
-
--milestone-growth-wash-edge: var(--color-blue-200);
|
|
479
|
-
--milestone-customers-wash: var(--color-violet-50);
|
|
480
|
-
--milestone-customers-wash-edge: var(--color-violet-200);
|
|
481
|
-
--milestone-glyph: var(--color-white); /* the symbol on a reached gem */
|
|
482
|
-
/* A milestone not reached yet: a grey gem and a grey card top. */
|
|
483
|
-
--milestone-locked-gem: var(--color-art-taupe-400);
|
|
484
|
-
--milestone-locked-glyph: var(--color-grey-400);
|
|
485
|
-
--milestone-locked-tint: var(--color-art-slate-300);
|
|
486
|
-
--milestone-locked-edge: var(--border);
|
|
487
|
-
--milestone-edge-end: var(--border); /* the bottom of a reached card's edge */
|
|
488
|
-
/* Glass streaks: white 0-30-0% (reached), 10-40-10% (locked). */
|
|
489
|
-
--milestone-streak: --alpha(var(--color-white) / 30%);
|
|
490
|
-
--milestone-locked-streak: --alpha(var(--color-white) / 40%);
|
|
491
|
-
--milestone-locked-streak-edge: --alpha(var(--color-white) / 10%);
|
|
492
|
-
/* A sale share card: the lime amount and the dark ink of its outline and headline, the same in both themes. */
|
|
493
|
-
--share-amount: var(--color-pulse-200);
|
|
494
|
-
--share-ink: var(--color-pulse-950);
|
|
495
347
|
/* Shadow/Tooltip in Figma: the lift of an overlay panel (the Date picker panel). */
|
|
496
348
|
--shadow-overlay: 0 1px 2px --alpha(var(--color-black) / 4%), 0 4px 12px --alpha(var(--color-black) / 8%);
|
|
497
349
|
/* Shadow/Dialog in Figma: the lift of a dialog tray over the scrim. */
|
|
498
350
|
--shadow-dialog: 0 2px 6px --alpha(var(--color-black) / 6%), 0 16px 32px --alpha(var(--color-black) / 12%);
|
|
499
351
|
/* Shadow/Panel in Figma: the white panel of a tray (Data table rows). */
|
|
500
352
|
--shadow-panel: 0 1px 1px --alpha(var(--color-black) / 5%), 0 3px 3px --alpha(var(--color-black) / 5%);
|
|
501
|
-
|
|
502
|
-
--
|
|
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%);
|
|
503
364
|
--inset-shadow-sunken: inset 0 1px --alpha(var(--color-black) / 4%); /* sunken tracks (menu switches) */
|
|
504
365
|
/* The recessed depth of a Switch track: one inner shadow (Figma Switch > depth). */
|
|
505
366
|
--inset-shadow-recessed: inset 0 2px 6px --alpha(var(--color-black) / 12%);
|
|
@@ -511,14 +372,18 @@
|
|
|
511
372
|
--rim-knob: linear-gradient(to bottom, --alpha(var(--color-white) / 30%), --alpha(var(--color-black) / 30%));
|
|
512
373
|
/*
|
|
513
374
|
* The Segmented control (Figma Segmented control): the track's depth is an inner shadow (0 1 2, Black 8%) and a 1px
|
|
514
|
-
* rim that fades from Black 8% at the top to transparent half way down.
|
|
515
|
-
* (Black 10% to 16%): Figma's White-to-Black knob ring vanished along the top of the white thumb. Dark keeps the knob.
|
|
516
|
-
* The segment itself is --segment-thumb: the page colour, and a step lighter than the track in dark.
|
|
375
|
+
* rim that fades from Black 8% at the top to transparent half way down.
|
|
517
376
|
*/
|
|
518
377
|
--inset-shadow-segmented: inset 0 1px 2px --alpha(var(--color-black) / 8%);
|
|
519
378
|
--rim-track: linear-gradient(to bottom, --alpha(var(--color-black) / 8%), transparent 50%);
|
|
520
379
|
--rim-segment: linear-gradient(to bottom, --alpha(var(--color-black) / 10%), --alpha(var(--color-black) / 16%));
|
|
521
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%;
|
|
522
387
|
/*
|
|
523
388
|
* The glossy pill of a Progress fill (Figma Progress bar > fill): a 1px rim, faint along the top and dark from the
|
|
524
389
|
* middle down (Black 4% to Black at 22%), and a lit top edge (Shadow/Bar-highlight: White 16% + White 8%).
|
|
@@ -530,25 +395,11 @@
|
|
|
530
395
|
);
|
|
531
396
|
--inset-shadow-bar: inset 0 1px --alpha(var(--color-white) / 16%), inset 0 1px --alpha(var(--color-white) / 8%);
|
|
532
397
|
|
|
533
|
-
/*
|
|
534
|
-
* Focus ring (theme-independent). Controls draw it with `focus-visible:ring-2 focus-visible:ring-offset-1`;
|
|
535
|
-
* custom CSS (`ring-(length:--focus-ring-width)`) and the forced-colours outline in base.css read these.
|
|
536
|
-
*/
|
|
398
|
+
/* Focus ring (theme-independent). */
|
|
537
399
|
--focus-ring-width: 2px;
|
|
538
400
|
--focus-ring-offset: 1px;
|
|
539
401
|
|
|
540
|
-
/*
|
|
541
|
-
--logo-mark: var(--color-pulse-200);
|
|
542
|
-
--logo-mark-edge: var(--color-art-lime-edge);
|
|
543
|
-
--logo-glyph: var(--color-art-ink);
|
|
544
|
-
--logo-wordmark: var(--color-art-ink);
|
|
545
|
-
--logo-wordmark-on-light: var(--color-art-ink);
|
|
546
|
-
--logo-wordmark-on-dark: var(--color-white);
|
|
547
|
-
|
|
548
|
-
/*
|
|
549
|
-
* Stacking order (theme-independent), mapped to `z-dropdown` ... `z-tooltip` in theme.css. Page-level
|
|
550
|
-
* layers only; portalled primitive popups stack through the `isolate` app root instead.
|
|
551
|
-
*/
|
|
402
|
+
/* Stacking order (theme-independent), mapped to `z-dropdown` ... `z-tooltip` in theme.css. */
|
|
552
403
|
--z-dropdown: 1000; /* non-portalled dropdown panels inside page content */
|
|
553
404
|
--z-sticky: 1100; /* sticky headers, toolbars and table headers */
|
|
554
405
|
--z-overlay: 1200; /* modal backdrops */
|
|
@@ -558,74 +409,24 @@
|
|
|
558
409
|
--z-tooltip: 1600; /* tooltips, always on top */
|
|
559
410
|
|
|
560
411
|
/*
|
|
561
|
-
*
|
|
562
|
-
*
|
|
563
|
-
* Pick a token by what the motion does (the comment), never by the nearest number.
|
|
564
|
-
* 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.
|
|
565
414
|
*/
|
|
566
|
-
--
|
|
567
|
-
--
|
|
568
|
-
--
|
|
569
|
-
--
|
|
570
|
-
--
|
|
571
|
-
--
|
|
572
|
-
--
|
|
573
|
-
--
|
|
574
|
-
--
|
|
575
|
-
--motion-ease-bounce: cubic-bezier(0.34, 1.36, 0.64, 1); /* entrance pop (badge); never on a close */
|
|
576
|
-
--motion-ease-bounce-strong: cubic-bezier(0.34, 3.85, 0.64, 1); /* springy hover-out return */
|
|
577
|
-
--motion-ease-sheet: cubic-bezier(0.32, 0.72, 0, 1); /* touch sheets and drawers sliding in or settling after a drag (Vaul) */
|
|
578
|
-
/* A spring with a small overshoot (8%) as CSS: switch thumbs, radio dots, count pops. Never on a close. */
|
|
579
|
-
--motion-ease-spring: linear(
|
|
580
|
-
0,
|
|
581
|
-
0.042,
|
|
582
|
-
0.146,
|
|
583
|
-
0.284,
|
|
584
|
-
0.435,
|
|
585
|
-
0.582,
|
|
586
|
-
0.715,
|
|
587
|
-
0.828,
|
|
588
|
-
0.919,
|
|
589
|
-
0.987,
|
|
590
|
-
1.035,
|
|
591
|
-
1.064,
|
|
592
|
-
1.079,
|
|
593
|
-
1.084,
|
|
594
|
-
1.08,
|
|
595
|
-
1.071,
|
|
596
|
-
1.059,
|
|
597
|
-
1.047,
|
|
598
|
-
1.034,
|
|
599
|
-
1.023,
|
|
600
|
-
1.014,
|
|
601
|
-
1.006,
|
|
602
|
-
1.001,
|
|
603
|
-
0.997,
|
|
604
|
-
1
|
|
605
|
-
);
|
|
606
|
-
--motion-distance-micro: 4px; /* text swap */
|
|
607
|
-
--motion-distance-small: 6px; /* error shake, small segment */
|
|
608
|
-
--motion-distance-base: 8px; /* badge reveal, page slide, error shake large segment */
|
|
609
|
-
--motion-distance-medium: 12px; /* text reveal */
|
|
610
|
-
--motion-distance-large: 30px; /* check badge appear */
|
|
611
|
-
--motion-scale-large: 0.96; /* modal open / close: the scale it animates from */
|
|
612
|
-
--motion-scale-medium: 0.97; /* dropdown open */
|
|
613
|
-
--motion-scale-small: 0.98; /* tooltip open */
|
|
614
|
-
--motion-scale-tiny: 0.99; /* dropdown close */
|
|
615
|
-
--motion-blur-small: 2px; /* panel reveal, icon swap, text swap, skeleton reveal, number pop-in */
|
|
616
|
-
--motion-blur-medium: 3px; /* page slide, text reveal */
|
|
617
|
-
--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%);
|
|
618
424
|
}
|
|
619
425
|
|
|
620
426
|
.dark {
|
|
621
427
|
color-scheme: dark;
|
|
622
428
|
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
/*
|
|
626
|
-
* Figma > Color Tokens, Dark mode. The Figma role is in the comment after each token. The --brand
|
|
627
|
-
* tokens stay the same in both themes, as Figma asks (content/static does not change).
|
|
628
|
-
*/
|
|
429
|
+
/* Figma > Color Tokens, Dark mode. */
|
|
629
430
|
--primary: var(--color-grey-100); /* surface/inverted */
|
|
630
431
|
--primary-foreground: var(--color-grey-950); /* content/inverted */
|
|
631
432
|
--accent: var(--color-grey-800); /* surface/hover */
|
|
@@ -635,10 +436,8 @@
|
|
|
635
436
|
--border: --alpha(var(--color-white) / 10%); /* border/primary: translucent, so it shows on every dark surface */
|
|
636
437
|
--card: var(--color-grey-975); /* surface/primary */
|
|
637
438
|
--card-foreground: var(--color-grey-100); /* content/primary */
|
|
638
|
-
--destructive: var(--color-red-500); /* surface/error-primary */
|
|
639
439
|
--destructive-foreground: var(--color-red-300); /* content/error */
|
|
640
440
|
--foreground: var(--color-grey-100); /* content/primary */
|
|
641
|
-
--info: var(--color-blue-500); /* surface/accent-primary */
|
|
642
441
|
--info-foreground: var(--color-blue-300); /* content/accent */
|
|
643
442
|
--input: --alpha(var(--color-white) / 15%); /* border/primary */
|
|
644
443
|
--link: var(--color-blue-300); /* content/accent */
|
|
@@ -648,15 +447,18 @@
|
|
|
648
447
|
--popover: var(--color-grey-900); /* surface/overlay: one step above the Grey 975 page, under the Grey 800 hover */
|
|
649
448
|
--rim-segment: linear-gradient(to bottom, --alpha(var(--color-white) / 16%), --alpha(var(--color-black) / 16%));
|
|
650
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%;
|
|
651
455
|
--scrim: --alpha(var(--color-black) / 64%); /* surface/scrim: darker in dark mode */
|
|
652
456
|
--popover-foreground: var(--color-grey-100); /* content/primary */
|
|
653
457
|
--popover-border: var(--border-subtle); /* a softer edge than --border: floating surfaces also cast a shadow */
|
|
654
458
|
--ring: var(--color-grey-500);
|
|
655
459
|
--secondary: var(--color-grey-950); /* surface/secondary */
|
|
656
460
|
--secondary-foreground: var(--color-grey-100); /* content/primary */
|
|
657
|
-
--success: var(--color-green-500);
|
|
658
461
|
--success-foreground: var(--color-green-300); /* content/success */
|
|
659
|
-
--warning: var(--color-amber-500);
|
|
660
462
|
--warning-foreground: var(--color-amber-300); /* content/warning */
|
|
661
463
|
/* Tone tints mixed into the page (opaque); warning, orange, violet shifted to stay distinct. */
|
|
662
464
|
--destructive-subtle: color-mix(in oklab, var(--color-red-500) 22%, var(--background));
|
|
@@ -684,12 +486,9 @@
|
|
|
684
486
|
--avatar-pink: var(--color-pink-950);
|
|
685
487
|
--avatar-green: var(--color-green-950);
|
|
686
488
|
--violet-foreground: var(--color-violet-300);
|
|
687
|
-
--pink: var(--color-pink-500);
|
|
688
|
-
--violet: var(--color-violet-500);
|
|
689
489
|
--border-highlight: --alpha(var(--color-white) / 8%);
|
|
690
490
|
--brand-edge: var(--color-pulse-100);
|
|
691
491
|
--error-edge: var(--color-red-400);
|
|
692
|
-
--success-edge: var(--color-green-400);
|
|
693
492
|
--brand-subtle: var(--color-pulse-950);
|
|
694
493
|
--brand-selected: var(--color-pulse-950);
|
|
695
494
|
--brand-subtle-hover: var(--color-pulse-900);
|
|
@@ -712,84 +511,26 @@
|
|
|
712
511
|
--button-secondary-end: var(--color-grey-900);
|
|
713
512
|
--button-secondary-hover-start: var(--color-grey-700);
|
|
714
513
|
--button-secondary-hover-end: var(--color-grey-800);
|
|
715
|
-
--button-destructive-start: var(--color-red-500);
|
|
716
|
-
--button-destructive-end: var(--color-red-600);
|
|
717
|
-
--button-destructive-hover-start: var(--color-red-600);
|
|
718
|
-
--button-destructive-hover-end: var(--color-red-700);
|
|
719
|
-
--button-warning-start: var(--color-amber-500);
|
|
720
|
-
--button-warning-end: var(--color-amber-600);
|
|
721
|
-
--button-warning-hover-start: var(--color-amber-600);
|
|
722
|
-
--button-warning-hover-end: var(--color-amber-700);
|
|
723
|
-
--wallet: var(--color-white);
|
|
724
|
-
--wallet-foreground: var(--color-black);
|
|
725
|
-
--chart-1: var(--color-pulse-400);
|
|
726
|
-
--chart-2: var(--color-blue-400);
|
|
727
|
-
--chart-3: var(--color-violet-400);
|
|
728
|
-
--chart-4: var(--color-orange-400);
|
|
729
|
-
--chart-5: var(--color-pink-400);
|
|
730
|
-
--chart-6: var(--color-amber-400);
|
|
731
|
-
--chart-7: var(--color-green-400);
|
|
732
|
-
--chart-8: var(--color-grey-400);
|
|
733
|
-
--chart-solid-1: var(--color-pulse-400);
|
|
734
|
-
--chart-solid-2: var(--color-blue-400);
|
|
735
|
-
--chart-solid-3: var(--color-violet-400);
|
|
736
|
-
--chart-comparison: var(--color-grey-600);
|
|
737
|
-
--chart-comparison-marker: var(--color-pulse-300);
|
|
738
|
-
--chart-positive: var(--color-green-400);
|
|
739
|
-
--chart-negative: var(--color-red-400);
|
|
740
|
-
--chart-diverging-neg-3: var(--color-red-300);
|
|
741
|
-
--chart-diverging-neg-2: var(--color-red-400);
|
|
742
|
-
--chart-diverging-neg-1: var(--color-red-500);
|
|
743
|
-
--chart-diverging-0: var(--color-grey-500);
|
|
744
|
-
--chart-diverging-pos-1: var(--color-green-500);
|
|
745
|
-
--chart-diverging-pos-2: var(--color-green-400);
|
|
746
|
-
--chart-diverging-pos-3: var(--color-green-300);
|
|
747
|
-
/* Again here so a nested .dark recomputes them; 03 is brighter for 4.5:1 text (RetentionMatrix). */
|
|
748
|
-
--chart-scale-01: var(--accent);
|
|
749
|
-
--chart-scale-02: color-mix(in oklab, var(--chart-1) 30%, var(--background));
|
|
750
|
-
--chart-scale-03: color-mix(in oklab, var(--chart-1) 62%, var(--background));
|
|
751
|
-
--chart-scale-04: color-mix(in oklab, var(--chart-1) 80%, var(--background));
|
|
752
|
-
--chart-scale-05: var(--chart-1);
|
|
753
|
-
--chart-hatch: repeating-linear-gradient(
|
|
754
|
-
135deg,
|
|
755
|
-
var(--chart-scale-pattern-color) 0 1.5px,
|
|
756
|
-
transparent 1.5px 6px
|
|
757
|
-
);
|
|
758
|
-
--code: color-mix(in srgb, var(--background) 98%, var(--color-white));
|
|
759
|
-
--code-foreground: var(--foreground);
|
|
760
514
|
--code-highlight: --alpha(var(--color-white) / 4%);
|
|
761
515
|
--sidebar: var(--color-grey-950); /* surface/secondary */
|
|
762
516
|
--sidebar-accent: --alpha(var(--color-white) / 4%);
|
|
763
517
|
--sidebar-accent-foreground: var(--color-grey-100);
|
|
764
518
|
--sidebar-border: --alpha(var(--color-white) / 8%); /* border/secondary */
|
|
765
519
|
--sidebar-foreground: color-mix(in srgb, var(--color-grey-100) 64%, var(--sidebar));
|
|
766
|
-
--sidebar-ring: var(--color-grey-400);
|
|
767
520
|
|
|
768
521
|
--shadow-highlight: 0 -1px --alpha(var(--color-white) / 6%);
|
|
769
522
|
--shadow-highlight-active: 0 -1px --alpha(var(--color-white) / 2%);
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
--
|
|
773
|
-
--
|
|
774
|
-
--
|
|
775
|
-
|
|
776
|
-
--
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
--
|
|
780
|
-
--
|
|
781
|
-
--milestone-growth-wash-edge: color-mix(in srgb, var(--milestone-growth-sparkle) 32%, var(--card));
|
|
782
|
-
--milestone-customers-wash: color-mix(in srgb, var(--milestone-customers-sparkle) 12%, var(--card));
|
|
783
|
-
--milestone-customers-wash-edge: color-mix(in srgb, var(--milestone-customers-sparkle) 32%, var(--card));
|
|
784
|
-
--milestone-locked-gem: var(--color-grey-950);
|
|
785
|
-
--milestone-locked-glyph: var(--color-art-iron-500);
|
|
786
|
-
--milestone-locked-tint: var(--color-grey-800);
|
|
787
|
-
--milestone-locked-edge: --alpha(var(--color-white) / 7%);
|
|
788
|
-
--milestone-edge-end: color-mix(in srgb, var(--color-white) 8%, var(--card));
|
|
789
|
-
--milestone-locked-streak: --alpha(var(--color-white) / 12%);
|
|
790
|
-
--milestone-locked-streak-edge: transparent;
|
|
791
|
-
|
|
792
|
-
--logo-wordmark: var(--color-white);
|
|
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);
|
|
793
534
|
}
|
|
794
535
|
|
|
795
536
|
/*
|