@sesamehr/react-design-system 2.0.0-beta.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);
@@ -184,8 +189,6 @@
184
189
  --color-muted-foreground: var(--muted-foreground);
185
190
  --color-accent: var(--accent);
186
191
  --color-accent-foreground: var(--accent-foreground);
187
- --color-destructive: var(--destructive);
188
- --color-destructive-foreground: var(--destructive-foreground);
189
192
  --color-warning: var(--warning);
190
193
  --color-warning-foreground: var(--warning-foreground);
191
194
  --color-error: var(--error);