@atom63/styles 0.1.0-beta.8 → 0.1.0-beta.9

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.
@@ -223,7 +223,7 @@
223
223
  --a63-action-disabled-foreground: var(--surface-light-9);
224
224
  /* A disabled action's border. */
225
225
  --a63-action-disabled-border: var(--a63-border-subtle);
226
- /* Status (danger's status role is served by --a63-action-danger). The base is
226
+ /* Status (info, success, warning and danger). The base is
227
227
  the accent used for tinted callouts (bg = mix toward transparent, text/border
228
228
  = the accent); -foreground is the text/icon color ON a SOLID status fill.
229
229
  Step 600 on light surfaces and 500 on dark ones (the .dark block), so icons
@@ -252,6 +252,18 @@
252
252
  );
253
253
  --a63-status-warning-subtle: color-mix(in oklab, var(--a63-status-warning) 14%, transparent);
254
254
  --a63-status-warning-subtle-foreground: var(--color-warning-800);
255
+ /* The danger status accent: error icons, borders and tints (Alert, form and
256
+ sync errors). --a63-action-danger stays the fill for danger buttons and does
257
+ not change with the mode; this one moves to step 500 on dark surfaces so it
258
+ reaches 3:1 there. Error text uses --a63-text-danger. */
259
+ --a63-status-danger: var(--color-danger-600);
260
+ /* Text and icons on a solid fill of this status. Same auto-contrast step as
261
+ the primary foreground: near-black on bright fills, near-white on dark ones. */
262
+ --a63-status-danger-foreground: oklch(
263
+ from var(--a63-status-danger) clamp(0.15, (0.57 - l) * 1000, 0.985) calc(c * 0.06) h
264
+ );
265
+ --a63-status-danger-subtle: color-mix(in oklab, var(--a63-status-danger) 14%, transparent);
266
+ --a63-status-danger-subtle-foreground: var(--color-danger-700);
255
267
  /* Chart series colors. Series 1 is the primary; 2–5 are fixed hues that stay
256
268
  distinct from it and from each other (500 on light surfaces, 400 on dark). */
257
269
  --a63-chart-1: var(--a63-action-primary);
@@ -398,6 +410,9 @@
398
410
  --a63-status-warning: var(--color-warning-500);
399
411
  --a63-status-warning-subtle: color-mix(in oklab, var(--a63-status-warning) 14%, transparent);
400
412
  --a63-status-warning-subtle-foreground: var(--color-warning-400);
413
+ --a63-status-danger: var(--color-danger-500);
414
+ --a63-status-danger-subtle: color-mix(in oklab, var(--a63-status-danger) 14%, transparent);
415
+ --a63-status-danger-subtle-foreground: var(--color-danger-400);
401
416
  --a63-chart-1: var(--a63-action-primary);
402
417
  --a63-chart-2: var(--color-teal-400);
403
418
  --a63-chart-3: var(--color-amber-400);
@@ -697,7 +697,7 @@
697
697
  "$root": {
698
698
  "$type": "color",
699
699
  "$value": "{color.info.600}",
700
- "$description": "Status (danger's status role is served by --a63-action-danger). The base is\nthe accent used for tinted callouts (bg = mix toward transparent, text/border\n= the accent); -foreground is the text/icon color ON a SOLID status fill.\nStep 600 on light surfaces and 500 on dark ones (the .dark block), so icons\ndrawn in the accent reach WCAG's 3:1 for graphics in both modes."
700
+ "$description": "Status (info, success, warning and danger). The base is\nthe accent used for tinted callouts (bg = mix toward transparent, text/border\n= the accent); -foreground is the text/icon color ON a SOLID status fill.\nStep 600 on light surfaces and 500 on dark ones (the .dark block), so icons\ndrawn in the accent reach WCAG's 3:1 for graphics in both modes."
701
701
  },
702
702
  "foreground": {
703
703
  "$type": "color",
@@ -774,6 +774,34 @@
774
774
  "$value": "{color.warning.800}"
775
775
  }
776
776
  }
777
+ },
778
+ "danger": {
779
+ "$root": {
780
+ "$type": "color",
781
+ "$value": "{color.danger.600}",
782
+ "$description": "The danger status accent: error icons, borders and tints (Alert, form and\nsync errors). --a63-action-danger stays the fill for danger buttons and does\nnot change with the mode; this one moves to step 500 on dark surfaces so it\nreaches 3:1 there. Error text uses --a63-text-danger."
783
+ },
784
+ "foreground": {
785
+ "$type": "color",
786
+ "$value": "{a63.status.danger}",
787
+ "$description": "Text and icons on a solid fill of this status. Same auto-contrast step as\nthe primary foreground: near-black on bright fills, near-white on dark ones.",
788
+ "$extensions": {
789
+ "io.atom63.derive": "oklch(from {a63.status.danger} clamp(0.15, (0.57 - l) * 1000, 0.985) calc(c * 0.06) h)"
790
+ }
791
+ },
792
+ "subtle": {
793
+ "$root": {
794
+ "$type": "color",
795
+ "$value": "{a63.status.danger}",
796
+ "$extensions": {
797
+ "io.atom63.derive": "color-mix(in oklab, {a63.status.danger} 14%, transparent)"
798
+ }
799
+ },
800
+ "foreground": {
801
+ "$type": "color",
802
+ "$value": "{color.danger.700}"
803
+ }
804
+ }
777
805
  }
778
806
  },
779
807
  "chart": {
@@ -1287,6 +1315,25 @@
1287
1315
  "$value": "{color.warning.400}"
1288
1316
  }
1289
1317
  }
1318
+ },
1319
+ "danger": {
1320
+ "$root": {
1321
+ "$type": "color",
1322
+ "$value": "{color.danger.500}"
1323
+ },
1324
+ "subtle": {
1325
+ "$root": {
1326
+ "$type": "color",
1327
+ "$value": "{a63.status.danger}",
1328
+ "$extensions": {
1329
+ "io.atom63.derive": "color-mix(in oklab, {a63.status.danger} 14%, transparent)"
1330
+ }
1331
+ },
1332
+ "foreground": {
1333
+ "$type": "color",
1334
+ "$value": "{color.danger.400}"
1335
+ }
1336
+ }
1290
1337
  }
1291
1338
  },
1292
1339
  "chart": {
@@ -1,49 +0,0 @@
1
- {
2
- "$description": "Toggle contract — persistent on/off controls.\n\nCovers standalone Toggle. ToggleGroup is always a joined segmented bar and\nreads the segment contract for cell chrome; it does not use a layout variant.\n\nColour hooks resolve at recipe use-sites:\n --a63-toggle-background -> transparent\n --a63-toggle-foreground -> var(--a63-text-primary)\n --a63-toggle-hover-background -> var(--a63-surface-control-hover)\n --a63-toggle-on-background -> var(--a63-surface-muted)\n --a63-toggle-on-foreground -> var(--a63-text-primary)\n --a63-toggle-primary-background -> var(--a63-action-primary)\n --a63-toggle-primary-foreground -> var(--a63-action-primary-foreground)",
3
- "a63": {
4
- "toggle": {
5
- "border": {
6
- "width": {
7
- "$type": "dimension",
8
- "$value": "{a63.segment.border.width}"
9
- }
10
- },
11
- "gap": {
12
- "$type": "dimension",
13
- "$value": "{a63.control.gap}"
14
- },
15
- "group": {
16
- "gap": {
17
- "$type": "dimension",
18
- "$value": "{a63.segment.gap}"
19
- }
20
- },
21
- "radius": {
22
- "$type": "dimension",
23
- "$value": "{a63.control.radius}"
24
- },
25
- "shadow": {
26
- "$root": {
27
- "$type": "shadow",
28
- "$value": []
29
- },
30
- "active": {
31
- "$type": "shadow",
32
- "$value": []
33
- }
34
- },
35
- "text": {
36
- "shadow": {
37
- "$type": "shadow",
38
- "$value": []
39
- }
40
- },
41
- "disabled": {
42
- "opacity": {
43
- "$type": "number",
44
- "$value": 0.56
45
- }
46
- }
47
- }
48
- }
49
- }