@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
@@ -8,9 +8,12 @@ declare const __propDef: {
8
8
  duration?: number | undefined;
9
9
  color?: string | undefined;
10
10
  background?: string | undefined;
11
- buttonBack?: string | undefined;
12
- buttonNext?: string | undefined;
13
- buttonComplete?: string | undefined;
11
+ buttonClassesBack?: string | undefined;
12
+ buttonClassesNext?: string | undefined;
13
+ buttonClassesComplete?: string | undefined;
14
+ buttonTextBack?: string | undefined;
15
+ buttonTextNext?: string | undefined;
16
+ buttonTextComplete?: string | undefined;
14
17
  };
15
18
  events: {
16
19
  [evt: string]: CustomEvent<any>;
@@ -2,7 +2,9 @@
2
2
  /**
3
3
  * @slot lead - Provides a leading position, which can be used for icons.
4
4
  */
5
- import { getContext } from 'svelte';
5
+ import { createEventDispatcher, getContext } from 'svelte';
6
+ // Event Handler
7
+ const dispatch = createEventDispatcher();
6
8
  // Context
7
9
  export let selected = getContext('selected');
8
10
  export let borderWidth = getContext('borderWidth');
@@ -25,7 +27,15 @@ const cBase = 'font-bold list-none py-2.5 px-4 flex items-center space-x-2 curso
25
27
  const cBorderColor = 'border-transparent';
26
28
  const cBaseLabel = 'font-bold whitespace-nowrap';
27
29
  // A11y Input Handlers
30
+ function onClickHandler(value) {
31
+ /** @event {{ value }} click - Fires on tab click event. */
32
+ dispatch('click', value);
33
+ // Update Selected
34
+ selected.set(value);
35
+ }
28
36
  function onKeyDown(event) {
37
+ /** @event {{ event }} keydown - Fires on tab keydown event. */
38
+ dispatch('keydown', event);
29
39
  // Enter/Space to toggle element
30
40
  if (['Enter', 'Space'].includes(event.code)) {
31
41
  event.preventDefault();
@@ -43,12 +53,14 @@ $: classesLabel = `${cBaseLabel}`;
43
53
  <li
44
54
  class="tab ${classesBase}"
45
55
  on:click={() => {
46
- selected.set(value);
56
+ onClickHandler(value);
47
57
  }}
48
- data-testid="tab"
49
58
  on:keydown={onKeyDown}
59
+ on:keyup
60
+ on:keypress
50
61
  role="tab"
51
62
  tabindex="0"
63
+ data-testid="tab"
52
64
  >
53
65
  <!-- Slot: Lead -->
54
66
  {#if $$slots.lead}<div class="tab-lead {classesLead}"><slot name="lead" /></div>{/if}
@@ -17,6 +17,11 @@ declare const __propDef: {
17
17
  label?: string | undefined;
18
18
  };
19
19
  events: {
20
+ keyup: KeyboardEvent;
21
+ keypress: KeyboardEvent;
22
+ click: CustomEvent<any>;
23
+ keydown: CustomEvent<any>;
24
+ } & {
20
25
  [evt: string]: CustomEvent<any>;
21
26
  };
22
27
  slots: {
@@ -29,9 +29,9 @@ function onRowClick(event, rowIndex) {
29
29
  event.preventDefault();
30
30
  event.stopPropagation();
31
31
  // Prefer meta row info if available, else fallback to body row info
32
- const rowInfo = source.meta ? source.meta[rowIndex] : source.body[rowIndex];
33
- /** @event {rowInfo} selected - Fires when a table row is clicked. */
34
- dispatch('selected', rowInfo);
32
+ const rowMetaData = source.meta ? source.meta[rowIndex] : source.body[rowIndex];
33
+ /** @event {rowMetaData} selected - Fires when a table row is clicked. */
34
+ dispatch('selected', rowMetaData);
35
35
  }
36
36
  // Row Keydown Handler
37
37
  function onRowKeydown(event, rowIndex) {
package/package.json CHANGED
@@ -1,41 +1,40 @@
1
1
  {
2
2
  "name": "@skeletonlabs/skeleton",
3
- "version": "0.80.9",
3
+ "version": "0.86.9",
4
4
  "description": "A SvelteKit component library.",
5
5
  "author": "endigo9740 <chris@skeletonlabs.dev>",
6
6
  "devDependencies": {
7
- "@bobthered/tailwindcss-palette-generator": "^3.1.1",
8
- "@sveltejs/adapter-auto": "^1.0.0-next.89",
9
- "@sveltejs/kit": "^1.0.0-next.561",
10
- "@sveltejs/package": "1.0.0-next.5",
7
+ "@sveltejs/adapter-auto": "^1.0.0",
8
+ "@sveltejs/kit": "^1.0.0",
9
+ "@sveltejs/package": "1.0.0",
11
10
  "@tailwindcss/forms": "^0.5.3",
12
11
  "@testing-library/dom": "^8.19.0",
13
12
  "@testing-library/svelte": "^3.2.2",
14
- "@typescript-eslint/eslint-plugin": "^5.44.0",
15
- "@typescript-eslint/parser": "^5.44.0",
13
+ "@typescript-eslint/eslint-plugin": "^5.46.1",
14
+ "@typescript-eslint/parser": "^5.46.1",
16
15
  "autoprefixer": "^10.4.13",
17
16
  "c8": "^7.12.0",
18
- "edit-package-json": "^0.7.12",
19
- "eslint": "^8.28.0",
17
+ "edit-package-json": "^0.8.2",
18
+ "eslint": "^8.29.0",
20
19
  "eslint-config-prettier": "^8.5.0",
21
20
  "eslint-plugin-svelte3": "^4.0.0",
22
21
  "highlight.js": "^11.7.0",
23
22
  "jsdom": "^20.0.3",
24
- "postcss": "^8.4.19",
23
+ "postcss": "^8.4.20",
25
24
  "postcss-load-config": "^4.0.1",
26
- "prettier": "^2.8.0",
27
- "prettier-plugin-svelte": "^2.8.1",
25
+ "prettier": "^2.8.1",
26
+ "prettier-plugin-svelte": "^2.9.0",
28
27
  "sveld": "^0.18.0",
29
- "svelte": "^3.53.1",
30
- "svelte-check": "^2.9.2",
31
- "svelte-preprocess": "^4.10.7",
32
- "svelte2tsx": "^0.5.20",
28
+ "svelte": "^3.55.0",
29
+ "svelte-check": "^2.10.2",
30
+ "svelte-preprocess": "^5.0.0",
31
+ "svelte2tsx": "^0.5.22",
33
32
  "tailwindcss": "^3.2.4",
34
33
  "tslib": "^2.4.1",
35
- "typescript": "^4.9.3",
36
- "vite": "^3.2.4",
34
+ "typescript": "^4.9.4",
35
+ "vite": "^4.0.1",
37
36
  "vite-plugin-sveld": "^1.1.0",
38
- "vitest": "^0.24.5"
37
+ "vitest": "^0.25.8"
39
38
  },
40
39
  "type": "module",
41
40
  "types": "index.d.ts",
@@ -109,7 +108,6 @@
109
108
  "./styles/tokens/border-radius.css": "./styles/tokens/border-radius.css",
110
109
  "./styles/tokens/borders.css": "./styles/tokens/borders.css",
111
110
  "./styles/tokens/fills.css": "./styles/tokens/fills.css",
112
- "./styles/tokens/misc.css": "./styles/tokens/misc.css",
113
111
  "./styles/tokens/rings.css": "./styles/tokens/rings.css",
114
112
  "./styles/tokens/text.css": "./styles/tokens/text.css",
115
113
  "./styles/tokens.css": "./styles/tokens.css",
@@ -3,7 +3,7 @@
3
3
  @layer components {
4
4
  .badge {
5
5
  /* Core */
6
- @apply inline-flex items-center space-x-2 whitespace-nowrap;
6
+ @apply inline-flex justify-center items-center space-x-2 whitespace-nowrap;
7
7
  /* Text */
8
8
  @apply font-semibold text-xs;
9
9
  /* Padding */
@@ -26,24 +26,30 @@
26
26
  /* Filled */
27
27
  .badge-filled,
28
28
  .badge-filled-surface {
29
- @apply bg-surface-400-500-token;
29
+ @apply bg-surface-400-500-token text-on-surface-token;
30
30
  }
31
31
  .badge-filled-primary {
32
32
  @apply bg-primary-500 text-on-primary-token;
33
33
  }
34
- .badge-filled-accent {
35
- @apply bg-accent-500 text-on-accent-token;
34
+ .badge-filled-secondary {
35
+ @apply bg-secondary-500 text-on-secondary-token;
36
36
  }
37
37
  .badge-filled-tertiary {
38
38
  @apply bg-tertiary-500 text-on-tertiary-token;
39
39
  }
40
+ .badge-filled-success {
41
+ @apply bg-success-500 text-on-success-token;
42
+ }
40
43
  .badge-filled-warning {
41
44
  @apply bg-warning-500 text-on-warning-token;
42
45
  }
46
+ .badge-filled-error {
47
+ @apply bg-error-500 text-on-error-token;
48
+ }
43
49
 
44
50
  /* Glass */
45
51
  .badge-glass {
46
- @apply bg-accent-500/10 dark:bg-accent-500/10 backdrop-blur-lg;
52
+ @apply bg-surface-500/20 dark:bg-surface-500/20 backdrop-blur-lg;
47
53
  /* Ring */
48
54
  @apply ring-[1px] ring-neutral-900/5 dark:ring-neutral-50/5 ring-inset;
49
55
  }
@@ -75,15 +75,21 @@
75
75
  .btn-outline-primary {
76
76
  @apply ring-2 ring-primary-500 ring-inset;
77
77
  }
78
- .btn-outline-accent {
79
- @apply ring-2 ring-accent-500 ring-inset;
78
+ .btn-outline-secondary {
79
+ @apply ring-2 ring-secondary-500 ring-inset;
80
80
  }
81
81
  .btn-outline-tertiary {
82
82
  @apply ring-2 ring-tertiary-500 ring-inset;
83
83
  }
84
+ .btn-outline-success {
85
+ @apply ring-2 ring-success-500 ring-inset;
86
+ }
84
87
  .btn-outline-warning {
85
88
  @apply ring-2 ring-warning-500 ring-inset;
86
89
  }
90
+ .btn-outline-error {
91
+ @apply ring-2 ring-error-500 ring-inset;
92
+ }
87
93
  .btn-outline-surface {
88
94
  @apply ring-2 ring-surface-400-500-token ring-inset;
89
95
  }
@@ -98,15 +104,21 @@
98
104
  .btn-filled-primary {
99
105
  @apply bg-primary-500 text-on-primary-token;
100
106
  }
101
- .btn-filled-accent {
102
- @apply bg-accent-500 text-on-accent-token;
107
+ .btn-filled-secondary {
108
+ @apply bg-secondary-500 text-on-secondary-token;
103
109
  }
104
110
  .btn-filled-tertiary {
105
111
  @apply bg-tertiary-500 text-on-tertiary-token;
106
112
  }
113
+ .btn-filled-success {
114
+ @apply bg-success-500 text-on-success-token;
115
+ }
107
116
  .btn-filled-warning {
108
117
  @apply bg-warning-500 text-on-warning-token;
109
118
  }
119
+ .btn-filled-error {
120
+ @apply bg-error-500 text-on-error-token;
121
+ }
110
122
  .btn-filled-surface {
111
123
  @apply bg-surface-400-500-token;
112
124
  }
@@ -118,15 +130,21 @@
118
130
  .btn-ringed-primary {
119
131
  @apply btn-outline-primary;
120
132
  }
121
- .btn-ringed-accent {
122
- @apply btn-outline-accent;
133
+ .btn-ringed-secondary {
134
+ @apply btn-outline-secondary;
123
135
  }
124
136
  .btn-ringed-tertiary {
125
137
  @apply btn-outline-tertiary;
126
138
  }
139
+ .btn-ringed-success {
140
+ @apply btn-outline-success;
141
+ }
127
142
  .btn-ringed-warning {
128
143
  @apply btn-outline-warning;
129
144
  }
145
+ .btn-ringed-error {
146
+ @apply btn-outline-error;
147
+ }
130
148
  .btn-ringed-surface {
131
149
  @apply btn-outline-surface;
132
150
  }
@@ -142,21 +160,27 @@
142
160
  .btn-ghost-primary {
143
161
  @apply btn-outline-primary bg-primary-500/20 hover:bg-primary-500/30;
144
162
  }
145
- .btn-ghost-accent {
146
- @apply btn-outline-accent bg-accent-500/20 hover:bg-accent-500/30;
163
+ .btn-ghost-secondary {
164
+ @apply btn-outline-secondary bg-secondary-500/20 hover:bg-secondary-500/30;
147
165
  }
148
166
  .btn-ghost-tertiary {
149
167
  @apply btn-outline-tertiary bg-tertiary-500/20 hover:bg-tertiary-500/30;
150
168
  }
169
+ .btn-ghost-success {
170
+ @apply btn-outline-success bg-success-500/20 hover:bg-success-500/30;
171
+ }
151
172
  .btn-ghost-warning {
152
173
  @apply btn-outline-warning bg-warning-500/20 hover:bg-warning-500/30;
153
174
  }
175
+ .btn-ghost-error {
176
+ @apply btn-outline-error bg-error-500/20 hover:bg-error-500/30;
177
+ }
154
178
  .btn-ghost-surface {
155
179
  @apply btn-outline-surface bg-surface-400/20 hover:bg-surface-500/30;
156
180
  }
157
181
 
158
182
  /* File Input Button */
159
183
  input[type='file']:not(.file-dropzone-input)::file-selector-button {
160
- @apply border-0 btn btn-filled-accent btn-sm mr-2 text-token;
184
+ @apply border-0 btn btn-filled-secondary btn-sm mr-2 text-token;
161
185
  }
162
186
  }
@@ -28,13 +28,32 @@
28
28
  @apply transition-all hover:brightness-110;
29
29
  }
30
30
 
31
- .card-zoom {
31
+ .card-hover {
32
32
  @apply transition-all hover:scale-[101%] hover:shadow-xl;
33
33
  }
34
34
 
35
35
  /* === Variants === */
36
36
 
37
- .card-glass {
38
- @apply bg-accent-500/10 dark:bg-accent-500/10 backdrop-blur-lg;
37
+ .card-glass-primary {
38
+ @apply bg-primary-500/10 dark:bg-primary-500/10 backdrop-blur-lg;
39
+ }
40
+ .card-glass-secondary {
41
+ @apply bg-secondary-500/10 dark:bg-secondary-500/10 backdrop-blur-lg;
42
+ }
43
+ .card-glass-tertiary {
44
+ @apply bg-tertiary-500/10 dark:bg-tertiary-500/10 backdrop-blur-lg;
45
+ }
46
+ .card-glass-success {
47
+ @apply bg-success-500/10 dark:bg-success-500/10 backdrop-blur-lg;
48
+ }
49
+ .card-glass-warning {
50
+ @apply bg-warning-500/10 dark:bg-warning-500/10 backdrop-blur-lg;
51
+ }
52
+ .card-glass-error {
53
+ @apply bg-error-500/10 dark:bg-error-500/10 backdrop-blur-lg;
54
+ }
55
+ .card-glass,
56
+ .card-glass-surface {
57
+ @apply bg-surface-500/10 dark:bg-surface-500/10 backdrop-blur-lg;
39
58
  }
40
59
  }
@@ -7,12 +7,14 @@
7
7
  /* Core */
8
8
  @apply inline-flex items-center space-x-2 whitespace-nowrap;
9
9
  /* Text */
10
- @apply text-xs text-black dark:text-primary-400;
10
+ @apply text-xs text-primary-700 dark:text-primary-500;
11
11
  /* Padding */
12
12
  @apply px-2 py-1;
13
13
  /* Theme: Rounded */
14
14
  @apply rounded;
15
+ /* Border */
16
+ @apply border border-primary-700 dark:border-primary-500;
15
17
  /* Background */
16
- @apply bg-primary-500/10 border border-primary-600-300-token backdrop-blur-lg hover:bg-primary-500/30;
18
+ @apply bg-primary-500/5 backdrop-blur-lg hover:bg-primary-500/20;
17
19
  }
18
20
  }
@@ -85,7 +85,7 @@
85
85
  /* === Rows Specific === */
86
86
 
87
87
  .table-row-checked {
88
- @apply !bg-accent-500/30;
88
+ @apply !bg-secondary-500/30;
89
89
  }
90
90
 
91
91
  /* === Cells Specific === */
package/styles/forms.css CHANGED
@@ -43,13 +43,13 @@
43
43
  textarea,
44
44
  select {
45
45
  /* Base */
46
- @apply w-full caret-accent-500 focus:ring-accent-500 transition-all duration-200 hover:brightness-110;
46
+ @apply w-full caret-secondary-500 focus:ring-secondary-500 transition-all duration-200 hover:brightness-110;
47
47
  /* Text */
48
48
  @apply text-black dark:text-white;
49
49
  /* Background */
50
50
  @apply bg-surface-200-700-token;
51
51
  /* Border */
52
- @apply border-surface-400-500-token focus:border-accent-500;
52
+ @apply border-surface-400-500-token focus:border-secondary-500;
53
53
  /* Shadow */
54
54
  @apply shadow-sm;
55
55
  /* Theme: Border Width */
@@ -78,7 +78,7 @@
78
78
  /* Checkbox */
79
79
  [type='checkbox'],
80
80
  [type='radio'] {
81
- @apply border-surface-500 rounded text-accent-600 focus:ring-accent-500 w-5 h-5;
81
+ @apply border-surface-500 rounded text-secondary-600 focus:ring-secondary-500 w-5 h-5;
82
82
  }
83
83
  /* Checkbox */
84
84
  [type='radio'] {
@@ -156,6 +156,6 @@
156
156
  /* https://developer.mozilla.org/en-US/docs/Web/CSS/accent-color */
157
157
 
158
158
  [type='range']:not(.range-input) {
159
- @apply w-full accent-accent-token;
159
+ @apply w-full accent-secondary-500;
160
160
  }
161
161
  }
@@ -6,15 +6,21 @@
6
6
  .bg-primary-backdrop-token {
7
7
  @apply bg-primary-400/70 dark:bg-primary-900/70;
8
8
  }
9
- .bg-accent-backdrop-token {
10
- @apply bg-accent-400/70 dark:bg-accent-900/70;
9
+ .bg-secondary-backdrop-token {
10
+ @apply bg-secondary-400/70 dark:bg-secondary-900/70;
11
11
  }
12
12
  .bg-tertiary-backdrop-token {
13
13
  @apply bg-tertiary-400/70 dark:bg-tertiary-900/70;
14
14
  }
15
+ .bg-success-backdrop-token {
16
+ @apply bg-success-400/70 dark:bg-success-900/70;
17
+ }
15
18
  .bg-warning-backdrop-token {
16
19
  @apply bg-warning-400/70 dark:bg-warning-900/70;
17
20
  }
21
+ .bg-error-backdrop-token {
22
+ @apply bg-error-400/70 dark:bg-error-900/70;
23
+ }
18
24
  .bg-surface-backdrop-token {
19
25
  @apply bg-surface-400/70 dark:bg-surface-900/70;
20
26
  }
@@ -29,12 +35,12 @@
29
35
  @apply !bg-primary-500 text-on-primary-token fill-on-primary-token;
30
36
  }
31
37
 
32
- /* Accent */
33
- .bg-accent-hover-token {
34
- @apply hover:bg-accent-500/10;
38
+ /* Secondary */
39
+ .bg-secondary-hover-token {
40
+ @apply hover:bg-secondary-500/10;
35
41
  }
36
- .bg-accent-active-token {
37
- @apply bg-accent-500 text-accent-50 dark:text-accent-50;
42
+ .bg-secondary-active-token {
43
+ @apply bg-secondary-500 text-secondary-50 dark:text-secondary-50;
38
44
  }
39
45
 
40
46
  /* Tertiary */
@@ -45,6 +51,14 @@
45
51
  @apply bg-tertiary-500 text-tertiary-50 dark:text-tertiary-50;
46
52
  }
47
53
 
54
+ /* Success */
55
+ .bg-success-hover-token {
56
+ @apply hover:bg-success-500/10;
57
+ }
58
+ .bg-success-active-token {
59
+ @apply bg-success-500 text-success-50 dark:text-success-50;
60
+ }
61
+
48
62
  /* Warning */
49
63
  .bg-warning-hover-token {
50
64
  @apply hover:bg-warning-500/10;
@@ -53,6 +67,14 @@
53
67
  @apply bg-warning-500 text-warning-50 dark:text-warning-50;
54
68
  }
55
69
 
70
+ /* Error */
71
+ .bg-error-hover-token {
72
+ @apply hover:bg-error-500/10;
73
+ }
74
+ .bg-error-active-token {
75
+ @apply bg-error-500 text-error-50 dark:text-error-50;
76
+ }
77
+
56
78
  /* Surface */
57
79
  .bg-surface-hover-token {
58
80
  @apply hover:bg-surface-500/10;
@@ -81,21 +103,21 @@
81
103
  @apply bg-primary-400 dark:bg-primary-500;
82
104
  }
83
105
 
84
- /* Accent */
85
- .bg-accent-50-900-token {
86
- @apply bg-accent-50 dark:bg-accent-900;
106
+ /* Secondary */
107
+ .bg-secondary-50-900-token {
108
+ @apply bg-secondary-50 dark:bg-secondary-900;
87
109
  }
88
- .bg-accent-100-800-token {
89
- @apply bg-accent-100 dark:bg-accent-800;
110
+ .bg-secondary-100-800-token {
111
+ @apply bg-secondary-100 dark:bg-secondary-800;
90
112
  }
91
- .bg-accent-200-700-token {
92
- @apply bg-accent-200 dark:bg-accent-700;
113
+ .bg-secondary-200-700-token {
114
+ @apply bg-secondary-200 dark:bg-secondary-700;
93
115
  }
94
- .bg-accent-300-600-token {
95
- @apply bg-accent-300 dark:bg-accent-600;
116
+ .bg-secondary-300-600-token {
117
+ @apply bg-secondary-300 dark:bg-secondary-600;
96
118
  }
97
- .bg-accent-400-500-token {
98
- @apply bg-accent-400 dark:bg-accent-500;
119
+ .bg-secondary-400-500-token {
120
+ @apply bg-secondary-400 dark:bg-secondary-500;
99
121
  }
100
122
 
101
123
  /* Tertiary */
@@ -115,6 +137,23 @@
115
137
  @apply bg-tertiary-400 dark:bg-tertiary-500;
116
138
  }
117
139
 
140
+ /* Success */
141
+ .bg-success-50-900-token {
142
+ @apply bg-success-50 dark:bg-success-900;
143
+ }
144
+ .bg-success-100-800-token {
145
+ @apply bg-success-100 dark:bg-success-800;
146
+ }
147
+ .bg-success-200-700-token {
148
+ @apply bg-success-200 dark:bg-success-700;
149
+ }
150
+ .bg-success-300-600-token {
151
+ @apply bg-success-300 dark:bg-success-600;
152
+ }
153
+ .bg-success-400-500-token {
154
+ @apply bg-success-400 dark:bg-success-500;
155
+ }
156
+
118
157
  /* Warning */
119
158
  .bg-warning-50-900-token {
120
159
  @apply bg-warning-50 dark:bg-warning-900;
@@ -132,6 +171,23 @@
132
171
  @apply bg-warning-400 dark:bg-warning-500;
133
172
  }
134
173
 
174
+ /* Error */
175
+ .bg-error-50-900-token {
176
+ @apply bg-error-50 dark:bg-error-900;
177
+ }
178
+ .bg-error-100-800-token {
179
+ @apply bg-error-100 dark:bg-error-800;
180
+ }
181
+ .bg-error-200-700-token {
182
+ @apply bg-error-200 dark:bg-error-700;
183
+ }
184
+ .bg-error-300-600-token {
185
+ @apply bg-error-300 dark:bg-error-600;
186
+ }
187
+ .bg-error-400-500-token {
188
+ @apply bg-error-400 dark:bg-error-500;
189
+ }
190
+
135
191
  /* Surface */
136
192
  .bg-surface-50-900-token {
137
193
  @apply bg-surface-50 dark:bg-surface-900;
@@ -169,21 +225,21 @@
169
225
  @apply bg-primary-500 dark:bg-primary-400;
170
226
  }
171
227
 
172
- /* Accent */
173
- .bg-accent-900-50-token {
174
- @apply bg-accent-900 dark:bg-accent-50;
228
+ /* Secondary */
229
+ .bg-secondary-900-50-token {
230
+ @apply bg-secondary-900 dark:bg-secondary-50;
175
231
  }
176
- .bg-accent-800-100-token {
177
- @apply bg-accent-800 dark:bg-accent-100;
232
+ .bg-secondary-800-100-token {
233
+ @apply bg-secondary-800 dark:bg-secondary-100;
178
234
  }
179
- .bg-accent-700-200-token {
180
- @apply bg-accent-700 dark:bg-accent-200;
235
+ .bg-secondary-700-200-token {
236
+ @apply bg-secondary-700 dark:bg-secondary-200;
181
237
  }
182
- .bg-accent-600-300-token {
183
- @apply bg-accent-600 dark:bg-accent-300;
238
+ .bg-secondary-600-300-token {
239
+ @apply bg-secondary-600 dark:bg-secondary-300;
184
240
  }
185
- .bg-accent-500-400-token {
186
- @apply bg-accent-500 dark:bg-accent-400;
241
+ .bg-secondary-500-400-token {
242
+ @apply bg-secondary-500 dark:bg-secondary-400;
187
243
  }
188
244
 
189
245
  /* Tertiary */
@@ -203,6 +259,23 @@
203
259
  @apply bg-tertiary-500 dark:bg-tertiary-400;
204
260
  }
205
261
 
262
+ /* Success */
263
+ .bg-success-900-50-token {
264
+ @apply bg-success-900 dark:bg-success-50;
265
+ }
266
+ .bg-success-800-100-token {
267
+ @apply bg-success-800 dark:bg-success-100;
268
+ }
269
+ .bg-success-700-200-token {
270
+ @apply bg-success-700 dark:bg-success-200;
271
+ }
272
+ .bg-success-600-300-token {
273
+ @apply bg-success-600 dark:bg-success-300;
274
+ }
275
+ .bg-success-500-400-token {
276
+ @apply bg-success-500 dark:bg-success-400;
277
+ }
278
+
206
279
  /* Warning */
207
280
  .bg-warning-900-50-token {
208
281
  @apply bg-warning-900 dark:bg-warning-50;
@@ -220,6 +293,23 @@
220
293
  @apply bg-warning-500 dark:bg-warning-400;
221
294
  }
222
295
 
296
+ /* Error */
297
+ .bg-error-900-50-token {
298
+ @apply bg-error-900 dark:bg-error-50;
299
+ }
300
+ .bg-error-800-100-token {
301
+ @apply bg-error-800 dark:bg-error-100;
302
+ }
303
+ .bg-error-700-200-token {
304
+ @apply bg-error-700 dark:bg-error-200;
305
+ }
306
+ .bg-error-600-300-token {
307
+ @apply bg-error-600 dark:bg-error-300;
308
+ }
309
+ .bg-error-500-400-token {
310
+ @apply bg-error-500 dark:bg-error-400;
311
+ }
312
+
223
313
  /* Surface */
224
314
  .bg-surface-900-50-token {
225
315
  @apply bg-surface-900 dark:bg-surface-50;