@robr0/design-system 0.1.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/LICENSE +21 -0
- package/README.md +127 -0
- package/charts.d.ts +14 -0
- package/charts.js +20 -0
- package/components/Accordion/Accordion.css +119 -0
- package/components/Accordion/Accordion.d.ts +24 -0
- package/components/Accordion/Accordion.js +76 -0
- package/components/Alert/Alert.css +252 -0
- package/components/Alert/Alert.d.ts +24 -0
- package/components/Alert/Alert.js +53 -0
- package/components/AlertDialog/AlertDialog.css +131 -0
- package/components/AlertDialog/AlertDialog.d.ts +29 -0
- package/components/AlertDialog/AlertDialog.js +143 -0
- package/components/AppLayout/AppLayout.css +52 -0
- package/components/AppLayout/AppLayout.d.ts +27 -0
- package/components/AppLayout/AppLayout.js +45 -0
- package/components/AppSidebar/AppSidebar.css +434 -0
- package/components/AppSidebar/AppSidebar.d.ts +67 -0
- package/components/AppSidebar/AppSidebar.js +272 -0
- package/components/Avatar/Avatar.css +133 -0
- package/components/Avatar/Avatar.d.ts +20 -0
- package/components/Avatar/Avatar.js +56 -0
- package/components/Avatar/demoAvatars.d.ts +14 -0
- package/components/Avatar/demoAvatars.js +16 -0
- package/components/Badge/Badge.css +68 -0
- package/components/Badge/Badge.d.ts +13 -0
- package/components/Badge/Badge.js +15 -0
- package/components/Breadcrumb/Breadcrumb.css +92 -0
- package/components/Breadcrumb/Breadcrumb.d.ts +19 -0
- package/components/Breadcrumb/Breadcrumb.js +39 -0
- package/components/Button/Button.css +381 -0
- package/components/Button/Button.d.ts +39 -0
- package/components/Button/Button.js +71 -0
- package/components/ButtonGroup/ButtonGroup.css +39 -0
- package/components/ButtonGroup/ButtonGroup.d.ts +13 -0
- package/components/ButtonGroup/ButtonGroup.js +37 -0
- package/components/Card/Card.css +169 -0
- package/components/Card/Card.d.ts +30 -0
- package/components/Card/Card.js +90 -0
- package/components/Carousel/Carousel.css +112 -0
- package/components/Carousel/Carousel.d.ts +25 -0
- package/components/Carousel/Carousel.js +126 -0
- package/components/Chart/AreaChart.d.ts +36 -0
- package/components/Chart/AreaChart.js +99 -0
- package/components/Chart/BarChart.d.ts +34 -0
- package/components/Chart/BarChart.js +107 -0
- package/components/Chart/Chart.css +176 -0
- package/components/Chart/LineChart.d.ts +34 -0
- package/components/Chart/LineChart.js +90 -0
- package/components/Chart/PieChart.d.ts +34 -0
- package/components/Chart/PieChart.js +106 -0
- package/components/Chart/RadarChart.d.ts +34 -0
- package/components/Chart/RadarChart.js +91 -0
- package/components/Chart/RadialChart.d.ts +37 -0
- package/components/Chart/RadialChart.js +119 -0
- package/components/Chart/ScatterChart.d.ts +36 -0
- package/components/Chart/ScatterChart.js +109 -0
- package/components/Chart/StackedBarChart.d.ts +34 -0
- package/components/Chart/StackedBarChart.js +111 -0
- package/components/Chart/Treemap.d.ts +33 -0
- package/components/Chart/Treemap.js +109 -0
- package/components/Checkbox/Checkbox.css +164 -0
- package/components/Checkbox/Checkbox.d.ts +45 -0
- package/components/Checkbox/Checkbox.js +125 -0
- package/components/Chip/Chip.css +195 -0
- package/components/Chip/Chip.d.ts +27 -0
- package/components/Chip/Chip.js +80 -0
- package/components/CircularButton/CircularButton.css +206 -0
- package/components/CircularButton/CircularButton.d.ts +30 -0
- package/components/CircularButton/CircularButton.js +54 -0
- package/components/CodeBlock/CodeBlock.css +180 -0
- package/components/CodeBlock/CodeBlock.d.ts +23 -0
- package/components/CodeBlock/CodeBlock.js +85 -0
- package/components/ColourSwatch/ColourSwatch.css +88 -0
- package/components/ColourSwatch/ColourSwatch.d.ts +34 -0
- package/components/ColourSwatch/ColourSwatch.js +42 -0
- package/components/Combobox/Combobox.css +411 -0
- package/components/Combobox/Combobox.d.ts +73 -0
- package/components/Combobox/Combobox.js +312 -0
- package/components/CommandPalette/CommandPalette.css +310 -0
- package/components/CommandPalette/CommandPalette.d.ts +60 -0
- package/components/CommandPalette/CommandPalette.js +263 -0
- package/components/ContactCard/ContactCard.css +123 -0
- package/components/ContactCard/ContactCard.d.ts +23 -0
- package/components/ContactCard/ContactCard.js +78 -0
- package/components/ContributionGraph/ContributionGraph.css +142 -0
- package/components/ContributionGraph/ContributionGraph.d.ts +26 -0
- package/components/ContributionGraph/ContributionGraph.js +125 -0
- package/components/DateInput/DateInput.css +163 -0
- package/components/DateInput/DateInput.d.ts +43 -0
- package/components/DateInput/DateInput.js +69 -0
- package/components/DatePicker/DatePicker.css +198 -0
- package/components/DatePicker/DatePicker.d.ts +22 -0
- package/components/DatePicker/DatePicker.js +170 -0
- package/components/Dialog/Dialog.css +176 -0
- package/components/Dialog/Dialog.d.ts +28 -0
- package/components/Dialog/Dialog.js +132 -0
- package/components/Divider/Divider.css +100 -0
- package/components/Divider/Divider.d.ts +18 -0
- package/components/Divider/Divider.js +31 -0
- package/components/Drawer/Drawer.css +262 -0
- package/components/Drawer/Drawer.d.ts +30 -0
- package/components/Drawer/Drawer.js +134 -0
- package/components/Dropdown/Dropdown.css +300 -0
- package/components/Dropdown/Dropdown.d.ts +48 -0
- package/components/Dropdown/Dropdown.js +196 -0
- package/components/DropdownMenu/DropdownMenu.css +303 -0
- package/components/DropdownMenu/DropdownMenu.d.ts +42 -0
- package/components/DropdownMenu/DropdownMenu.js +322 -0
- package/components/EmptyState/EmptyState.css +115 -0
- package/components/EmptyState/EmptyState.d.ts +27 -0
- package/components/EmptyState/EmptyState.js +32 -0
- package/components/EntityCard/EntityCard.css +69 -0
- package/components/EntityCard/EntityCard.d.ts +18 -0
- package/components/EntityCard/EntityCard.js +26 -0
- package/components/Figure/Figure.css +61 -0
- package/components/Figure/Figure.d.ts +17 -0
- package/components/Figure/Figure.js +35 -0
- package/components/FileInput/FileInput.css +308 -0
- package/components/FileInput/FileInput.d.ts +54 -0
- package/components/FileInput/FileInput.js +177 -0
- package/components/Input/Input.css +193 -0
- package/components/Input/Input.d.ts +40 -0
- package/components/Input/Input.js +71 -0
- package/components/Instructions/Instructions.css +216 -0
- package/components/Instructions/Instructions.d.ts +28 -0
- package/components/Instructions/Instructions.js +32 -0
- package/components/LinkList/LinkList.css +71 -0
- package/components/LinkList/LinkList.d.ts +20 -0
- package/components/LinkList/LinkList.js +41 -0
- package/components/MotionSwatch/MotionSwatch.css +176 -0
- package/components/MotionSwatch/MotionSwatch.d.ts +25 -0
- package/components/MotionSwatch/MotionSwatch.js +74 -0
- package/components/Nav/Nav.css +51 -0
- package/components/Nav/Nav.d.ts +19 -0
- package/components/Nav/Nav.js +26 -0
- package/components/Pagination/Pagination.css +126 -0
- package/components/Pagination/Pagination.d.ts +22 -0
- package/components/Pagination/Pagination.js +83 -0
- package/components/Popover/Popover.css +99 -0
- package/components/Popover/Popover.d.ts +28 -0
- package/components/Popover/Popover.js +102 -0
- package/components/ProgressBar/ProgressBar.css +60 -0
- package/components/ProgressBar/ProgressBar.d.ts +16 -0
- package/components/ProgressBar/ProgressBar.js +27 -0
- package/components/Quote/Quote.css +79 -0
- package/components/Quote/Quote.d.ts +18 -0
- package/components/Quote/Quote.js +26 -0
- package/components/RadioButton/RadioButton.css +132 -0
- package/components/RadioButton/RadioButton.d.ts +43 -0
- package/components/RadioButton/RadioButton.js +77 -0
- package/components/SectionTitle/SectionTitle.css +37 -0
- package/components/SectionTitle/SectionTitle.d.ts +10 -0
- package/components/SectionTitle/SectionTitle.js +17 -0
- package/components/SegmentedControl/SegmentedControl.css +129 -0
- package/components/SegmentedControl/SegmentedControl.d.ts +33 -0
- package/components/SegmentedControl/SegmentedControl.js +91 -0
- package/components/SelectionCard/SelectionCard.css +251 -0
- package/components/SelectionCard/SelectionCard.d.ts +26 -0
- package/components/SelectionCard/SelectionCard.js +85 -0
- package/components/Skeleton/Skeleton.css +79 -0
- package/components/Skeleton/Skeleton.d.ts +16 -0
- package/components/Skeleton/Skeleton.js +30 -0
- package/components/Slider/Slider.css +86 -0
- package/components/Slider/Slider.d.ts +25 -0
- package/components/Slider/Slider.js +46 -0
- package/components/SpacingSwatch/SpacingSwatch.css +108 -0
- package/components/SpacingSwatch/SpacingSwatch.d.ts +20 -0
- package/components/SpacingSwatch/SpacingSwatch.js +50 -0
- package/components/Spinner/Spinner.css +73 -0
- package/components/Spinner/Spinner.d.ts +14 -0
- package/components/Spinner/Spinner.js +42 -0
- package/components/Stat/Stat.css +78 -0
- package/components/Stat/Stat.d.ts +19 -0
- package/components/Stat/Stat.js +30 -0
- package/components/Table/Table.css +186 -0
- package/components/Table/Table.d.ts +45 -0
- package/components/Table/Table.js +65 -0
- package/components/Tabs/Tabs.css +140 -0
- package/components/Tabs/Tabs.d.ts +28 -0
- package/components/Tabs/Tabs.js +77 -0
- package/components/Textarea/Textarea.css +152 -0
- package/components/Textarea/Textarea.d.ts +40 -0
- package/components/Textarea/Textarea.js +74 -0
- package/components/Timeline/Timeline.css +339 -0
- package/components/Timeline/Timeline.d.ts +63 -0
- package/components/Timeline/Timeline.js +69 -0
- package/components/Toast/Toast.css +342 -0
- package/components/Toast/Toast.d.ts +63 -0
- package/components/Toast/Toast.js +213 -0
- package/components/ToggleGroup/ToggleGroup.css +84 -0
- package/components/ToggleGroup/ToggleGroup.d.ts +30 -0
- package/components/ToggleGroup/ToggleGroup.js +53 -0
- package/components/ToggleSwitch/ToggleSwitch.css +139 -0
- package/components/ToggleSwitch/ToggleSwitch.d.ts +23 -0
- package/components/ToggleSwitch/ToggleSwitch.js +50 -0
- package/components/Tooltip/Tooltip.css +122 -0
- package/components/Tooltip/Tooltip.d.ts +21 -0
- package/components/Tooltip/Tooltip.js +63 -0
- package/components/TypographySwatch/TypographySwatch.css +81 -0
- package/components/TypographySwatch/TypographySwatch.d.ts +24 -0
- package/components/TypographySwatch/TypographySwatch.js +40 -0
- package/components/registry.d.ts +20 -0
- package/components/registry.js +7 -0
- package/components/registry.json +67 -0
- package/components/registry.json.d.ts +70 -0
- package/components/registry.json.js +8 -0
- package/fonts/MaterialSymbolsRounded-VariableFont_FILL,GRAD,opsz,wght.woff2 +0 -0
- package/fonts/material-symbols.css +94 -0
- package/index.d.ts +62 -0
- package/index.js +123 -0
- package/package.json +63 -0
- package/tokens/registry.d.ts +22 -0
- package/tokens/registry.js +14 -0
- package/tokens/registry.json +203 -0
- package/tokens/registry.json.d.ts +206 -0
- package/tokens/registry.json.js +8 -0
- package/tokens/tokens-dark.css +119 -0
- package/tokens/tokens-light.css +159 -0
- package/tokens/tokens-motion.css +68 -0
- package/tokens/tokens-primitives.css +176 -0
- package/tokens/tokens-typography.css +116 -0
- package/tokens/tokens.css +11 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
/* ============================================
|
|
2
|
+
SEMANTIC TOKENS — LIGHT THEME
|
|
3
|
+
These are what components use
|
|
4
|
+
Always reference these, never primitives
|
|
5
|
+
Every value chains to tokens-primitives.css
|
|
6
|
+
(validated by scripts/validate-token-references.mjs)
|
|
7
|
+
============================================ */
|
|
8
|
+
|
|
9
|
+
[data-theme="light"], :root {
|
|
10
|
+
/* Text */
|
|
11
|
+
--color-text-primary: var(--primitive-neutral-10);
|
|
12
|
+
--color-text-secondary: var(--primitive-neutral-07);
|
|
13
|
+
--color-text-tertiary: var(--primitive-neutral-06);
|
|
14
|
+
--color-text-inverse: var(--primitive-neutral-04);
|
|
15
|
+
--color-text-on-inverse: var(--primitive-neutral-01);
|
|
16
|
+
|
|
17
|
+
/* Icon */
|
|
18
|
+
--color-icon-primary: var(--primitive-neutral-06);
|
|
19
|
+
--color-icon-secondary: var(--primitive-neutral-04);
|
|
20
|
+
|
|
21
|
+
/* Background - Page */
|
|
22
|
+
--color-bg-page-primary: var(--primitive-neutral-00);
|
|
23
|
+
--color-bg-page-inverse: var(--primitive-neutral-10);
|
|
24
|
+
|
|
25
|
+
/* Background - Container */
|
|
26
|
+
--color-bg-container-primary: var(--primitive-neutral-01);
|
|
27
|
+
--color-bg-container-primary-transparent: var(--primitive-neutral-01-transparent);
|
|
28
|
+
--color-bg-container-primary-semi: var(--primitive-neutral-01-semi);
|
|
29
|
+
--color-bg-container-secondary: var(--primitive-neutral-02);
|
|
30
|
+
--color-bg-container-tertiary: var(--primitive-neutral-03);
|
|
31
|
+
--color-bg-container-inverse: var(--primitive-neutral-09);
|
|
32
|
+
--color-bg-container-border: var(--primitive-neutral-02);
|
|
33
|
+
|
|
34
|
+
/* Divider */
|
|
35
|
+
--color-divider: var(--primitive-neutral-02-semi);
|
|
36
|
+
|
|
37
|
+
/* Overlay & controls */
|
|
38
|
+
--color-scrim: var(--primitive-true-black-semi);
|
|
39
|
+
--color-control-thumb: var(--primitive-neutral-00);
|
|
40
|
+
|
|
41
|
+
/* Elevation — the only shadows in the system (floating surfaces + modals) */
|
|
42
|
+
--shadow-floating: 0 4px 16px rgba(0, 0, 0, 0.12);
|
|
43
|
+
--shadow-modal: 0 8px 32px rgba(0, 0, 0, 0.2);
|
|
44
|
+
|
|
45
|
+
/* Action - Primary */
|
|
46
|
+
--color-action-primary-bg: var(--primitive-teal-07);
|
|
47
|
+
--color-action-primary-bg-hover: var(--primitive-teal-08);
|
|
48
|
+
--color-action-primary-bg-active: var(--primitive-teal-09);
|
|
49
|
+
--color-action-primary-text: var(--primitive-teal-02);
|
|
50
|
+
--color-action-primary-text-active: var(--primitive-neutral-01);
|
|
51
|
+
--color-action-primary-text-secondary: var(--primitive-teal-10);
|
|
52
|
+
--color-action-primary-text-tertiary: var(--primitive-teal-07);
|
|
53
|
+
--color-action-primary-border: var(--primitive-teal-09);
|
|
54
|
+
--color-action-primary-border-secondary: var(--primitive-teal-06);
|
|
55
|
+
--color-action-primary-border-tertiary: var(--primitive-teal-04);
|
|
56
|
+
|
|
57
|
+
/* Action - Icon */
|
|
58
|
+
--color-action-icon-default: var(--primitive-neutral-10);
|
|
59
|
+
--color-action-icon-active: var(--primitive-teal-02);
|
|
60
|
+
|
|
61
|
+
/* Action - Passive (Secondary button) */
|
|
62
|
+
--color-action-passive-text: var(--primitive-neutral-10);
|
|
63
|
+
--color-action-passive-bg: var(--primitive-neutral-01-transparent);
|
|
64
|
+
--color-action-passive-bg-hover: var(--primitive-neutral-02-semi);
|
|
65
|
+
--color-action-passive-bg-active: var(--primitive-neutral-03-semi);
|
|
66
|
+
|
|
67
|
+
/* Core colours */
|
|
68
|
+
--color-core-ui-primary: var(--primitive-teal-07);
|
|
69
|
+
--color-core-ui-secondary: var(--primitive-teal-10);
|
|
70
|
+
--color-core-accent-coral: var(--primitive-red-07);
|
|
71
|
+
--color-core-accent-violet: var(--primitive-purple-07);
|
|
72
|
+
--color-core-accent-cobalt: var(--primitive-blue-07);
|
|
73
|
+
--color-core-accent-amber: var(--primitive-orange-07);
|
|
74
|
+
--color-core-accent-gold: var(--primitive-yellow-07);
|
|
75
|
+
--color-core-accent-mint: var(--primitive-green-07);
|
|
76
|
+
|
|
77
|
+
/* Status - Positive */
|
|
78
|
+
--color-status-positive-bg: var(--primitive-green-01);
|
|
79
|
+
--color-status-positive-border: var(--primitive-green-07);
|
|
80
|
+
--color-status-positive-text: var(--primitive-green-10);
|
|
81
|
+
|
|
82
|
+
/* Status - Warning */
|
|
83
|
+
--color-status-warning-bg: var(--primitive-orange-01);
|
|
84
|
+
--color-status-warning-border: var(--primitive-orange-07);
|
|
85
|
+
--color-status-warning-text: var(--primitive-orange-10);
|
|
86
|
+
|
|
87
|
+
/* Status - Error */
|
|
88
|
+
--color-status-error-bg: var(--primitive-red-01);
|
|
89
|
+
--color-status-error-border: var(--primitive-red-07);
|
|
90
|
+
--color-status-error-text: var(--primitive-red-10);
|
|
91
|
+
|
|
92
|
+
/* Status - Info */
|
|
93
|
+
--color-status-info-bg: var(--primitive-blue-01);
|
|
94
|
+
--color-status-info-border: var(--primitive-blue-07);
|
|
95
|
+
--color-status-info-text: var(--primitive-blue-10);
|
|
96
|
+
|
|
97
|
+
/* Status - Neutral */
|
|
98
|
+
--color-status-neutral-bg: var(--primitive-neutral-02);
|
|
99
|
+
--color-status-neutral-border: var(--primitive-neutral-07);
|
|
100
|
+
--color-status-neutral-text: var(--primitive-neutral-08);
|
|
101
|
+
|
|
102
|
+
/* Chart - Contribution heatmap ramp (level 0 = none → level 4 = most) */
|
|
103
|
+
--color-chart-contribution-0: var(--color-bg-container-primary);
|
|
104
|
+
--color-chart-contribution-1: var(--primitive-green-02);
|
|
105
|
+
--color-chart-contribution-2: var(--primitive-green-04);
|
|
106
|
+
--color-chart-contribution-3: var(--primitive-green-07);
|
|
107
|
+
--color-chart-contribution-4: var(--primitive-green-09);
|
|
108
|
+
|
|
109
|
+
/* Input */
|
|
110
|
+
--color-input-text-primary: var(--primitive-neutral-10);
|
|
111
|
+
--color-input-text-placeholder: var(--primitive-neutral-06);
|
|
112
|
+
--color-input-text-disabled: var(--primitive-neutral-04);
|
|
113
|
+
--color-input-text-inverse: var(--primitive-neutral-04);
|
|
114
|
+
--color-input-border-primary: var(--primitive-neutral-02);
|
|
115
|
+
--color-input-border-hover: var(--primitive-teal-04);
|
|
116
|
+
--color-input-border-selected: var(--primitive-teal-06);
|
|
117
|
+
--color-input-border-disabled: var(--primitive-neutral-03);
|
|
118
|
+
--color-input-bg-primary: var(--primitive-neutral-00);
|
|
119
|
+
--color-input-bg-disabled: var(--primitive-neutral-02);
|
|
120
|
+
|
|
121
|
+
/* Spacing (from primitives) */
|
|
122
|
+
--radius-xxs: var(--primitive-radius-xxs);
|
|
123
|
+
--radius-xs: var(--primitive-radius-xs);
|
|
124
|
+
--radius-sm: var(--primitive-radius-sm);
|
|
125
|
+
--radius-md: var(--primitive-radius-md);
|
|
126
|
+
--radius-lg: var(--primitive-radius-lg);
|
|
127
|
+
--radius-xl: var(--primitive-radius-xl);
|
|
128
|
+
--radius-xxl: var(--primitive-radius-xxl);
|
|
129
|
+
--radius-full: var(--primitive-radius-full);
|
|
130
|
+
|
|
131
|
+
--padding-xxxs: var(--primitive-padding-xxxs);
|
|
132
|
+
--padding-xxs: var(--primitive-padding-xxs);
|
|
133
|
+
--padding-xs: var(--primitive-padding-xs);
|
|
134
|
+
--padding-sm: var(--primitive-padding-sm);
|
|
135
|
+
--padding-sm-md: var(--primitive-padding-sm-md);
|
|
136
|
+
--padding-md: var(--primitive-padding-md);
|
|
137
|
+
--padding-lg: var(--primitive-padding-lg);
|
|
138
|
+
--padding-xl: var(--primitive-padding-xl);
|
|
139
|
+
|
|
140
|
+
--border-xs: var(--primitive-border-xs);
|
|
141
|
+
--border-md: var(--primitive-border-md);
|
|
142
|
+
|
|
143
|
+
/* Icon size — theme-independent, so defined here only (like radius and
|
|
144
|
+
padding) rather than duplicated into tokens-dark.css. Components set
|
|
145
|
+
`--icon-size` to one of these; .material-symbols-rounded reads it for
|
|
146
|
+
font-size, box size, and optical size together. */
|
|
147
|
+
--icon-size-sm: var(--primitive-icon-sm); /* 20px — compact controls */
|
|
148
|
+
--icon-size-md: var(--primitive-icon-md); /* 24px — default */
|
|
149
|
+
--icon-size-lg: var(--primitive-icon-lg); /* 32px — feature */
|
|
150
|
+
--icon-size-xl: var(--primitive-icon-xl); /* 48px — marketing */
|
|
151
|
+
|
|
152
|
+
--gap-xxs: var(--primitive-gap-xxs);
|
|
153
|
+
--gap-xs: var(--primitive-gap-xs);
|
|
154
|
+
--gap-sm: var(--primitive-gap-sm);
|
|
155
|
+
--gap-sm-md: var(--primitive-gap-sm-md);
|
|
156
|
+
--gap-md: var(--primitive-gap-md);
|
|
157
|
+
--gap-lg: var(--primitive-gap-lg);
|
|
158
|
+
--gap-xl: var(--primitive-gap-xl);
|
|
159
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/* ============================================
|
|
2
|
+
MOTION TOKENS
|
|
3
|
+
Durations and easing curves for transitions
|
|
4
|
+
and animations. Theme-agnostic (no light/dark
|
|
5
|
+
split) — defined once in :root, like typography.
|
|
6
|
+
============================================ */
|
|
7
|
+
|
|
8
|
+
:root {
|
|
9
|
+
/* ============================================
|
|
10
|
+
DURATIONS — CORE
|
|
11
|
+
The day-to-day scale. Most transitions use
|
|
12
|
+
base; fast is for hover feedback, slow for
|
|
13
|
+
structural changes, slower for page reveals.
|
|
14
|
+
============================================ */
|
|
15
|
+
|
|
16
|
+
--motion-duration-fast: 150ms; /* Quick feedback: hovers, icons, tooltips */
|
|
17
|
+
--motion-duration-base: 200ms; /* Default for color/opacity/border transitions */
|
|
18
|
+
--motion-duration-slow: 300ms; /* Structural: accordion, sidebar, toast enter */
|
|
19
|
+
--motion-duration-slower: 600ms; /* Deliberate page-entrance reveals */
|
|
20
|
+
|
|
21
|
+
/* ============================================
|
|
22
|
+
DURATIONS — EXTENDED
|
|
23
|
+
Special-purpose timings; not part of the
|
|
24
|
+
day-to-day scale.
|
|
25
|
+
============================================ */
|
|
26
|
+
|
|
27
|
+
--motion-duration-deliberate: 400ms; /* Carousel slide */
|
|
28
|
+
--motion-duration-loop-spin: 1000ms; /* Spinner rotation */
|
|
29
|
+
--motion-duration-loop-shimmer: 1800ms; /* Skeleton shimmer */
|
|
30
|
+
|
|
31
|
+
/* ============================================
|
|
32
|
+
EASINGS
|
|
33
|
+
============================================ */
|
|
34
|
+
|
|
35
|
+
--motion-ease-standard: ease; /* General default */
|
|
36
|
+
--motion-ease-emphasized: cubic-bezier(0.4, 0, 0.2, 1); /* Size/layout changes */
|
|
37
|
+
--motion-ease-entrance: cubic-bezier(0.16, 1, 0.3, 1); /* Decelerate for enter animations */
|
|
38
|
+
--motion-ease-linear: linear; /* Continuous loops: spinner, progress */
|
|
39
|
+
--motion-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1); /* Playful overshoot: toggle thumb */
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* ============================================
|
|
43
|
+
REDUCED MOTION
|
|
44
|
+
Token collapse covers token-consuming CSS;
|
|
45
|
+
the universal guard covers components still
|
|
46
|
+
on hardcoded timings.
|
|
47
|
+
============================================ */
|
|
48
|
+
|
|
49
|
+
@media (prefers-reduced-motion: reduce) {
|
|
50
|
+
:root {
|
|
51
|
+
--motion-duration-fast: 0.01ms;
|
|
52
|
+
--motion-duration-base: 0.01ms;
|
|
53
|
+
--motion-duration-slow: 0.01ms;
|
|
54
|
+
--motion-duration-slower: 0.01ms;
|
|
55
|
+
--motion-duration-deliberate: 0.01ms;
|
|
56
|
+
--motion-duration-loop-spin: 0.01ms;
|
|
57
|
+
--motion-duration-loop-shimmer: 0.01ms;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
*,
|
|
61
|
+
*::before,
|
|
62
|
+
*::after {
|
|
63
|
+
animation-duration: 0.01ms !important;
|
|
64
|
+
animation-iteration-count: 1 !important;
|
|
65
|
+
transition-duration: 0.01ms !important;
|
|
66
|
+
scroll-behavior: auto !important;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
/* ============================================
|
|
2
|
+
PRIMITIVE TOKENS
|
|
3
|
+
Source of truth — raw values only
|
|
4
|
+
Do not use these directly in components
|
|
5
|
+
============================================ */
|
|
6
|
+
|
|
7
|
+
:root {
|
|
8
|
+
/* ============================================
|
|
9
|
+
COLOR PRIMITIVES
|
|
10
|
+
============================================ */
|
|
11
|
+
|
|
12
|
+
/* Neutral Scale */
|
|
13
|
+
--primitive-neutral-00: #FFFFFF;
|
|
14
|
+
--primitive-neutral-01: #F1F1F1;
|
|
15
|
+
--primitive-neutral-01-transparent: rgba(241, 241, 241, 0.01);
|
|
16
|
+
--primitive-neutral-01-semi: rgba(241, 241, 241, 0.6);
|
|
17
|
+
--primitive-neutral-02: #D6D6D6;
|
|
18
|
+
--primitive-neutral-02-semi: rgba(214, 214, 214, 0.8);
|
|
19
|
+
--primitive-neutral-03: #BCBCBC;
|
|
20
|
+
--primitive-neutral-03-semi: rgba(188, 188, 188, 0.8);
|
|
21
|
+
--primitive-neutral-04: #A2A2A2;
|
|
22
|
+
--primitive-neutral-05: #888888;
|
|
23
|
+
--primitive-neutral-06: #6D6D6D;
|
|
24
|
+
--primitive-neutral-07: #303030;
|
|
25
|
+
--primitive-neutral-07-semi: rgba(48, 48, 48, 0.8);
|
|
26
|
+
--primitive-neutral-08: #232323;
|
|
27
|
+
--primitive-neutral-08-semi: rgba(35, 35, 35, 0.8);
|
|
28
|
+
--primitive-neutral-09: #0E0E0E;
|
|
29
|
+
--primitive-neutral-09-transparent: rgba(14, 14, 14, 0.01);
|
|
30
|
+
--primitive-neutral-09-semi: rgba(14, 14, 14, 0.8);
|
|
31
|
+
--primitive-neutral-09-semi-transparent: rgba(14, 14, 14, 0.6);
|
|
32
|
+
--primitive-neutral-10: #050505;
|
|
33
|
+
--primitive-neutral-10-semi: rgba(5, 5, 5, 0.6);
|
|
34
|
+
--primitive-neutral-10-subtle: rgba(5, 5, 5, 0.01);
|
|
35
|
+
--primitive-neutral-11: #000000;
|
|
36
|
+
|
|
37
|
+
/* Red Scale */
|
|
38
|
+
--primitive-red-01: #FDEFF3;
|
|
39
|
+
--primitive-red-02: #FAD3DD;
|
|
40
|
+
--primitive-red-03: #F8B7C7;
|
|
41
|
+
--primitive-red-04: #F69BB1;
|
|
42
|
+
--primitive-red-05: #F37F9B;
|
|
43
|
+
--primitive-red-06: #F16385;
|
|
44
|
+
--primitive-red-07: #EF476F;
|
|
45
|
+
--primitive-red-08: #C93A5C;
|
|
46
|
+
--primitive-red-09: #8E2641;
|
|
47
|
+
--primitive-red-10: #571727;
|
|
48
|
+
|
|
49
|
+
/* Orange Scale */
|
|
50
|
+
--primitive-orange-01: #FFF3EC;
|
|
51
|
+
--primitive-orange-02: #FBD9C5;
|
|
52
|
+
--primitive-orange-03: #F6B794;
|
|
53
|
+
--primitive-orange-04: #F1996E;
|
|
54
|
+
--primitive-orange-05: #E98256;
|
|
55
|
+
--primitive-orange-06: #E07045;
|
|
56
|
+
--primitive-orange-07: #EF8247;
|
|
57
|
+
--primitive-orange-08: #C65E33;
|
|
58
|
+
--primitive-orange-09: #8F4324;
|
|
59
|
+
--primitive-orange-10: #552716;
|
|
60
|
+
|
|
61
|
+
/* Yellow Scale */
|
|
62
|
+
--primitive-yellow-01: #FFF9EA;
|
|
63
|
+
--primitive-yellow-02: #FFF0C9;
|
|
64
|
+
--primitive-yellow-03: #FFE5A3;
|
|
65
|
+
--primitive-yellow-04: #FFD97F;
|
|
66
|
+
--primitive-yellow-05: #F2C55E;
|
|
67
|
+
--primitive-yellow-06: #E0B654;
|
|
68
|
+
--primitive-yellow-07: #FFD166;
|
|
69
|
+
--primitive-yellow-08: #C49A3E;
|
|
70
|
+
--primitive-yellow-09: #8A6B2A;
|
|
71
|
+
--primitive-yellow-10: #544016;
|
|
72
|
+
|
|
73
|
+
/* Green Scale */
|
|
74
|
+
--primitive-green-01: #ECFCF7;
|
|
75
|
+
--primitive-green-02: #CEF6E8;
|
|
76
|
+
--primitive-green-03: #9DEBD4;
|
|
77
|
+
--primitive-green-04: #6DE0C0;
|
|
78
|
+
--primitive-green-05: #3ED4AA;
|
|
79
|
+
--primitive-green-06: #1FCB9A;
|
|
80
|
+
--primitive-green-07: #06D6A0;
|
|
81
|
+
--primitive-green-08: #05A67C;
|
|
82
|
+
--primitive-green-09: #03765A;
|
|
83
|
+
--primitive-green-10: #024336;
|
|
84
|
+
|
|
85
|
+
/* Teal Scale */
|
|
86
|
+
--primitive-teal-01: #ECF7FB;
|
|
87
|
+
--primitive-teal-02: #CFEAF3;
|
|
88
|
+
--primitive-teal-03: #9ED4E5;
|
|
89
|
+
--primitive-teal-04: #6DBCD6;
|
|
90
|
+
--primitive-teal-05: #3CA5C6;
|
|
91
|
+
--primitive-teal-06: #2C9AB9;
|
|
92
|
+
--primitive-teal-07: #118AB2;
|
|
93
|
+
--primitive-teal-08: #0E6E8F;
|
|
94
|
+
--primitive-teal-09: #0A4E66;
|
|
95
|
+
--primitive-teal-10: #052F3E;
|
|
96
|
+
|
|
97
|
+
/* Blue Scale */
|
|
98
|
+
--primitive-blue-01: #EEF3FD;
|
|
99
|
+
--primitive-blue-02: #D3DDF8;
|
|
100
|
+
--primitive-blue-03: #AABCEF;
|
|
101
|
+
--primitive-blue-04: #7F99E3;
|
|
102
|
+
--primitive-blue-05: #5475D4;
|
|
103
|
+
--primitive-blue-06: #345AC4;
|
|
104
|
+
--primitive-blue-07: #1E47B0;
|
|
105
|
+
--primitive-blue-08: #163789;
|
|
106
|
+
--primitive-blue-09: #0F265E;
|
|
107
|
+
--primitive-blue-10: #081633;
|
|
108
|
+
|
|
109
|
+
/* Purple Scale */
|
|
110
|
+
--primitive-purple-01: #F7F0FE;
|
|
111
|
+
--primitive-purple-02: #E6D2FB;
|
|
112
|
+
--primitive-purple-03: #CFABF7;
|
|
113
|
+
--primitive-purple-04: #B785F0;
|
|
114
|
+
--primitive-purple-05: #A86AE8;
|
|
115
|
+
--primitive-purple-06: #9754DC;
|
|
116
|
+
--primitive-purple-07: #9E47EF;
|
|
117
|
+
--primitive-purple-08: #7434B3;
|
|
118
|
+
--primitive-purple-09: #52247D;
|
|
119
|
+
--primitive-purple-10: #31164A;
|
|
120
|
+
|
|
121
|
+
/* True Black */
|
|
122
|
+
--primitive-true-black: #000000;
|
|
123
|
+
--primitive-true-black-semi: rgba(0, 0, 0, 0.5);
|
|
124
|
+
--primitive-true-black-strong: rgba(0, 0, 0, 0.7);
|
|
125
|
+
|
|
126
|
+
/* ============================================
|
|
127
|
+
SPACING PRIMITIVES
|
|
128
|
+
============================================ */
|
|
129
|
+
|
|
130
|
+
/* Spacing / Radius */
|
|
131
|
+
--primitive-radius-xxs: 2px;
|
|
132
|
+
--primitive-radius-xs: 4px;
|
|
133
|
+
--primitive-radius-sm: 8px;
|
|
134
|
+
--primitive-radius-md: 12px;
|
|
135
|
+
--primitive-radius-lg: 16px;
|
|
136
|
+
--primitive-radius-xl: 24px;
|
|
137
|
+
--primitive-radius-xxl: 48px;
|
|
138
|
+
--primitive-radius-full: 999px;
|
|
139
|
+
|
|
140
|
+
/* Padding */
|
|
141
|
+
--primitive-padding-xxxs: 2px;
|
|
142
|
+
--primitive-padding-xxs: 4px;
|
|
143
|
+
--primitive-padding-xs: 6px;
|
|
144
|
+
--primitive-padding-sm: 8px;
|
|
145
|
+
--primitive-padding-sm-md: 12px;
|
|
146
|
+
--primitive-padding-md: 16px;
|
|
147
|
+
--primitive-padding-lg: 20px;
|
|
148
|
+
--primitive-padding-xl: 40px;
|
|
149
|
+
--primitive-padding-xxl: 60px;
|
|
150
|
+
|
|
151
|
+
/* Border width */
|
|
152
|
+
--primitive-border-xs: 1px;
|
|
153
|
+
--primitive-border-md: 2px;
|
|
154
|
+
|
|
155
|
+
/* Icon size
|
|
156
|
+
The scale starts at 20px because that is the floor of the Material
|
|
157
|
+
Symbols variable font's `opsz` (optical size) axis — see the fvar
|
|
158
|
+
range 20..48. Below 20 the axis clamps and optical sizing silently
|
|
159
|
+
stops tracking, so smaller icons cannot be drawn correctly. */
|
|
160
|
+
--primitive-icon-sm: 20px;
|
|
161
|
+
--primitive-icon-md: 24px;
|
|
162
|
+
--primitive-icon-lg: 32px;
|
|
163
|
+
--primitive-icon-xl: 48px;
|
|
164
|
+
|
|
165
|
+
/* Gap */
|
|
166
|
+
--primitive-gap-xxs: 2px;
|
|
167
|
+
--primitive-gap-xs: 4px;
|
|
168
|
+
--primitive-gap-sm: 8px;
|
|
169
|
+
--primitive-gap-sm-md: 12px;
|
|
170
|
+
--primitive-gap-md: 16px;
|
|
171
|
+
--primitive-gap-lg: 20px;
|
|
172
|
+
--primitive-gap-xl: 40px;
|
|
173
|
+
--primitive-gap-xxl: 60px;
|
|
174
|
+
--primitive-gap-xxxl: 80px;
|
|
175
|
+
--primitive-gap-xxxxl: 120px;
|
|
176
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/* ============================================
|
|
2
|
+
TYPOGRAPHY TOKENS
|
|
3
|
+
Font families, sizes, weights, line heights
|
|
4
|
+
All typography styles from Figma design system
|
|
5
|
+
============================================ */
|
|
6
|
+
|
|
7
|
+
:root {
|
|
8
|
+
/* ============================================
|
|
9
|
+
FONT FAMILIES
|
|
10
|
+
============================================ */
|
|
11
|
+
|
|
12
|
+
--font-family-primary: 'Nunito Sans', sans-serif;
|
|
13
|
+
|
|
14
|
+
/* ============================================
|
|
15
|
+
DISPLAY STYLES (Large headlines)
|
|
16
|
+
============================================ */
|
|
17
|
+
|
|
18
|
+
/* Mega 1 - Largest display text */
|
|
19
|
+
--font-mega-1-family: var(--font-family-primary);
|
|
20
|
+
--font-mega-1-size: 132px;
|
|
21
|
+
--font-mega-1-weight: 300;
|
|
22
|
+
--font-mega-1-line-height: 0.85;
|
|
23
|
+
--font-mega-1-letter-spacing: 0.02em; /* 2% */
|
|
24
|
+
|
|
25
|
+
/* Mega 2 */
|
|
26
|
+
--font-mega-2-family: var(--font-family-primary);
|
|
27
|
+
--font-mega-2-size: 116px;
|
|
28
|
+
--font-mega-2-weight: 300;
|
|
29
|
+
--font-mega-2-line-height: 0.85;
|
|
30
|
+
--font-mega-2-letter-spacing: 0.02em; /* 2% */
|
|
31
|
+
|
|
32
|
+
/* Display 1 */
|
|
33
|
+
--font-display-1-family: var(--font-family-primary);
|
|
34
|
+
--font-display-1-size: 96px;
|
|
35
|
+
--font-display-1-weight: 300;
|
|
36
|
+
--font-display-1-line-height: 1;
|
|
37
|
+
--font-display-1-letter-spacing: 0.02em; /* 2% */
|
|
38
|
+
|
|
39
|
+
/* Display 2 */
|
|
40
|
+
--font-display-2-family: var(--font-family-primary);
|
|
41
|
+
--font-display-2-size: 64px;
|
|
42
|
+
--font-display-2-weight: 300;
|
|
43
|
+
--font-display-2-line-height: 1;
|
|
44
|
+
--font-display-2-letter-spacing: 0.015em; /* 1.5% */
|
|
45
|
+
|
|
46
|
+
/* Sub Display */
|
|
47
|
+
--font-sub-display-family: var(--font-family-primary);
|
|
48
|
+
--font-sub-display-size: 30px;
|
|
49
|
+
--font-sub-display-weight: 300;
|
|
50
|
+
--font-sub-display-line-height: 44px;
|
|
51
|
+
--font-sub-display-letter-spacing: 0.015em; /* 1.5% */
|
|
52
|
+
|
|
53
|
+
/* ============================================
|
|
54
|
+
HEADING STYLES
|
|
55
|
+
============================================ */
|
|
56
|
+
|
|
57
|
+
/* Heading 1 */
|
|
58
|
+
--font-heading-1-family: var(--font-family-primary);
|
|
59
|
+
--font-heading-1-size: 30px;
|
|
60
|
+
--font-heading-1-weight: 600;
|
|
61
|
+
--font-heading-1-line-height: 44px;
|
|
62
|
+
--font-heading-1-letter-spacing: 0.015em; /* 1.5% */
|
|
63
|
+
|
|
64
|
+
/* Heading 2 */
|
|
65
|
+
--font-heading-2-family: var(--font-family-primary);
|
|
66
|
+
--font-heading-2-size: 26px;
|
|
67
|
+
--font-heading-2-weight: 600;
|
|
68
|
+
--font-heading-2-line-height: 32px;
|
|
69
|
+
--font-heading-2-letter-spacing: 0.015em; /* 1.5% */
|
|
70
|
+
|
|
71
|
+
/* Heading 3 */
|
|
72
|
+
--font-heading-3-family: var(--font-family-primary);
|
|
73
|
+
--font-heading-3-size: 22px;
|
|
74
|
+
--font-heading-3-weight: 600;
|
|
75
|
+
--font-heading-3-line-height: 28px;
|
|
76
|
+
--font-heading-3-letter-spacing: 0.015em; /* 1.5% */
|
|
77
|
+
|
|
78
|
+
/* ============================================
|
|
79
|
+
BODY TEXT STYLES
|
|
80
|
+
============================================ */
|
|
81
|
+
|
|
82
|
+
/* Title Body */
|
|
83
|
+
--font-title-body-family: var(--font-family-primary);
|
|
84
|
+
--font-title-body-size: 16px;
|
|
85
|
+
--font-title-body-weight: 600;
|
|
86
|
+
--font-title-body-line-height: 24px;
|
|
87
|
+
--font-title-body-letter-spacing: -0.01em; /* -1% */
|
|
88
|
+
|
|
89
|
+
/* Paragraph Em (emphasis — medium weight, between paragraph and title body) */
|
|
90
|
+
--font-paragraph-em-family: var(--font-family-primary);
|
|
91
|
+
--font-paragraph-em-size: 16px;
|
|
92
|
+
--font-paragraph-em-weight: 500;
|
|
93
|
+
--font-paragraph-em-line-height: 24px;
|
|
94
|
+
--font-paragraph-em-letter-spacing: -0.01em; /* -1% */
|
|
95
|
+
|
|
96
|
+
/* Paragraph */
|
|
97
|
+
--font-paragraph-family: var(--font-family-primary);
|
|
98
|
+
--font-paragraph-size: 16px;
|
|
99
|
+
--font-paragraph-weight: 400;
|
|
100
|
+
--font-paragraph-line-height: 24px;
|
|
101
|
+
--font-paragraph-letter-spacing: 0;
|
|
102
|
+
|
|
103
|
+
/* Paragraph SM */
|
|
104
|
+
--font-paragraph-sm-family: var(--font-family-primary);
|
|
105
|
+
--font-paragraph-sm-size: 14px;
|
|
106
|
+
--font-paragraph-sm-weight: 400;
|
|
107
|
+
--font-paragraph-sm-line-height: 20px;
|
|
108
|
+
--font-paragraph-sm-letter-spacing: 0;
|
|
109
|
+
|
|
110
|
+
/* Paragraph SM Em (emphasis — medium weight small paragraph) */
|
|
111
|
+
--font-paragraph-sm-em-family: var(--font-family-primary);
|
|
112
|
+
--font-paragraph-sm-em-size: 14px;
|
|
113
|
+
--font-paragraph-sm-em-weight: 500;
|
|
114
|
+
--font-paragraph-sm-em-line-height: 20px;
|
|
115
|
+
--font-paragraph-sm-em-letter-spacing: 0;
|
|
116
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* ============================================
|
|
2
|
+
TOKENS — MAIN ENTRY POINT
|
|
3
|
+
Import this file once in your app
|
|
4
|
+
Order matters: primitives first, then themes
|
|
5
|
+
============================================ */
|
|
6
|
+
|
|
7
|
+
@import './tokens-primitives.css';
|
|
8
|
+
@import './tokens-typography.css';
|
|
9
|
+
@import './tokens-motion.css';
|
|
10
|
+
@import './tokens-light.css';
|
|
11
|
+
@import './tokens-dark.css';
|