@skeletonlabs/skeleton 0.80.9 → 0.92.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/README.md +1 -1
- package/components/Accordion/AccordionGroup.svelte +1 -2
- package/components/Accordion/AccordionItem.svelte +6 -3
- package/components/Accordion/AccordionItem.svelte.d.ts +1 -0
- package/components/Alert/Alert.svelte +3 -3
- package/components/AppRail/AppRailTile.svelte +8 -6
- package/components/AppShell/AppShell.svelte +3 -3
- package/components/Breadcrumb/Crumb.svelte +3 -1
- package/components/Breadcrumb/Crumb.svelte.d.ts +5 -0
- package/components/ConicGradient/ConicGradient.svelte +2 -2
- package/components/ConicGradient/ConicGradient.svelte.d.ts +5 -0
- package/{tailwind/colors.d.ts → components/ConicGradient/settings.d.ts} +1 -1
- package/{tailwind/colors.js → components/ConicGradient/settings.js} +1 -1
- package/components/FileButton/FileButton.svelte +2 -2
- package/components/FileButton/FileButton.svelte.d.ts +3 -0
- package/components/FileDropzone/FileDropzone.svelte +5 -4
- package/components/FileDropzone/FileDropzone.svelte.d.ts +4 -0
- package/components/GradientHeading/GradientHeading.svelte +1 -1
- package/components/InputChip/InputChip.svelte +107 -0
- package/components/InputChip/InputChip.svelte.d.ts +29 -0
- package/components/ListBox/ListBoxItem.svelte +6 -5
- package/components/ListBox/ListBoxItem.svelte.d.ts +2 -0
- package/components/Paginator/Paginator.svelte +21 -9
- package/components/Paginator/Paginator.svelte.d.ts +5 -1
- package/components/ProgressBar/ProgressBar.svelte +6 -4
- package/components/ProgressBar/ProgressBar.svelte.d.ts +1 -0
- package/components/ProgressRadial/ProgressRadial.svelte +1 -1
- package/components/Radio/RadioGroup.svelte +2 -2
- package/components/Radio/RadioItem.svelte +3 -1
- package/components/Radio/RadioItem.svelte.d.ts +2 -0
- package/components/RangeSlider/RangeSlider.svelte +1 -1
- package/components/SlideToggle/SlideToggle.svelte +9 -6
- package/components/SlideToggle/SlideToggle.svelte.d.ts +4 -1
- package/components/Stepper/Step.svelte +52 -13
- package/components/Stepper/Step.svelte.d.ts +11 -3
- package/components/Stepper/Stepper.svelte +32 -10
- package/components/Stepper/Stepper.svelte.d.ts +8 -3
- package/components/SvgIcon/SvgIcon.svelte +1 -1
- package/components/SvgIcon/icons.js +2 -148
- package/components/Tab/Tab.svelte +16 -4
- package/components/Tab/Tab.svelte.d.ts +5 -0
- package/components/Table/Table.svelte +3 -3
- package/components/TableOfContents/TableOfContents.svelte +132 -0
- package/components/TableOfContents/TableOfContents.svelte.d.ts +32 -0
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/package.json +37 -29
- package/styles/all.css +0 -3
- package/styles/core.css +3 -0
- package/styles/elements/alerts.css +43 -0
- package/styles/elements/badges.css +12 -6
- package/styles/elements/breadcrumbs.css +27 -0
- package/styles/elements/buttons.css +34 -10
- package/styles/elements/cards.css +23 -4
- package/styles/elements/chips.css +58 -5
- package/styles/elements/lists.css +1 -1
- package/styles/elements/logo-clouds.css +1 -1
- package/styles/elements/menus.css +1 -1
- package/styles/elements/placeholders.css +1 -1
- package/styles/elements/tables.css +1 -1
- package/styles/elements/tooltips.css +1 -1
- package/styles/elements.css +2 -0
- package/styles/forms.css +59 -41
- package/styles/typography.css +6 -6
- package/tailwind/generated/allComponents.cjs +1 -0
- package/tailwind/generated/allComponents.d.cts +5552 -0
- package/tailwind/settings.cjs +20 -0
- package/tailwind/settings.d.cts +6 -0
- package/tailwind/skeleton.cjs +54 -0
- package/tailwind/skeleton.d.cts +5 -0
- package/tailwind/theme/colors.cjs +18 -0
- package/tailwind/theme/colors.d.cts +2 -0
- package/tailwind/tokens/backgrounds.cjs +40 -0
- package/tailwind/tokens/backgrounds.d.cts +2 -0
- package/tailwind/tokens/border-radius.cjs +21 -0
- package/tailwind/tokens/border-radius.d.cts +33 -0
- package/tailwind/tokens/borders.cjs +20 -0
- package/tailwind/tokens/borders.d.cts +6 -0
- package/tailwind/tokens/fills.cjs +20 -0
- package/tailwind/tokens/fills.d.cts +15 -0
- package/tailwind/tokens/rings.cjs +42 -0
- package/tailwind/tokens/rings.d.cts +17 -0
- package/tailwind/tokens/text.cjs +33 -0
- package/tailwind/tokens/text.d.cts +21 -0
- package/themes/theme-crimson.css +88 -64
- package/themes/theme-gold-nouveau.css +108 -115
- package/themes/theme-hamlindigo.css +97 -74
- package/themes/theme-modern.css +107 -64
- package/themes/theme-rocket.css +96 -63
- package/themes/theme-sahara.css +104 -65
- package/themes/theme-seafoam.css +100 -66
- package/themes/theme-seasonal.css +111 -65
- package/themes/theme-skeleton.css +99 -75
- package/themes/theme-vintage.css +102 -63
- package/utilities/CodeBlock/CodeBlock.svelte +6 -1
- package/utilities/CodeBlock/CodeBlock.svelte.d.ts +2 -0
- package/utilities/DataTable/DataTable.js +3 -1
- package/utilities/Drawer/Drawer.svelte +11 -10
- package/utilities/Drawer/Drawer.svelte.d.ts +1 -2
- package/utilities/Drawer/stores.d.ts +1 -1
- package/utilities/LightSwitch/LightSwitch.svelte +42 -14
- package/utilities/LightSwitch/LightSwitch.svelte.d.ts +5 -0
- package/utilities/LightSwitch/stores.d.ts +2 -3
- package/utilities/LocalStorageStore/LocalStorageStore.d.ts +3 -1
- package/utilities/LocalStorageStore/LocalStorageStore.js +9 -4
- package/utilities/Menu/menu.js +11 -7
- package/utilities/Modal/Modal.svelte +25 -12
- package/utilities/Modal/Modal.svelte.d.ts +2 -0
- package/utilities/Modal/types.d.ts +12 -2
- package/utilities/Toast/Toast.svelte +2 -2
- package/utilities/Toast/stores.js +17 -1
- package/utilities/Toast/types.d.ts +5 -0
- package/styles/tokens/backgrounds.css +0 -239
- package/styles/tokens/border-radius.css +0 -41
- package/styles/tokens/borders.css +0 -185
- package/styles/tokens/fills.css +0 -29
- package/styles/tokens/misc.css +0 -22
- package/styles/tokens/rings.css +0 -185
- package/styles/tokens/text.css +0 -216
- package/styles/tokens.css +0 -11
- package/tailwind/theme.cjs +0 -37
- package/tailwind/theme.d.cts +0 -5
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Common Shared Settings and Constants
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
colorNames: ['primary', 'secondary', 'tertiary', 'success', 'warning', 'error', 'surface'],
|
|
5
|
+
colorShades: [50, 100, 200, 300, 400, 500, 600, 700, 800, 900],
|
|
6
|
+
colorPairings: [
|
|
7
|
+
// forward:
|
|
8
|
+
{ light: 50, dark: 900 },
|
|
9
|
+
{ light: 100, dark: 800 },
|
|
10
|
+
{ light: 200, dark: 700 },
|
|
11
|
+
{ light: 300, dark: 600 },
|
|
12
|
+
{ light: 400, dark: 500 },
|
|
13
|
+
// backwards
|
|
14
|
+
{ light: 900, dark: 50 },
|
|
15
|
+
{ light: 800, dark: 100 },
|
|
16
|
+
{ light: 700, dark: 200 },
|
|
17
|
+
{ light: 600, dark: 300 },
|
|
18
|
+
{ light: 500, dark: 400 },
|
|
19
|
+
],
|
|
20
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// The Skeleton Tailwind Plugin
|
|
2
|
+
// Tailwind Docs: https://tailwindcss.com/docs/plugins
|
|
3
|
+
// Skeleton Docs: https://www.skeleton.dev/guides/tailwind
|
|
4
|
+
|
|
5
|
+
const plugin = require('tailwindcss/plugin');
|
|
6
|
+
|
|
7
|
+
// Skeleton Theme Modules
|
|
8
|
+
const themeColors = require('./theme/colors.cjs');
|
|
9
|
+
// Skeleton Design Token Modules
|
|
10
|
+
const tokensBackgrounds = require('./tokens/backgrounds.cjs');
|
|
11
|
+
const tokensBorders = require('./tokens/borders.cjs');
|
|
12
|
+
const tokensBorderRadius = require('./tokens/border-radius.cjs');
|
|
13
|
+
const tokensFills = require('./tokens/fills.cjs');
|
|
14
|
+
const tokensText = require('./tokens/text.cjs');
|
|
15
|
+
const tokensRings = require('./tokens/rings.cjs');
|
|
16
|
+
|
|
17
|
+
module.exports = plugin(
|
|
18
|
+
({ addUtilities, addComponents }) => {
|
|
19
|
+
addUtilities({
|
|
20
|
+
// Implement Skeleton design token classes
|
|
21
|
+
...tokensBackgrounds(),
|
|
22
|
+
...tokensBorders(),
|
|
23
|
+
...tokensBorderRadius(),
|
|
24
|
+
...tokensFills(),
|
|
25
|
+
...tokensText(),
|
|
26
|
+
...tokensRings()
|
|
27
|
+
});
|
|
28
|
+
// The following will generate the non-token classes PURELY for Intellisense.
|
|
29
|
+
// These are excluded from production, which means we still need to lean into
|
|
30
|
+
// using the `all.css` stylesheet to import non-token styles.
|
|
31
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
32
|
+
// try/catch because it will throw when allComponents.cjs isn't generated yet
|
|
33
|
+
try {
|
|
34
|
+
const all = require('./generated/allComponents.cjs');
|
|
35
|
+
// Tokens are already loaded as utilities so we'll delete them to prevent duplicate rules
|
|
36
|
+
for (const [key, _] of Object.entries(all)) {
|
|
37
|
+
if (key.includes('token')) delete all[key];
|
|
38
|
+
}
|
|
39
|
+
addComponents(all, {
|
|
40
|
+
respectImportant: true,
|
|
41
|
+
respectPrefix: true
|
|
42
|
+
});
|
|
43
|
+
} catch { }
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
theme: {
|
|
48
|
+
extend: {
|
|
49
|
+
// Implement Skeleton theme colors
|
|
50
|
+
colors: themeColors()
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Extends Tailwind with Skeleton theme-specific colors values
|
|
2
|
+
// Doc: https://tailwindcss.com/docs/customizing-colors#using-css-variables
|
|
3
|
+
|
|
4
|
+
const settings = require('../settings.cjs');
|
|
5
|
+
|
|
6
|
+
// ex: `50: 'rgb(var(--color-primary-50) / <alpha-value>)'`
|
|
7
|
+
function generatePaletteShades(colorName) {
|
|
8
|
+
const shadeObj = {};
|
|
9
|
+
settings.colorShades.forEach(s => shadeObj[s] = `rgb(var(--color-${colorName}-${s}) / <alpha-value>)`);
|
|
10
|
+
return shadeObj;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// Generate a a color shade palette 50-900 per each color available
|
|
14
|
+
module.exports = () => {
|
|
15
|
+
const paletteObj = {};
|
|
16
|
+
settings.colorNames.forEach(n => paletteObj[n] = generatePaletteShades(n));
|
|
17
|
+
return paletteObj;
|
|
18
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// Design Tokens: Background
|
|
2
|
+
// Doc: https://www.skeleton.dev/elements/tokens
|
|
3
|
+
|
|
4
|
+
const settings = require('../settings.cjs');
|
|
5
|
+
|
|
6
|
+
// Defaults
|
|
7
|
+
const backdropAlpha = 0.7;
|
|
8
|
+
const hoverAlpha = 0.1;
|
|
9
|
+
|
|
10
|
+
module.exports = () => {
|
|
11
|
+
const classes = {};
|
|
12
|
+
settings.colorNames.forEach(n => {
|
|
13
|
+
|
|
14
|
+
// Backdrops
|
|
15
|
+
// Example: .bg-primary-backdrop-token
|
|
16
|
+
classes[`.bg-${n}-backdrop-token`] = { 'background-color': `rgb(var(--color-${n}-400) / ${backdropAlpha})` };
|
|
17
|
+
classes[`.dark .bg-${n}-backdrop-token`] = { 'background-color': `rgb(var(--color-${n}-900) / ${backdropAlpha})` };
|
|
18
|
+
|
|
19
|
+
// Hover
|
|
20
|
+
// Example: .bg-primary-hover-token
|
|
21
|
+
classes[`.bg-${n}-hover-token:hover`] = { 'background-color': `rgb(var(--color-${n}-500) / ${hoverAlpha})` };
|
|
22
|
+
|
|
23
|
+
// Active
|
|
24
|
+
// Example: .bg-primary-active-token
|
|
25
|
+
classes[`.bg-${n}-active-token`] = {
|
|
26
|
+
'background-color': `rgb(var(--color-${n}-500)) !important`,
|
|
27
|
+
'color': `rgb(var(--on-${n}))`,
|
|
28
|
+
'fill': `rgb(var(--on-${n}))`,
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
// Color Pairings
|
|
32
|
+
// Example: .bg-primary-50-900-token | .bg-primary-900-50-token
|
|
33
|
+
settings.colorPairings.forEach(p => {
|
|
34
|
+
classes[`.bg-${n}-${p.light}-${p.dark}-token`] = { 'background-color': `rgb(var(--color-${n}-${p.light}))` };
|
|
35
|
+
classes[`.dark .bg-${n}-${p.light}-${p.dark}-token`] = { 'background-color': `rgb(var(--color-${n}-${p.dark}))` };
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
});
|
|
39
|
+
return classes;
|
|
40
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Design Tokens: Border Radius
|
|
2
|
+
// Doc: https://www.skeleton.dev/elements/tokens
|
|
3
|
+
|
|
4
|
+
// const settings = require('../settings.cjs');
|
|
5
|
+
|
|
6
|
+
module.exports = () => {
|
|
7
|
+
return {
|
|
8
|
+
// Base
|
|
9
|
+
'.rounded-token': { 'border-radius': 'var(--theme-rounded-base)' },
|
|
10
|
+
'.rounded-tl-token': { 'border-top-left-radius': 'var(--theme-rounded-base)' },
|
|
11
|
+
'.rounded-tr-token': { 'border-top-right-radius': 'var(--theme-rounded-base)' },
|
|
12
|
+
'.rounded-bl-token': { 'border-bottom-left-radius': 'var(--theme-rounded-base)' },
|
|
13
|
+
'.rounded-br-token': { 'border-bottom-right-radius': 'var(--theme-rounded-base)' },
|
|
14
|
+
// Container
|
|
15
|
+
'.rounded-container-token': { 'border-radius': 'var(--theme-rounded-container)' },
|
|
16
|
+
'.rounded-tl-container-token': { 'border-top-left-radius': 'var(--theme-rounded-container)' },
|
|
17
|
+
'.rounded-tr-container-token': { 'border-top-right-radius': 'var(--theme-rounded-container)' },
|
|
18
|
+
'.rounded-bl-container-token': { 'border-bottom-left-radius': 'var(--theme-rounded-container)' },
|
|
19
|
+
'.rounded-br-container-token': { 'border-bottom-right-radius': 'var(--theme-rounded-container)' },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare function _exports(): {
|
|
2
|
+
'.rounded-token': {
|
|
3
|
+
'border-radius': string;
|
|
4
|
+
};
|
|
5
|
+
'.rounded-tl-token': {
|
|
6
|
+
'border-top-left-radius': string;
|
|
7
|
+
};
|
|
8
|
+
'.rounded-tr-token': {
|
|
9
|
+
'border-top-right-radius': string;
|
|
10
|
+
};
|
|
11
|
+
'.rounded-bl-token': {
|
|
12
|
+
'border-bottom-left-radius': string;
|
|
13
|
+
};
|
|
14
|
+
'.rounded-br-token': {
|
|
15
|
+
'border-bottom-right-radius': string;
|
|
16
|
+
};
|
|
17
|
+
'.rounded-container-token': {
|
|
18
|
+
'border-radius': string;
|
|
19
|
+
};
|
|
20
|
+
'.rounded-tl-container-token': {
|
|
21
|
+
'border-top-left-radius': string;
|
|
22
|
+
};
|
|
23
|
+
'.rounded-tr-container-token': {
|
|
24
|
+
'border-top-right-radius': string;
|
|
25
|
+
};
|
|
26
|
+
'.rounded-bl-container-token': {
|
|
27
|
+
'border-bottom-left-radius': string;
|
|
28
|
+
};
|
|
29
|
+
'.rounded-br-container-token': {
|
|
30
|
+
'border-bottom-right-radius': string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export = _exports;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Design Tokens: Borders
|
|
2
|
+
// Doc: https://www.skeleton.dev/elements/tokens
|
|
3
|
+
|
|
4
|
+
const settings = require('../settings.cjs');
|
|
5
|
+
|
|
6
|
+
module.exports = () => {
|
|
7
|
+
const classes = {
|
|
8
|
+
// Border Width - ex: .border-token
|
|
9
|
+
'.border-token': { 'border-width': 'var(--theme-border-base)' }
|
|
10
|
+
};
|
|
11
|
+
settings.colorNames.forEach(n => {
|
|
12
|
+
// Color Pairings
|
|
13
|
+
// Example: .border-primary-50-900-token | .border-primary-900-50-token
|
|
14
|
+
settings.colorPairings.forEach(p => {
|
|
15
|
+
classes[`.border-${n}-${p.light}-${p.dark}-token`] = { 'border-color': `rgb(var(--color-${n}-${p.light}))` };
|
|
16
|
+
classes[`.dark .border-${n}-${p.light}-${p.dark}-token`] = { 'border-color': `rgb(var(--color-${n}-${p.dark}))` };
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
return classes;
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Design Tokens: SVG Fill
|
|
2
|
+
// Doc: https://www.skeleton.dev/elements/tokens
|
|
3
|
+
|
|
4
|
+
const settings = require('../settings.cjs');
|
|
5
|
+
|
|
6
|
+
module.exports = () => {
|
|
7
|
+
const classes = {
|
|
8
|
+
'.fill-base-token': { 'fill': 'rgba(var(--theme-font-color-base))' },
|
|
9
|
+
'.fill-dark-token': { 'fill': 'rgba(var(--theme-font-color-dark))' },
|
|
10
|
+
// Fill Token - ex: .fill-token
|
|
11
|
+
'.fill-token': { 'fill': 'rgba(var(--theme-font-color-base))' },
|
|
12
|
+
'.dark .fill-token': { 'fill': 'rgba(var(--theme-font-color-dark))' },
|
|
13
|
+
};
|
|
14
|
+
settings.colorNames.forEach(n => {
|
|
15
|
+
// On-X Fill Colors
|
|
16
|
+
// Example: .fill-on-primary-token
|
|
17
|
+
classes[`.fill-on-${n}-token`] = { 'fill': `rgb(var(--on-${n}))` };
|
|
18
|
+
});
|
|
19
|
+
return classes;
|
|
20
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// Design Tokens: Rings
|
|
2
|
+
// Doc: https://www.skeleton.dev/elements/tokens
|
|
3
|
+
|
|
4
|
+
const settings = require('../settings.cjs');
|
|
5
|
+
|
|
6
|
+
// Local
|
|
7
|
+
const ringOutlineShared = {
|
|
8
|
+
// .ring-[1px]
|
|
9
|
+
'--tw-ring-offset-shadow': 'var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)',
|
|
10
|
+
'--tw-ring-shadow': 'var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)',
|
|
11
|
+
'box-shadow': 'var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)',
|
|
12
|
+
// .ring-inset
|
|
13
|
+
'--tw-ring-inset': 'inset'
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
module.exports = () => {
|
|
17
|
+
const classes = {
|
|
18
|
+
// Ring Outline (for cards)
|
|
19
|
+
// Example: .ring-outline-token
|
|
20
|
+
'.ring-outline-token': {
|
|
21
|
+
...ringOutlineShared,
|
|
22
|
+
'--tw-ring-color': 'rgb(23 23 23 / 0.05);', // neutral-900, 5% opacity
|
|
23
|
+
},
|
|
24
|
+
'.dark .ring-outline-token': {
|
|
25
|
+
...ringOutlineShared,
|
|
26
|
+
'--tw-ring-color': 'rgb(250 250 250 / 0.05)', // neutral-50, 5% opacity
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
settings.colorNames.forEach(n => {
|
|
30
|
+
// Color Pairings
|
|
31
|
+
// Example: .ring-primary-50-900-token | .ring-primary-900-50-token
|
|
32
|
+
settings.colorPairings.forEach(p => {
|
|
33
|
+
classes[`.ring-${n}-${p.light}-${p.dark}-token`] = {
|
|
34
|
+
'--tw-ring-color': `rgb(var(--color-${n}-${p.light}) / 1)`
|
|
35
|
+
};
|
|
36
|
+
classes[`.dark .ring-${n}-${p.light}-${p.dark}-token`] = {
|
|
37
|
+
'--tw-ring-color': `rgb(var(--color-${n}-${p.dark}) / 1)`
|
|
38
|
+
};
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
return classes;
|
|
42
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare function _exports(): {
|
|
2
|
+
'.ring-outline-token': {
|
|
3
|
+
'--tw-ring-color': string;
|
|
4
|
+
'--tw-ring-offset-shadow': string;
|
|
5
|
+
'--tw-ring-shadow': string;
|
|
6
|
+
'box-shadow': string;
|
|
7
|
+
'--tw-ring-inset': string;
|
|
8
|
+
};
|
|
9
|
+
'.dark .ring-outline-token': {
|
|
10
|
+
'--tw-ring-color': string;
|
|
11
|
+
'--tw-ring-offset-shadow': string;
|
|
12
|
+
'--tw-ring-shadow': string;
|
|
13
|
+
'box-shadow': string;
|
|
14
|
+
'--tw-ring-inset': string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export = _exports;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// Design Tokens: Text
|
|
2
|
+
// Doc: https://www.skeleton.dev/elements/tokens
|
|
3
|
+
|
|
4
|
+
const settings = require('../settings.cjs');
|
|
5
|
+
|
|
6
|
+
module.exports = () => {
|
|
7
|
+
const classes = {
|
|
8
|
+
// Font Family
|
|
9
|
+
'.font-heading-token': { 'font-family': 'var(--theme-font-family-heading)' },
|
|
10
|
+
'.font-token': { 'font-family': 'var(--theme-font-family-base)' },
|
|
11
|
+
// Default Text Colors
|
|
12
|
+
'.text-base-token': { 'color': 'rgba(var(--theme-font-color-base))' },
|
|
13
|
+
'.text-dark-token': { 'color': 'rgba(var(--theme-font-color-dark))' },
|
|
14
|
+
// Light/Dark Text Color - ex: .text-token
|
|
15
|
+
'.text-token': { 'color': 'rgba(var(--theme-font-color-base))' },
|
|
16
|
+
'.dark .text-token': { 'color': 'rgba(var(--theme-font-color-dark))' },
|
|
17
|
+
};
|
|
18
|
+
settings.colorNames.forEach(n => {
|
|
19
|
+
|
|
20
|
+
// On-X Text Colors
|
|
21
|
+
// Example: .text-on-primary-token
|
|
22
|
+
classes[`.text-on-${n}-token`] = { 'color': `rgb(var(--on-${n}))` };
|
|
23
|
+
|
|
24
|
+
// Color Pairings
|
|
25
|
+
// Example: .text-primary-50-900-token | .text-primary-900-50-token
|
|
26
|
+
settings.colorPairings.forEach(p => {
|
|
27
|
+
classes[`.text-${n}-${p.light}-${p.dark}-token`] = { 'color': `rgb(var(--color-${n}-${p.light}))` };
|
|
28
|
+
classes[`.dark .text-${n}-${p.light}-${p.dark}-token`] = { 'color': `rgb(var(--color-${n}-${p.dark}))` };
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
});
|
|
32
|
+
return classes;
|
|
33
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare function _exports(): {
|
|
2
|
+
'.font-heading-token': {
|
|
3
|
+
'font-family': string;
|
|
4
|
+
};
|
|
5
|
+
'.font-token': {
|
|
6
|
+
'font-family': string;
|
|
7
|
+
};
|
|
8
|
+
'.text-base-token': {
|
|
9
|
+
color: string;
|
|
10
|
+
};
|
|
11
|
+
'.text-dark-token': {
|
|
12
|
+
color: string;
|
|
13
|
+
};
|
|
14
|
+
'.text-token': {
|
|
15
|
+
color: string;
|
|
16
|
+
};
|
|
17
|
+
'.dark .text-token': {
|
|
18
|
+
color: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export = _exports;
|
package/themes/theme-crimson.css
CHANGED
|
@@ -3,74 +3,98 @@
|
|
|
3
3
|
|
|
4
4
|
:root {
|
|
5
5
|
/* =~= Theme Styles =~= */
|
|
6
|
-
--theme-border-base: 1px;
|
|
7
|
-
--theme-font-family-heading: system-ui;
|
|
8
6
|
--theme-font-family-base: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
9
7
|
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
|
|
8
|
+
--theme-font-family-heading: system-ui;
|
|
10
9
|
--theme-font-color-base: var(--color-surface-900);
|
|
11
10
|
--theme-font-color-dark: var(--color-surface-50);
|
|
12
11
|
--theme-rounded-base: 24px;
|
|
13
12
|
--theme-rounded-container: 24px;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
--on-
|
|
17
|
-
--on-
|
|
18
|
-
--on-
|
|
19
|
-
--on-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
--
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
--color-primary-
|
|
26
|
-
--color-primary-
|
|
27
|
-
--color-primary-
|
|
28
|
-
--color-primary-
|
|
29
|
-
--color-primary-
|
|
30
|
-
--color-primary-
|
|
31
|
-
--color-primary-
|
|
32
|
-
/*
|
|
33
|
-
--color-
|
|
34
|
-
--color-
|
|
35
|
-
|
|
36
|
-
--color-
|
|
37
|
-
--color-
|
|
38
|
-
--color-
|
|
39
|
-
--color-
|
|
40
|
-
--color-
|
|
41
|
-
--color-
|
|
42
|
-
--color-
|
|
43
|
-
/*
|
|
44
|
-
--color-
|
|
45
|
-
--color-
|
|
46
|
-
|
|
47
|
-
--color-
|
|
48
|
-
--color-
|
|
49
|
-
--color-
|
|
50
|
-
--color-
|
|
51
|
-
--color-
|
|
52
|
-
--color-
|
|
53
|
-
--color-
|
|
54
|
-
/*
|
|
55
|
-
--color-
|
|
56
|
-
--color-
|
|
57
|
-
|
|
58
|
-
--color-
|
|
59
|
-
--color-
|
|
60
|
-
--color-
|
|
61
|
-
--color-
|
|
62
|
-
--color-
|
|
63
|
-
--color-
|
|
64
|
-
--color-
|
|
65
|
-
/*
|
|
66
|
-
--color-
|
|
67
|
-
--color-
|
|
68
|
-
|
|
69
|
-
--color-
|
|
70
|
-
--color-
|
|
71
|
-
--color-
|
|
72
|
-
--color-
|
|
73
|
-
--color-
|
|
74
|
-
--color-
|
|
75
|
-
--color-
|
|
13
|
+
--theme-border-base: 1px;
|
|
14
|
+
/* =~= Theme On-X Colors =~= */
|
|
15
|
+
--on-primary: 255 255 255;
|
|
16
|
+
--on-secondary: 255 255 255;
|
|
17
|
+
--on-tertiary: 0 0 0;
|
|
18
|
+
--on-success: 0 0 0;
|
|
19
|
+
--on-warning: 0 0 0;
|
|
20
|
+
--on-error: 0 0 0;
|
|
21
|
+
--on-surface: 255 255 255;
|
|
22
|
+
/* =~= Theme Colors =~= */
|
|
23
|
+
/* primary | #d4163c */
|
|
24
|
+
--color-primary-50: 249 220 226; /* ⬅ #f9dce2 */
|
|
25
|
+
--color-primary-100: 246 208 216; /* ⬅ #f6d0d8 */
|
|
26
|
+
--color-primary-200: 244 197 206; /* ⬅ #f4c5ce */
|
|
27
|
+
--color-primary-300: 238 162 177; /* ⬅ #eea2b1 */
|
|
28
|
+
--color-primary-400: 225 92 119; /* ⬅ #e15c77 */
|
|
29
|
+
--color-primary-500: 212 22 60; /* ⬅ #d4163c */
|
|
30
|
+
--color-primary-600: 191 20 54; /* ⬅ #bf1436 */
|
|
31
|
+
--color-primary-700: 159 17 45; /* ⬅ #9f112d */
|
|
32
|
+
--color-primary-800: 127 13 36; /* ⬅ #7f0d24 */
|
|
33
|
+
--color-primary-900: 104 11 29; /* ⬅ #680b1d */
|
|
34
|
+
/* secondary | #4685af */
|
|
35
|
+
--color-secondary-50: 227 237 243; /* ⬅ #e3edf3 */
|
|
36
|
+
--color-secondary-100: 218 231 239; /* ⬅ #dae7ef */
|
|
37
|
+
--color-secondary-200: 209 225 235; /* ⬅ #d1e1eb */
|
|
38
|
+
--color-secondary-300: 181 206 223; /* ⬅ #b5cedf */
|
|
39
|
+
--color-secondary-400: 126 170 199; /* ⬅ #7eaac7 */
|
|
40
|
+
--color-secondary-500: 70 133 175; /* ⬅ #4685af */
|
|
41
|
+
--color-secondary-600: 63 120 158; /* ⬅ #3f789e */
|
|
42
|
+
--color-secondary-700: 53 100 131; /* ⬅ #356483 */
|
|
43
|
+
--color-secondary-800: 42 80 105; /* ⬅ #2a5069 */
|
|
44
|
+
--color-secondary-900: 34 65 86; /* ⬅ #224156 */
|
|
45
|
+
/* tertiary | #c0b6b4 */
|
|
46
|
+
--color-tertiary-50: 246 244 244; /* ⬅ #f6f4f4 */
|
|
47
|
+
--color-tertiary-100: 242 240 240; /* ⬅ #f2f0f0 */
|
|
48
|
+
--color-tertiary-200: 239 237 236; /* ⬅ #efedec */
|
|
49
|
+
--color-tertiary-300: 230 226 225; /* ⬅ #e6e2e1 */
|
|
50
|
+
--color-tertiary-400: 211 204 203; /* ⬅ #d3cccb */
|
|
51
|
+
--color-tertiary-500: 192 182 180; /* ⬅ #c0b6b4 */
|
|
52
|
+
--color-tertiary-600: 173 164 162; /* ⬅ #ada4a2 */
|
|
53
|
+
--color-tertiary-700: 144 137 135; /* ⬅ #908987 */
|
|
54
|
+
--color-tertiary-800: 115 109 108; /* ⬅ #736d6c */
|
|
55
|
+
--color-tertiary-900: 94 89 88; /* ⬅ #5e5958 */
|
|
56
|
+
/* success | #c1dd97 */
|
|
57
|
+
--color-success-50: 246 250 239; /* ⬅ #f6faef */
|
|
58
|
+
--color-success-100: 243 248 234; /* ⬅ #f3f8ea */
|
|
59
|
+
--color-success-200: 240 247 229; /* ⬅ #f0f7e5 */
|
|
60
|
+
--color-success-300: 230 241 213; /* ⬅ #e6f1d5 */
|
|
61
|
+
--color-success-400: 212 231 182; /* ⬅ #d4e7b6 */
|
|
62
|
+
--color-success-500: 193 221 151; /* ⬅ #c1dd97 */
|
|
63
|
+
--color-success-600: 174 199 136; /* ⬅ #aec788 */
|
|
64
|
+
--color-success-700: 145 166 113; /* ⬅ #91a671 */
|
|
65
|
+
--color-success-800: 116 133 91; /* ⬅ #74855b */
|
|
66
|
+
--color-success-900: 95 108 74; /* ⬅ #5f6c4a */
|
|
67
|
+
/* warning | #e4c25e */
|
|
68
|
+
--color-warning-50: 251 246 231; /* ⬅ #fbf6e7 */
|
|
69
|
+
--color-warning-100: 250 243 223; /* ⬅ #faf3df */
|
|
70
|
+
--color-warning-200: 248 240 215; /* ⬅ #f8f0d7 */
|
|
71
|
+
--color-warning-300: 244 231 191; /* ⬅ #f4e7bf */
|
|
72
|
+
--color-warning-400: 236 212 142; /* ⬅ #ecd48e */
|
|
73
|
+
--color-warning-500: 228 194 94; /* ⬅ #e4c25e */
|
|
74
|
+
--color-warning-600: 205 175 85; /* ⬅ #cdaf55 */
|
|
75
|
+
--color-warning-700: 171 146 71; /* ⬅ #ab9247 */
|
|
76
|
+
--color-warning-800: 137 116 56; /* ⬅ #897438 */
|
|
77
|
+
--color-warning-900: 112 95 46; /* ⬅ #705f2e */
|
|
78
|
+
/* error | #d27f81 */
|
|
79
|
+
--color-error-50: 248 236 236; /* ⬅ #f8ecec */
|
|
80
|
+
--color-error-100: 246 229 230; /* ⬅ #f6e5e6 */
|
|
81
|
+
--color-error-200: 244 223 224; /* ⬅ #f4dfe0 */
|
|
82
|
+
--color-error-300: 237 204 205; /* ⬅ #edcccd */
|
|
83
|
+
--color-error-400: 224 165 167; /* ⬅ #e0a5a7 */
|
|
84
|
+
--color-error-500: 210 127 129; /* ⬅ #d27f81 */
|
|
85
|
+
--color-error-600: 189 114 116; /* ⬅ #bd7274 */
|
|
86
|
+
--color-error-700: 158 95 97; /* ⬅ #9e5f61 */
|
|
87
|
+
--color-error-800: 126 76 77; /* ⬅ #7e4c4d */
|
|
88
|
+
--color-error-900: 103 62 63; /* ⬅ #673e3f */
|
|
89
|
+
/* surface | #2b2e40 */
|
|
90
|
+
--color-surface-50: 223 224 226; /* ⬅ #dfe0e2 */
|
|
91
|
+
--color-surface-100: 213 213 217; /* ⬅ #d5d5d9 */
|
|
92
|
+
--color-surface-200: 202 203 207; /* ⬅ #cacbcf */
|
|
93
|
+
--color-surface-300: 170 171 179; /* ⬅ #aaabb3 */
|
|
94
|
+
--color-surface-400: 107 109 121; /* ⬅ #6b6d79 */
|
|
95
|
+
--color-surface-500: 43 46 64; /* ⬅ #2b2e40 */
|
|
96
|
+
--color-surface-600: 39 41 58; /* ⬅ #27293a */
|
|
97
|
+
--color-surface-700: 32 35 48; /* ⬅ #202330 */
|
|
98
|
+
--color-surface-800: 26 28 38; /* ⬅ #1a1c26 */
|
|
99
|
+
--color-surface-900: 21 23 31; /* ⬅ #15171f */
|
|
76
100
|
}
|