@eylulg/ui 0.0.0-stage → 1.1.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/LICENSE +21 -0
- package/README.md +328 -2
- package/dist/chrome/Anchor.d.ts +3 -0
- package/dist/chrome/Anchor.js +14 -0
- package/dist/chrome/Anchor.js.map +1 -0
- package/dist/chrome/AppShell.d.ts +28 -0
- package/dist/chrome/AppShell.js +57 -0
- package/dist/chrome/AppShell.js.map +1 -0
- package/dist/chrome/BrandLogo.d.ts +13 -0
- package/dist/chrome/BrandLogo.js +33 -0
- package/dist/chrome/BrandLogo.js.map +1 -0
- package/dist/chrome/BrandMark.d.ts +12 -0
- package/dist/chrome/BrandMark.js +40 -0
- package/dist/chrome/BrandMark.js.map +1 -0
- package/dist/chrome/LinkRouter.d.ts +19 -0
- package/dist/chrome/LinkRouter.js +28 -0
- package/dist/chrome/LinkRouter.js.map +1 -0
- package/dist/chrome/MobileMenu.d.ts +19 -0
- package/dist/chrome/MobileMenu.js +52 -0
- package/dist/chrome/MobileMenu.js.map +1 -0
- package/dist/chrome/ProjectSwitcher.d.ts +30 -0
- package/dist/chrome/ProjectSwitcher.js +64 -0
- package/dist/chrome/ProjectSwitcher.js.map +1 -0
- package/dist/chrome/ProjectSwitcherMenu.d.ts +13 -0
- package/dist/chrome/ProjectSwitcherMenu.js +50 -0
- package/dist/chrome/ProjectSwitcherMenu.js.map +1 -0
- package/dist/chrome/SidebarNav.d.ts +34 -0
- package/dist/chrome/SidebarNav.js +106 -0
- package/dist/chrome/SidebarNav.js.map +1 -0
- package/dist/chrome/SiteFooter.d.ts +37 -0
- package/dist/chrome/SiteFooter.js +105 -0
- package/dist/chrome/SiteFooter.js.map +1 -0
- package/dist/chrome/TextSizeToggle.d.ts +11 -0
- package/dist/chrome/TextSizeToggle.js +38 -0
- package/dist/chrome/TextSizeToggle.js.map +1 -0
- package/dist/chrome/ThemeToggle.d.ts +26 -0
- package/dist/chrome/ThemeToggle.js +100 -0
- package/dist/chrome/ThemeToggle.js.map +1 -0
- package/dist/chrome/ThemeToggleMenu.d.ts +16 -0
- package/dist/chrome/ThemeToggleMenu.js +42 -0
- package/dist/chrome/ThemeToggleMenu.js.map +1 -0
- package/dist/chrome/TopNav.d.ts +42 -0
- package/dist/chrome/TopNav.js +117 -0
- package/dist/chrome/TopNav.js.map +1 -0
- package/dist/chrome/brandLogoPath.d.ts +2 -0
- package/dist/chrome/brandLogoPath.js +7 -0
- package/dist/chrome/brandLogoPath.js.map +1 -0
- package/dist/chrome/index.d.ts +28 -0
- package/dist/chrome/index.js +15 -0
- package/dist/chrome/projects.d.ts +28 -0
- package/dist/chrome/projects.js +105 -0
- package/dist/chrome/projects.js.map +1 -0
- package/dist/chrome/themeChoices.d.ts +6 -0
- package/dist/chrome/themeChoices.js +18 -0
- package/dist/chrome/themeChoices.js.map +1 -0
- package/dist/chrome/themeScript.d.ts +16 -0
- package/dist/chrome/themeScript.js +20 -0
- package/dist/chrome/themeScript.js.map +1 -0
- package/dist/chrome/types.d.ts +17 -0
- package/dist/chrome/useTextSize.d.ts +16 -0
- package/dist/chrome/useTextSize.js +64 -0
- package/dist/chrome/useTextSize.js.map +1 -0
- package/dist/chrome/useTheme.d.ts +19 -0
- package/dist/chrome/useTheme.js +86 -0
- package/dist/chrome/useTheme.js.map +1 -0
- package/dist/components/Avatar/Avatar.d.ts +39 -0
- package/dist/components/Avatar/Avatar.js +122 -0
- package/dist/components/Avatar/Avatar.js.map +1 -0
- package/dist/components/Avatar/index.d.ts +2 -0
- package/dist/components/Avatar/index.js +2 -0
- package/dist/components/Badge/Badge.d.ts +19 -0
- package/dist/components/Badge/Badge.js +77 -0
- package/dist/components/Badge/Badge.js.map +1 -0
- package/dist/components/Badge/index.d.ts +2 -0
- package/dist/components/Badge/index.js +2 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +18 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.js +40 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.js.map +1 -0
- package/dist/components/Breadcrumbs/index.d.ts +2 -0
- package/dist/components/Breadcrumbs/index.js +2 -0
- package/dist/components/Button/Button.d.ts +39 -0
- package/dist/components/Button/Button.js +73 -0
- package/dist/components/Button/Button.js.map +1 -0
- package/dist/components/Button/buttonStyles.d.ts +21 -0
- package/dist/components/Button/buttonStyles.js +32 -0
- package/dist/components/Button/buttonStyles.js.map +1 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Button/index.js +4 -0
- package/dist/components/Card/Card.d.ts +47 -0
- package/dist/components/Card/Card.js +119 -0
- package/dist/components/Card/Card.js.map +1 -0
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/Card/index.js +2 -0
- package/dist/components/Chart/BarChart.d.ts +24 -0
- package/dist/components/Chart/BarChart.js +327 -0
- package/dist/components/Chart/BarChart.js.map +1 -0
- package/dist/components/Chart/ChartFrame.d.ts +27 -0
- package/dist/components/Chart/ChartFrame.js +80 -0
- package/dist/components/Chart/ChartFrame.js.map +1 -0
- package/dist/components/Chart/ChartLegend.d.ts +28 -0
- package/dist/components/Chart/ChartLegend.js +53 -0
- package/dist/components/Chart/ChartLegend.js.map +1 -0
- package/dist/components/Chart/ChartTable.d.ts +11 -0
- package/dist/components/Chart/ChartTable.js +48 -0
- package/dist/components/Chart/ChartTable.js.map +1 -0
- package/dist/components/Chart/ChartTooltip.d.ts +33 -0
- package/dist/components/Chart/ChartTooltip.js +56 -0
- package/dist/components/Chart/ChartTooltip.js.map +1 -0
- package/dist/components/Chart/HeatGrid.d.ts +50 -0
- package/dist/components/Chart/HeatGrid.js +256 -0
- package/dist/components/Chart/HeatGrid.js.map +1 -0
- package/dist/components/Chart/LineChart.d.ts +23 -0
- package/dist/components/Chart/LineChart.js +248 -0
- package/dist/components/Chart/LineChart.js.map +1 -0
- package/dist/components/Chart/format.d.ts +24 -0
- package/dist/components/Chart/format.js +134 -0
- package/dist/components/Chart/format.js.map +1 -0
- package/dist/components/Chart/geometry.d.ts +11 -0
- package/dist/components/Chart/geometry.js +69 -0
- package/dist/components/Chart/geometry.js.map +1 -0
- package/dist/components/Chart/index.d.ts +9 -0
- package/dist/components/Chart/index.js +6 -0
- package/dist/components/Chart/interaction.d.ts +43 -0
- package/dist/components/Chart/interaction.js +106 -0
- package/dist/components/Chart/interaction.js.map +1 -0
- package/dist/components/Chart/labels.d.ts +3 -0
- package/dist/components/Chart/labels.js +23 -0
- package/dist/components/Chart/labels.js.map +1 -0
- package/dist/components/Chart/scale.d.ts +15 -0
- package/dist/components/Chart/scale.js +54 -0
- package/dist/components/Chart/scale.js.map +1 -0
- package/dist/components/Chart/series.d.ts +14 -0
- package/dist/components/Chart/series.js +72 -0
- package/dist/components/Chart/series.js.map +1 -0
- package/dist/components/Chart/summary.d.ts +8 -0
- package/dist/components/Chart/summary.js +56 -0
- package/dist/components/Chart/summary.js.map +1 -0
- package/dist/components/Chart/types.d.ts +50 -0
- package/dist/components/Chart/useElementWidth.d.ts +6 -0
- package/dist/components/Chart/useElementWidth.js +25 -0
- package/dist/components/Chart/useElementWidth.js.map +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +9 -0
- package/dist/components/Checkbox/Checkbox.js +36 -0
- package/dist/components/Checkbox/Checkbox.js.map +1 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/Checkbox/index.js +2 -0
- package/dist/components/CodeBlock/CodeBlock.d.ts +22 -0
- package/dist/components/CodeBlock/CodeBlock.js +56 -0
- package/dist/components/CodeBlock/CodeBlock.js.map +1 -0
- package/dist/components/CodeBlock/index.d.ts +2 -0
- package/dist/components/CodeBlock/index.js +2 -0
- package/dist/components/Combobox/Combobox.d.ts +34 -0
- package/dist/components/Combobox/Combobox.js +106 -0
- package/dist/components/Combobox/Combobox.js.map +1 -0
- package/dist/components/Combobox/index.d.ts +2 -0
- package/dist/components/Combobox/index.js +2 -0
- package/dist/components/CommandPalette/CommandPalette.d.ts +74 -0
- package/dist/components/CommandPalette/CommandPalette.js +51 -0
- package/dist/components/CommandPalette/CommandPalette.js.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteOverlay.d.ts +11 -0
- package/dist/components/CommandPalette/CommandPaletteOverlay.js +180 -0
- package/dist/components/CommandPalette/CommandPaletteOverlay.js.map +1 -0
- package/dist/components/CommandPalette/index.d.ts +2 -0
- package/dist/components/CommandPalette/index.js +2 -0
- package/dist/components/DatePicker/DatePicker.d.ts +25 -0
- package/dist/components/DatePicker/DatePicker.js +142 -0
- package/dist/components/DatePicker/DatePicker.js.map +1 -0
- package/dist/components/DatePicker/index.d.ts +2 -0
- package/dist/components/DatePicker/index.js +2 -0
- package/dist/components/Dialog/Dialog.d.ts +37 -0
- package/dist/components/Dialog/Dialog.js +33 -0
- package/dist/components/Dialog/Dialog.js.map +1 -0
- package/dist/components/Dialog/DialogOverlay.d.ts +3 -0
- package/dist/components/Dialog/DialogOverlay.js +72 -0
- package/dist/components/Dialog/DialogOverlay.js.map +1 -0
- package/dist/components/Dialog/index.d.ts +2 -0
- package/dist/components/Dialog/index.js +2 -0
- package/dist/components/Drawer/Drawer.d.ts +36 -0
- package/dist/components/Drawer/Drawer.js +33 -0
- package/dist/components/Drawer/Drawer.js.map +1 -0
- package/dist/components/Drawer/DrawerOverlay.d.ts +3 -0
- package/dist/components/Drawer/DrawerOverlay.js +71 -0
- package/dist/components/Drawer/DrawerOverlay.js.map +1 -0
- package/dist/components/Drawer/index.d.ts +2 -0
- package/dist/components/Drawer/index.js +2 -0
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +49 -0
- package/dist/components/DropdownMenu/DropdownMenu.js +52 -0
- package/dist/components/DropdownMenu/DropdownMenu.js.map +1 -0
- package/dist/components/DropdownMenu/DropdownMenuParts.d.ts +6 -0
- package/dist/components/DropdownMenu/DropdownMenuParts.js +76 -0
- package/dist/components/DropdownMenu/DropdownMenuParts.js.map +1 -0
- package/dist/components/DropdownMenu/index.d.ts +2 -0
- package/dist/components/DropdownMenu/index.js +2 -0
- package/dist/components/EmptyState/EmptyState.d.ts +19 -0
- package/dist/components/EmptyState/EmptyState.js +51 -0
- package/dist/components/EmptyState/EmptyState.js.map +1 -0
- package/dist/components/EmptyState/index.d.ts +2 -0
- package/dist/components/EmptyState/index.js +2 -0
- package/dist/components/FileDropZone/FileDropZone.d.ts +41 -0
- package/dist/components/FileDropZone/FileDropZone.js +94 -0
- package/dist/components/FileDropZone/FileDropZone.js.map +1 -0
- package/dist/components/FileDropZone/index.d.ts +2 -0
- package/dist/components/FileDropZone/index.js +2 -0
- package/dist/components/IconButton/IconButton.d.ts +17 -0
- package/dist/components/IconButton/IconButton.js +37 -0
- package/dist/components/IconButton/IconButton.js.map +1 -0
- package/dist/components/IconButton/index.d.ts +2 -0
- package/dist/components/IconButton/index.js +2 -0
- package/dist/components/Input/Input.d.ts +21 -0
- package/dist/components/Input/Input.js +43 -0
- package/dist/components/Input/Input.js.map +1 -0
- package/dist/components/Input/index.d.ts +2 -0
- package/dist/components/Input/index.js +2 -0
- package/dist/components/Kbd/Kbd.d.ts +16 -0
- package/dist/components/Kbd/Kbd.js +35 -0
- package/dist/components/Kbd/Kbd.js.map +1 -0
- package/dist/components/Kbd/index.d.ts +2 -0
- package/dist/components/Kbd/index.js +2 -0
- package/dist/components/PageHeader/PageHeader.d.ts +18 -0
- package/dist/components/PageHeader/PageHeader.js +45 -0
- package/dist/components/PageHeader/PageHeader.js.map +1 -0
- package/dist/components/PageHeader/index.d.ts +2 -0
- package/dist/components/PageHeader/index.js +2 -0
- package/dist/components/Pagination/Pagination.d.ts +32 -0
- package/dist/components/Pagination/Pagination.js +124 -0
- package/dist/components/Pagination/Pagination.js.map +1 -0
- package/dist/components/Pagination/index.d.ts +2 -0
- package/dist/components/Pagination/index.js +2 -0
- package/dist/components/Popover/Popover.d.ts +27 -0
- package/dist/components/Popover/Popover.js +33 -0
- package/dist/components/Popover/Popover.js.map +1 -0
- package/dist/components/Popover/PopoverOverlay.d.ts +3 -0
- package/dist/components/Popover/PopoverOverlay.js +39 -0
- package/dist/components/Popover/PopoverOverlay.js.map +1 -0
- package/dist/components/Popover/index.d.ts +2 -0
- package/dist/components/Popover/index.js +2 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +19 -0
- package/dist/components/ProgressBar/ProgressBar.js +52 -0
- package/dist/components/ProgressBar/ProgressBar.js.map +1 -0
- package/dist/components/ProgressBar/index.d.ts +2 -0
- package/dist/components/ProgressBar/index.js +2 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +14 -0
- package/dist/components/RadioGroup/RadioGroup.js +46 -0
- package/dist/components/RadioGroup/RadioGroup.js.map +1 -0
- package/dist/components/RadioGroup/index.d.ts +2 -0
- package/dist/components/RadioGroup/index.js +2 -0
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +32 -0
- package/dist/components/SegmentedControl/SegmentedControl.js +55 -0
- package/dist/components/SegmentedControl/SegmentedControl.js.map +1 -0
- package/dist/components/SegmentedControl/index.d.ts +2 -0
- package/dist/components/SegmentedControl/index.js +2 -0
- package/dist/components/Select/Select.d.ts +28 -0
- package/dist/components/Select/Select.js +64 -0
- package/dist/components/Select/Select.js.map +1 -0
- package/dist/components/Select/index.d.ts +2 -0
- package/dist/components/Select/index.js +2 -0
- package/dist/components/Skeleton/Skeleton.d.ts +13 -0
- package/dist/components/Skeleton/Skeleton.js +33 -0
- package/dist/components/Skeleton/Skeleton.js.map +1 -0
- package/dist/components/Skeleton/index.d.ts +2 -0
- package/dist/components/Skeleton/index.js +2 -0
- package/dist/components/Spinner/Spinner.d.ts +12 -0
- package/dist/components/Spinner/Spinner.js +29 -0
- package/dist/components/Spinner/Spinner.js.map +1 -0
- package/dist/components/Spinner/index.d.ts +2 -0
- package/dist/components/Spinner/index.js +2 -0
- package/dist/components/Stat/Stat.d.ts +49 -0
- package/dist/components/Stat/Stat.js +125 -0
- package/dist/components/Stat/Stat.js.map +1 -0
- package/dist/components/Stat/index.d.ts +2 -0
- package/dist/components/Stat/index.js +2 -0
- package/dist/components/Switch/Switch.d.ts +11 -0
- package/dist/components/Switch/Switch.js +39 -0
- package/dist/components/Switch/Switch.js.map +1 -0
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/Switch/index.js +2 -0
- package/dist/components/Table/Table.d.ts +41 -0
- package/dist/components/Table/Table.js +121 -0
- package/dist/components/Table/Table.js.map +1 -0
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/Table/index.js +2 -0
- package/dist/components/Tabs/Tabs.d.ts +10 -0
- package/dist/components/Tabs/Tabs.js +58 -0
- package/dist/components/Tabs/Tabs.js.map +1 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Tabs/index.js +2 -0
- package/dist/components/Tag/Tag.d.ts +16 -0
- package/dist/components/Tag/Tag.js +48 -0
- package/dist/components/Tag/Tag.js.map +1 -0
- package/dist/components/Tag/index.d.ts +2 -0
- package/dist/components/Tag/index.js +2 -0
- package/dist/components/Textarea/Textarea.d.ts +28 -0
- package/dist/components/Textarea/Textarea.js +30 -0
- package/dist/components/Textarea/Textarea.js.map +1 -0
- package/dist/components/Textarea/index.d.ts +2 -0
- package/dist/components/Textarea/index.js +2 -0
- package/dist/components/Toast/Toast.d.ts +52 -0
- package/dist/components/Toast/Toast.js +77 -0
- package/dist/components/Toast/Toast.js.map +1 -0
- package/dist/components/Toast/ToastItem.d.ts +6 -0
- package/dist/components/Toast/ToastItem.js +127 -0
- package/dist/components/Toast/ToastItem.js.map +1 -0
- package/dist/components/Toast/index.d.ts +2 -0
- package/dist/components/Toast/index.js +2 -0
- package/dist/components/Tooltip/Tooltip.d.ts +17 -0
- package/dist/components/Tooltip/Tooltip.js +38 -0
- package/dist/components/Tooltip/Tooltip.js.map +1 -0
- package/dist/components/Tooltip/TooltipOverlay.d.ts +5 -0
- package/dist/components/Tooltip/TooltipOverlay.js +27 -0
- package/dist/components/Tooltip/TooltipOverlay.js.map +1 -0
- package/dist/components/Tooltip/index.d.ts +2 -0
- package/dist/components/Tooltip/index.js +2 -0
- package/dist/fonts.css +21 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.js +43 -0
- package/dist/internal/Field.d.ts +13 -0
- package/dist/internal/Field.js +29 -0
- package/dist/internal/Field.js.map +1 -0
- package/dist/internal/LazyDialogTrigger.d.ts +8 -0
- package/dist/internal/LazyDialogTrigger.js +15 -0
- package/dist/internal/LazyDialogTrigger.js.map +1 -0
- package/dist/internal/PreloadOnIntent.d.ts +15 -0
- package/dist/internal/PreloadOnIntent.js +26 -0
- package/dist/internal/PreloadOnIntent.js.map +1 -0
- package/dist/internal/Spinner.d.ts +3 -0
- package/dist/internal/Spinner.js +14 -0
- package/dist/internal/Spinner.js.map +1 -0
- package/dist/internal/focusRing.d.ts +2 -0
- package/dist/internal/focusRing.js +7 -0
- package/dist/internal/focusRing.js.map +1 -0
- package/dist/internal/lazyModule.d.ts +15 -0
- package/dist/internal/lazyModule.js +54 -0
- package/dist/internal/lazyModule.js.map +1 -0
- package/dist/internal/surfaces.d.ts +8 -0
- package/dist/internal/surfaces.js +13 -0
- package/dist/internal/surfaces.js.map +1 -0
- package/dist/internal/types.d.ts +5 -0
- package/dist/internal/useLazyMenuTrigger.d.ts +23 -0
- package/dist/internal/useLazyMenuTrigger.js +47 -0
- package/dist/internal/useLazyMenuTrigger.js.map +1 -0
- package/dist/reset.css +52 -0
- package/dist/styles/themes/scales.d.ts +2 -0
- package/dist/styles/themes/scales.js +132 -0
- package/dist/styles/themes/scales.js.map +1 -0
- package/dist/styles/themes/variants.d.ts +41 -0
- package/dist/styles/themes/variants.js +180 -0
- package/dist/styles/themes/variants.js.map +1 -0
- package/dist/styles.css +2 -0
- package/dist/theme.css +557 -0
- package/dist/themes/all.css +158 -0
- package/dist/themes/assistant.css +25 -0
- package/dist/themes/control-room.css +25 -0
- package/dist/themes/plain-language.css +25 -0
- package/dist/themes/portfolio.css +25 -0
- package/dist/themes/review.css +25 -0
- package/dist/themes/sudoku.css +25 -0
- package/dist/themes/tokens.css +25 -0
- package/dist/themes/watchlist.css +25 -0
- package/dist/themes/workspace.css +25 -0
- package/dist/tokens.css +351 -0
- package/dist/utils/cx.d.ts +23 -0
- package/dist/utils/cx.js +25 -0
- package/dist/utils/cx.js.map +1 -0
- package/dist/utils/cxLite.d.ts +12 -0
- package/dist/utils/cxLite.js +23 -0
- package/dist/utils/cxLite.js.map +1 -0
- package/package.json +304 -4
package/dist/theme.css
ADDED
|
@@ -0,0 +1,557 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @eylulg/ui design tokens
|
|
3
|
+
*
|
|
4
|
+
* Layer 1: primitive scales (brand, gray, success, warning, error) in @theme.
|
|
5
|
+
* These generate utilities such as bg-brand-600 or text-gray-500.
|
|
6
|
+
* Layer 2: semantic tokens (text, bg, border, fg) declared as CSS variables
|
|
7
|
+
* on :root and redefined under .dark. Components only use this layer,
|
|
8
|
+
* so a theme switch or a brand override never touches component code.
|
|
9
|
+
* Layer 3: density and text size tokens (--density-*, --text-*). The same in
|
|
10
|
+
* every variant. The visitor can make the text smaller with
|
|
11
|
+
* TextSizeToggle, without touching component code.
|
|
12
|
+
*
|
|
13
|
+
* The base theme is the portfolio's: the green brand on a warm sand frame. To
|
|
14
|
+
* theme a project, import one of the variant files (@eylulg/ui/themes/<name>.css)
|
|
15
|
+
* after this file. A variant changes colour only; the frame, the fonts, the
|
|
16
|
+
* text size, the density and the shape are shared by every project.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
/*
|
|
20
|
+
* Dark mode is class based. Both `.dark` and `.dark-mode` are recognised, so
|
|
21
|
+
* apps that already use either convention work. ThemeToggle writes `dark-mode`.
|
|
22
|
+
*/
|
|
23
|
+
@custom-variant dark (&:where(.dark, .dark *, .dark-mode, .dark-mode *));
|
|
24
|
+
|
|
25
|
+
@theme {
|
|
26
|
+
/* Typography */
|
|
27
|
+
/*
|
|
28
|
+
* Inter is the reading font and Manrope the heading font (--font-display),
|
|
29
|
+
* in every variant. @eylulg/ui/fonts.css sets the --font-* names to the
|
|
30
|
+
* bundled variable fonts; without it each stack names an installed copy and
|
|
31
|
+
* then falls back to the system font.
|
|
32
|
+
*/
|
|
33
|
+
--font-sans:
|
|
34
|
+
var(--font-inter, 'Inter'), ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
|
|
35
|
+
'Helvetica Neue', Arial, sans-serif;
|
|
36
|
+
--font-display:
|
|
37
|
+
var(--font-manrope, 'Manrope'), ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
|
|
38
|
+
'Helvetica Neue', Arial, sans-serif;
|
|
39
|
+
--font-mono:
|
|
40
|
+
var(--font-jetbrains-mono, 'JetBrains Mono'), ui-monospace, SFMono-Regular, 'SF Mono', Menlo,
|
|
41
|
+
Consolas, monospace;
|
|
42
|
+
|
|
43
|
+
/* The default text size. Compact variants and the visitor's choice override these. */
|
|
44
|
+
--text-xs: 0.8125rem;
|
|
45
|
+
--text-xs--line-height: 1.125rem;
|
|
46
|
+
--text-sm: 0.875rem;
|
|
47
|
+
--text-sm--line-height: 1.25rem;
|
|
48
|
+
--text-md: 1rem;
|
|
49
|
+
--text-md--line-height: 1.5rem;
|
|
50
|
+
--text-lg: 1.125rem;
|
|
51
|
+
--text-lg--line-height: 1.75rem;
|
|
52
|
+
--text-xl: 1.375rem;
|
|
53
|
+
--text-xl--line-height: 1.875rem;
|
|
54
|
+
--text-2xl: 1.75rem;
|
|
55
|
+
--text-2xl--line-height: 2.25rem;
|
|
56
|
+
--text-3xl: 2.5rem;
|
|
57
|
+
--text-3xl--line-height: 2.875rem;
|
|
58
|
+
/* A fluid size for one hero heading per page. Outside the text size setting. */
|
|
59
|
+
--text-display: clamp(2.5rem, 1.6rem + 3.4vw, 4.25rem);
|
|
60
|
+
--text-display--line-height: 1.05;
|
|
61
|
+
--text-display--letter-spacing: -0.025em;
|
|
62
|
+
|
|
63
|
+
/* Spacing: every spacing utility is a multiple of this 4px base (p-2 = 8px). */
|
|
64
|
+
--spacing: 0.25rem;
|
|
65
|
+
|
|
66
|
+
/*
|
|
67
|
+
* Radius, the same in every project: 14px buttons and inputs (md), 20px
|
|
68
|
+
* cards (xl), 24px page panels (2xl).
|
|
69
|
+
*/
|
|
70
|
+
--radius-xs: 0.375rem;
|
|
71
|
+
--radius-sm: 0.625rem;
|
|
72
|
+
--radius-md: 0.875rem;
|
|
73
|
+
--radius-lg: 1rem;
|
|
74
|
+
--radius-xl: 1.25rem;
|
|
75
|
+
--radius-2xl: 1.5rem;
|
|
76
|
+
--radius-full: 9999px;
|
|
77
|
+
|
|
78
|
+
/* Shadows: soft and warm. A hairline border does most of the work. */
|
|
79
|
+
--shadow-xs: 0 1px 2px 0 rgb(44 37 33 / 0.05);
|
|
80
|
+
--shadow-sm: 0 1px 3px 0 rgb(44 37 33 / 0.08), 0 1px 2px -1px rgb(44 37 33 / 0.08);
|
|
81
|
+
--shadow-md: 0 4px 8px -2px rgb(44 37 33 / 0.08), 0 2px 4px -2px rgb(44 37 33 / 0.05);
|
|
82
|
+
--shadow-lg: 0 12px 16px -4px rgb(44 37 33 / 0.08), 0 4px 6px -2px rgb(44 37 33 / 0.03);
|
|
83
|
+
--shadow-xl: 0 20px 24px -4px rgb(44 37 33 / 0.08), 0 8px 8px -4px rgb(44 37 33 / 0.03);
|
|
84
|
+
|
|
85
|
+
/*
|
|
86
|
+
* Brand: green, the portfolio's colour. The seeds are the solid fills, light
|
|
87
|
+
* and dark; the scale is generated from the light seed (the portfolio
|
|
88
|
+
* variant's scale, kept in sync by the themes test).
|
|
89
|
+
*/
|
|
90
|
+
--color-brand-seed: #446c2b;
|
|
91
|
+
--color-brand-seed-dark: #97bf82;
|
|
92
|
+
--color-brand-25: oklch(0.985 0.0084 135);
|
|
93
|
+
--color-brand-50: oklch(0.97 0.0167 135);
|
|
94
|
+
--color-brand-100: oklch(0.935 0.0335 135);
|
|
95
|
+
--color-brand-200: oklch(0.885 0.0544 135);
|
|
96
|
+
--color-brand-300: oklch(0.81 0.0795 135);
|
|
97
|
+
--color-brand-400: oklch(0.715 0.0983 135);
|
|
98
|
+
--color-brand-500: oklch(0.625 0.1046 135);
|
|
99
|
+
--color-brand-600: oklch(0.535 0.1004 135);
|
|
100
|
+
--color-brand-700: oklch(0.47 0.09 135);
|
|
101
|
+
--color-brand-800: oklch(0.395 0.0753 135);
|
|
102
|
+
--color-brand-900: oklch(0.325 0.0607 135);
|
|
103
|
+
--color-brand-950: oklch(0.255 0.046 135);
|
|
104
|
+
|
|
105
|
+
/* Warm grays, shared by every project. 25, 100 and 300 are the light frame, 900 and 950 the dark. */
|
|
106
|
+
--color-gray-25: #fffcf8;
|
|
107
|
+
--color-gray-50: #fbf7f1;
|
|
108
|
+
--color-gray-100: #f7f1e8;
|
|
109
|
+
--color-gray-200: #efe7da;
|
|
110
|
+
--color-gray-300: #e8dfd0;
|
|
111
|
+
--color-gray-400: #bdb2a5;
|
|
112
|
+
--color-gray-500: #8a7f75;
|
|
113
|
+
--color-gray-600: #6c625a;
|
|
114
|
+
--color-gray-700: #4f4640;
|
|
115
|
+
--color-gray-800: #3f3832;
|
|
116
|
+
--color-gray-900: #2a2521;
|
|
117
|
+
--color-gray-950: #211d1a;
|
|
118
|
+
|
|
119
|
+
--color-success-25: #f6fef9;
|
|
120
|
+
--color-success-50: #ecfdf3;
|
|
121
|
+
--color-success-100: #d1fadf;
|
|
122
|
+
--color-success-200: #a6f4c5;
|
|
123
|
+
--color-success-300: #6ce9a6;
|
|
124
|
+
--color-success-400: #32d583;
|
|
125
|
+
--color-success-500: #12b76a;
|
|
126
|
+
--color-success-600: #039855;
|
|
127
|
+
--color-success-700: #027a48;
|
|
128
|
+
--color-success-800: #05603a;
|
|
129
|
+
--color-success-900: #054f31;
|
|
130
|
+
--color-success-950: #053321;
|
|
131
|
+
|
|
132
|
+
--color-warning-25: #fffcf5;
|
|
133
|
+
--color-warning-50: #fffaeb;
|
|
134
|
+
--color-warning-100: #fef0c7;
|
|
135
|
+
--color-warning-200: #fedf89;
|
|
136
|
+
--color-warning-300: #fec84b;
|
|
137
|
+
--color-warning-400: #fdb022;
|
|
138
|
+
--color-warning-500: #f79009;
|
|
139
|
+
--color-warning-600: #dc6803;
|
|
140
|
+
--color-warning-700: #b54708;
|
|
141
|
+
--color-warning-800: #93370d;
|
|
142
|
+
--color-warning-900: #7a2e0e;
|
|
143
|
+
--color-warning-950: #4e1d09;
|
|
144
|
+
|
|
145
|
+
--color-error-25: #fffbfa;
|
|
146
|
+
--color-error-50: #fef3f2;
|
|
147
|
+
--color-error-100: #fee4e2;
|
|
148
|
+
--color-error-200: #fecdca;
|
|
149
|
+
--color-error-300: #fda29b;
|
|
150
|
+
--color-error-400: #f97066;
|
|
151
|
+
--color-error-500: #f04438;
|
|
152
|
+
--color-error-600: #d92d20;
|
|
153
|
+
--color-error-700: #b42318;
|
|
154
|
+
--color-error-800: #912018;
|
|
155
|
+
--color-error-900: #7a271a;
|
|
156
|
+
--color-error-950: #55160c;
|
|
157
|
+
|
|
158
|
+
--animate-toast-in: toast-in 200ms ease-out;
|
|
159
|
+
|
|
160
|
+
@keyframes toast-in {
|
|
161
|
+
from {
|
|
162
|
+
opacity: 0;
|
|
163
|
+
transform: translateY(0.5rem);
|
|
164
|
+
}
|
|
165
|
+
to {
|
|
166
|
+
opacity: 1;
|
|
167
|
+
transform: translateY(0);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/*
|
|
173
|
+
* Semantic utilities. @theme inline makes the generated utility reference the
|
|
174
|
+
* --ui-* variable directly, so .dark on any ancestor switches the value.
|
|
175
|
+
*
|
|
176
|
+
* text-* text colour e.g. text-primary, text-secondary
|
|
177
|
+
* bg-* surfaces e.g. bg-primary, bg-brand-solid
|
|
178
|
+
* border-* borders and rings e.g. border-default, ring-focus
|
|
179
|
+
* fg-* icons and glyphs e.g. text-fg-secondary, text-fg-on-solid
|
|
180
|
+
*/
|
|
181
|
+
@theme inline {
|
|
182
|
+
--text-color-primary: var(--ui-text-primary);
|
|
183
|
+
--text-color-secondary: var(--ui-text-secondary);
|
|
184
|
+
--text-color-tertiary: var(--ui-text-tertiary);
|
|
185
|
+
--text-color-disabled: var(--ui-text-disabled);
|
|
186
|
+
--text-color-placeholder: var(--ui-text-placeholder);
|
|
187
|
+
--text-color-inverse: var(--ui-text-inverse);
|
|
188
|
+
--text-color-on-solid: var(--ui-text-on-solid);
|
|
189
|
+
--text-color-brand: var(--ui-text-brand);
|
|
190
|
+
--text-color-error: var(--ui-text-error);
|
|
191
|
+
--text-color-success: var(--ui-text-success);
|
|
192
|
+
--text-color-warning: var(--ui-text-warning);
|
|
193
|
+
--text-color-blue: var(--ui-text-blue);
|
|
194
|
+
--text-color-purple: var(--ui-text-purple);
|
|
195
|
+
--text-color-pink: var(--ui-text-pink);
|
|
196
|
+
--text-color-orange: var(--ui-text-orange);
|
|
197
|
+
--text-color-indigo: var(--ui-text-indigo);
|
|
198
|
+
|
|
199
|
+
--background-color-primary: var(--ui-bg-primary);
|
|
200
|
+
--background-color-secondary: var(--ui-bg-secondary);
|
|
201
|
+
--background-color-tertiary: var(--ui-bg-tertiary);
|
|
202
|
+
--background-color-elevated: var(--ui-bg-elevated);
|
|
203
|
+
--background-color-inverse: var(--ui-bg-inverse);
|
|
204
|
+
--background-color-disabled: var(--ui-bg-disabled);
|
|
205
|
+
--background-color-overlay: var(--ui-bg-overlay);
|
|
206
|
+
--background-color-brand-solid: var(--ui-bg-brand-solid);
|
|
207
|
+
--background-color-brand-solid-hover: var(--ui-bg-brand-solid-hover);
|
|
208
|
+
--background-color-brand-subtle: var(--ui-bg-brand-subtle);
|
|
209
|
+
--background-color-error-solid: var(--ui-bg-error-solid);
|
|
210
|
+
--background-color-error-solid-hover: var(--ui-bg-error-solid-hover);
|
|
211
|
+
--background-color-error-subtle: var(--ui-bg-error-subtle);
|
|
212
|
+
--background-color-success-subtle: var(--ui-bg-success-subtle);
|
|
213
|
+
--background-color-warning-subtle: var(--ui-bg-warning-subtle);
|
|
214
|
+
--background-color-blue-subtle: var(--ui-bg-blue-subtle);
|
|
215
|
+
--background-color-purple-subtle: var(--ui-bg-purple-subtle);
|
|
216
|
+
--background-color-pink-subtle: var(--ui-bg-pink-subtle);
|
|
217
|
+
--background-color-orange-subtle: var(--ui-bg-orange-subtle);
|
|
218
|
+
--background-color-indigo-subtle: var(--ui-bg-indigo-subtle);
|
|
219
|
+
--background-color-hover: var(--ui-bg-hover);
|
|
220
|
+
|
|
221
|
+
--border-color-default: var(--ui-border-default);
|
|
222
|
+
--border-color-strong: var(--ui-border-strong);
|
|
223
|
+
--border-color-control: var(--ui-border-control);
|
|
224
|
+
--border-color-subtle: var(--ui-border-subtle);
|
|
225
|
+
--border-color-brand: var(--ui-border-brand);
|
|
226
|
+
--border-color-error: var(--ui-border-error);
|
|
227
|
+
--border-color-disabled: var(--ui-border-disabled);
|
|
228
|
+
--ring-color-default: var(--ui-border-default);
|
|
229
|
+
--ring-color-control: var(--ui-border-control);
|
|
230
|
+
--ring-color-focus: var(--ui-border-focus);
|
|
231
|
+
--ring-color-error: var(--ui-border-error);
|
|
232
|
+
--ring-color-blue: var(--ui-border-blue);
|
|
233
|
+
--ring-color-purple: var(--ui-border-purple);
|
|
234
|
+
--ring-color-pink: var(--ui-border-pink);
|
|
235
|
+
--ring-color-orange: var(--ui-border-orange);
|
|
236
|
+
--ring-color-indigo: var(--ui-border-indigo);
|
|
237
|
+
--outline-color-focus: var(--ui-border-focus);
|
|
238
|
+
|
|
239
|
+
--color-fg-primary: var(--ui-fg-primary);
|
|
240
|
+
--color-fg-secondary: var(--ui-fg-secondary);
|
|
241
|
+
--color-fg-tertiary: var(--ui-fg-tertiary);
|
|
242
|
+
--color-fg-disabled: var(--ui-fg-disabled);
|
|
243
|
+
--color-fg-brand: var(--ui-fg-brand);
|
|
244
|
+
--color-fg-on-solid: var(--ui-fg-on-solid);
|
|
245
|
+
--color-fg-error: var(--ui-fg-error);
|
|
246
|
+
--color-fg-success: var(--ui-fg-success);
|
|
247
|
+
--color-fg-warning: var(--ui-fg-warning);
|
|
248
|
+
--color-fg-blue: var(--ui-fg-blue);
|
|
249
|
+
--color-fg-purple: var(--ui-fg-purple);
|
|
250
|
+
--color-fg-pink: var(--ui-fg-pink);
|
|
251
|
+
--color-fg-orange: var(--ui-fg-orange);
|
|
252
|
+
--color-fg-indigo: var(--ui-fg-indigo);
|
|
253
|
+
|
|
254
|
+
/* Data visualisation: categorical series, a muted overflow colour and a five step sequential ramp. */
|
|
255
|
+
--color-chart-1: var(--ui-chart-1);
|
|
256
|
+
--color-chart-2: var(--ui-chart-2);
|
|
257
|
+
--color-chart-3: var(--ui-chart-3);
|
|
258
|
+
--color-chart-4: var(--ui-chart-4);
|
|
259
|
+
--color-chart-5: var(--ui-chart-5);
|
|
260
|
+
--color-chart-6: var(--ui-chart-6);
|
|
261
|
+
--color-chart-muted: var(--ui-chart-muted);
|
|
262
|
+
--color-chart-seq-1: var(--ui-chart-seq-1);
|
|
263
|
+
--color-chart-seq-2: var(--ui-chart-seq-2);
|
|
264
|
+
--color-chart-seq-3: var(--ui-chart-seq-3);
|
|
265
|
+
--color-chart-seq-4: var(--ui-chart-seq-4);
|
|
266
|
+
--color-chart-seq-5: var(--ui-chart-seq-5);
|
|
267
|
+
--color-chart-seq-ink-light: var(--ui-chart-seq-ink-light);
|
|
268
|
+
--color-chart-seq-ink-dark: var(--ui-chart-seq-ink-dark);
|
|
269
|
+
|
|
270
|
+
/* Font used for data: table cells, stats, code like values. */
|
|
271
|
+
--font-data: var(--ui-font-data);
|
|
272
|
+
|
|
273
|
+
/*
|
|
274
|
+
* Density. Each name maps to a --density-* variable, so h-control-md,
|
|
275
|
+
* px-control-x, py-item-y, p-card and gap-stack follow the active density.
|
|
276
|
+
*/
|
|
277
|
+
--spacing-control-xs: var(--density-control-xs);
|
|
278
|
+
--spacing-control-sm: var(--density-control-sm);
|
|
279
|
+
--spacing-control-md: var(--density-control-md);
|
|
280
|
+
--spacing-control-lg: var(--density-control-lg);
|
|
281
|
+
--spacing-control-x: var(--density-control-x);
|
|
282
|
+
--spacing-item-x: var(--density-item-x);
|
|
283
|
+
--spacing-item-y: var(--density-item-y);
|
|
284
|
+
--spacing-cell-x: var(--density-cell-x);
|
|
285
|
+
--spacing-cell-y: var(--density-cell-y);
|
|
286
|
+
--spacing-card: var(--density-card);
|
|
287
|
+
--spacing-stack: var(--density-stack);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/*
|
|
291
|
+
* Touch targets reach 44px on coarse pointers through an invisible hit area, so the
|
|
292
|
+
* visible size never changes. The element must be positioned (class relative) and
|
|
293
|
+
* must not use ::after itself.
|
|
294
|
+
*/
|
|
295
|
+
@utility touch-target {
|
|
296
|
+
@media (pointer: coarse) {
|
|
297
|
+
&::after {
|
|
298
|
+
content: '';
|
|
299
|
+
position: absolute;
|
|
300
|
+
top: 50%;
|
|
301
|
+
left: 50%;
|
|
302
|
+
width: max(100%, 2.75rem);
|
|
303
|
+
height: max(100%, 2.75rem);
|
|
304
|
+
transform: translate(-50%, -50%);
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
/* No colour or size transitions under reduced motion, so nothing is sampled mid transition. */
|
|
310
|
+
@media (prefers-reduced-motion: reduce) {
|
|
311
|
+
*,
|
|
312
|
+
::before,
|
|
313
|
+
::after {
|
|
314
|
+
transition-duration: 0s !important;
|
|
315
|
+
transition-delay: 0s !important;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
@layer base {
|
|
320
|
+
/*
|
|
321
|
+
* Density, the same in every variant. Independent of light and dark.
|
|
322
|
+
*/
|
|
323
|
+
:root,
|
|
324
|
+
[data-ui-variant] {
|
|
325
|
+
--density-control-xs: 1.5rem;
|
|
326
|
+
--density-control-sm: 2rem;
|
|
327
|
+
--density-control-md: 2.5rem;
|
|
328
|
+
--density-control-lg: 3rem;
|
|
329
|
+
--density-control-x: 1rem;
|
|
330
|
+
--density-item-x: 0.625rem;
|
|
331
|
+
--density-item-y: 0.5rem;
|
|
332
|
+
--density-cell-x: 1rem;
|
|
333
|
+
--density-cell-y: 0.75rem;
|
|
334
|
+
--density-card: 1.5rem;
|
|
335
|
+
--density-stack: 1rem;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/*
|
|
339
|
+
* Semantic tokens are declared on :root and again on any element with
|
|
340
|
+
* data-ui-variant, so a variant scoped to a container (as in Storybook or a
|
|
341
|
+
* project preview) resolves them against its own seed and scale.
|
|
342
|
+
*/
|
|
343
|
+
:root,
|
|
344
|
+
[data-ui-variant] {
|
|
345
|
+
color-scheme: light;
|
|
346
|
+
|
|
347
|
+
--ui-font-data: var(--font-sans);
|
|
348
|
+
|
|
349
|
+
/* The frame: warm sand page, lighter surfaces, ink text. */
|
|
350
|
+
--ui-text-primary: #2c2521;
|
|
351
|
+
--ui-text-secondary: var(--color-gray-700);
|
|
352
|
+
--ui-text-tertiary: var(--color-gray-600);
|
|
353
|
+
--ui-text-disabled: var(--color-gray-500);
|
|
354
|
+
--ui-text-placeholder: var(--color-gray-600);
|
|
355
|
+
--ui-text-inverse: var(--color-gray-25);
|
|
356
|
+
--ui-text-on-solid: #ffffff;
|
|
357
|
+
--ui-text-brand: color-mix(in oklch, var(--color-brand-seed) 80%, black);
|
|
358
|
+
--ui-text-error: var(--color-error-700);
|
|
359
|
+
--ui-text-success: var(--color-success-700);
|
|
360
|
+
--ui-text-warning: var(--color-warning-700);
|
|
361
|
+
|
|
362
|
+
--ui-bg-primary: var(--color-gray-25);
|
|
363
|
+
--ui-bg-secondary: var(--color-gray-100);
|
|
364
|
+
--ui-bg-tertiary: var(--color-gray-200);
|
|
365
|
+
--ui-bg-elevated: var(--color-gray-25);
|
|
366
|
+
--ui-bg-inverse: #2c2521;
|
|
367
|
+
--ui-bg-disabled: var(--color-gray-200);
|
|
368
|
+
--ui-bg-overlay: rgb(44 37 33 / 0.55);
|
|
369
|
+
--ui-bg-hover: var(--color-gray-100);
|
|
370
|
+
/* Project colour: the seed is the solid, and a tint of it on warm paper is the subtle fill. */
|
|
371
|
+
--ui-bg-brand-solid: var(--color-brand-seed);
|
|
372
|
+
--ui-bg-brand-solid-hover: color-mix(in oklch, var(--color-brand-seed) 84%, black);
|
|
373
|
+
--ui-bg-brand-subtle: color-mix(in oklch, var(--color-brand-seed) 24%, #fbf7f1);
|
|
374
|
+
--ui-bg-error-solid: var(--color-error-600);
|
|
375
|
+
--ui-bg-error-solid-hover: var(--color-error-700);
|
|
376
|
+
--ui-bg-error-subtle: var(--color-error-50);
|
|
377
|
+
--ui-bg-success-subtle: var(--color-success-50);
|
|
378
|
+
--ui-bg-warning-subtle: var(--color-warning-50);
|
|
379
|
+
|
|
380
|
+
--ui-border-default: var(--color-gray-300);
|
|
381
|
+
--ui-border-strong: var(--color-gray-500);
|
|
382
|
+
/* Form control outlines keep 3:1 against the surface (WCAG 1.4.11). */
|
|
383
|
+
--ui-border-control: var(--color-gray-500);
|
|
384
|
+
--ui-border-subtle: var(--color-gray-200);
|
|
385
|
+
--ui-border-brand: var(--color-brand-seed);
|
|
386
|
+
--ui-border-error: var(--color-error-600);
|
|
387
|
+
--ui-border-disabled: var(--color-gray-200);
|
|
388
|
+
--ui-border-focus: var(--color-brand-seed);
|
|
389
|
+
|
|
390
|
+
--ui-fg-primary: #2c2521;
|
|
391
|
+
--ui-fg-secondary: var(--color-gray-600);
|
|
392
|
+
--ui-fg-tertiary: var(--color-gray-500);
|
|
393
|
+
--ui-fg-disabled: var(--color-gray-400);
|
|
394
|
+
--ui-fg-brand: var(--color-brand-seed);
|
|
395
|
+
--ui-fg-on-solid: #ffffff;
|
|
396
|
+
--ui-fg-error: var(--color-error-600);
|
|
397
|
+
--ui-fg-success: var(--color-success-600);
|
|
398
|
+
--ui-fg-warning: var(--color-warning-600);
|
|
399
|
+
|
|
400
|
+
/* The logo is brand green in every project and does not follow the variant. */
|
|
401
|
+
--ui-logo: #446c2b;
|
|
402
|
+
|
|
403
|
+
/* Extra badge hues. Fixed across variants; the contrast check covers each one. */
|
|
404
|
+
--ui-bg-blue-subtle: #eff6ff;
|
|
405
|
+
--ui-text-blue: #1d4ed8;
|
|
406
|
+
--ui-border-blue: #bfdbfe;
|
|
407
|
+
--ui-fg-blue: #2563eb;
|
|
408
|
+
--ui-bg-purple-subtle: #faf5ff;
|
|
409
|
+
--ui-text-purple: #7e22ce;
|
|
410
|
+
--ui-border-purple: #e9d5ff;
|
|
411
|
+
--ui-fg-purple: #9333ea;
|
|
412
|
+
--ui-bg-pink-subtle: #fdf2f8;
|
|
413
|
+
--ui-text-pink: #be185d;
|
|
414
|
+
--ui-border-pink: #fbcfe8;
|
|
415
|
+
--ui-fg-pink: #db2777;
|
|
416
|
+
--ui-bg-orange-subtle: #fff7ed;
|
|
417
|
+
--ui-text-orange: #c2410c;
|
|
418
|
+
--ui-border-orange: #fed7aa;
|
|
419
|
+
--ui-fg-orange: #ea580c;
|
|
420
|
+
--ui-bg-indigo-subtle: #eef2ff;
|
|
421
|
+
--ui-text-indigo: #4338ca;
|
|
422
|
+
--ui-border-indigo: #c7d2fe;
|
|
423
|
+
--ui-fg-indigo: #4f46e5;
|
|
424
|
+
|
|
425
|
+
/*
|
|
426
|
+
* Chart series, in fixed order. The same hues in every variant: a series
|
|
427
|
+
* keeps its colour when the brand changes. Each is at least 3:1 on every
|
|
428
|
+
* surface of every variant, and every pair stays apart under colour vision
|
|
429
|
+
* deficiency (npm run contrast).
|
|
430
|
+
*/
|
|
431
|
+
--ui-chart-1: #6c7ffb;
|
|
432
|
+
--ui-chart-2: #f1515f;
|
|
433
|
+
--ui-chart-3: #009b91;
|
|
434
|
+
--ui-chart-4: #5532bb;
|
|
435
|
+
--ui-chart-5: #7c5801;
|
|
436
|
+
--ui-chart-6: #9a005e;
|
|
437
|
+
--ui-chart-muted: #6b7280;
|
|
438
|
+
--ui-chart-seq-1: #e4f0ff;
|
|
439
|
+
--ui-chart-seq-2: #b3d4ff;
|
|
440
|
+
--ui-chart-seq-3: #77abec;
|
|
441
|
+
--ui-chart-seq-4: #2e69b2;
|
|
442
|
+
--ui-chart-seq-5: #164781;
|
|
443
|
+
--ui-chart-seq-ink-light: #ffffff;
|
|
444
|
+
--ui-chart-seq-ink-dark: #0b1220;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.dark,
|
|
448
|
+
.dark-mode,
|
|
449
|
+
.dark [data-ui-variant],
|
|
450
|
+
.dark-mode [data-ui-variant] {
|
|
451
|
+
color-scheme: dark;
|
|
452
|
+
|
|
453
|
+
/* The frame: warm brown page, a lighter surface, cream text. */
|
|
454
|
+
--ui-text-primary: #f3ede5;
|
|
455
|
+
--ui-text-secondary: var(--color-gray-300);
|
|
456
|
+
--ui-text-tertiary: var(--color-gray-400);
|
|
457
|
+
--ui-text-disabled: var(--color-gray-500);
|
|
458
|
+
--ui-text-placeholder: var(--color-gray-400);
|
|
459
|
+
--ui-text-inverse: #2c2521;
|
|
460
|
+
/* Dark solids are light, so the text on them is the dark page colour. */
|
|
461
|
+
--ui-text-on-solid: var(--color-gray-950);
|
|
462
|
+
--ui-text-brand: var(--color-brand-seed-dark);
|
|
463
|
+
--ui-text-error: var(--color-error-300);
|
|
464
|
+
--ui-text-success: var(--color-success-300);
|
|
465
|
+
--ui-text-warning: var(--color-warning-300);
|
|
466
|
+
|
|
467
|
+
--ui-bg-primary: var(--color-gray-900);
|
|
468
|
+
--ui-bg-secondary: var(--color-gray-950);
|
|
469
|
+
--ui-bg-tertiary: var(--color-gray-800);
|
|
470
|
+
--ui-bg-elevated: #312b26;
|
|
471
|
+
--ui-bg-inverse: #f3ede5;
|
|
472
|
+
--ui-bg-disabled: var(--color-gray-800);
|
|
473
|
+
--ui-bg-overlay: rgb(0 0 0 / 0.65);
|
|
474
|
+
--ui-bg-hover: #36302b;
|
|
475
|
+
--ui-bg-brand-solid: var(--color-brand-seed-dark);
|
|
476
|
+
--ui-bg-brand-solid-hover: color-mix(in oklch, var(--color-brand-seed-dark) 80%, white);
|
|
477
|
+
--ui-bg-brand-subtle: color-mix(in oklch, var(--color-brand-seed) 32%, #211d1a);
|
|
478
|
+
--ui-bg-error-solid: var(--color-error-300);
|
|
479
|
+
--ui-bg-error-solid-hover: var(--color-error-200);
|
|
480
|
+
--ui-bg-error-subtle: color-mix(in oklab, var(--color-error-600) 18%, transparent);
|
|
481
|
+
--ui-bg-success-subtle: color-mix(in oklab, var(--color-success-600) 18%, transparent);
|
|
482
|
+
--ui-bg-warning-subtle: color-mix(in oklab, var(--color-warning-600) 18%, transparent);
|
|
483
|
+
|
|
484
|
+
--ui-border-default: var(--color-gray-800);
|
|
485
|
+
--ui-border-strong: var(--color-gray-400);
|
|
486
|
+
--ui-border-control: var(--color-gray-500);
|
|
487
|
+
--ui-border-subtle: #36302b;
|
|
488
|
+
--ui-border-brand: var(--color-brand-seed-dark);
|
|
489
|
+
--ui-border-error: var(--color-error-400);
|
|
490
|
+
--ui-border-disabled: var(--color-gray-800);
|
|
491
|
+
--ui-border-focus: var(--color-brand-seed-dark);
|
|
492
|
+
|
|
493
|
+
--ui-fg-primary: #f3ede5;
|
|
494
|
+
--ui-fg-secondary: var(--color-gray-300);
|
|
495
|
+
--ui-fg-tertiary: var(--color-gray-400);
|
|
496
|
+
--ui-fg-disabled: var(--color-gray-600);
|
|
497
|
+
--ui-fg-brand: var(--color-brand-seed-dark);
|
|
498
|
+
--ui-fg-on-solid: var(--color-gray-950);
|
|
499
|
+
--ui-fg-error: var(--color-error-400);
|
|
500
|
+
--ui-fg-success: var(--color-success-400);
|
|
501
|
+
--ui-fg-warning: var(--color-warning-400);
|
|
502
|
+
|
|
503
|
+
--ui-logo: #97bf82;
|
|
504
|
+
|
|
505
|
+
--ui-bg-blue-subtle: color-mix(in oklab, #2563eb 18%, transparent);
|
|
506
|
+
--ui-text-blue: #93c5fd;
|
|
507
|
+
--ui-border-blue: #1e40af;
|
|
508
|
+
--ui-fg-blue: #60a5fa;
|
|
509
|
+
--ui-bg-purple-subtle: color-mix(in oklab, #9333ea 18%, transparent);
|
|
510
|
+
--ui-text-purple: #d8b4fe;
|
|
511
|
+
--ui-border-purple: #6b21a8;
|
|
512
|
+
--ui-fg-purple: #c084fc;
|
|
513
|
+
--ui-bg-pink-subtle: color-mix(in oklab, #db2777 18%, transparent);
|
|
514
|
+
--ui-text-pink: #f9a8d4;
|
|
515
|
+
--ui-border-pink: #9d174d;
|
|
516
|
+
--ui-fg-pink: #f472b6;
|
|
517
|
+
--ui-bg-orange-subtle: color-mix(in oklab, #ea580c 18%, transparent);
|
|
518
|
+
--ui-text-orange: #fdba74;
|
|
519
|
+
--ui-border-orange: #9a3412;
|
|
520
|
+
--ui-fg-orange: #fb923c;
|
|
521
|
+
--ui-bg-indigo-subtle: color-mix(in oklab, #4f46e5 18%, transparent);
|
|
522
|
+
--ui-text-indigo: #a5b4fc;
|
|
523
|
+
--ui-border-indigo: #3730a3;
|
|
524
|
+
--ui-fg-indigo: #818cf8;
|
|
525
|
+
|
|
526
|
+
--ui-chart-1: #b3c1ff;
|
|
527
|
+
--ui-chart-2: #ffb862;
|
|
528
|
+
--ui-chart-3: #00f1bf;
|
|
529
|
+
--ui-chart-4: #ac6bf4;
|
|
530
|
+
--ui-chart-5: #8a9f00;
|
|
531
|
+
--ui-chart-6: #ff6791;
|
|
532
|
+
--ui-chart-muted: #9ca3af;
|
|
533
|
+
--ui-chart-seq-1: #182e4b;
|
|
534
|
+
--ui-chart-seq-2: #284e7d;
|
|
535
|
+
--ui-chart-seq-3: #3d73b6;
|
|
536
|
+
--ui-chart-seq-4: #7aaeef;
|
|
537
|
+
--ui-chart-seq-5: #b3d4ff;
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
/* The visitor's text size, from useTextSize or themeInitScript. Default is the type scale above. */
|
|
542
|
+
:root[data-ui-text='compact'] {
|
|
543
|
+
--text-xs: 0.75rem;
|
|
544
|
+
--text-xs--line-height: 1rem;
|
|
545
|
+
--text-sm: 0.8125rem;
|
|
546
|
+
--text-sm--line-height: 1.125rem;
|
|
547
|
+
--text-md: 0.875rem;
|
|
548
|
+
--text-md--line-height: 1.25rem;
|
|
549
|
+
--text-lg: 1rem;
|
|
550
|
+
--text-lg--line-height: 1.5rem;
|
|
551
|
+
--text-xl: 1.25rem;
|
|
552
|
+
--text-xl--line-height: 1.75rem;
|
|
553
|
+
--text-2xl: 1.5rem;
|
|
554
|
+
--text-2xl--line-height: 2rem;
|
|
555
|
+
--text-3xl: 2rem;
|
|
556
|
+
--text-3xl--line-height: 2.375rem;
|
|
557
|
+
}
|