@sesamehr/react-design-system 1.6.1 → 2.0.0-beta.2
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.
|
@@ -69,13 +69,18 @@
|
|
|
69
69
|
--accent: var(--color-zinc-100);
|
|
70
70
|
--accent-foreground: var(--color-zinc-900);
|
|
71
71
|
|
|
72
|
-
--destructive: var(--color-red-500);
|
|
73
|
-
--destructive-foreground: var(--color-white);
|
|
74
72
|
|
|
75
73
|
--success: var(--color-green-500);
|
|
76
74
|
--success-foreground: var(--color-white);
|
|
77
75
|
--warning: var(--color-amber-500);
|
|
78
76
|
--warning-foreground: var(--color-white);
|
|
77
|
+
/* The one semantic name for this red. Figma's Primitive collection calls it
|
|
78
|
+
`error`, so the code does too. There used to be a `--destructive` beside it
|
|
79
|
+
holding the identical value — two names for one colour, which means two
|
|
80
|
+
places to re-point it and a coin flip every time a component reaches for
|
|
81
|
+
red. The *component* variant stays `destructive` (Button, Badge and
|
|
82
|
+
StatusBadge), which is also what Figma names that style: the action is
|
|
83
|
+
destructive, the colour is error. */
|
|
79
84
|
--error: var(--color-red-500);
|
|
80
85
|
--error-foreground: var(--color-white);
|
|
81
86
|
--info: var(--color-blue-500);
|
|
@@ -125,7 +130,12 @@
|
|
|
125
130
|
--sidebar-ring: var(--color-brand-500);
|
|
126
131
|
}
|
|
127
132
|
|
|
128
|
-
|
|
133
|
+
/* `static` as well as `inline`, because the two answer different questions.
|
|
134
|
+
`inline` is about utilities: `bg-brand` compiles to the underlying value
|
|
135
|
+
rather than another hop through `var(--color-brand)`. `static` is about
|
|
136
|
+
emission: without it Tailwind only declares the variables some generated
|
|
137
|
+
utility happens to mention. Kept in step with the Vue package's copy. */
|
|
138
|
+
@theme static inline {
|
|
129
139
|
--color-font-primary: var(--font-primary);
|
|
130
140
|
--color-font-secondary: var(--font-secondary);
|
|
131
141
|
--color-font-tertiary: var(--font-tertiary);
|
|
@@ -179,8 +189,6 @@
|
|
|
179
189
|
--color-muted-foreground: var(--muted-foreground);
|
|
180
190
|
--color-accent: var(--accent);
|
|
181
191
|
--color-accent-foreground: var(--accent-foreground);
|
|
182
|
-
--color-destructive: var(--destructive);
|
|
183
|
-
--color-destructive-foreground: var(--destructive-foreground);
|
|
184
192
|
--color-warning: var(--warning);
|
|
185
193
|
--color-warning-foreground: var(--warning-foreground);
|
|
186
194
|
--color-error: var(--error);
|