@skeletonlabs/skeleton 0.80.9 → 0.86.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.
Files changed (81) hide show
  1. package/README.md +1 -1
  2. package/components/Accordion/AccordionGroup.svelte +1 -2
  3. package/components/Accordion/AccordionItem.svelte +1 -1
  4. package/components/Accordion/AccordionItem.svelte.d.ts +1 -0
  5. package/components/Alert/Alert.svelte +3 -3
  6. package/components/AppRail/AppRailTile.svelte +8 -6
  7. package/components/AppShell/AppShell.svelte +3 -3
  8. package/components/Breadcrumb/Crumb.svelte +3 -1
  9. package/components/Breadcrumb/Crumb.svelte.d.ts +5 -0
  10. package/components/ConicGradient/ConicGradient.svelte +1 -1
  11. package/components/ConicGradient/ConicGradient.svelte.d.ts +5 -0
  12. package/components/FileButton/FileButton.svelte +2 -2
  13. package/components/FileButton/FileButton.svelte.d.ts +3 -0
  14. package/components/FileDropzone/FileDropzone.svelte +4 -0
  15. package/components/FileDropzone/FileDropzone.svelte.d.ts +4 -0
  16. package/components/GradientHeading/GradientHeading.svelte +1 -1
  17. package/components/ListBox/ListBoxItem.svelte +3 -1
  18. package/components/ListBox/ListBoxItem.svelte.d.ts +2 -0
  19. package/components/Paginator/Paginator.svelte +21 -9
  20. package/components/Paginator/Paginator.svelte.d.ts +5 -1
  21. package/components/ProgressBar/ProgressBar.svelte +6 -4
  22. package/components/ProgressBar/ProgressBar.svelte.d.ts +1 -0
  23. package/components/ProgressRadial/ProgressRadial.svelte +1 -1
  24. package/components/Radio/RadioGroup.svelte +2 -2
  25. package/components/Radio/RadioItem.svelte +3 -1
  26. package/components/Radio/RadioItem.svelte.d.ts +2 -0
  27. package/components/RangeSlider/RangeSlider.svelte +1 -1
  28. package/components/SlideToggle/SlideToggle.svelte +8 -5
  29. package/components/SlideToggle/SlideToggle.svelte.d.ts +4 -1
  30. package/components/Stepper/Step.svelte +27 -7
  31. package/components/Stepper/Step.svelte.d.ts +6 -3
  32. package/components/Stepper/Stepper.svelte +19 -10
  33. package/components/Stepper/Stepper.svelte.d.ts +6 -3
  34. package/components/Tab/Tab.svelte +15 -3
  35. package/components/Tab/Tab.svelte.d.ts +5 -0
  36. package/components/Table/Table.svelte +3 -3
  37. package/package.json +18 -20
  38. package/styles/elements/badges.css +11 -5
  39. package/styles/elements/buttons.css +33 -9
  40. package/styles/elements/cards.css +22 -3
  41. package/styles/elements/chips.css +4 -2
  42. package/styles/elements/tables.css +1 -1
  43. package/styles/forms.css +4 -4
  44. package/styles/tokens/backgrounds.css +119 -29
  45. package/styles/tokens/borders.css +90 -22
  46. package/styles/tokens/fills.css +14 -5
  47. package/styles/tokens/rings.css +90 -22
  48. package/styles/tokens/text.css +104 -27
  49. package/styles/tokens.css +0 -3
  50. package/styles/typography.css +6 -6
  51. package/tailwind/colors.d.ts +1 -1
  52. package/tailwind/colors.js +1 -1
  53. package/tailwind/theme.cjs +4 -2
  54. package/themes/theme-crimson.css +88 -64
  55. package/themes/theme-gold-nouveau.css +108 -115
  56. package/themes/theme-hamlindigo.css +97 -74
  57. package/themes/theme-modern.css +107 -64
  58. package/themes/theme-rocket.css +96 -63
  59. package/themes/theme-sahara.css +104 -65
  60. package/themes/theme-seafoam.css +100 -66
  61. package/themes/theme-seasonal.css +111 -65
  62. package/themes/theme-skeleton.css +99 -75
  63. package/themes/theme-vintage.css +102 -63
  64. package/utilities/CodeBlock/CodeBlock.svelte +6 -1
  65. package/utilities/CodeBlock/CodeBlock.svelte.d.ts +2 -0
  66. package/utilities/DataTable/DataTable.js +3 -1
  67. package/utilities/Drawer/Drawer.svelte +11 -10
  68. package/utilities/Drawer/Drawer.svelte.d.ts +1 -2
  69. package/utilities/Drawer/stores.d.ts +1 -1
  70. package/utilities/LightSwitch/LightSwitch.svelte +9 -4
  71. package/utilities/LightSwitch/LightSwitch.svelte.d.ts +5 -0
  72. package/utilities/LocalStorageStore/LocalStorageStore.d.ts +3 -1
  73. package/utilities/LocalStorageStore/LocalStorageStore.js +9 -4
  74. package/utilities/Menu/menu.js +11 -7
  75. package/utilities/Modal/Modal.svelte +21 -9
  76. package/utilities/Modal/Modal.svelte.d.ts +2 -0
  77. package/utilities/Modal/types.d.ts +8 -0
  78. package/utilities/Toast/Toast.svelte +2 -2
  79. package/utilities/Toast/stores.js +18 -1
  80. package/utilities/Toast/types.d.ts +5 -0
  81. package/styles/tokens/misc.css +0 -22
@@ -27,21 +27,21 @@
27
27
  @apply border-primary-400 dark:border-primary-500;
28
28
  }
29
29
 
30
- /* Accent */
31
- .border-accent-50-900-token {
32
- @apply border-accent-50 dark:border-accent-900;
30
+ /* Secondary */
31
+ .border-secondary-50-900-token {
32
+ @apply border-secondary-50 dark:border-secondary-900;
33
33
  }
34
- .border-accent-100-800-token {
35
- @apply border-accent-100 dark:border-accent-800;
34
+ .border-secondary-100-800-token {
35
+ @apply border-secondary-100 dark:border-secondary-800;
36
36
  }
37
- .border-accent-200-700-token {
38
- @apply border-accent-200 dark:border-accent-700;
37
+ .border-secondary-200-700-token {
38
+ @apply border-secondary-200 dark:border-secondary-700;
39
39
  }
40
- .border-accent-300-600-token {
41
- @apply border-accent-300 dark:border-accent-600;
40
+ .border-secondary-300-600-token {
41
+ @apply border-secondary-300 dark:border-secondary-600;
42
42
  }
43
- .border-accent-400-500-token {
44
- @apply border-accent-400 dark:border-surface-500;
43
+ .border-secondary-400-500-token {
44
+ @apply border-secondary-400 dark:border-surface-500;
45
45
  }
46
46
 
47
47
  /* Tertiary */
@@ -61,6 +61,23 @@
61
61
  @apply border-tertiary-400 dark:border-tertiary-500;
62
62
  }
63
63
 
64
+ /* Success */
65
+ .border-success-50-900-token {
66
+ @apply border-success-50 dark:border-success-900;
67
+ }
68
+ .border-success-100-800-token {
69
+ @apply border-success-100 dark:border-success-800;
70
+ }
71
+ .border-success-200-700-token {
72
+ @apply border-success-200 dark:border-success-700;
73
+ }
74
+ .border-success-300-600-token {
75
+ @apply border-success-300 dark:border-success-600;
76
+ }
77
+ .border-success-400-500-token {
78
+ @apply border-success-400 dark:border-success-500;
79
+ }
80
+
64
81
  /* Warning */
65
82
  .border-warning-50-900-token {
66
83
  @apply border-warning-50 dark:border-warning-900;
@@ -78,6 +95,23 @@
78
95
  @apply border-warning-400 dark:border-warning-500;
79
96
  }
80
97
 
98
+ /* Error */
99
+ .border-error-50-900-token {
100
+ @apply border-error-50 dark:border-error-900;
101
+ }
102
+ .border-error-100-800-token {
103
+ @apply border-error-100 dark:border-error-800;
104
+ }
105
+ .border-error-200-700-token {
106
+ @apply border-error-200 dark:border-error-700;
107
+ }
108
+ .border-error-300-600-token {
109
+ @apply border-error-300 dark:border-error-600;
110
+ }
111
+ .border-error-400-500-token {
112
+ @apply border-error-400 dark:border-error-500;
113
+ }
114
+
81
115
  /* Surface */
82
116
  .border-surface-50-900-token {
83
117
  @apply border-surface-50 dark:border-surface-900;
@@ -115,21 +149,21 @@
115
149
  @apply border-primary-500 dark:border-primary-400;
116
150
  }
117
151
 
118
- /* Accent */
119
- .border-accent-900-50-token {
120
- @apply border-accent-900 dark:border-accent-50;
152
+ /* Secondary */
153
+ .border-secondary-900-50-token {
154
+ @apply border-secondary-900 dark:border-secondary-50;
121
155
  }
122
- .border-accent-800-100-token {
123
- @apply border-accent-800 dark:border-accent-100;
156
+ .border-secondary-800-100-token {
157
+ @apply border-secondary-800 dark:border-secondary-100;
124
158
  }
125
- .border-accent-700-200-token {
126
- @apply border-accent-700 dark:border-accent-200;
159
+ .border-secondary-700-200-token {
160
+ @apply border-secondary-700 dark:border-secondary-200;
127
161
  }
128
- .border-accent-600-300-token {
129
- @apply border-accent-600 dark:border-accent-300;
162
+ .border-secondary-600-300-token {
163
+ @apply border-secondary-600 dark:border-secondary-300;
130
164
  }
131
- .border-accent-500-400-token {
132
- @apply border-accent-500 dark:border-accent-400;
165
+ .border-secondary-500-400-token {
166
+ @apply border-secondary-500 dark:border-secondary-400;
133
167
  }
134
168
 
135
169
  /* Tertiary */
@@ -149,6 +183,23 @@
149
183
  @apply border-tertiary-500 dark:border-tertiary-400;
150
184
  }
151
185
 
186
+ /* Success */
187
+ .border-success-900-50-token {
188
+ @apply border-success-900 dark:border-success-50;
189
+ }
190
+ .border-success-800-100-token {
191
+ @apply border-success-800 dark:border-success-100;
192
+ }
193
+ .border-success-700-200-token {
194
+ @apply border-success-700 dark:border-success-200;
195
+ }
196
+ .border-success-600-300-token {
197
+ @apply border-success-600 dark:border-success-300;
198
+ }
199
+ .border-success-500-400-token {
200
+ @apply border-success-500 dark:border-success-400;
201
+ }
202
+
152
203
  /* Warning */
153
204
  .border-warning-900-50-token {
154
205
  @apply border-warning-900 dark:border-warning-50;
@@ -166,6 +217,23 @@
166
217
  @apply border-warning-500 dark:border-warning-400;
167
218
  }
168
219
 
220
+ /* Errror */
221
+ .border-errror-900-50-token {
222
+ @apply border-errror-900 dark:border-errror-50;
223
+ }
224
+ .border-errror-800-100-token {
225
+ @apply border-errror-800 dark:border-errror-100;
226
+ }
227
+ .border-errror-700-200-token {
228
+ @apply border-errror-700 dark:border-errror-200;
229
+ }
230
+ .border-errror-600-300-token {
231
+ @apply border-errror-600 dark:border-errror-300;
232
+ }
233
+ .border-errror-500-400-token {
234
+ @apply border-errror-500 dark:border-errror-400;
235
+ }
236
+
169
237
  /* Surface */
170
238
  .border-surface-900-50-token {
171
239
  @apply border-surface-900 dark:border-surface-50;
@@ -15,15 +15,24 @@
15
15
  /* Fill color to set when overlapping theme colors. */
16
16
 
17
17
  .fill-on-primary-token {
18
- fill: var(--on-primary);
18
+ fill: rgb(var(--on-primary));
19
19
  }
20
- .fill-on-accent-token {
21
- fill: var(--on-accent);
20
+ .fill-on-secondary-token {
21
+ fill: rgb(var(--on-secondary));
22
22
  }
23
23
  .fill-on-tertiary-token {
24
- fill: var(--on-tertiary);
24
+ fill: rgb(var(--on-tertiary));
25
+ }
26
+ .fill-on-success-token {
27
+ fill: rgb(var(--on-success));
25
28
  }
26
29
  .fill-on-warning-token {
27
- fill: var(--on-warning);
30
+ fill: rgb(var(--on-warning));
31
+ }
32
+ .fill-on-error-token {
33
+ fill: rgb(var(--on-error));
34
+ }
35
+ .fill-on-surface-token {
36
+ fill: rgb(var(--on-surface));
28
37
  }
29
38
  }
@@ -27,21 +27,21 @@
27
27
  @apply ring-primary-400 dark:ring-primary-500;
28
28
  }
29
29
 
30
- /* Accent */
31
- .ring-accent-50-900-token {
32
- @apply ring-accent-50 dark:ring-accent-900;
30
+ /* Secondary */
31
+ .ring-secondary-50-900-token {
32
+ @apply ring-secondary-50 dark:ring-secondary-900;
33
33
  }
34
- .ring-accent-100-800-token {
35
- @apply ring-accent-100 dark:ring-accent-800;
34
+ .ring-secondary-100-800-token {
35
+ @apply ring-secondary-100 dark:ring-secondary-800;
36
36
  }
37
- .ring-accent-200-700-token {
38
- @apply ring-accent-200 dark:ring-accent-700;
37
+ .ring-secondary-200-700-token {
38
+ @apply ring-secondary-200 dark:ring-secondary-700;
39
39
  }
40
- .ring-accent-300-600-token {
41
- @apply ring-accent-300 dark:ring-accent-600;
40
+ .ring-secondary-300-600-token {
41
+ @apply ring-secondary-300 dark:ring-secondary-600;
42
42
  }
43
- .ring-accent-400-500-token {
44
- @apply ring-accent-400 dark:ring-surface-500;
43
+ .ring-secondary-400-500-token {
44
+ @apply ring-secondary-400 dark:ring-surface-500;
45
45
  }
46
46
 
47
47
  /* Tertiary */
@@ -61,6 +61,23 @@
61
61
  @apply ring-tertiary-400 dark:ring-tertiary-500;
62
62
  }
63
63
 
64
+ /* Success */
65
+ .ring-success-50-900-token {
66
+ @apply ring-success-50 dark:ring-success-900;
67
+ }
68
+ .ring-success-100-800-token {
69
+ @apply ring-success-100 dark:ring-success-800;
70
+ }
71
+ .ring-success-200-700-token {
72
+ @apply ring-success-200 dark:ring-success-700;
73
+ }
74
+ .ring-success-300-600-token {
75
+ @apply ring-success-300 dark:ring-success-600;
76
+ }
77
+ .ring-success-400-500-token {
78
+ @apply ring-success-400 dark:ring-success-500;
79
+ }
80
+
64
81
  /* Warning */
65
82
  .ring-warning-50-900-token {
66
83
  @apply ring-warning-50 dark:ring-warning-900;
@@ -78,6 +95,23 @@
78
95
  @apply ring-warning-400 dark:ring-warning-500;
79
96
  }
80
97
 
98
+ /* Error */
99
+ .ring-error-50-900-token {
100
+ @apply ring-error-50 dark:ring-error-900;
101
+ }
102
+ .ring-error-100-800-token {
103
+ @apply ring-error-100 dark:ring-error-800;
104
+ }
105
+ .ring-error-200-700-token {
106
+ @apply ring-error-200 dark:ring-error-700;
107
+ }
108
+ .ring-error-300-600-token {
109
+ @apply ring-error-300 dark:ring-error-600;
110
+ }
111
+ .ring-error-400-500-token {
112
+ @apply ring-error-400 dark:ring-error-500;
113
+ }
114
+
81
115
  /* Surface */
82
116
  .ring-surface-50-900-token {
83
117
  @apply ring-surface-50 dark:ring-surface-900;
@@ -115,21 +149,21 @@
115
149
  @apply ring-primary-500 dark:ring-primary-400;
116
150
  }
117
151
 
118
- /* Accent */
119
- .ring-accent-900-50-token {
120
- @apply ring-accent-900 dark:ring-accent-50;
152
+ /* Secondary */
153
+ .ring-secondary-900-50-token {
154
+ @apply ring-secondary-900 dark:ring-secondary-50;
121
155
  }
122
- .ring-accent-800-100-token {
123
- @apply ring-accent-800 dark:ring-accent-100;
156
+ .ring-secondary-800-100-token {
157
+ @apply ring-secondary-800 dark:ring-secondary-100;
124
158
  }
125
- .ring-accent-700-200-token {
126
- @apply ring-accent-700 dark:ring-accent-200;
159
+ .ring-secondary-700-200-token {
160
+ @apply ring-secondary-700 dark:ring-secondary-200;
127
161
  }
128
- .ring-accent-600-300-token {
129
- @apply ring-accent-600 dark:ring-accent-300;
162
+ .ring-secondary-600-300-token {
163
+ @apply ring-secondary-600 dark:ring-secondary-300;
130
164
  }
131
- .ring-accent-500-400-token {
132
- @apply ring-accent-500 dark:ring-accent-400;
165
+ .ring-secondary-500-400-token {
166
+ @apply ring-secondary-500 dark:ring-secondary-400;
133
167
  }
134
168
 
135
169
  /* Tertiary */
@@ -149,6 +183,23 @@
149
183
  @apply ring-tertiary-500 dark:ring-tertiary-400;
150
184
  }
151
185
 
186
+ /* Success */
187
+ .ring-success-900-50-token {
188
+ @apply ring-success-900 dark:ring-success-50;
189
+ }
190
+ .ring-success-800-100-token {
191
+ @apply ring-success-800 dark:ring-success-100;
192
+ }
193
+ .ring-success-700-200-token {
194
+ @apply ring-success-700 dark:ring-success-200;
195
+ }
196
+ .ring-success-600-300-token {
197
+ @apply ring-success-600 dark:ring-success-300;
198
+ }
199
+ .ring-success-500-400-token {
200
+ @apply ring-success-500 dark:ring-success-400;
201
+ }
202
+
152
203
  /* Warning */
153
204
  .ring-warning-900-50-token {
154
205
  @apply ring-warning-900 dark:ring-warning-50;
@@ -166,6 +217,23 @@
166
217
  @apply ring-warning-500 dark:ring-warning-400;
167
218
  }
168
219
 
220
+ /* Error */
221
+ .ring-error-900-50-token {
222
+ @apply ring-error-900 dark:ring-error-50;
223
+ }
224
+ .ring-error-800-100-token {
225
+ @apply ring-error-800 dark:ring-error-100;
226
+ }
227
+ .ring-error-700-200-token {
228
+ @apply ring-error-700 dark:ring-error-200;
229
+ }
230
+ .ring-error-600-300-token {
231
+ @apply ring-error-600 dark:ring-error-300;
232
+ }
233
+ .ring-error-500-400-token {
234
+ @apply ring-error-500 dark:ring-error-400;
235
+ }
236
+
169
237
  /* Surface */
170
238
  .ring-surface-900-50-token {
171
239
  @apply ring-surface-900 dark:ring-surface-50;
@@ -26,16 +26,25 @@
26
26
  /* Text color when overlapping theme colors. */
27
27
 
28
28
  .text-on-primary-token {
29
- color: var(--on-primary);
29
+ color: rgb(var(--on-primary));
30
30
  }
31
- .text-on-accent-token {
32
- color: var(--on-accent);
31
+ .text-on-secondary-token {
32
+ color: rgb(var(--on-secondary));
33
33
  }
34
34
  .text-on-tertiary-token {
35
- color: var(--on-tertiary);
35
+ color: rgb(var(--on-tertiary));
36
+ }
37
+ .text-on-success-token {
38
+ color: rgb(var(--on-success));
36
39
  }
37
40
  .text-on-warning-token {
38
- color: var(--on-warning);
41
+ color: rgb(var(--on-warning));
42
+ }
43
+ .text-on-error-token {
44
+ color: rgb(var(--on-error));
45
+ }
46
+ .text-on-surface-token {
47
+ color: rgb(var(--on-surface));
39
48
  }
40
49
 
41
50
  /* === Color Pairings (Light|Dark) === */
@@ -58,21 +67,21 @@
58
67
  @apply text-primary-400 dark:text-primary-500;
59
68
  }
60
69
 
61
- /* Accent */
62
- .text-accent-50-900-token {
63
- @apply text-accent-50 dark:text-accent-900;
70
+ /* Secondary */
71
+ .text-secondary-50-900-token {
72
+ @apply text-secondary-50 dark:text-secondary-900;
64
73
  }
65
- .text-accent-100-800-token {
66
- @apply text-accent-100 dark:text-accent-800;
74
+ .text-secondary-100-800-token {
75
+ @apply text-secondary-100 dark:text-secondary-800;
67
76
  }
68
- .text-accent-200-700-token {
69
- @apply text-accent-200 dark:text-accent-700;
77
+ .text-secondary-200-700-token {
78
+ @apply text-secondary-200 dark:text-secondary-700;
70
79
  }
71
- .text-accent-300-600-token {
72
- @apply text-accent-300 dark:text-accent-600;
80
+ .text-secondary-300-600-token {
81
+ @apply text-secondary-300 dark:text-secondary-600;
73
82
  }
74
- .text-accent-400-500-token {
75
- @apply text-accent-400 dark:text-surface-500;
83
+ .text-secondary-400-500-token {
84
+ @apply text-secondary-400 dark:text-surface-500;
76
85
  }
77
86
 
78
87
  /* Tertiary */
@@ -92,6 +101,23 @@
92
101
  @apply text-tertiary-400 dark:text-tertiary-500;
93
102
  }
94
103
 
104
+ /* Success */
105
+ .text-success-50-900-token {
106
+ @apply text-success-50 dark:text-success-900;
107
+ }
108
+ .text-success-100-800-token {
109
+ @apply text-success-100 dark:text-success-800;
110
+ }
111
+ .text-success-200-700-token {
112
+ @apply text-success-200 dark:text-success-700;
113
+ }
114
+ .text-success-300-600-token {
115
+ @apply text-success-300 dark:text-success-600;
116
+ }
117
+ .text-success-400-500-token {
118
+ @apply text-success-400 dark:text-success-500;
119
+ }
120
+
95
121
  /* Warning */
96
122
  .text-warning-50-900-token {
97
123
  @apply text-warning-50 dark:text-warning-900;
@@ -109,6 +135,23 @@
109
135
  @apply text-warning-400 dark:text-warning-500;
110
136
  }
111
137
 
138
+ /* Error */
139
+ .text-error-50-900-token {
140
+ @apply text-error-50 dark:text-error-900;
141
+ }
142
+ .text-error-100-800-token {
143
+ @apply text-error-100 dark:text-error-800;
144
+ }
145
+ .text-error-200-700-token {
146
+ @apply text-error-200 dark:text-error-700;
147
+ }
148
+ .text-error-300-600-token {
149
+ @apply text-error-300 dark:text-error-600;
150
+ }
151
+ .text-error-400-500-token {
152
+ @apply text-error-400 dark:text-error-500;
153
+ }
154
+
112
155
  /* Surface */
113
156
  .text-surface-50-900-token {
114
157
  @apply text-surface-50 dark:text-surface-900;
@@ -146,21 +189,21 @@
146
189
  @apply text-primary-500 dark:text-primary-400;
147
190
  }
148
191
 
149
- /* Accent */
150
- .text-accent-900-50-token {
151
- @apply text-accent-900 dark:text-accent-50;
192
+ /* Secondary */
193
+ .text-secondary-900-50-token {
194
+ @apply text-secondary-900 dark:text-secondary-50;
152
195
  }
153
- .text-accent-800-100-token {
154
- @apply text-accent-800 dark:text-accent-100;
196
+ .text-secondary-800-100-token {
197
+ @apply text-secondary-800 dark:text-secondary-100;
155
198
  }
156
- .text-accent-700-200-token {
157
- @apply text-accent-700 dark:text-accent-200;
199
+ .text-secondary-700-200-token {
200
+ @apply text-secondary-700 dark:text-secondary-200;
158
201
  }
159
- .text-accent-600-300-token {
160
- @apply text-accent-600 dark:text-accent-300;
202
+ .text-secondary-600-300-token {
203
+ @apply text-secondary-600 dark:text-secondary-300;
161
204
  }
162
- .text-accent-500-400-token {
163
- @apply text-accent-500 dark:text-accent-400;
205
+ .text-secondary-500-400-token {
206
+ @apply text-secondary-500 dark:text-secondary-400;
164
207
  }
165
208
 
166
209
  /* Tertiary */
@@ -180,6 +223,23 @@
180
223
  @apply text-tertiary-500 dark:text-tertiary-400;
181
224
  }
182
225
 
226
+ /* Success */
227
+ .text-success-900-50-token {
228
+ @apply text-success-900 dark:text-success-50;
229
+ }
230
+ .text-success-800-100-token {
231
+ @apply text-success-800 dark:text-success-100;
232
+ }
233
+ .text-success-700-200-token {
234
+ @apply text-success-700 dark:text-success-200;
235
+ }
236
+ .text-success-600-300-token {
237
+ @apply text-success-600 dark:text-success-300;
238
+ }
239
+ .text-success-500-400-token {
240
+ @apply text-success-500 dark:text-success-400;
241
+ }
242
+
183
243
  /* Warning */
184
244
  .text-warning-900-50-token {
185
245
  @apply text-warning-900 dark:text-warning-50;
@@ -197,6 +257,23 @@
197
257
  @apply text-warning-500 dark:text-warning-400;
198
258
  }
199
259
 
260
+ /* Error */
261
+ .text-error-900-50-token {
262
+ @apply text-error-900 dark:text-error-50;
263
+ }
264
+ .text-error-800-100-token {
265
+ @apply text-error-800 dark:text-error-100;
266
+ }
267
+ .text-error-700-200-token {
268
+ @apply text-error-700 dark:text-error-200;
269
+ }
270
+ .text-error-600-300-token {
271
+ @apply text-error-600 dark:text-error-300;
272
+ }
273
+ .text-error-500-400-token {
274
+ @apply text-error-500 dark:text-error-400;
275
+ }
276
+
200
277
  /* Surface */
201
278
  .text-surface-900-50-token {
202
279
  @apply text-surface-900 dark:text-surface-50;
package/styles/tokens.css CHANGED
@@ -6,6 +6,3 @@
6
6
  @import 'tokens/fills.css';
7
7
  @import 'tokens/rings.css';
8
8
  @import 'tokens/text.css';
9
-
10
- /* One-off tokens go here */
11
- @import 'tokens/misc.css';
@@ -48,11 +48,11 @@ body {
48
48
  }
49
49
 
50
50
  a:not(.unstyled):not(.btn):not(.btn-icon):not(.app-bar a):not(.logo-item):not(.card):not(.list-nav a) {
51
- @apply text-primary-600-300-token underline underline-offset-4 decoration-dotted decoration-primary-500/20 hover:decoration-primary-500;
51
+ @apply text-primary-700 dark:text-primary-500 underline underline-offset-4 decoration-dotted decoration-primary-500/20 hover:decoration-primary-500;
52
52
  }
53
53
 
54
54
  blockquote:not(.unstyled) {
55
- @apply text-base border-l-4 border-l-accent-500 px-4 pl-4;
55
+ @apply text-base border-l-4 border-l-secondary-500 px-4 pl-4;
56
56
  /* Theme: Font Color */
57
57
  @apply text-token;
58
58
  }
@@ -72,11 +72,11 @@ body {
72
72
  }
73
73
 
74
74
  code:not(.unstyled):not(.code-block code):not(article pre code) {
75
- @apply !font-mono text-primary-800 dark:text-primary-300 bg-primary-500/20 text-xs md:text-[13px] py-1 px-2;
75
+ @apply !font-mono text-black dark:text-primary-400 bg-primary-500/20 dark:bg-primary-500/10 text-xs md:text-[13px] py-1 px-2;
76
76
  /* Theme: Font Family */
77
77
  @apply font-token;
78
78
  /* Theme: Rounded */
79
- @apply rounded-token;
79
+ @apply rounded;
80
80
  }
81
81
 
82
82
  /* === Insertions / Deletions ==== */
@@ -101,10 +101,10 @@ body {
101
101
  }
102
102
 
103
103
  del {
104
- @apply bg-red-500;
104
+ @apply bg-success-500;
105
105
  }
106
106
  ins {
107
- @apply bg-green-500;
107
+ @apply bg-error-500;
108
108
  }
109
109
 
110
110
  /* === Date/Time === */
@@ -1,7 +1,7 @@
1
1
  export type TailwindNumbers = typeof tailwindNumbers[number];
2
2
  export declare const tailwindNumbers: readonly ["50", "100", "200", "300", "400", "500", "600", "700", "800", "900"];
3
3
  export type SemanticNames = typeof semanticNames[number];
4
- export declare const semanticNames: readonly ["primary", "accent", "tertiary", "warning", "surface"];
4
+ export declare const semanticNames: readonly ["primary", "secondary", "tertiary", "warning", "surface"];
5
5
  export type HexRgb = {
6
6
  hex: string;
7
7
  rgb: string;
@@ -1,5 +1,5 @@
1
1
  export const tailwindNumbers = ['50', '100', '200', '300', '400', '500', '600', '700', '800', '900'];
2
- export const semanticNames = ['primary', 'accent', 'tertiary', 'warning', 'surface'];
2
+ export const semanticNames = ['primary', 'secondary', 'tertiary', 'warning', 'surface'];
3
3
  // https://tailwindcss.com/docs/customizing-colors#default-color-palette
4
4
  export const tailwindDefaultColors = [
5
5
  {
@@ -20,16 +20,18 @@ function createColorSet(colorName) {
20
20
  };
21
21
  }
22
22
 
23
- module.exports = plugin(() => {}, {
23
+ module.exports = plugin(() => { }, {
24
24
  theme: {
25
25
  extend: {
26
26
  // Extend the colors with the CSS variable values
27
27
  // NOTE: Must be RGB to allow for TW opacity value
28
28
  colors: {
29
29
  primary: createColorSet('primary'),
30
- accent: createColorSet('accent'),
30
+ secondary: createColorSet('secondary'),
31
31
  tertiary: createColorSet('tertiary'),
32
+ success: createColorSet('success'),
32
33
  warning: createColorSet('warning'),
34
+ error: createColorSet('error'),
33
35
  surface: createColorSet('surface')
34
36
  }
35
37
  }