@phcdevworks/spectre-tokens 2.7.0 → 2.8.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.css CHANGED
@@ -116,17 +116,24 @@
116
116
  --sp-color-white: #ffffff;
117
117
  --sp-color-black: #000000;
118
118
  --sp-space-0: 0rem;
119
+ --sp-space-1: 0.0625rem;
120
+ --sp-space-2: 0.125rem;
119
121
  --sp-space-4: 0.25rem;
122
+ --sp-space-6: 0.375rem;
120
123
  --sp-space-8: 0.5rem;
124
+ --sp-space-10: 0.625rem;
121
125
  --sp-space-12: 0.75rem;
126
+ --sp-space-14: 0.875rem;
122
127
  --sp-space-16: 1rem;
123
128
  --sp-space-20: 1.25rem;
124
129
  --sp-space-24: 1.5rem;
130
+ --sp-space-28: 1.75rem;
125
131
  --sp-space-32: 2rem;
126
132
  --sp-space-40: 2.5rem;
127
133
  --sp-space-48: 3rem;
128
134
  --sp-space-56: 3.5rem;
129
135
  --sp-space-64: 4rem;
136
+ --sp-space-72: 4.5rem;
130
137
  --sp-space-80: 5rem;
131
138
  --sp-space-96: 6rem;
132
139
  --sp-layout-section-padding-sm: 1.5rem;
@@ -142,16 +149,21 @@
142
149
  --sp-layout-container-padding-inline-md: 1.5rem;
143
150
  --sp-layout-container-padding-inline-lg: 2rem;
144
151
  --sp-layout-container-max-width: 72rem;
152
+ --sp-border-width-none: 0;
145
153
  --sp-border-width-base: 1px;
146
154
  --sp-border-width-thick: 2px;
147
155
  --sp-border-style-none: none;
148
156
  --sp-border-style-solid: solid;
157
+ --sp-border-style-dashed: dashed;
158
+ --sp-border-style-dotted: dotted;
149
159
  --sp-radius-none: 0;
150
160
  --sp-radius-sm: 2px;
151
161
  --sp-radius-md: 4px;
152
162
  --sp-radius-lg: 8px;
153
163
  --sp-radius-xl: 12px;
154
164
  --sp-radius-2xl: 16px;
165
+ --sp-radius-3xl: 24px;
166
+ --sp-radius-4xl: 32px;
155
167
  --sp-radius-pill: 999px;
156
168
  --sp-font-family-sans: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
157
169
  --sp-font-family-serif: 'Times New Roman', Times, serif;
@@ -276,6 +288,7 @@
276
288
  --sp-button-danger-text: #ffffff;
277
289
  --sp-button-danger-textdisabled: #8a96ad;
278
290
  --sp-button-danger-focusring: rgba(239, 68, 68, 0.4);
291
+ --sp-button-danger-focusvisible: rgba(239, 68, 68, 0.4);
279
292
  --sp-button-success-bg: #15803d;
280
293
  --sp-button-success-bghover: #166534;
281
294
  --sp-button-success-bgactive: #14532d;
@@ -283,6 +296,7 @@
283
296
  --sp-button-success-text: #ffffff;
284
297
  --sp-button-success-textdisabled: #8a96ad;
285
298
  --sp-button-success-focusring: rgba(34, 197, 94, 0.4);
299
+ --sp-button-success-focusvisible: rgba(34, 197, 94, 0.4);
286
300
  --sp-button-cta-bg: #1f57db;
287
301
  --sp-button-cta-bghover: #1946b4;
288
302
  --sp-button-cta-bgactive: #173b8f;
package/dist/index.d.cts CHANGED
@@ -104,6 +104,7 @@ interface SpectreGeneratedTokens {
104
104
  text: string;
105
105
  textDisabled: string;
106
106
  focusRing: string;
107
+ focusVisible: string;
107
108
  };
108
109
  success: {
109
110
  bg: string;
@@ -113,6 +114,7 @@ interface SpectreGeneratedTokens {
113
114
  text: string;
114
115
  textDisabled: string;
115
116
  focusRing: string;
117
+ focusVisible: string;
116
118
  };
117
119
  cta: {
118
120
  bg: string;
@@ -450,17 +452,24 @@ interface SpectreGeneratedTokens {
450
452
  };
451
453
  space: {
452
454
  '0': string;
455
+ '1': string;
456
+ '2': string;
453
457
  '4': string;
458
+ '6': string;
454
459
  '8': string;
460
+ '10': string;
455
461
  '12': string;
462
+ '14': string;
456
463
  '16': string;
457
464
  '20': string;
458
465
  '24': string;
466
+ '28': string;
459
467
  '32': string;
460
468
  '40': string;
461
469
  '48': string;
462
470
  '56': string;
463
471
  '64': string;
472
+ '72': string;
464
473
  '80': string;
465
474
  '96': string;
466
475
  };
@@ -471,6 +480,8 @@ interface SpectreGeneratedTokens {
471
480
  lg: string;
472
481
  xl: string;
473
482
  '2xl': string;
483
+ '3xl': string;
484
+ '4xl': string;
474
485
  pill: string;
475
486
  };
476
487
  shadows: {
@@ -600,12 +611,15 @@ interface SpectreGeneratedTokens {
600
611
  };
601
612
  border: {
602
613
  width: {
614
+ none: string;
603
615
  base: string;
604
616
  thick: string;
605
617
  };
606
618
  style: {
607
619
  none: string;
608
620
  solid: string;
621
+ dashed: string;
622
+ dotted: string;
609
623
  };
610
624
  };
611
625
  surface: {
package/dist/index.d.ts CHANGED
@@ -104,6 +104,7 @@ interface SpectreGeneratedTokens {
104
104
  text: string;
105
105
  textDisabled: string;
106
106
  focusRing: string;
107
+ focusVisible: string;
107
108
  };
108
109
  success: {
109
110
  bg: string;
@@ -113,6 +114,7 @@ interface SpectreGeneratedTokens {
113
114
  text: string;
114
115
  textDisabled: string;
115
116
  focusRing: string;
117
+ focusVisible: string;
116
118
  };
117
119
  cta: {
118
120
  bg: string;
@@ -450,17 +452,24 @@ interface SpectreGeneratedTokens {
450
452
  };
451
453
  space: {
452
454
  '0': string;
455
+ '1': string;
456
+ '2': string;
453
457
  '4': string;
458
+ '6': string;
454
459
  '8': string;
460
+ '10': string;
455
461
  '12': string;
462
+ '14': string;
456
463
  '16': string;
457
464
  '20': string;
458
465
  '24': string;
466
+ '28': string;
459
467
  '32': string;
460
468
  '40': string;
461
469
  '48': string;
462
470
  '56': string;
463
471
  '64': string;
472
+ '72': string;
464
473
  '80': string;
465
474
  '96': string;
466
475
  };
@@ -471,6 +480,8 @@ interface SpectreGeneratedTokens {
471
480
  lg: string;
472
481
  xl: string;
473
482
  '2xl': string;
483
+ '3xl': string;
484
+ '4xl': string;
474
485
  pill: string;
475
486
  };
476
487
  shadows: {
@@ -600,12 +611,15 @@ interface SpectreGeneratedTokens {
600
611
  };
601
612
  border: {
602
613
  width: {
614
+ none: string;
603
615
  base: string;
604
616
  thick: string;
605
617
  };
606
618
  style: {
607
619
  none: string;
608
620
  solid: string;
621
+ dashed: string;
622
+ dotted: string;
609
623
  };
610
624
  };
611
625
  surface: {
package/dist/index.js CHANGED
@@ -104,7 +104,8 @@ var coreTokens = {
104
104
  "bgDisabled": "{colors.error.200}",
105
105
  "text": "{colors.white}",
106
106
  "textDisabled": "{colors.neutral.400}",
107
- "focusRing": "{colors.error.500} / 0.4"
107
+ "focusRing": "{colors.error.500} / 0.4",
108
+ "focusVisible": "{colors.error.500} / 0.4"
108
109
  },
109
110
  "success": {
110
111
  "bg": "{colors.success.700}",
@@ -113,7 +114,8 @@ var coreTokens = {
113
114
  "bgDisabled": "{colors.success.200}",
114
115
  "text": "{colors.white}",
115
116
  "textDisabled": "{colors.neutral.400}",
116
- "focusRing": "{colors.success.500} / 0.4"
117
+ "focusRing": "{colors.success.500} / 0.4",
118
+ "focusVisible": "{colors.success.500} / 0.4"
117
119
  },
118
120
  "cta": {
119
121
  "bg": "{colors.brand.600}",
@@ -442,26 +444,33 @@ var coreTokens = {
442
444
  "600": "#6f3fd7"
443
445
  },
444
446
  "focus": {
445
- "primary": "#336df4",
446
- "error": "#ef4444",
447
- "info": "#0369a1"
447
+ "primary": "{colors.brand.500}",
448
+ "error": "{colors.error.500}",
449
+ "info": "{colors.info.600}"
448
450
  },
449
451
  "white": "#ffffff",
450
452
  "black": "#000000"
451
453
  },
452
454
  "space": {
453
455
  "0": "0rem",
456
+ "1": "0.0625rem",
457
+ "2": "0.125rem",
454
458
  "4": "0.25rem",
459
+ "6": "0.375rem",
455
460
  "8": "0.5rem",
461
+ "10": "0.625rem",
456
462
  "12": "0.75rem",
463
+ "14": "0.875rem",
457
464
  "16": "1rem",
458
465
  "20": "1.25rem",
459
466
  "24": "1.5rem",
467
+ "28": "1.75rem",
460
468
  "32": "2rem",
461
469
  "40": "2.5rem",
462
470
  "48": "3rem",
463
471
  "56": "3.5rem",
464
472
  "64": "4rem",
473
+ "72": "4.5rem",
465
474
  "80": "5rem",
466
475
  "96": "6rem"
467
476
  },
@@ -472,6 +481,8 @@ var coreTokens = {
472
481
  "lg": "8px",
473
482
  "xl": "12px",
474
483
  "2xl": "16px",
484
+ "3xl": "24px",
485
+ "4xl": "32px",
475
486
  "pill": "999px"
476
487
  },
477
488
  "shadows": {
@@ -601,12 +612,15 @@ var coreTokens = {
601
612
  },
602
613
  "border": {
603
614
  "width": {
615
+ "none": "0",
604
616
  "base": "1px",
605
617
  "thick": "2px"
606
618
  },
607
619
  "style": {
608
620
  "none": "none",
609
- "solid": "solid"
621
+ "solid": "solid",
622
+ "dashed": "dashed",
623
+ "dotted": "dotted"
610
624
  }
611
625
  },
612
626
  "surface": {