@skeletonlabs/skeleton 0.92.1 → 0.99.5
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/actions/Clipboard/clipboard.d.ts +4 -0
- package/actions/Clipboard/clipboard.js +37 -0
- package/actions/Filters/filter.d.ts +3 -0
- package/actions/Filters/filter.js +23 -0
- package/{src/lib/actions → actions}/Filters/svg-filters/Apollo.svelte +0 -0
- package/actions/Filters/svg-filters/Apollo.svelte.d.ts +23 -0
- package/{src/lib/actions → actions}/Filters/svg-filters/BlueNight.svelte +0 -0
- package/actions/Filters/svg-filters/BlueNight.svelte.d.ts +23 -0
- package/{src/lib/actions → actions}/Filters/svg-filters/Emerald.svelte +0 -0
- package/actions/Filters/svg-filters/Emerald.svelte.d.ts +23 -0
- package/{src/lib/actions → actions}/Filters/svg-filters/GreenFall.svelte +0 -0
- package/actions/Filters/svg-filters/GreenFall.svelte.d.ts +23 -0
- package/{src/lib/actions → actions}/Filters/svg-filters/Noir.svelte +0 -0
- package/actions/Filters/svg-filters/Noir.svelte.d.ts +23 -0
- package/{src/lib/actions → actions}/Filters/svg-filters/NoirLight.svelte +0 -0
- package/actions/Filters/svg-filters/NoirLight.svelte.d.ts +23 -0
- package/{src/lib/actions → actions}/Filters/svg-filters/Rustic.svelte +0 -0
- package/actions/Filters/svg-filters/Rustic.svelte.d.ts +23 -0
- package/{src/lib/actions → actions}/Filters/svg-filters/Summer84.svelte +0 -0
- package/actions/Filters/svg-filters/Summer84.svelte.d.ts +23 -0
- package/{src/lib/actions → actions}/Filters/svg-filters/XPro.svelte +0 -0
- package/actions/Filters/svg-filters/XPro.svelte.d.ts +23 -0
- package/actions/FocusTrap/focusTrap.d.ts +4 -0
- package/actions/FocusTrap/focusTrap.js +53 -0
- package/components/Accordion/AccordionGroup.svelte +33 -0
- package/components/Accordion/AccordionGroup.svelte.d.ts +24 -0
- package/components/Accordion/AccordionItem.svelte +57 -0
- package/components/Accordion/AccordionItem.svelte.d.ts +36 -0
- package/components/AppBar/AppBar.svelte +38 -0
- package/components/AppBar/AppBar.svelte.d.ts +30 -0
- package/components/AppRail/AppRail.svelte +30 -0
- package/components/AppRail/AppRail.svelte.d.ts +32 -0
- package/components/AppRail/AppRailTile.svelte +43 -0
- package/components/AppRail/AppRailTile.svelte.d.ts +33 -0
- package/components/AppShell/AppShell.svelte +70 -0
- package/components/AppShell/AppShell.svelte.d.ts +31 -0
- package/components/Avatar/Avatar.svelte +29 -0
- package/components/Avatar/Avatar.svelte.d.ts +32 -0
- package/components/ConicGradient/ConicGradient.svelte +64 -0
- package/components/ConicGradient/ConicGradient.svelte.d.ts +29 -0
- package/components/ConicGradient/settings.d.ts +13 -0
- package/components/ConicGradient/settings.js +335 -0
- package/components/ConicGradient/types.d.ts +10 -0
- package/components/ConicGradient/types.js +2 -0
- package/components/FileButton/FileButton.svelte +28 -0
- package/components/FileButton/FileButton.svelte.d.ts +25 -0
- package/components/FileDropzone/FileDropzone.svelte +75 -0
- package/components/FileDropzone/FileDropzone.svelte.d.ts +32 -0
- package/components/InputChip/InputChip.svelte +77 -0
- package/components/InputChip/InputChip.svelte.d.ts +28 -0
- package/components/ListBox/ListBox.svelte +37 -0
- package/components/ListBox/ListBox.svelte.d.ts +30 -0
- package/components/ListBox/ListBoxItem.svelte +72 -0
- package/components/ListBox/ListBoxItem.svelte.d.ts +32 -0
- package/components/Paginator/Paginator.svelte +58 -0
- package/components/Paginator/Paginator.svelte.d.ts +29 -0
- package/components/Paginator/types.d.ts +10 -0
- package/components/Paginator/types.js +2 -0
- package/components/ProgressBar/ProgressBar.svelte +55 -0
- package/components/ProgressBar/ProgressBar.svelte.d.ts +24 -0
- package/components/ProgressRadial/ProgressRadial.svelte +71 -0
- package/components/ProgressRadial/ProgressRadial.svelte.d.ts +25 -0
- package/components/Radio/RadioGroup.svelte +29 -0
- package/components/Radio/RadioGroup.svelte.d.ts +31 -0
- package/components/Radio/RadioItem.svelte +49 -0
- package/components/Radio/RadioItem.svelte.d.ts +33 -0
- package/components/RangeSlider/RangeSlider.svelte +78 -0
- package/components/RangeSlider/RangeSlider.svelte.d.ts +32 -0
- package/components/SlideToggle/SlideToggle.svelte +88 -0
- package/components/SlideToggle/SlideToggle.svelte.d.ts +34 -0
- package/components/Stepper/Step.svelte +125 -0
- package/components/Stepper/Step.svelte.d.ts +39 -0
- package/components/Stepper/Stepper.svelte +43 -0
- package/components/Stepper/Stepper.svelte.d.ts +32 -0
- package/components/SvgIcon/SvgIcon.svelte +33 -0
- package/components/SvgIcon/SvgIcon.svelte.d.ts +26 -0
- package/components/SvgIcon/icons.d.ts +1 -0
- package/components/SvgIcon/icons.js +25 -0
- package/components/Tab/Tab.svelte +54 -0
- package/components/Tab/Tab.svelte.d.ts +37 -0
- package/components/Tab/TabGroup.svelte +51 -0
- package/components/Tab/TabGroup.svelte.d.ts +30 -0
- package/components/Table/Table.svelte +83 -0
- package/components/Table/Table.svelte.d.ts +27 -0
- package/components/Table/types.d.ts +10 -0
- package/components/Table/types.js +1 -0
- package/components/Table/utils.d.ts +7 -0
- package/{src/lib/components/Table/utils.ts → components/Table/utils.js} +10 -16
- package/components/TableOfContents/TableOfContents.svelte +100 -0
- package/components/TableOfContents/TableOfContents.svelte.d.ts +32 -0
- package/{src/lib/index.ts → index.d.ts} +1 -36
- package/index.js +66 -0
- package/package.json +159 -61
- package/{src/lib/styles → styles}/all.css +3 -0
- package/{src/lib/styles → styles}/core.css +11 -2
- package/styles/elements/alerts.css +17 -0
- package/{src/lib/styles → styles}/elements/badges.css +0 -25
- package/{src/lib/styles → styles}/elements/breadcrumbs.css +3 -3
- package/styles/elements/buttons.css +101 -0
- package/styles/elements/cards.css +32 -0
- package/styles/elements/chips.css +22 -0
- package/{src/lib/styles → styles}/elements/lists.css +4 -3
- package/{src/lib/styles → styles}/elements/logo-clouds.css +2 -4
- package/{src/lib/styles → styles}/elements/menus.css +0 -0
- package/{src/lib/styles → styles}/elements/placeholders.css +0 -0
- package/{src/lib/styles → styles}/elements/tables.css +14 -10
- package/{src/lib/styles → styles}/elements/tooltips.css +0 -0
- package/{src/lib/styles → styles}/elements.css +0 -0
- package/styles/forms.css +195 -0
- package/{src/lib/styles → styles}/highlight-js.css +0 -0
- package/styles/tailwind.css +16 -0
- package/styles/typography.css +99 -0
- package/styles/variants.css +154 -0
- package/{src/lib/tailwind/skeleton.cjs → tailwind/core.cjs} +1 -14
- package/tailwind/core.d.cts +5 -0
- package/tailwind/generated/intellisense-classes.cjs +1 -0
- package/tailwind/generated/intellisense-classes.d.cts +1956 -0
- package/tailwind/intellisense.cjs +21 -0
- package/tailwind/intellisense.d.cts +5 -0
- package/tailwind/settings.cjs +20 -0
- package/tailwind/settings.d.cts +6 -0
- package/tailwind/skeleton.cjs +19 -0
- package/tailwind/skeleton.d.cts +7 -0
- package/{src/lib/tailwind → tailwind}/theme/colors.cjs +7 -7
- package/tailwind/theme/colors.d.cts +2 -0
- package/tailwind/tokens/backgrounds.cjs +38 -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 +50 -0
- package/tailwind/tokens/rings.d.cts +22 -0
- package/tailwind/tokens/text.cjs +31 -0
- package/tailwind/tokens/text.d.cts +21 -0
- package/{src/lib/themes → themes}/theme-crimson.css +0 -0
- package/{src/lib/themes → themes}/theme-gold-nouveau.css +0 -0
- package/{src/lib/themes → themes}/theme-hamlindigo.css +0 -0
- package/{src/lib/themes → themes}/theme-modern.css +0 -0
- package/{src/lib/themes → themes}/theme-rocket.css +0 -0
- package/{src/lib/themes → themes}/theme-sahara.css +0 -0
- package/{src/lib/themes → themes}/theme-seafoam.css +0 -0
- package/{src/lib/themes → themes}/theme-seasonal.css +0 -0
- package/{src/lib/themes → themes}/theme-skeleton.css +6 -6
- package/{src/lib/themes → themes}/theme-vintage.css +0 -0
- package/utilities/CodeBlock/CodeBlock.svelte +54 -0
- package/utilities/CodeBlock/CodeBlock.svelte.d.ts +25 -0
- package/utilities/CodeBlock/stores.d.ts +2 -0
- package/utilities/CodeBlock/stores.js +3 -0
- package/utilities/DataTable/DataTable.d.ts +18 -0
- package/utilities/DataTable/DataTable.js +137 -0
- package/utilities/DataTable/actions.d.ts +8 -0
- package/utilities/DataTable/actions.js +114 -0
- package/utilities/DataTable/types.d.ts +33 -0
- package/utilities/DataTable/types.js +2 -0
- package/utilities/Drawer/Drawer.svelte +134 -0
- package/utilities/Drawer/Drawer.svelte.d.ts +33 -0
- 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/LightSwitch/LightSwitch.svelte +80 -0
- package/utilities/LightSwitch/LightSwitch.svelte.d.ts +21 -0
- package/utilities/LightSwitch/stores.d.ts +2 -0
- package/utilities/LightSwitch/stores.js +5 -0
- package/utilities/LocalStorageStore/LocalStorageStore.d.ts +12 -0
- package/utilities/LocalStorageStore/LocalStorageStore.js +49 -0
- package/utilities/Menu/menu.d.ts +18 -0
- package/utilities/Menu/menu.js +151 -0
- package/utilities/Modal/Modal.svelte +160 -0
- package/utilities/Modal/Modal.svelte.d.ts +35 -0
- package/{src/lib/utilities → utilities}/Modal/examples/ModalExampleEmbed.svelte +3 -8
- package/utilities/Modal/examples/ModalExampleEmbed.svelte.d.ts +17 -0
- package/{src/lib/utilities → utilities}/Modal/examples/ModalExampleForm.svelte +17 -27
- package/utilities/Modal/examples/ModalExampleForm.svelte.d.ts +17 -0
- package/utilities/Modal/examples/ModalExampleImage.svelte +19 -0
- package/utilities/Modal/examples/ModalExampleImage.svelte.d.ts +16 -0
- package/{src/lib/utilities → utilities}/Modal/examples/ModalExampleList.svelte +10 -18
- package/utilities/Modal/examples/ModalExampleList.svelte.d.ts +17 -0
- package/utilities/Modal/stores.d.ts +12 -0
- package/utilities/Modal/stores.js +24 -0
- package/utilities/Modal/types.d.ts +36 -0
- package/utilities/Modal/types.js +2 -0
- package/utilities/Toast/Toast.svelte +95 -0
- package/utilities/Toast/Toast.svelte.d.ts +28 -0
- package/utilities/Toast/stores.d.ts +10 -0
- package/utilities/Toast/stores.js +69 -0
- package/utilities/Toast/types.d.ts +26 -0
- package/utilities/Toast/types.js +2 -0
- package/utilities/Tooltip/tooltip.d.ts +35 -0
- package/utilities/Tooltip/tooltip.js +94 -0
- package/.eslintrc.cjs +0 -20
- package/.github/FUNDING.yml +0 -13
- package/.github/ISSUE_TEMPLATE/bug_report.yml +0 -30
- package/.github/ISSUE_TEMPLATE/config.yml +0 -8
- package/.github/ISSUE_TEMPLATE/docs_issue.yml +0 -23
- package/.github/ISSUE_TEMPLATE/feature_request.yml +0 -22
- package/.github/pull_request_template.md +0 -14
- package/.prettierignore +0 -12
- package/.prettierrc +0 -6
- package/postcss.config.cjs +0 -14
- package/scripts/compile-css-to-js.cjs +0 -50
- package/scripts/generate-jss.js +0 -67
- package/scripts/post-build.js +0 -17
- package/scripts/pre-build.js +0 -14
- package/src/app.d.ts +0 -13
- package/src/app.html +0 -43
- package/src/app.postcss +0 -10
- package/src/docs/DocsAppBar/DocsAppBar.svelte +0 -213
- package/src/docs/DocsFooter/DocsFooter.svelte +0 -78
- package/src/docs/DocsLogo/DocsLogoAnim.svelte +0 -44
- package/src/docs/DocsLogo/DocsLogoFull.svelte +0 -11
- package/src/docs/DocsLogo/DocsLogoIcon.svelte +0 -6
- package/src/docs/DocsNavigation/DocsDrawer.svelte +0 -23
- package/src/docs/DocsNavigation/DocsSidebar.svelte +0 -103
- package/src/docs/DocsNavigation/links.ts +0 -148
- package/src/docs/DocsSearch/DocsSearch.svelte +0 -78
- package/src/docs/DocsShell/DocsShell.svelte +0 -377
- package/src/docs/DocsShell/sveldMapper.ts +0 -143
- package/src/docs/DocsShell/types.ts +0 -96
- package/src/docs/DocsStyles/blog.css +0 -192
- package/src/docs/DocsThemer/DocsThemer.svelte +0 -254
- package/src/docs/DocsThemer/Swatch.svelte +0 -28
- package/src/docs/DocsThemer/colors.ts +0 -122
- package/src/docs/DocsThemer/settings.ts +0 -129
- package/src/docs/DocsThemer/stores.ts +0 -5
- package/src/docs/DocsThemer/types.ts +0 -20
- package/src/docs/README.md +0 -3
- package/src/docs/stores.ts +0 -15
- package/src/lib/actions/Clipboard/clipboard.ts +0 -39
- package/src/lib/actions/Filters/filter.test.ts +0 -40
- package/src/lib/actions/Filters/filter.ts +0 -23
- package/src/lib/actions/FocusTrap/focusTrap.ts +0 -56
- package/src/lib/components/Accordion/AccordionGroup.svelte +0 -53
- package/src/lib/components/Accordion/AccordionGroup.test.ts +0 -22
- package/src/lib/components/Accordion/AccordionItem.svelte +0 -80
- package/src/lib/components/Accordion/AccordionItem.test.ts +0 -28
- package/src/lib/components/Alert/Alert.svelte +0 -71
- package/src/lib/components/Alert/Alert.test.ts +0 -30
- package/src/lib/components/AppBar/AppBar.svelte +0 -60
- package/src/lib/components/AppBar/AppBar.test.ts +0 -31
- package/src/lib/components/AppRail/AppRail.svelte +0 -58
- package/src/lib/components/AppRail/AppRailTile.svelte +0 -66
- package/src/lib/components/AppShell/AppShell.svelte +0 -84
- package/src/lib/components/AppShell/AppShell.test.ts +0 -26
- package/src/lib/components/Avatar/Avatar.svelte +0 -51
- package/src/lib/components/Avatar/Avatar.test.ts +0 -41
- package/src/lib/components/Breadcrumb/Breadcrumb.svelte +0 -30
- package/src/lib/components/Breadcrumb/Breadcrumb.test.ts +0 -20
- package/src/lib/components/Breadcrumb/Crumb.svelte +0 -44
- package/src/lib/components/Breadcrumb/Crumb.test.ts +0 -48
- package/src/lib/components/ConicGradient/ConicGradient.svelte +0 -88
- package/src/lib/components/ConicGradient/ConicGradient.test.ts +0 -26
- package/src/lib/components/ConicGradient/settings.ts +0 -345
- package/src/lib/components/ConicGradient/types.ts +0 -12
- package/src/lib/components/Divider/Divider.svelte +0 -26
- package/src/lib/components/Divider/Divider.test.ts +0 -32
- package/src/lib/components/FileButton/FileButton.svelte +0 -29
- package/src/lib/components/FileButton/FileButton.test.ts +0 -32
- package/src/lib/components/FileDropzone/FileDropzone.svelte +0 -108
- package/src/lib/components/FileDropzone/FileDropzone.test.ts +0 -32
- package/src/lib/components/GradientHeading/GradientHeading.svelte +0 -24
- package/src/lib/components/GradientHeading/GradientHeading.test.ts +0 -30
- package/src/lib/components/InputChip/InputChip.svelte +0 -118
- package/src/lib/components/ListBox/ListBox.svelte +0 -65
- package/src/lib/components/ListBox/ListBox.test.ts +0 -48
- package/src/lib/components/ListBox/ListBoxItem.svelte +0 -99
- package/src/lib/components/ListBox/ListBoxItem.test.ts +0 -22
- package/src/lib/components/Paginator/Paginator.svelte +0 -84
- package/src/lib/components/Paginator/Paginator.test.ts +0 -29
- package/src/lib/components/Paginator/types.ts +0 -12
- package/src/lib/components/ProgressBar/ProgressBar.svelte +0 -73
- package/src/lib/components/ProgressBar/ProgressBar.test.ts +0 -27
- package/src/lib/components/ProgressRadial/ProgressRadial.svelte +0 -98
- package/src/lib/components/ProgressRadial/ProgressRadial.test.ts +0 -26
- package/src/lib/components/Radio/RadioGroup.svelte +0 -54
- package/src/lib/components/Radio/RadioGroup.test.ts +0 -35
- package/src/lib/components/Radio/RadioItem.svelte +0 -71
- package/src/lib/components/Radio/RadioItem.test.ts +0 -32
- package/src/lib/components/RangeSlider/RangeSlider.svelte +0 -110
- package/src/lib/components/RangeSlider/RangeSlider.test.ts +0 -44
- package/src/lib/components/SlideToggle/SlideToggle.svelte +0 -106
- package/src/lib/components/SlideToggle/SlideToggle.test.ts +0 -23
- package/src/lib/components/Stepper/Step.svelte +0 -140
- package/src/lib/components/Stepper/Step.test.ts +0 -21
- package/src/lib/components/Stepper/Stepper.svelte +0 -71
- package/src/lib/components/Stepper/Stepper.test.ts +0 -31
- package/src/lib/components/SvgIcon/SvgIcon.svelte +0 -50
- package/src/lib/components/SvgIcon/SvgIcon.test.ts +0 -28
- package/src/lib/components/SvgIcon/icons.ts +0 -29
- package/src/lib/components/Tab/Tab.svelte +0 -79
- package/src/lib/components/Tab/Tab.test.ts +0 -26
- package/src/lib/components/Tab/TabGroup.svelte +0 -78
- package/src/lib/components/Tab/TabGroup.test.ts +0 -30
- package/src/lib/components/Table/Table.svelte +0 -106
- package/src/lib/components/Table/types.ts +0 -10
- package/src/lib/components/TableOfContents/TableOfContents.svelte +0 -139
- package/src/lib/styles/elements/alerts.css +0 -43
- package/src/lib/styles/elements/buttons.css +0 -186
- package/src/lib/styles/elements/cards.css +0 -59
- package/src/lib/styles/elements/chips.css +0 -71
- package/src/lib/styles/forms.css +0 -178
- package/src/lib/styles/tailwind.css +0 -12
- package/src/lib/styles/typography.css +0 -115
- package/src/lib/tailwind/settings.cjs +0 -20
- package/src/lib/tailwind/tokens/backgrounds.cjs +0 -40
- package/src/lib/tailwind/tokens/border-radius.cjs +0 -21
- package/src/lib/tailwind/tokens/borders.cjs +0 -20
- package/src/lib/tailwind/tokens/fills.cjs +0 -20
- package/src/lib/tailwind/tokens/rings.cjs +0 -42
- package/src/lib/tailwind/tokens/text.cjs +0 -33
- package/src/lib/themes/theme-test.css +0 -96
- package/src/lib/utilities/CodeBlock/CodeBlock.svelte +0 -78
- package/src/lib/utilities/CodeBlock/CodeBlock.test.ts +0 -27
- package/src/lib/utilities/CodeBlock/stores.ts +0 -5
- package/src/lib/utilities/DataTable/DataTable.ts +0 -151
- package/src/lib/utilities/DataTable/actions.ts +0 -100
- package/src/lib/utilities/DataTable/types.ts +0 -33
- package/src/lib/utilities/Drawer/Drawer.svelte +0 -173
- package/src/lib/utilities/Drawer/Drawer.test.ts +0 -15
- package/src/lib/utilities/Drawer/stores.ts +0 -27
- package/src/lib/utilities/Drawer/types.ts +0 -47
- package/src/lib/utilities/LightSwitch/LightSwitch.svelte +0 -116
- package/src/lib/utilities/LightSwitch/LightSwitch.test.ts +0 -19
- package/src/lib/utilities/LightSwitch/stores.ts +0 -7
- package/src/lib/utilities/LocalStorageStore/LocalStorageStore.test.ts +0 -220
- package/src/lib/utilities/LocalStorageStore/LocalStorageStore.ts +0 -77
- package/src/lib/utilities/Menu/menu.test.ts +0 -22
- package/src/lib/utilities/Menu/menu.ts +0 -172
- package/src/lib/utilities/Modal/Modal.svelte +0 -206
- package/src/lib/utilities/Modal/Modal.test.ts +0 -50
- package/src/lib/utilities/Modal/stores.ts +0 -29
- package/src/lib/utilities/Modal/types.ts +0 -39
- package/src/lib/utilities/Toast/Toast.svelte +0 -95
- package/src/lib/utilities/Toast/Toats.test.ts +0 -25
- package/src/lib/utilities/Toast/stores.ts +0 -63
- package/src/lib/utilities/Toast/types.ts +0 -29
- package/src/lib/utilities/Tooltip/tooltip.ts +0 -137
- package/src/routes/(inner)/+layout.svelte +0 -3
- package/src/routes/(inner)/actions/clipboard/+page.svelte +0 -87
- package/src/routes/(inner)/actions/filters/+page.svelte +0 -151
- package/src/routes/(inner)/actions/focus-trap/+page.svelte +0 -59
- package/src/routes/(inner)/components/accordions/+page.svelte +0 -127
- package/src/routes/(inner)/components/alerts/+page.svelte +0 -130
- package/src/routes/(inner)/components/app-bar/+page.svelte +0 -52
- package/src/routes/(inner)/components/app-rail/+page.svelte +0 -105
- package/src/routes/(inner)/components/app-shell/+page.svelte +0 -159
- package/src/routes/(inner)/components/avatars/+page.svelte +0 -193
- package/src/routes/(inner)/components/breadcrumbs/+page.svelte +0 -121
- package/src/routes/(inner)/components/conic-gradients/+page.svelte +0 -161
- package/src/routes/(inner)/components/dividers/+page.svelte +0 -146
- package/src/routes/(inner)/components/file-buttons/+page.svelte +0 -46
- package/src/routes/(inner)/components/file-dropzone/+page.svelte +0 -71
- package/src/routes/(inner)/components/gradient-headings/+page.svelte +0 -138
- package/src/routes/(inner)/components/input-chips/+page.svelte +0 -128
- package/src/routes/(inner)/components/listboxes/+page.svelte +0 -92
- package/src/routes/(inner)/components/paginators/+page.svelte +0 -118
- package/src/routes/(inner)/components/progress-bars/+page.svelte +0 -157
- package/src/routes/(inner)/components/progress-radials/+page.svelte +0 -64
- package/src/routes/(inner)/components/radio-groups/+page.svelte +0 -91
- package/src/routes/(inner)/components/range-sliders/+page.svelte +0 -134
- package/src/routes/(inner)/components/slide-toggles/+page.svelte +0 -63
- package/src/routes/(inner)/components/steppers/+page.svelte +0 -168
- package/src/routes/(inner)/components/svg-icons/+page.svelte +0 -60
- package/src/routes/(inner)/components/table-of-contents/+page.svelte +0 -110
- package/src/routes/(inner)/components/tables/+page.svelte +0 -216
- package/src/routes/(inner)/components/tabs/+page.svelte +0 -146
- package/src/routes/(inner)/docs/comparisons/+page.svelte +0 -130
- package/src/routes/(inner)/docs/contributions/+page.svelte +0 -78
- package/src/routes/(inner)/docs/contributions/documentation/+page.svelte +0 -217
- package/src/routes/(inner)/docs/contributions/requirements/+page.svelte +0 -173
- package/src/routes/(inner)/docs/contributions/style-guide/+page.svelte +0 -164
- package/src/routes/(inner)/docs/faqs/+page.svelte +0 -80
- package/src/routes/(inner)/docs/features/+page.svelte +0 -121
- package/src/routes/(inner)/docs/recommended/+page.svelte +0 -162
- package/src/routes/(inner)/docs/why/+page.svelte +0 -104
- package/src/routes/(inner)/elements/alerts/+page.svelte +0 -142
- package/src/routes/(inner)/elements/badges/+page.svelte +0 -155
- package/src/routes/(inner)/elements/breadcrumbs/+page.svelte +0 -132
- package/src/routes/(inner)/elements/buttons/+page.svelte +0 -304
- package/src/routes/(inner)/elements/cards/+page.svelte +0 -117
- package/src/routes/(inner)/elements/chips/+page.svelte +0 -130
- package/src/routes/(inner)/elements/core/+page.svelte +0 -98
- package/src/routes/(inner)/elements/forms/+page.svelte +0 -89
- package/src/routes/(inner)/elements/forms/preview/+page.svelte +0 -256
- package/src/routes/(inner)/elements/lists/+page.svelte +0 -197
- package/src/routes/(inner)/elements/logo-clouds/+page.svelte +0 -105
- package/src/routes/(inner)/elements/placeholders/+page.svelte +0 -70
- package/src/routes/(inner)/elements/tables/+page.svelte +0 -138
- package/src/routes/(inner)/elements/tokens/+page.svelte +0 -176
- package/src/routes/(inner)/elements/typography/+page.svelte +0 -100
- package/src/routes/(inner)/guides/install/+page.svelte +0 -84
- package/src/routes/(inner)/guides/quickstart/+page.svelte +0 -118
- package/src/routes/(inner)/guides/styling/+page.svelte +0 -361
- package/src/routes/(inner)/guides/tailwind/+page.svelte +0 -150
- package/src/routes/(inner)/guides/themes/+page.svelte +0 -144
- package/src/routes/(inner)/guides/themes/colors/+page.svelte +0 -87
- package/src/routes/(inner)/guides/themes/generator/+page.svelte +0 -58
- package/src/routes/(inner)/guides/themes/presets.ts +0 -69
- package/src/routes/(inner)/template/+page.svelte +0 -52
- package/src/routes/(inner)/utilities/codeblocks/+page.svelte +0 -77
- package/src/routes/(inner)/utilities/data-tables/+page.svelte +0 -399
- package/src/routes/(inner)/utilities/data-tables/+page.ts +0 -18
- package/src/routes/(inner)/utilities/drawers/+page.svelte +0 -193
- package/src/routes/(inner)/utilities/lightswitches/+page.svelte +0 -86
- package/src/routes/(inner)/utilities/local-storage-stores/+page.svelte +0 -67
- package/src/routes/(inner)/utilities/menus/+page.svelte +0 -186
- package/src/routes/(inner)/utilities/modals/+page.svelte +0 -391
- package/src/routes/(inner)/utilities/toasts/+page.svelte +0 -212
- package/src/routes/(inner)/utilities/tooltips/+page.svelte +0 -153
- package/src/routes/+error.svelte +0 -16
- package/src/routes/+layout.server.ts +0 -13
- package/src/routes/+layout.svelte +0 -100
- package/src/routes/+page.server.ts +0 -12
- package/src/routes/+page.svelte +0 -197
- package/src/routes/blog/+page.svelte +0 -78
- package/src/routes/blog/+page.ts +0 -6
- package/src/routes/blog/[slug]/+page.svelte +0 -112
- package/src/routes/blog/[slug]/+page.ts +0 -6
- package/src/routes/blog/blog-service.ts +0 -31
- package/src/routes/blog/rss/+server.ts +0 -16
- package/static/favicon.png +0 -0
- package/svelte.config.js +0 -30
- package/tailwind.config.cjs +0 -14
- package/tsconfig.json +0 -37
- package/vite.config.js +0 -25
package/styles/forms.css
ADDED
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
/* Stylesheet: forms.css */
|
|
2
|
+
|
|
3
|
+
@layer base {
|
|
4
|
+
fieldset {
|
|
5
|
+
@apply block;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/* === Labels === */
|
|
9
|
+
|
|
10
|
+
legend {
|
|
11
|
+
@apply font-heading-token text-xl md:text-2xl;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
label {
|
|
15
|
+
@apply block overflow-visible;
|
|
16
|
+
}
|
|
17
|
+
.input-label {
|
|
18
|
+
@apply space-y-2;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* === Inputs === */
|
|
22
|
+
|
|
23
|
+
.input-cell {
|
|
24
|
+
@apply w-full rounded-token;
|
|
25
|
+
/* Background */
|
|
26
|
+
@apply bg-surface-200-700-token focus:brightness-105 hover:brightness-105;
|
|
27
|
+
/* Border */
|
|
28
|
+
@apply ring-0 border-token border-surface-400-500-token focus:border-primary-500;
|
|
29
|
+
/* Transition */
|
|
30
|
+
@apply transition;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* Input Groups */
|
|
34
|
+
.input-group {
|
|
35
|
+
@apply input-cell;
|
|
36
|
+
@apply overflow-hidden grid focus-within:border-primary-500;
|
|
37
|
+
}
|
|
38
|
+
.input-group input,
|
|
39
|
+
.input-group select {
|
|
40
|
+
@apply bg-transparent border-0 !ring-0;
|
|
41
|
+
}
|
|
42
|
+
.input-group div,
|
|
43
|
+
.input-group button,
|
|
44
|
+
.input-group a {
|
|
45
|
+
@apply p-4 py-2 place-self-center;
|
|
46
|
+
}
|
|
47
|
+
.input-group-divider * + * {
|
|
48
|
+
@apply !border-l border-surface-400-500-token focus:border-surface-400-500-token;
|
|
49
|
+
}
|
|
50
|
+
.input-group-shim {
|
|
51
|
+
@apply bg-surface-400/10 text-surface-600-300-token;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* Apply the input styles by default, but exclude if wrapped in `.input-group` */
|
|
55
|
+
input:not([type='checkbox']):not([type='radio']):not([type='color']):not(.unstyled):is(:not(.input-group *)),
|
|
56
|
+
select[multiple]:not(.unstyled):is(:not(.input-group *)),
|
|
57
|
+
textarea:not(.unstyled):is(:not(.input-group *)),
|
|
58
|
+
select:not(.unstyled):is(:not(.input-group *)) {
|
|
59
|
+
@apply input-cell;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* Container Inputs */
|
|
63
|
+
select[multiple]:not(.unstyled):is(:not(.input-group *)),
|
|
64
|
+
textarea:not(.unstyled):is(:not(.input-group *)) {
|
|
65
|
+
@apply rounded-container-token;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* Select (multipe) */
|
|
69
|
+
/* https://stackoverflow.com/questions/50618602/change-color-of-selected-option-in-select-multiple */
|
|
70
|
+
select[multiple]:not(.unstyled):is(:not(.input-group *)) {
|
|
71
|
+
@apply p-2 space-y-1;
|
|
72
|
+
}
|
|
73
|
+
select[multiple]:not(.unstyled):is(:not(.input-group *)) option {
|
|
74
|
+
@apply p-2 rounded-token;
|
|
75
|
+
}
|
|
76
|
+
select[multiple]:not(.unstyled):is(:not(.input-group *)) option:checked {
|
|
77
|
+
background: rgb(var(--color-primary-500)) linear-gradient(0deg, rgb(var(--color-primary-500)) 0%, rgb(var(--color-primary-500)) 100%);
|
|
78
|
+
@apply text-on-primary-token;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* File Input */
|
|
82
|
+
[type='file']:not(.unstyled):is(:not(.input-group *)) {
|
|
83
|
+
@apply p-1;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* Checkbox & Radio */
|
|
87
|
+
[type='checkbox']:not(.unstyled):is(:not(.input-group *)),
|
|
88
|
+
[type='radio']:not(.unstyled):is(:not(.input-group *)) {
|
|
89
|
+
@apply rounded text-secondary-600 focus:ring-secondary-500 w-5 h-5 cursor-pointer;
|
|
90
|
+
}
|
|
91
|
+
[type='radio']:not(.unstyled):is(:not(.input-group *)) {
|
|
92
|
+
@apply rounded-token;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* Color Picker */
|
|
96
|
+
/* https://stackoverflow.com/questions/11167281/webkit-css-to-control-the-box-around-the-color-in-an-inputtype-color */
|
|
97
|
+
input[type='color']:not(.unstyled):is(:not(.input-group *)) {
|
|
98
|
+
@apply border-none w-10 h-10 overflow-hidden rounded-token cursor-pointer;
|
|
99
|
+
/* WebKit Only */
|
|
100
|
+
-webkit-appearance: none;
|
|
101
|
+
}
|
|
102
|
+
input[type='color']:not(.unstyled):is(:not(.input-group *))::-webkit-color-swatch-wrapper {
|
|
103
|
+
@apply p-0;
|
|
104
|
+
}
|
|
105
|
+
input[type='color']:not(.unstyled):is(:not(.input-group *))::-webkit-color-swatch {
|
|
106
|
+
@apply border-none hover:brightness-110;
|
|
107
|
+
}
|
|
108
|
+
input[type='color']:not(.unstyled):is(:not(.input-group *))::-moz-color-swatch {
|
|
109
|
+
@apply border-none;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* === Placeholder === */
|
|
113
|
+
|
|
114
|
+
::-moz-placeholder {
|
|
115
|
+
@apply text-surface-500-400-token;
|
|
116
|
+
}
|
|
117
|
+
:-ms-input-placeholder {
|
|
118
|
+
@apply text-surface-500-400-token;
|
|
119
|
+
}
|
|
120
|
+
::placeholder {
|
|
121
|
+
@apply text-surface-500-400-token;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* === Accent Color === */
|
|
125
|
+
/* https://developer.mozilla.org/en-US/docs/Web/CSS/accent-color */
|
|
126
|
+
|
|
127
|
+
[type='range']:not(.range-input) {
|
|
128
|
+
@apply w-full accent-secondary-500;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/* === States === */
|
|
132
|
+
|
|
133
|
+
input:disabled,
|
|
134
|
+
textarea:disabled,
|
|
135
|
+
select:disabled {
|
|
136
|
+
@apply !opacity-50 !cursor-not-allowed hover:!brightness-100;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
input[readonly],
|
|
140
|
+
textarea[readonly],
|
|
141
|
+
select[readonly] {
|
|
142
|
+
@apply !border-0 !cursor-not-allowed hover:!brightness-100;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/* === Vendor-Specific === */
|
|
146
|
+
|
|
147
|
+
/* Date Calendar Picker (Webkit) */
|
|
148
|
+
::-webkit-calendar-picker-indicator {
|
|
149
|
+
@apply dark:invert;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/* === Utility Classes === */
|
|
153
|
+
|
|
154
|
+
/* success */
|
|
155
|
+
.input-success {
|
|
156
|
+
@apply !bg-success-200 !border-success-500 !text-success-700;
|
|
157
|
+
}
|
|
158
|
+
.input-success::-moz-placeholder {
|
|
159
|
+
@apply text-success-700;
|
|
160
|
+
}
|
|
161
|
+
.input-success:-ms-input-placeholder {
|
|
162
|
+
@apply text-success-700;
|
|
163
|
+
}
|
|
164
|
+
.input-success::placeholder {
|
|
165
|
+
@apply text-success-700;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/* warning */
|
|
169
|
+
.input-warning {
|
|
170
|
+
@apply !bg-warning-200 !border-warning-500 !text-warning-700;
|
|
171
|
+
}
|
|
172
|
+
.input-warning::-moz-placeholder {
|
|
173
|
+
@apply text-warning-700;
|
|
174
|
+
}
|
|
175
|
+
.input-warning:-ms-input-placeholder {
|
|
176
|
+
@apply text-warning-700;
|
|
177
|
+
}
|
|
178
|
+
.input-warning::placeholder {
|
|
179
|
+
@apply text-warning-700;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/* error */
|
|
183
|
+
.input-error {
|
|
184
|
+
@apply !bg-error-200 !border-error-500 !text-error-500;
|
|
185
|
+
}
|
|
186
|
+
.input-error::-moz-placeholder {
|
|
187
|
+
@apply text-error-500;
|
|
188
|
+
}
|
|
189
|
+
.input-error:-ms-input-placeholder {
|
|
190
|
+
@apply text-error-500;
|
|
191
|
+
}
|
|
192
|
+
.input-error::placeholder {
|
|
193
|
+
@apply text-error-500;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* Stylesheet: tailwind.css */
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
https://tailwindcss.com/docs/functions-and-directives
|
|
5
|
+
|
|
6
|
+
IMPORTANT:
|
|
7
|
+
Be sure to remove these directives from your global CSS stylesheet.
|
|
8
|
+
|
|
9
|
+
Tailwind directives should only be included ONCE per project.
|
|
10
|
+
These directives should proceed ALL Skeleton stylesheets.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
@tailwind base;
|
|
14
|
+
@tailwind components;
|
|
15
|
+
@tailwind utilities;
|
|
16
|
+
@tailwind variants;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/* Stylesheet: typography.css */
|
|
2
|
+
|
|
3
|
+
@layer base {
|
|
4
|
+
body {
|
|
5
|
+
@apply font-token text-token;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/* === Headings === */
|
|
9
|
+
|
|
10
|
+
h1:not(.unstyled):is(:not(.prose *)) {
|
|
11
|
+
@apply font-heading-token text-3xl md:text-5xl;
|
|
12
|
+
}
|
|
13
|
+
h2:not(.unstyled):is(:not(.prose *)) {
|
|
14
|
+
@apply font-heading-token text-2xl md:text-3xl;
|
|
15
|
+
}
|
|
16
|
+
h3:not(.unstyled):is(:not(.prose *)) {
|
|
17
|
+
@apply font-heading-token text-xl md:text-2xl;
|
|
18
|
+
}
|
|
19
|
+
h4:not(.unstyled):is(:not(.prose *)) {
|
|
20
|
+
@apply font-heading-token text-lg md:text-xl;
|
|
21
|
+
}
|
|
22
|
+
h5:not(.unstyled):is(:not(.prose *)) {
|
|
23
|
+
@apply font-heading-token text-base md:text-lg;
|
|
24
|
+
}
|
|
25
|
+
h6:not(.unstyled):is(:not(.prose *)) {
|
|
26
|
+
@apply font-heading-token text-sm md:text-base;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* === Elements === */
|
|
30
|
+
|
|
31
|
+
p:not(.unstyled):is(:not(.prose *)) {
|
|
32
|
+
/* NOTE: do not hardcode a text color style here. It makes color overrides difficult. */
|
|
33
|
+
@apply text-base;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
a:not(.unstyled):is(:not(.prose *)):not(.btn):not(.btn-icon):not(.app-bar a):not(.logo-item):not(a.card):not(.list-nav a) {
|
|
37
|
+
@apply text-primary-700 dark:text-primary-500 hover:brightness-110 underline;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
blockquote:not(.unstyled):is(:not(.prose *)) {
|
|
41
|
+
@apply text-token text-base italic border-l-8 border-l-secondary-500 px-4 pl-4;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* Keyboard */
|
|
45
|
+
kbd:not(.unstyled):is(:not(.prose *)) {
|
|
46
|
+
@apply font-sans font-bold text-sm;
|
|
47
|
+
@apply bg-surface-300-600-token px-1.5 py-[3px] rounded;
|
|
48
|
+
@apply ring-[1px] ring-surface-900 ring-inset;
|
|
49
|
+
@apply border-b-2 border-surface-900;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* === Code Blocks === */
|
|
53
|
+
/* For use outside of Skeleton's CodeBlock component */
|
|
54
|
+
|
|
55
|
+
pre:not(.unstyled):not(.code-block pre):is(:not(.prose *)) {
|
|
56
|
+
@apply font-mono text-base bg-[#141517] text-white p-4 whitespace-pre-wrap overflow-x-auto rounded-container-token;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
code:not(.unstyled):not(.code-block code):not(article pre code):is(:not(.prose *)) {
|
|
60
|
+
@apply font-mono text-xs text-primary-700 dark:text-primary-400;
|
|
61
|
+
@apply bg-primary-500/30 dark:bg-primary-500/20;
|
|
62
|
+
@apply py-0.5 px-1 rounded;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* === Insertions / Deletions ==== */
|
|
66
|
+
/* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ins */
|
|
67
|
+
/* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/del */
|
|
68
|
+
|
|
69
|
+
ins,
|
|
70
|
+
del {
|
|
71
|
+
@apply block relative p-0.5 pl-5;
|
|
72
|
+
text-decoration: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
ins::before,
|
|
76
|
+
del::before {
|
|
77
|
+
@apply absolute left-1 font-mono;
|
|
78
|
+
}
|
|
79
|
+
ins::before {
|
|
80
|
+
content: '+';
|
|
81
|
+
}
|
|
82
|
+
del::before {
|
|
83
|
+
content: '−';
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
ins {
|
|
87
|
+
@apply bg-error-500 text-on-error-token;
|
|
88
|
+
}
|
|
89
|
+
del {
|
|
90
|
+
@apply bg-success-500 text-on-success-token;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* === Date/Time === */
|
|
94
|
+
/* Useful for displaying timestamps */
|
|
95
|
+
|
|
96
|
+
time:not(.unstyled):is(:not(.prose *)) {
|
|
97
|
+
@apply text-sm text-surface-500 dark:text-surface-400;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/* === Variants === */
|
|
2
|
+
/* A canned set of reusabled variant styles. */
|
|
3
|
+
|
|
4
|
+
@layer components {
|
|
5
|
+
/* Outline -- supports ringed and host variants */
|
|
6
|
+
.variant-outline-primary {
|
|
7
|
+
@apply ring-[1px] ring-primary-500 dark:ring-primary-500 ring-inset;
|
|
8
|
+
}
|
|
9
|
+
.variant-outline-secondary {
|
|
10
|
+
@apply ring-[1px] ring-secondary-500 dark:ring-secondary-500 ring-inset;
|
|
11
|
+
}
|
|
12
|
+
.variant-outline-tertiary {
|
|
13
|
+
@apply ring-[1px] ring-tertiary-500 dark:ring-tertiary-500 ring-inset;
|
|
14
|
+
}
|
|
15
|
+
.variant-outline-success {
|
|
16
|
+
@apply ring-[1px] ring-success-500 dark:ring-success-500 ring-inset;
|
|
17
|
+
}
|
|
18
|
+
.variant-outline-warning {
|
|
19
|
+
@apply ring-[1px] ring-warning-500 dark:ring-warning-500 ring-inset;
|
|
20
|
+
}
|
|
21
|
+
.variant-outline-error {
|
|
22
|
+
@apply ring-[1px] ring-error-500 dark:ring-error-500 ring-inset;
|
|
23
|
+
}
|
|
24
|
+
.variant-outline,
|
|
25
|
+
.variant-outline-surface {
|
|
26
|
+
@apply ring-[1px] ring-surface-500 dark:ring-surface-500 ring-inset;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* ------------------------ */
|
|
30
|
+
|
|
31
|
+
/* Filled */
|
|
32
|
+
.variant-filled {
|
|
33
|
+
@apply bg-surface-900-50-token text-surface-50-900-token;
|
|
34
|
+
}
|
|
35
|
+
.variant-filled-primary {
|
|
36
|
+
@apply bg-primary-500 dark:bg-primary-500 text-on-primary-token;
|
|
37
|
+
}
|
|
38
|
+
.variant-filled-secondary {
|
|
39
|
+
@apply bg-secondary-500 dark:bg-secondary-500 text-on-secondary-token;
|
|
40
|
+
}
|
|
41
|
+
.variant-filled-tertiary {
|
|
42
|
+
@apply bg-tertiary-500 dark:bg-tertiary-500 text-on-tertiary-token;
|
|
43
|
+
}
|
|
44
|
+
.variant-filled-success {
|
|
45
|
+
@apply bg-success-500 dark:bg-success-500 text-on-success-token;
|
|
46
|
+
}
|
|
47
|
+
.variant-filled-warning {
|
|
48
|
+
@apply bg-warning-500 dark:bg-warning-500 text-on-warning-token;
|
|
49
|
+
}
|
|
50
|
+
.variant-filled-error {
|
|
51
|
+
@apply bg-error-500 dark:bg-error-500 text-on-error-token;
|
|
52
|
+
}
|
|
53
|
+
.variant-filled-surface {
|
|
54
|
+
@apply bg-surface-400-500-token text-on-surface-token;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* Ringed */
|
|
58
|
+
.variant-ringed {
|
|
59
|
+
@apply bg-transparent dark:bg-transparent variant-outline;
|
|
60
|
+
}
|
|
61
|
+
.variant-ringed-primary {
|
|
62
|
+
@apply bg-transparent dark:bg-transparent variant-outline-primary;
|
|
63
|
+
}
|
|
64
|
+
.variant-ringed-secondary {
|
|
65
|
+
@apply bg-transparent dark:bg-transparent variant-outline-secondary;
|
|
66
|
+
}
|
|
67
|
+
.variant-ringed-tertiary {
|
|
68
|
+
@apply bg-transparent dark:bg-transparent variant-outline-tertiary;
|
|
69
|
+
}
|
|
70
|
+
.variant-ringed-success {
|
|
71
|
+
@apply bg-transparent dark:bg-transparent variant-outline-success;
|
|
72
|
+
}
|
|
73
|
+
.variant-ringed-warning {
|
|
74
|
+
@apply bg-transparent dark:bg-transparent variant-outline-warning;
|
|
75
|
+
}
|
|
76
|
+
.variant-ringed-error {
|
|
77
|
+
@apply bg-transparent dark:bg-transparent variant-outline-error;
|
|
78
|
+
}
|
|
79
|
+
.variant-ringed-surface {
|
|
80
|
+
@apply bg-transparent dark:bg-transparent variant-outline-surface;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* Ghost */
|
|
84
|
+
.variant-ghost-primary {
|
|
85
|
+
@apply bg-primary-500/20 dark:bg-primary-500/20 variant-outline-primary;
|
|
86
|
+
}
|
|
87
|
+
.variant-ghost-secondary {
|
|
88
|
+
@apply bg-secondary-500/20 dark:bg-secondary-500/20 variant-outline-secondary;
|
|
89
|
+
}
|
|
90
|
+
.variant-ghost-tertiary {
|
|
91
|
+
@apply bg-tertiary-500/20 dark:bg-tertiary-500/20 variant-outline-tertiary;
|
|
92
|
+
}
|
|
93
|
+
.variant-ghost-success {
|
|
94
|
+
@apply bg-success-500/20 dark:bg-success-500/20 variant-outline-success;
|
|
95
|
+
}
|
|
96
|
+
.variant-ghost-warning {
|
|
97
|
+
@apply bg-warning-500/20 dark:bg-warning-500/20 variant-outline-warning;
|
|
98
|
+
}
|
|
99
|
+
.variant-ghost-error {
|
|
100
|
+
@apply bg-error-500/20 dark:bg-error-500/20 variant-outline-error;
|
|
101
|
+
}
|
|
102
|
+
.variant-ghost,
|
|
103
|
+
.variant-ghost-surface {
|
|
104
|
+
@apply bg-surface-500/20 dark:bg-surface-500/20 variant-outline-surface;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* Soft */
|
|
108
|
+
.variant-soft-primary {
|
|
109
|
+
@apply bg-primary-400/20 dark:bg-primary-500/20 text-primary-700-200-token !ring-0;
|
|
110
|
+
}
|
|
111
|
+
.variant-soft-secondary {
|
|
112
|
+
@apply bg-secondary-400/20 dark:bg-secondary-500/20 text-secondary-700-200-token !ring-0;
|
|
113
|
+
}
|
|
114
|
+
.variant-soft-tertiary {
|
|
115
|
+
@apply bg-tertiary-400/20 dark:bg-tertiary-500/20 text-tertiary-700-200-token !ring-0;
|
|
116
|
+
}
|
|
117
|
+
.variant-soft-success {
|
|
118
|
+
@apply bg-success-400/20 dark:bg-success-500/20 text-success-700-200-token !ring-0;
|
|
119
|
+
}
|
|
120
|
+
.variant-soft-warning {
|
|
121
|
+
@apply bg-warning-400/20 dark:bg-warning-500/20 text-warning-700-200-token !ring-0;
|
|
122
|
+
}
|
|
123
|
+
.variant-soft-error {
|
|
124
|
+
@apply bg-error-400/20 dark:bg-error-500/20 text-error-700-200-token !ring-0;
|
|
125
|
+
}
|
|
126
|
+
.variant-soft,
|
|
127
|
+
.variant-soft-surface {
|
|
128
|
+
@apply bg-surface-400/20 dark:bg-surface-500/20 text-surface-700-200-token !ring-0;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/* Glass */
|
|
132
|
+
.variant-glass-primary {
|
|
133
|
+
@apply bg-primary-500/20 dark:bg-primary-500/20 backdrop-blur-lg;
|
|
134
|
+
}
|
|
135
|
+
.variant-glass-secondary {
|
|
136
|
+
@apply bg-secondary-500/20 dark:bg-secondary-500/20 backdrop-blur-lg;
|
|
137
|
+
}
|
|
138
|
+
.variant-glass-tertiary {
|
|
139
|
+
@apply bg-tertiary-500/20 dark:bg-tertiary-500/20 backdrop-blur-lg;
|
|
140
|
+
}
|
|
141
|
+
.variant-glass-success {
|
|
142
|
+
@apply bg-success-500/20 dark:bg-success-500/20 backdrop-blur-lg;
|
|
143
|
+
}
|
|
144
|
+
.variant-glass-warning {
|
|
145
|
+
@apply bg-warning-500/20 dark:bg-warning-500/20 backdrop-blur-lg;
|
|
146
|
+
}
|
|
147
|
+
.variant-glass-error {
|
|
148
|
+
@apply bg-error-500/20 dark:bg-error-500/20 backdrop-blur-lg;
|
|
149
|
+
}
|
|
150
|
+
.variant-glass,
|
|
151
|
+
.variant-glass-surface {
|
|
152
|
+
@apply bg-surface-500/20 dark:bg-surface-500/20 backdrop-blur-lg;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
@@ -15,7 +15,7 @@ const tokensText = require('./tokens/text.cjs');
|
|
|
15
15
|
const tokensRings = require('./tokens/rings.cjs');
|
|
16
16
|
|
|
17
17
|
module.exports = plugin(
|
|
18
|
-
({ addUtilities
|
|
18
|
+
({ addUtilities }) => {
|
|
19
19
|
addUtilities({
|
|
20
20
|
// Implement Skeleton design token classes
|
|
21
21
|
...tokensBackgrounds(),
|
|
@@ -25,19 +25,6 @@ module.exports = plugin(
|
|
|
25
25
|
...tokensText(),
|
|
26
26
|
...tokensRings()
|
|
27
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
|
-
addComponents(all, {
|
|
36
|
-
respectImportant: true,
|
|
37
|
-
respectPrefix: true
|
|
38
|
-
});
|
|
39
|
-
} catch {}
|
|
40
|
-
}
|
|
41
28
|
},
|
|
42
29
|
{
|
|
43
30
|
theme: {
|