@calcifer-design/tokens 0.3.0 → 0.4.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/dist/index.js CHANGED
@@ -24,6 +24,7 @@ const lightColor = {
24
24
  accentWash: 'rgba(59, 111, 224, 0.035)',
25
25
  border: 'rgba(28, 25, 23, 0.08)',
26
26
  borderStrong: 'rgba(28, 25, 23, 0.18)',
27
+ borderControl: '#857F79',
27
28
  borderAccent: 'rgba(59, 111, 224, 0.28)',
28
29
  cardBorder: 'transparent',
29
30
  scrim: 'rgba(28, 25, 23, 0.45)',
@@ -90,6 +91,7 @@ const darkColor = {
90
91
  accentWash: 'rgba(127, 164, 245, 0.05)',
91
92
  border: 'rgba(255, 255, 255, 0.08)',
92
93
  borderStrong: 'rgba(255, 255, 255, 0.18)',
94
+ borderControl: '#8A909C',
93
95
  borderAccent: 'rgba(127, 164, 245, 0.32)',
94
96
  cardBorder: 'rgba(255, 255, 255, 0.08)',
95
97
  scrim: 'rgba(3, 4, 6, 0.6)',
@@ -516,6 +518,22 @@ const uiContrastPairs = [
516
518
  [
517
519
  'tabBarText',
518
520
  'tabBar'
521
+ ],
522
+ [
523
+ 'borderControl',
524
+ 'surface1'
525
+ ],
526
+ [
527
+ 'borderControl',
528
+ 'surface2'
529
+ ],
530
+ [
531
+ 'borderControl',
532
+ 'surfaceRaised'
533
+ ],
534
+ [
535
+ 'borderControl',
536
+ 'surfaceInput'
519
537
  ]
520
538
  ];
521
539
  const tokens_tokens = {
package/dist/tokens.css CHANGED
@@ -102,6 +102,7 @@
102
102
  --color-accent-wash: rgba(59, 111, 224, 0.035);
103
103
  --color-border: rgba(28, 25, 23, 0.08);
104
104
  --color-border-strong: rgba(28, 25, 23, 0.18);
105
+ --color-border-control: #857F79;
105
106
  --color-border-accent: rgba(59, 111, 224, 0.28);
106
107
  --color-card-border: transparent;
107
108
  --color-scrim: rgba(28, 25, 23, 0.45);
@@ -184,6 +185,7 @@
184
185
  --color-accent-wash: rgba(127, 164, 245, 0.05);
185
186
  --color-border: rgba(255, 255, 255, 0.08);
186
187
  --color-border-strong: rgba(255, 255, 255, 0.18);
188
+ --color-border-control: #8A909C;
187
189
  --color-border-accent: rgba(127, 164, 245, 0.32);
188
190
  --color-card-border: rgba(255, 255, 255, 0.08);
189
191
  --color-scrim: rgba(3, 4, 6, 0.6);
@@ -271,6 +273,7 @@
271
273
  --color-accent-wash: rgba(127, 164, 245, 0.05);
272
274
  --color-border: rgba(255, 255, 255, 0.08);
273
275
  --color-border-strong: rgba(255, 255, 255, 0.18);
276
+ --color-border-control: #8A909C;
274
277
  --color-border-accent: rgba(127, 164, 245, 0.32);
275
278
  --color-card-border: rgba(255, 255, 255, 0.08);
276
279
  --color-scrim: rgba(3, 4, 6, 0.6);
package/dist/tokens.d.ts CHANGED
@@ -27,6 +27,12 @@ declare const lightColor: {
27
27
  readonly accentWash: "rgba(59, 111, 224, 0.035)";
28
28
  readonly border: "rgba(28, 25, 23, 0.08)";
29
29
  readonly borderStrong: "rgba(28, 25, 23, 0.18)";
30
+ /**
31
+ * The boundary of a control known by its outline alone: the unchecked checkbox, the radio. Opaque
32
+ * so it can be measured: WCAG 1.4.11 asks 3:1, and on the four surfaces `uiContrastPairs` checks
33
+ * the lowest is 3.54:1 (light, surface2) and 5.35:1 (dark, surface2 and surfaceInput).
34
+ */
35
+ readonly borderControl: "#857F79";
30
36
  readonly borderAccent: "rgba(59, 111, 224, 0.28)";
31
37
  readonly cardBorder: "transparent";
32
38
  /** The scrim behind a modal dialog. Warm black at 45%, so the page reads as inert, not gone. */
@@ -118,6 +124,12 @@ export declare const themes: {
118
124
  readonly accentWash: "rgba(59, 111, 224, 0.035)";
119
125
  readonly border: "rgba(28, 25, 23, 0.08)";
120
126
  readonly borderStrong: "rgba(28, 25, 23, 0.18)";
127
+ /**
128
+ * The boundary of a control known by its outline alone: the unchecked checkbox, the radio. Opaque
129
+ * so it can be measured: WCAG 1.4.11 asks 3:1, and on the four surfaces `uiContrastPairs` checks
130
+ * the lowest is 3.54:1 (light, surface2) and 5.35:1 (dark, surface2 and surfaceInput).
131
+ */
132
+ readonly borderControl: "#857F79";
121
133
  readonly borderAccent: "rgba(59, 111, 224, 0.28)";
122
134
  readonly cardBorder: "transparent";
123
135
  /** The scrim behind a modal dialog. Warm black at 45%, so the page reads as inert, not gone. */
@@ -207,6 +219,7 @@ export declare const themes: {
207
219
  readonly accentWash: "rgba(127, 164, 245, 0.05)";
208
220
  readonly border: "rgba(255, 255, 255, 0.08)";
209
221
  readonly borderStrong: "rgba(255, 255, 255, 0.18)";
222
+ readonly borderControl: "#8A909C";
210
223
  readonly borderAccent: "rgba(127, 164, 245, 0.32)";
211
224
  readonly cardBorder: "rgba(255, 255, 255, 0.08)";
212
225
  /** Heavier than the light theme's: a dark surface needs more separation from a dark page. */
@@ -442,6 +455,12 @@ export declare const tokens: {
442
455
  readonly accentWash: "rgba(59, 111, 224, 0.035)";
443
456
  readonly border: "rgba(28, 25, 23, 0.08)";
444
457
  readonly borderStrong: "rgba(28, 25, 23, 0.18)";
458
+ /**
459
+ * The boundary of a control known by its outline alone: the unchecked checkbox, the radio. Opaque
460
+ * so it can be measured: WCAG 1.4.11 asks 3:1, and on the four surfaces `uiContrastPairs` checks
461
+ * the lowest is 3.54:1 (light, surface2) and 5.35:1 (dark, surface2 and surfaceInput).
462
+ */
463
+ readonly borderControl: "#857F79";
445
464
  readonly borderAccent: "rgba(59, 111, 224, 0.28)";
446
465
  readonly cardBorder: "transparent";
447
466
  /** The scrim behind a modal dialog. Warm black at 45%, so the page reads as inert, not gone. */
@@ -531,6 +550,7 @@ export declare const tokens: {
531
550
  readonly accentWash: "rgba(127, 164, 245, 0.05)";
532
551
  readonly border: "rgba(255, 255, 255, 0.08)";
533
552
  readonly borderStrong: "rgba(255, 255, 255, 0.18)";
553
+ readonly borderControl: "#8A909C";
534
554
  readonly borderAccent: "rgba(127, 164, 245, 0.32)";
535
555
  readonly cardBorder: "rgba(255, 255, 255, 0.08)";
536
556
  /** Heavier than the light theme's: a dark surface needs more separation from a dark page. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@calcifer-design/tokens",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {