@skeletonlabs/skeleton 0.78.0 → 0.80.8
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/README.md +5 -0
- package/actions/Filters/svg-filters/GreenFall.svelte +10 -1
- package/actions/Filters/svg-filters/Noir.svelte +21 -2
- package/actions/Filters/svg-filters/NoirLight.svelte +10 -1
- package/actions/FocusTrap/focusTrap.js +16 -5
- package/components/Accordion/AccordionGroup.svelte +1 -1
- package/components/Alert/Alert.svelte +4 -4
- package/components/AppRail/AppRail.svelte +6 -3
- package/components/AppRail/AppRail.svelte.d.ts +2 -1
- package/components/AppRail/AppRailTile.svelte +13 -6
- package/components/AppRail/AppRailTile.svelte.d.ts +2 -2
- package/components/AppShell/AppShell.svelte +1 -1
- package/components/Breadcrumb/Crumb.svelte +7 -1
- package/components/ConicGradient/ConicGradient.svelte +1 -1
- package/components/FileDropzone/FileDropzone.svelte +13 -2
- package/components/FileDropzone/FileDropzone.svelte.d.ts +1 -0
- package/components/GradientHeading/GradientHeading.svelte.d.ts +1 -1
- package/components/ListBox/ListBox.svelte +6 -3
- package/components/ProgressBar/ProgressBar.svelte +9 -1
- package/components/ProgressRadial/ProgressRadial.svelte +9 -1
- package/components/Radio/RadioGroup.svelte +3 -0
- package/components/Radio/RadioGroup.svelte.d.ts +1 -0
- package/components/Radio/RadioItem.svelte +23 -4
- package/components/Radio/RadioItem.svelte.d.ts +4 -2
- package/components/RangeSlider/RangeSlider.svelte +9 -3
- package/components/SlideToggle/SlideToggle.svelte +22 -2
- package/components/SvgIcon/SvgIcon.svelte +1 -1
- package/components/SvgIcon/icons.d.ts +1 -1
- package/components/SvgIcon/icons.js +1 -1
- package/components/Tab/Tab.svelte +5 -2
- package/components/Tab/TabGroup.svelte +1 -1
- package/components/Table/Table.svelte +2 -5
- package/index.d.ts +3 -1
- package/index.js +2 -1
- package/package.json +14 -6
- package/styles/all.css +7 -6
- package/styles/core.css +1 -1
- package/styles/elements/badges.css +22 -1
- package/styles/elements/buttons.css +5 -5
- package/styles/elements/cards.css +12 -6
- package/styles/elements/chips.css +18 -0
- package/styles/elements/lists.css +1 -1
- package/styles/elements/menus.css +3 -0
- package/styles/elements/tables.css +2 -2
- package/styles/elements.css +3 -2
- package/styles/forms.css +15 -8
- package/styles/tailwind.css +2 -2
- package/styles/tokens/backgrounds.css +239 -0
- package/styles/tokens/border-radius.css +41 -0
- package/styles/tokens/borders.css +185 -0
- package/styles/tokens/fills.css +29 -0
- package/styles/tokens/misc.css +22 -0
- package/styles/tokens/rings.css +185 -0
- package/styles/tokens/text.css +216 -0
- package/styles/tokens.css +9 -169
- package/styles/typography.css +2 -2
- package/tailwind/theme.cjs +10 -18
- package/themes/theme-crimson.css +6 -0
- package/themes/theme-gold-nouveau.css +12 -0
- package/themes/theme-hamlindigo.css +6 -0
- package/themes/theme-modern.css +6 -0
- package/themes/theme-rocket.css +6 -0
- package/themes/theme-sahara.css +6 -0
- package/themes/theme-seafoam.css +8 -2
- package/themes/theme-skeleton.css +7 -1
- package/themes/theme-vintage.css +6 -0
- package/utilities/DataTable/DataTable.d.ts +15 -11
- package/utilities/DataTable/DataTable.js +90 -53
- package/utilities/DataTable/types.d.ts +24 -6
- package/utilities/Drawer/Drawer.svelte +79 -58
- package/utilities/Drawer/Drawer.svelte.d.ts +1 -3
- package/utilities/Drawer/stores.d.ts +10 -0
- package/utilities/Drawer/stores.js +21 -0
- package/utilities/Drawer/types.d.ts +33 -0
- package/utilities/Drawer/types.js +2 -0
- package/utilities/Menu/menu.js +60 -13
- package/utilities/Modal/Modal.svelte +4 -4
- package/utilities/Modal/examples/ModalExampleForm.svelte +3 -2
- package/utilities/Modal/examples/ModalExampleList.svelte +3 -5
- package/utilities/Modal/stores.d.ts +12 -1
- package/utilities/Modal/stores.js +2 -0
- package/utilities/Modal/types.d.ts +1 -1
- package/utilities/Toast/Toast.svelte +1 -1
- package/themes/legacy/theme-skeleton.css +0 -93
- package/utilities/Modal/Modal.d.ts +0 -1
- package/utilities/Modal/Modal.js +0 -44
package/index.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
export type { ConicStop } from './components/ConicGradient/types';
|
|
2
|
+
export type { DrawerSettings } from './utilities/Drawer/types';
|
|
2
3
|
export type { ModalSettings, ModalComponent } from './utilities/Modal/types';
|
|
3
4
|
export type { ToastSettings } from './utilities/Toast/types';
|
|
4
5
|
export type { TableSource } from './components/Table/types';
|
|
5
6
|
export { storeHighlightJs } from './utilities/CodeBlock/stores';
|
|
7
|
+
export { drawerStore } from './utilities/Drawer/stores';
|
|
6
8
|
export { modalStore } from './utilities/Modal/stores';
|
|
7
9
|
export { toastStore } from './utilities/Toast/stores';
|
|
8
10
|
export { storePrefersDarkScheme, storeLightSwitch } from './utilities/LightSwitch/stores';
|
|
9
|
-
export { type DataTableModel,
|
|
11
|
+
export { type DataTableModel, type DataTableOptions, createDataTableStore, dataTableHandler, tableInteraction, tableA11y } from './utilities/DataTable/DataTable';
|
|
10
12
|
export { localStorageStore } from './utilities/LocalStorageStore/LocalStorageStore';
|
|
11
13
|
export { tableSourceMapper, tableSourceValues, tableMapperValues } from './components/Table/utils';
|
|
12
14
|
export { clipboard } from './actions/Clipboard/clipboard';
|
package/index.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
// This file defines the short path imports for the package (ex: @skeletonlabs/skeleton/*)
|
|
2
2
|
// Stores ---
|
|
3
3
|
export { storeHighlightJs } from './utilities/CodeBlock/stores';
|
|
4
|
+
export { drawerStore } from './utilities/Drawer/stores';
|
|
4
5
|
export { modalStore } from './utilities/Modal/stores';
|
|
5
6
|
export { toastStore } from './utilities/Toast/stores';
|
|
6
7
|
export { storePrefersDarkScheme, storeLightSwitch } from './utilities/LightSwitch/stores';
|
|
7
8
|
// Utilities ---
|
|
8
9
|
export {
|
|
9
10
|
// Utilities
|
|
10
|
-
|
|
11
|
+
createDataTableStore, dataTableHandler,
|
|
11
12
|
// Svelte Actions
|
|
12
13
|
tableInteraction, tableA11y } from './utilities/DataTable/DataTable';
|
|
13
14
|
export { localStorageStore } from './utilities/LocalStorageStore/LocalStorageStore';
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skeletonlabs/skeleton",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.80.8",
|
|
4
4
|
"description": "A SvelteKit component library.",
|
|
5
|
-
"author": "endigo9740 <
|
|
5
|
+
"author": "endigo9740 <chris@skeletonlabs.dev>",
|
|
6
6
|
"devDependencies": {
|
|
7
|
-
"@bobthered/tailwindcss-palette-generator": "^3.1.
|
|
7
|
+
"@bobthered/tailwindcss-palette-generator": "^3.1.1",
|
|
8
8
|
"@sveltejs/adapter-auto": "^1.0.0-next.89",
|
|
9
|
-
"@sveltejs/kit": "^1.0.0-next.
|
|
9
|
+
"@sveltejs/kit": "^1.0.0-next.561",
|
|
10
10
|
"@sveltejs/package": "1.0.0-next.5",
|
|
11
11
|
"@tailwindcss/forms": "^0.5.3",
|
|
12
12
|
"@testing-library/dom": "^8.19.0",
|
|
@@ -94,6 +94,7 @@
|
|
|
94
94
|
"./styles/elements/badges.css": "./styles/elements/badges.css",
|
|
95
95
|
"./styles/elements/buttons.css": "./styles/elements/buttons.css",
|
|
96
96
|
"./styles/elements/cards.css": "./styles/elements/cards.css",
|
|
97
|
+
"./styles/elements/chips.css": "./styles/elements/chips.css",
|
|
97
98
|
"./styles/elements/lists.css": "./styles/elements/lists.css",
|
|
98
99
|
"./styles/elements/logo-clouds.css": "./styles/elements/logo-clouds.css",
|
|
99
100
|
"./styles/elements/menus.css": "./styles/elements/menus.css",
|
|
@@ -104,11 +105,17 @@
|
|
|
104
105
|
"./styles/forms.css": "./styles/forms.css",
|
|
105
106
|
"./styles/highlight-js.css": "./styles/highlight-js.css",
|
|
106
107
|
"./styles/tailwind.css": "./styles/tailwind.css",
|
|
108
|
+
"./styles/tokens/backgrounds.css": "./styles/tokens/backgrounds.css",
|
|
109
|
+
"./styles/tokens/border-radius.css": "./styles/tokens/border-radius.css",
|
|
110
|
+
"./styles/tokens/borders.css": "./styles/tokens/borders.css",
|
|
111
|
+
"./styles/tokens/fills.css": "./styles/tokens/fills.css",
|
|
112
|
+
"./styles/tokens/misc.css": "./styles/tokens/misc.css",
|
|
113
|
+
"./styles/tokens/rings.css": "./styles/tokens/rings.css",
|
|
114
|
+
"./styles/tokens/text.css": "./styles/tokens/text.css",
|
|
107
115
|
"./styles/tokens.css": "./styles/tokens.css",
|
|
108
116
|
"./styles/typography.css": "./styles/typography.css",
|
|
109
117
|
"./tailwind/colors": "./tailwind/colors.js",
|
|
110
118
|
"./tailwind/theme.cjs": "./tailwind/theme.cjs",
|
|
111
|
-
"./themes/legacy/theme-skeleton.css": "./themes/legacy/theme-skeleton.css",
|
|
112
119
|
"./themes/theme-crimson.css": "./themes/theme-crimson.css",
|
|
113
120
|
"./themes/theme-gold-nouveau.css": "./themes/theme-gold-nouveau.css",
|
|
114
121
|
"./themes/theme-hamlindigo.css": "./themes/theme-hamlindigo.css",
|
|
@@ -125,12 +132,13 @@
|
|
|
125
132
|
"./utilities/DataTable/actions": "./utilities/DataTable/actions.js",
|
|
126
133
|
"./utilities/DataTable/types": "./utilities/DataTable/types.js",
|
|
127
134
|
"./utilities/Drawer/Drawer.svelte": "./utilities/Drawer/Drawer.svelte",
|
|
135
|
+
"./utilities/Drawer/stores": "./utilities/Drawer/stores.js",
|
|
136
|
+
"./utilities/Drawer/types": "./utilities/Drawer/types.js",
|
|
128
137
|
"./utilities/LightSwitch/LightSwitch.svelte": "./utilities/LightSwitch/LightSwitch.svelte",
|
|
129
138
|
"./utilities/LightSwitch/stores": "./utilities/LightSwitch/stores.js",
|
|
130
139
|
"./utilities/LocalStorageStore/LocalStorageStore": "./utilities/LocalStorageStore/LocalStorageStore.js",
|
|
131
140
|
"./utilities/Menu/menu": "./utilities/Menu/menu.js",
|
|
132
141
|
"./utilities/Modal/Modal.svelte": "./utilities/Modal/Modal.svelte",
|
|
133
|
-
"./utilities/Modal/Modal": "./utilities/Modal/Modal.js",
|
|
134
142
|
"./utilities/Modal/examples/ModalExampleEmbed.svelte": "./utilities/Modal/examples/ModalExampleEmbed.svelte",
|
|
135
143
|
"./utilities/Modal/examples/ModalExampleForm.svelte": "./utilities/Modal/examples/ModalExampleForm.svelte",
|
|
136
144
|
"./utilities/Modal/examples/ModalExampleList.svelte": "./utilities/Modal/examples/ModalExampleList.svelte",
|
package/styles/all.css
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
/* Stylesheet: all.css */
|
|
2
2
|
/* Import AFTER your theme, but BEFORE your global stylesheet. */
|
|
3
|
+
/* NOTE: The order shown below is required */
|
|
3
4
|
|
|
4
|
-
/*
|
|
5
|
+
/* Tailwind Directives */
|
|
5
6
|
@import 'tailwind.css';
|
|
6
7
|
|
|
7
|
-
/*
|
|
8
|
+
/* Design Tokens */
|
|
8
9
|
@import 'tokens.css';
|
|
9
10
|
|
|
10
|
-
/*
|
|
11
|
+
/* Global Styles */
|
|
11
12
|
@import 'core.css';
|
|
12
13
|
|
|
13
|
-
/*
|
|
14
|
+
/* Typographical Settings */
|
|
14
15
|
@import 'typography.css';
|
|
15
16
|
|
|
16
|
-
/*
|
|
17
|
+
/* Extends Tailwind Forms Plugin styles */
|
|
17
18
|
@import 'forms.css';
|
|
18
19
|
|
|
19
|
-
/* Imports
|
|
20
|
+
/* Imports all Tailwind Elements */
|
|
20
21
|
@import 'elements.css';
|
package/styles/core.css
CHANGED
|
@@ -23,7 +23,28 @@
|
|
|
23
23
|
|
|
24
24
|
/* === Variants === */
|
|
25
25
|
|
|
26
|
+
/* Filled */
|
|
27
|
+
.badge-filled,
|
|
26
28
|
.badge-filled-surface {
|
|
27
|
-
@apply bg-surface-
|
|
29
|
+
@apply bg-surface-400-500-token;
|
|
30
|
+
}
|
|
31
|
+
.badge-filled-primary {
|
|
32
|
+
@apply bg-primary-500 text-on-primary-token;
|
|
33
|
+
}
|
|
34
|
+
.badge-filled-accent {
|
|
35
|
+
@apply bg-accent-500 text-on-accent-token;
|
|
36
|
+
}
|
|
37
|
+
.badge-filled-tertiary {
|
|
38
|
+
@apply bg-tertiary-500 text-on-tertiary-token;
|
|
39
|
+
}
|
|
40
|
+
.badge-filled-warning {
|
|
41
|
+
@apply bg-warning-500 text-on-warning-token;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* Glass */
|
|
45
|
+
.badge-glass {
|
|
46
|
+
@apply bg-accent-500/10 dark:bg-accent-500/10 backdrop-blur-lg;
|
|
47
|
+
/* Ring */
|
|
48
|
+
@apply ring-[1px] ring-neutral-900/5 dark:ring-neutral-50/5 ring-inset;
|
|
28
49
|
}
|
|
29
50
|
}
|
|
@@ -93,19 +93,19 @@
|
|
|
93
93
|
|
|
94
94
|
/* Filled */
|
|
95
95
|
.btn-filled {
|
|
96
|
-
@apply bg-surface-900 dark:bg-surface-50 text-
|
|
96
|
+
@apply bg-surface-900 dark:bg-surface-50 text-white dark:text-black;
|
|
97
97
|
}
|
|
98
98
|
.btn-filled-primary {
|
|
99
|
-
@apply bg-primary-500;
|
|
99
|
+
@apply bg-primary-500 text-on-primary-token;
|
|
100
100
|
}
|
|
101
101
|
.btn-filled-accent {
|
|
102
|
-
@apply bg-accent-500;
|
|
102
|
+
@apply bg-accent-500 text-on-accent-token;
|
|
103
103
|
}
|
|
104
104
|
.btn-filled-tertiary {
|
|
105
|
-
@apply bg-tertiary-500;
|
|
105
|
+
@apply bg-tertiary-500 text-on-tertiary-token;
|
|
106
106
|
}
|
|
107
107
|
.btn-filled-warning {
|
|
108
|
-
@apply bg-warning-500;
|
|
108
|
+
@apply bg-warning-500 text-on-warning-token;
|
|
109
109
|
}
|
|
110
110
|
.btn-filled-surface {
|
|
111
111
|
@apply bg-surface-400-500-token;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
/* background */
|
|
8
8
|
@apply bg-surface-100-800-token;
|
|
9
9
|
/* Ring */
|
|
10
|
-
@apply ring-
|
|
10
|
+
@apply ring-outline-token;
|
|
11
11
|
/* Theme: Rounded */
|
|
12
12
|
@apply rounded-container-token;
|
|
13
13
|
}
|
|
@@ -18,10 +18,6 @@
|
|
|
18
18
|
@apply p-4 pb-0;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
.card-body {
|
|
22
|
-
@apply p-4;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
21
|
.card-footer {
|
|
26
22
|
@apply p-4 pt-0;
|
|
27
23
|
}
|
|
@@ -29,6 +25,16 @@
|
|
|
29
25
|
/* === States === */
|
|
30
26
|
|
|
31
27
|
a.card {
|
|
32
|
-
@apply hover:brightness-110;
|
|
28
|
+
@apply transition-all hover:brightness-110;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.card-zoom {
|
|
32
|
+
@apply transition-all hover:scale-[101%] hover:shadow-xl;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* === Variants === */
|
|
36
|
+
|
|
37
|
+
.card-glass {
|
|
38
|
+
@apply bg-accent-500/10 dark:bg-accent-500/10 backdrop-blur-lg;
|
|
33
39
|
}
|
|
34
40
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* Stylesheet Add-On: chips.css */
|
|
2
|
+
|
|
3
|
+
/* NOTE: these are a work in progress; best not to use them yet! */
|
|
4
|
+
|
|
5
|
+
@layer components {
|
|
6
|
+
.chip {
|
|
7
|
+
/* Core */
|
|
8
|
+
@apply inline-flex items-center space-x-2 whitespace-nowrap;
|
|
9
|
+
/* Text */
|
|
10
|
+
@apply text-xs text-black dark:text-primary-400;
|
|
11
|
+
/* Padding */
|
|
12
|
+
@apply px-2 py-1;
|
|
13
|
+
/* Theme: Rounded */
|
|
14
|
+
@apply rounded;
|
|
15
|
+
/* Background */
|
|
16
|
+
@apply bg-primary-500/10 border border-primary-600-300-token backdrop-blur-lg hover:bg-primary-500/30;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.table-interactive tbody tr {
|
|
25
|
-
@apply hover:bg-hover-token even:hover:bg-hover-token cursor-pointer;
|
|
25
|
+
@apply hover:bg-primary-hover-token even:hover:bg-primary-hover-token cursor-pointer;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
/* === Sort Styles ==== */
|
|
29
29
|
|
|
30
30
|
[data-sort] {
|
|
31
|
-
@apply hover:bg-hover-token cursor-pointer;
|
|
31
|
+
@apply hover:bg-primary-hover-token cursor-pointer;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.table-sort-asc {
|
package/styles/elements.css
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
/* Stylesheet
|
|
1
|
+
/* Stylesheet: elements.css */
|
|
2
2
|
/* Import AFTER your theme, but BEFORE your global stylesheet. */
|
|
3
|
-
/* Recommended as the LAST
|
|
3
|
+
/* Recommended as the LAST stylesheet in the set */
|
|
4
4
|
|
|
5
5
|
@import 'elements/badges.css';
|
|
6
6
|
@import 'elements/buttons.css';
|
|
7
7
|
@import 'elements/cards.css';
|
|
8
|
+
@import 'elements/chips.css';
|
|
8
9
|
@import 'elements/lists.css';
|
|
9
10
|
@import 'elements/logo-clouds.css';
|
|
10
11
|
@import 'elements/placeholders.css';
|
package/styles/forms.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Stylesheet
|
|
1
|
+
/* Stylesheet: forms.css */
|
|
2
2
|
|
|
3
3
|
@layer base {
|
|
4
4
|
/* === Fieldset === */
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
/* Background */
|
|
50
50
|
@apply bg-surface-200-700-token;
|
|
51
51
|
/* Border */
|
|
52
|
-
@apply border-surface-
|
|
52
|
+
@apply border-surface-400-500-token focus:border-accent-500;
|
|
53
53
|
/* Shadow */
|
|
54
54
|
@apply shadow-sm;
|
|
55
55
|
/* Theme: Border Width */
|
|
@@ -70,26 +70,33 @@
|
|
|
70
70
|
@apply p-2;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
/*
|
|
73
|
+
/* Date Calendar Picker (Webkit) */
|
|
74
|
+
::-webkit-calendar-picker-indicator {
|
|
75
|
+
@apply dark:invert;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/* Checkbox */
|
|
74
79
|
[type='checkbox'],
|
|
75
80
|
[type='radio'] {
|
|
76
81
|
@apply border-surface-500 rounded text-accent-600 focus:ring-accent-500 w-5 h-5;
|
|
77
|
-
|
|
82
|
+
}
|
|
83
|
+
/* Checkbox */
|
|
84
|
+
[type='radio'] {
|
|
78
85
|
@apply rounded-token;
|
|
79
86
|
}
|
|
80
87
|
|
|
81
88
|
/* Placeholder */
|
|
82
89
|
::-moz-placeholder,
|
|
83
90
|
textarea::-moz-placeholder {
|
|
84
|
-
@apply text-surface-
|
|
91
|
+
@apply text-surface-600 dark:text-surface-300;
|
|
85
92
|
}
|
|
86
93
|
:-ms-input-placeholder,
|
|
87
94
|
textarea:-ms-input-placeholder {
|
|
88
|
-
@apply text-surface-
|
|
95
|
+
@apply text-surface-600 dark:text-surface-300;
|
|
89
96
|
}
|
|
90
97
|
::placeholder,
|
|
91
98
|
textarea::placeholder {
|
|
92
|
-
@apply text-surface-
|
|
99
|
+
@apply text-surface-600 dark:text-surface-300;
|
|
93
100
|
}
|
|
94
101
|
|
|
95
102
|
/* === States === */
|
|
@@ -149,6 +156,6 @@
|
|
|
149
156
|
/* https://developer.mozilla.org/en-US/docs/Web/CSS/accent-color */
|
|
150
157
|
|
|
151
158
|
[type='range']:not(.range-input) {
|
|
152
|
-
@apply w-full accent-token;
|
|
159
|
+
@apply w-full accent-accent-token;
|
|
153
160
|
}
|
|
154
161
|
}
|
package/styles/tailwind.css
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/* Stylesheet
|
|
1
|
+
/* Stylesheet: tailwind.css */
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
Tailwind directives should only be included ONCE per project.
|
|
5
5
|
These directives should proceed all Skeleton Tailwind Element stylesheets.
|
|
6
|
-
Remove these directives from your global CSS file if you use this
|
|
6
|
+
Remove these directives from your global CSS file if you use this stylesheet.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
@tailwind base;
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
/* Design Tokens: Backgrounds */
|
|
2
|
+
|
|
3
|
+
@layer utilities {
|
|
4
|
+
/* === Modal Backdrop Shim === */
|
|
5
|
+
|
|
6
|
+
.bg-primary-backdrop-token {
|
|
7
|
+
@apply bg-primary-400/70 dark:bg-primary-900/70;
|
|
8
|
+
}
|
|
9
|
+
.bg-accent-backdrop-token {
|
|
10
|
+
@apply bg-accent-400/70 dark:bg-accent-900/70;
|
|
11
|
+
}
|
|
12
|
+
.bg-tertiary-backdrop-token {
|
|
13
|
+
@apply bg-tertiary-400/70 dark:bg-tertiary-900/70;
|
|
14
|
+
}
|
|
15
|
+
.bg-warning-backdrop-token {
|
|
16
|
+
@apply bg-warning-400/70 dark:bg-warning-900/70;
|
|
17
|
+
}
|
|
18
|
+
.bg-surface-backdrop-token {
|
|
19
|
+
@apply bg-surface-400/70 dark:bg-surface-900/70;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* === Hover & Active === */
|
|
23
|
+
|
|
24
|
+
/* Primary */
|
|
25
|
+
.bg-primary-hover-token {
|
|
26
|
+
@apply hover:bg-primary-500/10;
|
|
27
|
+
}
|
|
28
|
+
.bg-primary-active-token {
|
|
29
|
+
@apply !bg-primary-500 text-on-primary-token fill-on-primary-token;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* Accent */
|
|
33
|
+
.bg-accent-hover-token {
|
|
34
|
+
@apply hover:bg-accent-500/10;
|
|
35
|
+
}
|
|
36
|
+
.bg-accent-active-token {
|
|
37
|
+
@apply bg-accent-500 text-accent-50 dark:text-accent-50;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* Tertiary */
|
|
41
|
+
.bg-tertiary-hover-token {
|
|
42
|
+
@apply hover:bg-tertiary-500/10;
|
|
43
|
+
}
|
|
44
|
+
.bg-tertiary-active-token {
|
|
45
|
+
@apply bg-tertiary-500 text-tertiary-50 dark:text-tertiary-50;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* Warning */
|
|
49
|
+
.bg-warning-hover-token {
|
|
50
|
+
@apply hover:bg-warning-500/10;
|
|
51
|
+
}
|
|
52
|
+
.bg-warning-active-token {
|
|
53
|
+
@apply bg-warning-500 text-warning-50 dark:text-warning-50;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* Surface */
|
|
57
|
+
.bg-surface-hover-token {
|
|
58
|
+
@apply hover:bg-surface-500/10;
|
|
59
|
+
}
|
|
60
|
+
.bg-surface-active-token {
|
|
61
|
+
@apply bg-surface-500 text-surface-50 dark:text-surface-50;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* === Pairings (Dark|Light) === */
|
|
65
|
+
/* https://user-images.githubusercontent.com/1509726/195171203-423e5b84-8763-40f1-b3ea-4cb2b8e38108.png */
|
|
66
|
+
|
|
67
|
+
/* Primary */
|
|
68
|
+
.bg-primary-50-900-token {
|
|
69
|
+
@apply bg-primary-50 dark:bg-primary-900;
|
|
70
|
+
}
|
|
71
|
+
.bg-primary-100-800-token {
|
|
72
|
+
@apply bg-primary-100 dark:bg-primary-800;
|
|
73
|
+
}
|
|
74
|
+
.bg-primary-200-700-token {
|
|
75
|
+
@apply bg-primary-200 dark:bg-primary-700;
|
|
76
|
+
}
|
|
77
|
+
.bg-primary-300-600-token {
|
|
78
|
+
@apply bg-primary-300 dark:bg-primary-600;
|
|
79
|
+
}
|
|
80
|
+
.bg-primary-400-500-token {
|
|
81
|
+
@apply bg-primary-400 dark:bg-primary-500;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/* Accent */
|
|
85
|
+
.bg-accent-50-900-token {
|
|
86
|
+
@apply bg-accent-50 dark:bg-accent-900;
|
|
87
|
+
}
|
|
88
|
+
.bg-accent-100-800-token {
|
|
89
|
+
@apply bg-accent-100 dark:bg-accent-800;
|
|
90
|
+
}
|
|
91
|
+
.bg-accent-200-700-token {
|
|
92
|
+
@apply bg-accent-200 dark:bg-accent-700;
|
|
93
|
+
}
|
|
94
|
+
.bg-accent-300-600-token {
|
|
95
|
+
@apply bg-accent-300 dark:bg-accent-600;
|
|
96
|
+
}
|
|
97
|
+
.bg-accent-400-500-token {
|
|
98
|
+
@apply bg-accent-400 dark:bg-accent-500;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/* Tertiary */
|
|
102
|
+
.bg-tertiary-50-900-token {
|
|
103
|
+
@apply bg-tertiary-50 dark:bg-tertiary-900;
|
|
104
|
+
}
|
|
105
|
+
.bg-tertiary-100-800-token {
|
|
106
|
+
@apply bg-tertiary-100 dark:bg-tertiary-800;
|
|
107
|
+
}
|
|
108
|
+
.bg-tertiary-200-700-token {
|
|
109
|
+
@apply bg-tertiary-200 dark:bg-tertiary-700;
|
|
110
|
+
}
|
|
111
|
+
.bg-tertiary-300-600-token {
|
|
112
|
+
@apply bg-tertiary-300 dark:bg-tertiary-600;
|
|
113
|
+
}
|
|
114
|
+
.bg-tertiary-400-500-token {
|
|
115
|
+
@apply bg-tertiary-400 dark:bg-tertiary-500;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/* Warning */
|
|
119
|
+
.bg-warning-50-900-token {
|
|
120
|
+
@apply bg-warning-50 dark:bg-warning-900;
|
|
121
|
+
}
|
|
122
|
+
.bg-warning-100-800-token {
|
|
123
|
+
@apply bg-warning-100 dark:bg-warning-800;
|
|
124
|
+
}
|
|
125
|
+
.bg-warning-200-700-token {
|
|
126
|
+
@apply bg-warning-200 dark:bg-warning-700;
|
|
127
|
+
}
|
|
128
|
+
.bg-warning-300-600-token {
|
|
129
|
+
@apply bg-warning-300 dark:bg-warning-600;
|
|
130
|
+
}
|
|
131
|
+
.bg-warning-400-500-token {
|
|
132
|
+
@apply bg-warning-400 dark:bg-warning-500;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/* Surface */
|
|
136
|
+
.bg-surface-50-900-token {
|
|
137
|
+
@apply bg-surface-50 dark:bg-surface-900;
|
|
138
|
+
}
|
|
139
|
+
.bg-surface-100-800-token {
|
|
140
|
+
@apply bg-surface-100 dark:bg-surface-800;
|
|
141
|
+
}
|
|
142
|
+
.bg-surface-200-700-token {
|
|
143
|
+
@apply bg-surface-200 dark:bg-surface-700;
|
|
144
|
+
}
|
|
145
|
+
.bg-surface-300-600-token {
|
|
146
|
+
@apply bg-surface-300 dark:bg-surface-600;
|
|
147
|
+
}
|
|
148
|
+
.bg-surface-400-500-token {
|
|
149
|
+
@apply bg-surface-400 dark:bg-surface-500;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/* === Pairings (Light}Dark) === */
|
|
153
|
+
/* https://user-images.githubusercontent.com/1509726/195171203-423e5b84-8763-40f1-b3ea-4cb2b8e38108.png */
|
|
154
|
+
|
|
155
|
+
/* Primary */
|
|
156
|
+
.bg-primary-900-50-token {
|
|
157
|
+
@apply bg-primary-900 dark:bg-primary-50;
|
|
158
|
+
}
|
|
159
|
+
.bg-primary-800-100-token {
|
|
160
|
+
@apply bg-primary-800 dark:bg-primary-100;
|
|
161
|
+
}
|
|
162
|
+
.bg-primary-700-200-token {
|
|
163
|
+
@apply bg-primary-700 dark:bg-primary-200;
|
|
164
|
+
}
|
|
165
|
+
.bg-primary-600-300-token {
|
|
166
|
+
@apply bg-primary-600 dark:bg-primary-300;
|
|
167
|
+
}
|
|
168
|
+
.bg-primary-500-400-token {
|
|
169
|
+
@apply bg-primary-500 dark:bg-primary-400;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/* Accent */
|
|
173
|
+
.bg-accent-900-50-token {
|
|
174
|
+
@apply bg-accent-900 dark:bg-accent-50;
|
|
175
|
+
}
|
|
176
|
+
.bg-accent-800-100-token {
|
|
177
|
+
@apply bg-accent-800 dark:bg-accent-100;
|
|
178
|
+
}
|
|
179
|
+
.bg-accent-700-200-token {
|
|
180
|
+
@apply bg-accent-700 dark:bg-accent-200;
|
|
181
|
+
}
|
|
182
|
+
.bg-accent-600-300-token {
|
|
183
|
+
@apply bg-accent-600 dark:bg-accent-300;
|
|
184
|
+
}
|
|
185
|
+
.bg-accent-500-400-token {
|
|
186
|
+
@apply bg-accent-500 dark:bg-accent-400;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/* Tertiary */
|
|
190
|
+
.bg-tertiary-900-50-token {
|
|
191
|
+
@apply bg-tertiary-900 dark:bg-tertiary-50;
|
|
192
|
+
}
|
|
193
|
+
.bg-tertiary-800-100-token {
|
|
194
|
+
@apply bg-tertiary-800 dark:bg-tertiary-100;
|
|
195
|
+
}
|
|
196
|
+
.bg-tertiary-700-200-token {
|
|
197
|
+
@apply bg-tertiary-700 dark:bg-tertiary-200;
|
|
198
|
+
}
|
|
199
|
+
.bg-tertiary-600-300-token {
|
|
200
|
+
@apply bg-tertiary-600 dark:bg-tertiary-300;
|
|
201
|
+
}
|
|
202
|
+
.bg-tertiary-500-400-token {
|
|
203
|
+
@apply bg-tertiary-500 dark:bg-tertiary-400;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/* Warning */
|
|
207
|
+
.bg-warning-900-50-token {
|
|
208
|
+
@apply bg-warning-900 dark:bg-warning-50;
|
|
209
|
+
}
|
|
210
|
+
.bg-warning-800-100-token {
|
|
211
|
+
@apply bg-warning-800 dark:bg-warning-100;
|
|
212
|
+
}
|
|
213
|
+
.bg-warning-700-200-token {
|
|
214
|
+
@apply bg-warning-700 dark:bg-warning-200;
|
|
215
|
+
}
|
|
216
|
+
.bg-warning-600-300-token {
|
|
217
|
+
@apply bg-warning-600 dark:bg-warning-300;
|
|
218
|
+
}
|
|
219
|
+
.bg-warning-500-400-token {
|
|
220
|
+
@apply bg-warning-500 dark:bg-warning-400;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/* Surface */
|
|
224
|
+
.bg-surface-900-50-token {
|
|
225
|
+
@apply bg-surface-900 dark:bg-surface-50;
|
|
226
|
+
}
|
|
227
|
+
.bg-surface-800-100-token {
|
|
228
|
+
@apply bg-surface-800 dark:bg-surface-100;
|
|
229
|
+
}
|
|
230
|
+
.bg-surface-700-200-token {
|
|
231
|
+
@apply bg-surface-700 dark:bg-surface-200;
|
|
232
|
+
}
|
|
233
|
+
.bg-surface-600-300-token {
|
|
234
|
+
@apply bg-surface-600 dark:bg-surface-300;
|
|
235
|
+
}
|
|
236
|
+
.bg-surface-500-400-token {
|
|
237
|
+
@apply bg-surface-500 dark:bg-surface-400;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/* Design Tokens: Border Radius */
|
|
2
|
+
|
|
3
|
+
@layer utilities {
|
|
4
|
+
/* === Base === */
|
|
5
|
+
/* Usage: Small elements, such as buttons, badges, chips, etc. */
|
|
6
|
+
|
|
7
|
+
.rounded-token {
|
|
8
|
+
border-radius: var(--theme-rounded-base);
|
|
9
|
+
}
|
|
10
|
+
.rounded-tl-token {
|
|
11
|
+
border-top-left-radius: var(--theme-rounded-base);
|
|
12
|
+
}
|
|
13
|
+
.rounded-tr-token {
|
|
14
|
+
border-top-right-radius: var(--theme-rounded-base);
|
|
15
|
+
}
|
|
16
|
+
.rounded-bl-token {
|
|
17
|
+
border-bottom-left-radius: var(--theme-rounded-base);
|
|
18
|
+
}
|
|
19
|
+
.rounded-br-token {
|
|
20
|
+
border-bottom-right-radius: var(--theme-rounded-base);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* === Container === */
|
|
24
|
+
/* Usage: Large elements, such as cards and textareas */
|
|
25
|
+
|
|
26
|
+
.rounded-container-token {
|
|
27
|
+
border-radius: var(--theme-rounded-container);
|
|
28
|
+
}
|
|
29
|
+
.rounded-tl-container-token {
|
|
30
|
+
border-top-left-radius: var(--theme-rounded-container);
|
|
31
|
+
}
|
|
32
|
+
.rounded-tr-container-token {
|
|
33
|
+
border-top-right-radius: var(--theme-rounded-container);
|
|
34
|
+
}
|
|
35
|
+
.rounded-bl-container-token {
|
|
36
|
+
border-bottom-left-radius: var(--theme-rounded-container);
|
|
37
|
+
}
|
|
38
|
+
.rounded-br-container-token {
|
|
39
|
+
border-bottom-right-radius: var(--theme-rounded-container);
|
|
40
|
+
}
|
|
41
|
+
}
|