@stagewise/ui 0.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/README.md +135 -0
- package/package.json +80 -0
- package/src/components/ui/accordion.tsx +66 -0
- package/src/components/ui/alert-dialog.tsx +185 -0
- package/src/components/ui/alert.tsx +76 -0
- package/src/components/ui/aspect-ratio.tsx +22 -0
- package/src/components/ui/avatar.tsx +107 -0
- package/src/components/ui/badge.tsx +52 -0
- package/src/components/ui/breadcrumb.tsx +125 -0
- package/src/components/ui/bubble.tsx +128 -0
- package/src/components/ui/button-group.tsx +87 -0
- package/src/components/ui/button.tsx +58 -0
- package/src/components/ui/calendar.tsx +221 -0
- package/src/components/ui/card.tsx +103 -0
- package/src/components/ui/carousel.tsx +240 -0
- package/src/components/ui/chart.tsx +371 -0
- package/src/components/ui/checkbox.tsx +30 -0
- package/src/components/ui/collapsible.tsx +19 -0
- package/src/components/ui/combobox.tsx +295 -0
- package/src/components/ui/command.tsx +348 -0
- package/src/components/ui/context-menu.tsx +271 -0
- package/src/components/ui/dialog.tsx +160 -0
- package/src/components/ui/direction.tsx +4 -0
- package/src/components/ui/drawer.tsx +228 -0
- package/src/components/ui/dropdown-menu.tsx +266 -0
- package/src/components/ui/empty.tsx +104 -0
- package/src/components/ui/field.tsx +236 -0
- package/src/components/ui/hover-card.tsx +51 -0
- package/src/components/ui/input-group.tsx +158 -0
- package/src/components/ui/input-otp.tsx +85 -0
- package/src/components/ui/input.tsx +20 -0
- package/src/components/ui/item.tsx +201 -0
- package/src/components/ui/kbd.tsx +26 -0
- package/src/components/ui/label.tsx +20 -0
- package/src/components/ui/marker.tsx +71 -0
- package/src/components/ui/menubar.tsx +280 -0
- package/src/components/ui/message.tsx +92 -0
- package/src/components/ui/native-select.tsx +61 -0
- package/src/components/ui/navigation-menu.tsx +168 -0
- package/src/components/ui/pagination.tsx +130 -0
- package/src/components/ui/popover.tsx +88 -0
- package/src/components/ui/progress.tsx +83 -0
- package/src/components/ui/questionnaire.tsx +324 -0
- package/src/components/ui/radio-group.tsx +36 -0
- package/src/components/ui/resizable.tsx +50 -0
- package/src/components/ui/scroll-area.tsx +53 -0
- package/src/components/ui/select.tsx +201 -0
- package/src/components/ui/separator.tsx +23 -0
- package/src/components/ui/sheet.tsx +136 -0
- package/src/components/ui/sidebar.tsx +723 -0
- package/src/components/ui/skeleton.tsx +13 -0
- package/src/components/ui/slider.tsx +52 -0
- package/src/components/ui/spinner.tsx +10 -0
- package/src/components/ui/switch.tsx +32 -0
- package/src/components/ui/table.tsx +114 -0
- package/src/components/ui/tabs.tsx +82 -0
- package/src/components/ui/textarea.tsx +18 -0
- package/src/components/ui/toast.tsx +234 -0
- package/src/components/ui/toggle-group.tsx +87 -0
- package/src/components/ui/toggle.tsx +43 -0
- package/src/components/ui/tooltip.tsx +66 -0
- package/src/fonts/OFL.txt +92 -0
- package/src/fonts/geist-variable-italic.woff2 +0 -0
- package/src/fonts/geist-variable.woff2 +0 -0
- package/src/hooks/use-mobile.ts +19 -0
- package/src/icons/custom/index.ts +1 -0
- package/src/icons/custom/ui-outline-18/Icon.tsx +28 -0
- package/src/icons/custom/ui-outline-18/IconBrowserTab.tsx +40 -0
- package/src/icons/custom/ui-outline-18/IconNewTerminal.tsx +77 -0
- package/src/icons/custom/ui-outline-18/index.ts +3 -0
- package/src/icons/index.ts +52 -0
- package/src/icons/nucleo/LICENSE.md +29 -0
- package/src/icons/nucleo/core-outline-24/Icon.tsx +27 -0
- package/src/icons/nucleo/core-outline-24/IconArrowUpOutline24.tsx +36 -0
- package/src/icons/nucleo/core-outline-24/IconBluetoothOutline24.tsx +26 -0
- package/src/icons/nucleo/core-outline-24/IconTrash2Outline24.tsx +76 -0
- package/src/icons/nucleo/core-outline-24/IconUsbOutline24.tsx +64 -0
- package/src/icons/nucleo/core-outline-24/index.ts +5 -0
- package/src/icons/nucleo/index.ts +48 -0
- package/src/icons/nucleo/micro-bold/Icon.tsx +27 -0
- package/src/icons/nucleo/micro-bold/IconArrowLeft.tsx +28 -0
- package/src/icons/nucleo/micro-bold/IconArrowRight.tsx +28 -0
- package/src/icons/nucleo/micro-bold/IconArrowRotateAnticlockwise.tsx +27 -0
- package/src/icons/nucleo/micro-bold/IconChevronLeft.tsx +16 -0
- package/src/icons/nucleo/micro-bold/IconChevronRight.tsx +16 -0
- package/src/icons/nucleo/micro-bold/IconClipboardContent.tsx +59 -0
- package/src/icons/nucleo/micro-bold/IconMagicWandSparkle.tsx +44 -0
- package/src/icons/nucleo/micro-bold/IconTriangleWarning.tsx +30 -0
- package/src/icons/nucleo/micro-bold/IconXmark.tsx +31 -0
- package/src/icons/nucleo/micro-bold/index.ts +10 -0
- package/src/icons/nucleo/social-media/Icon.tsx +27 -0
- package/src/icons/nucleo/social-media/IconApple.tsx +12 -0
- package/src/icons/nucleo/social-media/IconGithub.tsx +11 -0
- package/src/icons/nucleo/social-media/IconGoogle.tsx +20 -0
- package/src/icons/nucleo/social-media/index.ts +4 -0
- package/src/icons/nucleo/ui-fill-18/Icon.tsx +27 -0
- package/src/icons/nucleo/ui-fill-18/IconArrowLeftFill18.tsx +17 -0
- package/src/icons/nucleo/ui-fill-18/IconArrowRightFill18.tsx +17 -0
- package/src/icons/nucleo/ui-fill-18/IconCheckFill18.tsx +12 -0
- package/src/icons/nucleo/ui-fill-18/IconChevronDownFill18.tsx +12 -0
- package/src/icons/nucleo/ui-fill-18/IconGlobe2Fill18.tsx +17 -0
- package/src/icons/nucleo/ui-fill-18/IconLinkFill18.tsx +21 -0
- package/src/icons/nucleo/ui-fill-18/IconMediaStopFill18.tsx +17 -0
- package/src/icons/nucleo/ui-fill-18/IconPinTackFill18.tsx +17 -0
- package/src/icons/nucleo/ui-fill-18/IconPlusFill18.tsx +17 -0
- package/src/icons/nucleo/ui-fill-18/IconVolumeUpFill18.tsx +22 -0
- package/src/icons/nucleo/ui-fill-18/IconVolumeXmarkFill18.tsx +17 -0
- package/src/icons/nucleo/ui-fill-18/IconXmarkFill18.tsx +17 -0
- package/src/icons/nucleo/ui-fill-18/index.ts +13 -0
- package/src/icons/nucleo/ui-fill-duo-18/Icon.tsx +27 -0
- package/src/icons/nucleo/ui-fill-duo-18/IconBrainNodesFillDuo18.tsx +32 -0
- package/src/icons/nucleo/ui-fill-duo-18/IconCloudeCodeFillDuo18.tsx +25 -0
- package/src/icons/nucleo/ui-fill-duo-18/IconDatabaseFillDuo18.tsx +24 -0
- package/src/icons/nucleo/ui-fill-duo-18/IconDownload4FillDuo18.tsx +18 -0
- package/src/icons/nucleo/ui-fill-duo-18/IconEarthFillDuo18.tsx +20 -0
- package/src/icons/nucleo/ui-fill-duo-18/IconFinderFillDuo18.tsx +36 -0
- package/src/icons/nucleo/ui-fill-duo-18/IconFolderContent2FillDuo18.tsx +22 -0
- package/src/icons/nucleo/ui-fill-duo-18/IconGear3FillDuo18.tsx +18 -0
- package/src/icons/nucleo/ui-fill-duo-18/IconHistoryFillDuo18.tsx +20 -0
- package/src/icons/nucleo/ui-fill-duo-18/IconLockKeyFillDuo18.tsx +24 -0
- package/src/icons/nucleo/ui-fill-duo-18/IconNoteFillDuo18.tsx +34 -0
- package/src/icons/nucleo/ui-fill-duo-18/IconPenDrawSparkleFillDuo18.tsx +34 -0
- package/src/icons/nucleo/ui-fill-duo-18/IconServerFillDuo18.tsx +22 -0
- package/src/icons/nucleo/ui-fill-duo-18/IconSpace3dFillDuo18.tsx +24 -0
- package/src/icons/nucleo/ui-fill-duo-18/IconTriangleWarningFillDuo18.tsx +24 -0
- package/src/icons/nucleo/ui-fill-duo-18/index.ts +16 -0
- package/src/icons/nucleo/ui-outline-18/Icon.tsx +27 -0
- package/src/icons/nucleo/ui-outline-18/IconArrowDownOutline18.tsx +33 -0
- package/src/icons/nucleo/ui-outline-18/IconArrowRightOutline18.tsx +34 -0
- package/src/icons/nucleo/ui-outline-18/IconArrowUpRightOutline18.tsx +34 -0
- package/src/icons/nucleo/ui-outline-18/IconArrowsOppositeDirectionXOutline18.tsx +54 -0
- package/src/icons/nucleo/ui-outline-18/IconArrowsToCenterOutline18.tsx +101 -0
- package/src/icons/nucleo/ui-outline-18/IconBanOutline18.tsx +37 -0
- package/src/icons/nucleo/ui-outline-18/IconBellDotOutline18.tsx +43 -0
- package/src/icons/nucleo/ui-outline-18/IconBookOpen5Outline18.tsx +40 -0
- package/src/icons/nucleo/ui-outline-18/IconBookOpenOutline18.tsx +32 -0
- package/src/icons/nucleo/ui-outline-18/IconBooks2Outline18.tsx +100 -0
- package/src/icons/nucleo/ui-outline-18/IconBoxSparkleOutline18.tsx +75 -0
- package/src/icons/nucleo/ui-outline-18/IconBrainOutline18.tsx +57 -0
- package/src/icons/nucleo/ui-outline-18/IconBranchOutOutline18.tsx +52 -0
- package/src/icons/nucleo/ui-outline-18/IconBugOutline18.tsx +98 -0
- package/src/icons/nucleo/ui-outline-18/IconCameraOutline18.tsx +42 -0
- package/src/icons/nucleo/ui-outline-18/IconChartPieOutline18.tsx +30 -0
- package/src/icons/nucleo/ui-outline-18/IconCheck2Outline18.tsx +23 -0
- package/src/icons/nucleo/ui-outline-18/IconCheckOutline18.tsx +23 -0
- package/src/icons/nucleo/ui-outline-18/IconChevronDownOutline18.tsx +22 -0
- package/src/icons/nucleo/ui-outline-18/IconChevronExpandYOutline18.tsx +31 -0
- package/src/icons/nucleo/ui-outline-18/IconChevronLeftOutline18.tsx +22 -0
- package/src/icons/nucleo/ui-outline-18/IconChevronReduceYOutline18.tsx +31 -0
- package/src/icons/nucleo/ui-outline-18/IconChevronRightOutline18.tsx +22 -0
- package/src/icons/nucleo/ui-outline-18/IconChevronUpOutline18.tsx +22 -0
- package/src/icons/nucleo/ui-outline-18/IconCircleCheckOutline18.tsx +32 -0
- package/src/icons/nucleo/ui-outline-18/IconCircleInfoOutline18.tsx +37 -0
- package/src/icons/nucleo/ui-outline-18/IconCircleQuestionOutline18.tsx +39 -0
- package/src/icons/nucleo/ui-outline-18/IconClipboardContentOutline18.tsx +60 -0
- package/src/icons/nucleo/ui-outline-18/IconClipboardOutline18.tsx +37 -0
- package/src/icons/nucleo/ui-outline-18/IconClone2Outline18.tsx +32 -0
- package/src/icons/nucleo/ui-outline-18/IconCloneDashed2Outline18.tsx +49 -0
- package/src/icons/nucleo/ui-outline-18/IconCodeBranchOutline18.tsx +65 -0
- package/src/icons/nucleo/ui-outline-18/IconCodeCommitOutline18.tsx +48 -0
- package/src/icons/nucleo/ui-outline-18/IconColorPaletteOutline18.tsx +56 -0
- package/src/icons/nucleo/ui-outline-18/IconConnection2Outline18.tsx +43 -0
- package/src/icons/nucleo/ui-outline-18/IconCopyIdOutline18.tsx +52 -0
- package/src/icons/nucleo/ui-outline-18/IconCopyOutline18.tsx +32 -0
- package/src/icons/nucleo/ui-outline-18/IconCreditCardOutline18.tsx +61 -0
- package/src/icons/nucleo/ui-outline-18/IconDatabaseSearchOutline18.tsx +64 -0
- package/src/icons/nucleo/ui-outline-18/IconDotsOutline18.tsx +46 -0
- package/src/icons/nucleo/ui-outline-18/IconDownload4Outline18.tsx +43 -0
- package/src/icons/nucleo/ui-outline-18/IconEarthOutline18.tsx +47 -0
- package/src/icons/nucleo/ui-outline-18/IconEarthSearchOutline18.tsx +61 -0
- package/src/icons/nucleo/ui-outline-18/IconEnvelopeOutline18.tsx +38 -0
- package/src/icons/nucleo/ui-outline-18/IconEye2Outline18.tsx +34 -0
- package/src/icons/nucleo/ui-outline-18/IconEyeOutline18.tsx +32 -0
- package/src/icons/nucleo/ui-outline-18/IconFilePenOutline18.tsx +56 -0
- package/src/icons/nucleo/ui-outline-18/IconFileSearchOutline18.tsx +64 -0
- package/src/icons/nucleo/ui-outline-18/IconFloppyDiskOutline18.tsx +40 -0
- package/src/icons/nucleo/ui-outline-18/IconFolder5Outline18.tsx +37 -0
- package/src/icons/nucleo/ui-outline-18/IconFolderCloudOutline18.tsx +39 -0
- package/src/icons/nucleo/ui-outline-18/IconFolderOpenOutline18.tsx +31 -0
- package/src/icons/nucleo/ui-outline-18/IconFolderOutline18.tsx +32 -0
- package/src/icons/nucleo/ui-outline-18/IconFolderPenOutline18.tsx +40 -0
- package/src/icons/nucleo/ui-outline-18/IconFolderPlusOutline18.tsx +48 -0
- package/src/icons/nucleo/ui-outline-18/IconFolderSearchOutline18.tsx +48 -0
- package/src/icons/nucleo/ui-outline-18/IconGear2Outline18.tsx +193 -0
- package/src/icons/nucleo/ui-outline-18/IconGear3Outline18.tsx +32 -0
- package/src/icons/nucleo/ui-outline-18/IconGlobe3Outline18.tsx +61 -0
- package/src/icons/nucleo/ui-outline-18/IconGripDotsVerticalOutline18.tsx +74 -0
- package/src/icons/nucleo/ui-outline-18/IconHardDriveOutline18.tsx +40 -0
- package/src/icons/nucleo/ui-outline-18/IconHelpChatOutline18.tsx +47 -0
- package/src/icons/nucleo/ui-outline-18/IconHotDrinkOutline18.tsx +60 -0
- package/src/icons/nucleo/ui-outline-18/IconImageSparkle3Outline18.tsx +41 -0
- package/src/icons/nucleo/ui-outline-18/IconKey2Outline18.tsx +61 -0
- package/src/icons/nucleo/ui-outline-18/IconLoader6Outline18.tsx +23 -0
- package/src/icons/nucleo/ui-outline-18/IconLocation2Outline18.tsx +45 -0
- package/src/icons/nucleo/ui-outline-18/IconLockKeyOutline18.tsx +58 -0
- package/src/icons/nucleo/ui-outline-18/IconMagicWandOutline18.tsx +32 -0
- package/src/icons/nucleo/ui-outline-18/IconMagnifierMinusOutline18.tsx +39 -0
- package/src/icons/nucleo/ui-outline-18/IconMagnifierOutline18.tsx +32 -0
- package/src/icons/nucleo/ui-outline-18/IconMagnifierPlusOutline18.tsx +48 -0
- package/src/icons/nucleo/ui-outline-18/IconMicrophone3Outline18.tsx +57 -0
- package/src/icons/nucleo/ui-outline-18/IconMinusOutline18.tsx +25 -0
- package/src/icons/nucleo/ui-outline-18/IconMoonOutline18.tsx +23 -0
- package/src/icons/nucleo/ui-outline-18/IconMsgSleepOutline18.tsx +41 -0
- package/src/icons/nucleo/ui-outline-18/IconMsgWritingOutline18.tsx +42 -0
- package/src/icons/nucleo/ui-outline-18/IconMusicOutline18.tsx +67 -0
- package/src/icons/nucleo/ui-outline-18/IconOctagonWarningOutline18.tsx +35 -0
- package/src/icons/nucleo/ui-outline-18/IconOpenExternalOutline18.tsx +51 -0
- package/src/icons/nucleo/ui-outline-18/IconOpenRectArrowInOutline18.tsx +43 -0
- package/src/icons/nucleo/ui-outline-18/IconPanelLeftOutline18.tsx +39 -0
- package/src/icons/nucleo/ui-outline-18/IconPaperclip2Outline18.tsx +22 -0
- package/src/icons/nucleo/ui-outline-18/IconPen2Outline18.tsx +35 -0
- package/src/icons/nucleo/ui-outline-18/IconPenDrawSparkleOutline18.tsx +46 -0
- package/src/icons/nucleo/ui-outline-18/IconPenOutline18.tsx +23 -0
- package/src/icons/nucleo/ui-outline-18/IconPenPlusOutline18.tsx +47 -0
- package/src/icons/nucleo/ui-outline-18/IconPenWriting3Outline18.tsx +31 -0
- package/src/icons/nucleo/ui-outline-18/IconPhoneOutline18.tsx +23 -0
- package/src/icons/nucleo/ui-outline-18/IconPinTackOutline18.tsx +35 -0
- package/src/icons/nucleo/ui-outline-18/IconPinTackSlashOutline18.tsx +47 -0
- package/src/icons/nucleo/ui-outline-18/IconPlusOutline18.tsx +38 -0
- package/src/icons/nucleo/ui-outline-18/IconPowerOffOutline18.tsx +36 -0
- package/src/icons/nucleo/ui-outline-18/IconPresentationScreenVideoOutline18.tsx +55 -0
- package/src/icons/nucleo/ui-outline-18/IconPuzzlePieceOutline18.tsx +22 -0
- package/src/icons/nucleo/ui-outline-18/IconRedoOutline18.tsx +32 -0
- package/src/icons/nucleo/ui-outline-18/IconRefreshAnticlockwiseOutline18.tsx +48 -0
- package/src/icons/nucleo/ui-outline-18/IconReuseOutline18.tsx +50 -0
- package/src/icons/nucleo/ui-outline-18/IconSearchContentOutline18.tsx +81 -0
- package/src/icons/nucleo/ui-outline-18/IconServerOutline18.tsx +73 -0
- package/src/icons/nucleo/ui-outline-18/IconSideProfileSparkleOutline18.tsx +28 -0
- package/src/icons/nucleo/ui-outline-18/IconSidebarLeftHideOutline18.tsx +49 -0
- package/src/icons/nucleo/ui-outline-18/IconSidebarLeftShowOutline18.tsx +49 -0
- package/src/icons/nucleo/ui-outline-18/IconSidebarRightHideOutline18.tsx +48 -0
- package/src/icons/nucleo/ui-outline-18/IconSidebarRightShowOutline18.tsx +48 -0
- package/src/icons/nucleo/ui-outline-18/IconSparkleOutline18.tsx +43 -0
- package/src/icons/nucleo/ui-outline-18/IconSpeakerOutline18.tsx +47 -0
- package/src/icons/nucleo/ui-outline-18/IconSplitViewOutline18.tsx +32 -0
- package/src/icons/nucleo/ui-outline-18/IconSquareCodeOutline18.tsx +40 -0
- package/src/icons/nucleo/ui-outline-18/IconSquareDashedOutline18.tsx +94 -0
- package/src/icons/nucleo/ui-outline-18/IconSquareTerminalOutline18.tsx +48 -0
- package/src/icons/nucleo/ui-outline-18/IconSunOutline18.tsx +121 -0
- package/src/icons/nucleo/ui-outline-18/IconTerminalOutline18.tsx +35 -0
- package/src/icons/nucleo/ui-outline-18/IconTextAlignLeft2Outline18.tsx +60 -0
- package/src/icons/nucleo/ui-outline-18/IconTextBgColorOutline18.tsx +48 -0
- package/src/icons/nucleo/ui-outline-18/IconTextColorOutline18.tsx +48 -0
- package/src/icons/nucleo/ui-outline-18/IconThumbsDownOutline18.tsx +36 -0
- package/src/icons/nucleo/ui-outline-18/IconThumbsUpOutline18.tsx +37 -0
- package/src/icons/nucleo/ui-outline-18/IconTrashOutline18.tsx +41 -0
- package/src/icons/nucleo/ui-outline-18/IconTriangleWarningOutline18.tsx +37 -0
- package/src/icons/nucleo/ui-outline-18/IconUndoOutline18.tsx +32 -0
- package/src/icons/nucleo/ui-outline-18/IconVersionsOutline18.tsx +46 -0
- package/src/icons/nucleo/ui-outline-18/IconVideoOutline18.tsx +45 -0
- package/src/icons/nucleo/ui-outline-18/IconWaveformLinesOutline18.tsx +80 -0
- package/src/icons/nucleo/ui-outline-18/IconWindowCodeOutline18.tsx +62 -0
- package/src/icons/nucleo/ui-outline-18/IconWindowPointerOutline18.tsx +51 -0
- package/src/icons/nucleo/ui-outline-18/IconXmarkOutline18.tsx +38 -0
- package/src/icons/nucleo/ui-outline-18/index.ts +128 -0
- package/src/index.ts +66 -0
- package/src/lib/utils.ts +6 -0
- package/src/plugin/index.ts +611 -0
- package/src/styles/animations.css +59 -0
- package/src/styles/bridge.css +117 -0
- package/src/styles/derived-utilities.css +179 -0
- package/src/styles/fonts.css +23 -0
- package/src/styles/index.css +72 -0
- package/src/styles/palette.css +189 -0
- package/src/styles/tailwind-tokens.css +56 -0
- package/src/styles/theme.css +103 -0
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bridge Layer — Maps shadcn/ui token names to stage-ui color system.
|
|
3
|
+
*
|
|
4
|
+
* This file defines the shadcn semantic tokens (--background, --primary, etc.)
|
|
5
|
+
* using the stage-ui OKLCH palette and theme tokens as source of truth.
|
|
6
|
+
*
|
|
7
|
+
* Components keep using shadcn class names (bg-background, text-primary, etc.)
|
|
8
|
+
* while the actual color values come from the stage-ui dynamic color system.
|
|
9
|
+
*
|
|
10
|
+
* IMPORTANT: Bridge tokens reference palette-level tokens (--color-base-*,
|
|
11
|
+
* --color-primary-*) NOT theme-level tokens (--color-background, --color-foreground)
|
|
12
|
+
* to avoid circular references with the @theme inline block that maps
|
|
13
|
+
* --color-* utility names back to these shadcn tokens.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
:root {
|
|
17
|
+
/* Surface tokens — card/popover use a subtle mix between base-50 and base-100
|
|
18
|
+
for less contrast against the background */
|
|
19
|
+
--background: var(--color-base-50);
|
|
20
|
+
--foreground: var(--color-base-900);
|
|
21
|
+
--card: var(--color-base-50);
|
|
22
|
+
--card-foreground: var(--color-base-900);
|
|
23
|
+
--popover: var(--color-base-50);
|
|
24
|
+
--popover-foreground: var(--color-base-900);
|
|
25
|
+
|
|
26
|
+
/* Primary (uses the stage-ui dynamic primary scale) */
|
|
27
|
+
--primary: var(--color-primary-solid);
|
|
28
|
+
--primary-foreground: var(--color-solid-foreground);
|
|
29
|
+
|
|
30
|
+
/* Secondary / muted / accent (surface-derived) */
|
|
31
|
+
--secondary: var(--color-base-150);
|
|
32
|
+
--secondary-foreground: var(--color-base-900);
|
|
33
|
+
--muted: var(--color-base-100);
|
|
34
|
+
--muted-foreground: var(--color-base-500);
|
|
35
|
+
--accent: var(--color-base-100);
|
|
36
|
+
--accent-foreground: var(--color-base-900);
|
|
37
|
+
|
|
38
|
+
/* Destructive (maps to stage-ui error semantic) */
|
|
39
|
+
--destructive: var(--color-error-solid);
|
|
40
|
+
--destructive-foreground: var(--color-base-50);
|
|
41
|
+
|
|
42
|
+
/* Border / input / ring — reference palette tokens directly to avoid
|
|
43
|
+
circular refs with @theme inline (--color-border → --border → --color-border) */
|
|
44
|
+
--border: var(--color-base-200);
|
|
45
|
+
--input: var(--color-base-200);
|
|
46
|
+
--ring: var(--color-primary-solid);
|
|
47
|
+
|
|
48
|
+
/* Chart colors (mapped to stage-ui primary/semantic hues) */
|
|
49
|
+
--chart-1: var(--color-primary-400);
|
|
50
|
+
--chart-2: var(--color-success-solid);
|
|
51
|
+
--chart-3: var(--color-info-solid);
|
|
52
|
+
--chart-4: var(--color-warning-solid);
|
|
53
|
+
--chart-5: var(--color-error-solid);
|
|
54
|
+
|
|
55
|
+
/* Sidebar */
|
|
56
|
+
--sidebar: var(--color-base-100);
|
|
57
|
+
--sidebar-foreground: var(--color-base-900);
|
|
58
|
+
--sidebar-primary: var(--color-primary-solid);
|
|
59
|
+
--sidebar-primary-foreground: var(--color-solid-foreground);
|
|
60
|
+
--sidebar-accent: var(--color-base-150);
|
|
61
|
+
--sidebar-accent-foreground: var(--color-base-900);
|
|
62
|
+
--sidebar-border: var(--color-base-200);
|
|
63
|
+
--sidebar-ring: var(--color-primary-solid);
|
|
64
|
+
|
|
65
|
+
/* Radius */
|
|
66
|
+
--radius: 0.625rem;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
:root.dark {
|
|
70
|
+
/* Surface tokens — card/popover use a subtle mix between base-800 and base-700
|
|
71
|
+
for less contrast against the background */
|
|
72
|
+
--background: var(--color-base-800);
|
|
73
|
+
--foreground: var(--color-base-200);
|
|
74
|
+
--card: var(--color-base-800);
|
|
75
|
+
--card-foreground: var(--color-base-200);
|
|
76
|
+
--popover: var(--color-base-800);
|
|
77
|
+
--popover-foreground: var(--color-base-200);
|
|
78
|
+
|
|
79
|
+
/* Primary */
|
|
80
|
+
--primary: var(--color-primary-solid);
|
|
81
|
+
--primary-foreground: var(--color-solid-foreground);
|
|
82
|
+
|
|
83
|
+
/* Secondary / muted / accent */
|
|
84
|
+
--secondary: var(--color-base-600);
|
|
85
|
+
--secondary-foreground: var(--color-base-200);
|
|
86
|
+
--muted: var(--color-base-600);
|
|
87
|
+
--muted-foreground: var(--color-base-350);
|
|
88
|
+
--accent: var(--color-base-600);
|
|
89
|
+
--accent-foreground: var(--color-base-200);
|
|
90
|
+
|
|
91
|
+
/* Destructive */
|
|
92
|
+
--destructive: var(--color-error-solid);
|
|
93
|
+
--destructive-foreground: var(--color-base-50);
|
|
94
|
+
|
|
95
|
+
/* Border / input / ring — reference palette tokens directly to avoid
|
|
96
|
+
circular refs with @theme inline */
|
|
97
|
+
--border: var(--color-base-600);
|
|
98
|
+
--input: var(--color-base-600);
|
|
99
|
+
--ring: var(--color-primary-solid);
|
|
100
|
+
|
|
101
|
+
/* Chart colors */
|
|
102
|
+
--chart-1: var(--color-primary-400);
|
|
103
|
+
--chart-2: var(--color-success-solid);
|
|
104
|
+
--chart-3: var(--color-info-solid);
|
|
105
|
+
--chart-4: var(--color-warning-solid);
|
|
106
|
+
--chart-5: var(--color-error-solid);
|
|
107
|
+
|
|
108
|
+
/* Sidebar */
|
|
109
|
+
--sidebar: var(--color-base-700);
|
|
110
|
+
--sidebar-foreground: var(--color-base-200);
|
|
111
|
+
--sidebar-primary: var(--color-primary-solid);
|
|
112
|
+
--sidebar-primary-foreground: var(--color-solid-foreground);
|
|
113
|
+
--sidebar-accent: color-mix(in oklab, var(--color-base-700) 60%, var(--color-base-600));
|
|
114
|
+
--sidebar-accent-foreground: var(--color-base-200);
|
|
115
|
+
--sidebar-border: var(--color-border);
|
|
116
|
+
--sidebar-ring: var(--color-primary-solid);
|
|
117
|
+
}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Auto-derived color utilities
|
|
3
|
+
* These derive border, ring, text, and background colors from the element's
|
|
4
|
+
* background color (--cm-bg-color) which is automatically set by bg-* utilities
|
|
5
|
+
* via the color-modifiers plugin.
|
|
6
|
+
*
|
|
7
|
+
* Falls back to semantic colors when no background is set.
|
|
8
|
+
*
|
|
9
|
+
* Usage examples:
|
|
10
|
+
* border border-derived-subtle - subtle border derived from background
|
|
11
|
+
* border border-derived - regular border derived from background
|
|
12
|
+
* ring ring-derived-strong - strong ring derived from background
|
|
13
|
+
* hover:bg-hover-derived - hover state background
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
:root {
|
|
17
|
+
--hover-text-derived-l: -0.09;
|
|
18
|
+
--hover-text-derived-c: -0.01;
|
|
19
|
+
|
|
20
|
+
--text-derived-lighter-subtle-l: 0.06;
|
|
21
|
+
--text-derived-lighter-subtle-c: 0.011;
|
|
22
|
+
|
|
23
|
+
--text-derived-lighter-l: 0.09;
|
|
24
|
+
--text-derived-lighter-c: 0.014;
|
|
25
|
+
|
|
26
|
+
--active-text-derived-l: -0.011;
|
|
27
|
+
--active-text-derived-c: -0.001;
|
|
28
|
+
|
|
29
|
+
--hover-derived-l: -0.03;
|
|
30
|
+
--hover-derived-c: -0.003;
|
|
31
|
+
|
|
32
|
+
--active-derived-l: -0.05;
|
|
33
|
+
--active-derived-c: -0.005;
|
|
34
|
+
|
|
35
|
+
--shortcut-solid-derived-l: 0.06;
|
|
36
|
+
--shortcut-solid-derived-c: 0.011;
|
|
37
|
+
--shortcut-solid-hover-derived-l: 0.03;
|
|
38
|
+
--shortcut-solid-hover-derived-c: 0.008;
|
|
39
|
+
--shortcut-solid-active-derived-l: 0.01;
|
|
40
|
+
--shortcut-solid-active-derived-c: 0.006;
|
|
41
|
+
|
|
42
|
+
--border-derived-subtle-l: -0.020;
|
|
43
|
+
--border-derived-subtle-c: -0.003;
|
|
44
|
+
|
|
45
|
+
--border-derived-l: -0.040;
|
|
46
|
+
--border-derived-c: -0.007;
|
|
47
|
+
|
|
48
|
+
--border-derived-strong-l: -0.060;
|
|
49
|
+
--border-derived-strong-c: -0.010;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:root.dark {
|
|
53
|
+
--hover-text-derived-l: 0.09;
|
|
54
|
+
--hover-text-derived-c: 0.01;
|
|
55
|
+
|
|
56
|
+
--active-text-derived-l: 0.007;
|
|
57
|
+
--active-text-derived-c: 0.001;
|
|
58
|
+
|
|
59
|
+
--hover-derived-l: 0.031;
|
|
60
|
+
--hover-derived-c: 0.001;
|
|
61
|
+
|
|
62
|
+
--active-derived-l: 0.07;
|
|
63
|
+
--active-derived-c: 0.001;
|
|
64
|
+
|
|
65
|
+
--shortcut-solid-derived-l: -0.06;
|
|
66
|
+
--shortcut-solid-derived-c: -0.011;
|
|
67
|
+
--shortcut-solid-hover-derived-l: -0.03;
|
|
68
|
+
--shortcut-solid-hover-derived-c: -0.008;
|
|
69
|
+
--shortcut-solid-active-derived-l: 0.01;
|
|
70
|
+
--shortcut-solid-active-derived-c: -0.006;
|
|
71
|
+
|
|
72
|
+
--border-derived-subtle-l: 0.09;
|
|
73
|
+
--border-derived-subtle-c: 0.014;
|
|
74
|
+
|
|
75
|
+
--border-derived-l: 0.12;
|
|
76
|
+
--border-derived-c: 0.018;
|
|
77
|
+
|
|
78
|
+
--border-derived-strong-l: 0.15;
|
|
79
|
+
--border-derived-strong-c: 0.022;
|
|
80
|
+
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* Border utilities */
|
|
84
|
+
@utility border-derived-subtle {
|
|
85
|
+
border-color: oklch(from var(--cm-bg-color, var(--color-border)) calc(l + var(--border-derived-subtle-l)) calc(c + var(--border-derived-subtle-c)) h);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@utility border-derived {
|
|
89
|
+
border-color: oklch(from var(--cm-bg-color, var(--color-border)) calc(l + var(--border-derived-l)) calc(c + var(--border-derived-c)) h);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@utility border-derived-strong {
|
|
93
|
+
border-color: oklch(from var(--cm-bg-color, var(--color-border)) calc(l + var(--border-derived-strong-l)) calc(c + var(--border-derived-strong-c)) h);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@utility border-derived-lighter-subtle {
|
|
97
|
+
border-color: oklch(from var(--cm-bg-color, var(--color-border-subtle)) calc(l + 0.06) calc(c + 0.011) h);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@utility border-derived-lighter {
|
|
101
|
+
border-color: oklch(from var(--cm-bg-color, var(--color-border-subtle)) calc(l + 0.09) calc(c + 0.014) h);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* Ring utilities */
|
|
105
|
+
@utility ring-derived-subtle {
|
|
106
|
+
--tw-ring-color: oklch(from var(--cm-bg-color, var(--color-border-subtle)) calc(l + var(--border-derived-subtle-l)) calc(c + var(--border-derived-subtle-c)) h);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@utility ring-derived {
|
|
110
|
+
--tw-ring-color: oklch(from var(--cm-bg-color, var(--color-border)) calc(l + var(--border-derived-l)) calc(c + var(--border-derived-c)) h);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@utility ring-derived-strong {
|
|
114
|
+
--tw-ring-color: oklch(from var(--cm-bg-color, var(--color-border)) calc(l + var(--border-derived-strong-l)) calc(c + var(--border-derived-strong-c)) h);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@utility ring-derived-lighter-subtle {
|
|
118
|
+
--tw-ring-color: oklch(from var(--cm-bg-color, var(--color-border-subtle)) calc(l + 0.06) calc(c + 0.011) h);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
@utility ring-derived-lighter {
|
|
122
|
+
--tw-ring-color: oklch(from var(--cm-bg-color, var(--color-border-subtle)) calc(l + 0.09) calc(c + 0.014) h);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* Text utilities */
|
|
126
|
+
@utility text-hover-derived {
|
|
127
|
+
color: oklch(from var(--cm-text-color, var(--color-foreground)) calc(l + var(--hover-text-derived-l)) calc(c + var(--hover-text-derived-c)) h);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
@utility text-active-derived {
|
|
131
|
+
color: oklch(from var(--cm-text-color, var(--color-foreground)) calc(l + var(--active-text-derived-l)) calc(c + var(--active-text-derived-c)) h);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@utility text-derived-lighter-subtle {
|
|
135
|
+
color: oklch(from var(--cm-text-color, var(--color-foreground)) calc(l + var(--text-derived-lighter-subtle-l)) calc(c + var(--text-derived-lighter-subtle-c)) h);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
@utility text-derived-lighter {
|
|
139
|
+
color: oklch(from var(--cm-text-color, var(--color-foreground)) calc(l + var(--text-derived-lighter-l)) calc(c + var(--text-derived-lighter-c)) h);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* Background utilities */
|
|
143
|
+
@utility bg-hover-derived {
|
|
144
|
+
background-color: oklch(from var(--cm-bg-color, var(--color-border-subtle)) calc(l + var(--hover-derived-l)) calc(c + var(--hover-derived-c)) h);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
@utility bg-active-derived {
|
|
148
|
+
background-color: oklch(from var(--cm-bg-color, var(--color-border-subtle)) calc(l + var(--active-derived-l)) calc(c + var(--active-derived-c)) h);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@utility bg-derived-lighter-subtle {
|
|
152
|
+
background-color: oklch(from var(--cm-bg-color, var(--color-border-subtle)) calc(l + 0.06) calc(c + 0.011) h);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
@utility bg-derived-lighter {
|
|
156
|
+
background-color: oklch(from var(--cm-bg-color, var(--color-border-subtle)) calc(l + 0.09) calc(c + 0.014) h);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@utility bg-derived-darker-subtle {
|
|
160
|
+
background-color: oklch(from var(--cm-bg-color, var(--color-border-subtle)) calc(l - 0.06) calc(c - 0.011) h);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
@utility bg-derived-darker {
|
|
164
|
+
background-color: oklch(from var(--cm-bg-color, var(--color-border-subtle)) calc(l - 0.09) calc(c - 0.014) h);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/* stylelint-disable scss/at-rule-no-unknown -- Tailwind CSS v4 @utility directives. */
|
|
168
|
+
@utility bg-shortcut-solid-derived {
|
|
169
|
+
background-color: oklch(from var(--cm-bg-color, var(--color-border-subtle)) calc(l + var(--shortcut-solid-derived-l)) calc(c + var(--shortcut-solid-derived-c)) h);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
@utility bg-shortcut-solid-hover-derived {
|
|
173
|
+
background-color: oklch(from var(--cm-bg-color, var(--color-border-subtle)) calc(l + var(--shortcut-solid-hover-derived-l)) calc(c + var(--shortcut-solid-hover-derived-c)) h);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
@utility bg-shortcut-solid-active-derived {
|
|
177
|
+
background-color: oklch(from var(--cm-bg-color, var(--color-border-subtle)) calc(l + var(--shortcut-solid-active-derived-l)) calc(c + var(--shortcut-solid-active-derived-c)) h);
|
|
178
|
+
}
|
|
179
|
+
/* stylelint-enable scss/at-rule-no-unknown */
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @font-face declarations for Geist Variable (bundled).
|
|
3
|
+
*
|
|
4
|
+
* The woff2 variable font files cover weights 100–900 in both upright
|
|
5
|
+
* and italic styles. They are served from the package's src/fonts/
|
|
6
|
+
* directory so consumers get the correct typeface with zero setup.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
@font-face {
|
|
10
|
+
font-family: "Geist Variable";
|
|
11
|
+
font-style: normal;
|
|
12
|
+
font-weight: 100 900;
|
|
13
|
+
font-display: swap;
|
|
14
|
+
src: url("../fonts/geist-variable.woff2") format("woff2");
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@font-face {
|
|
18
|
+
font-family: "Geist Variable";
|
|
19
|
+
font-style: italic;
|
|
20
|
+
font-weight: 100 900;
|
|
21
|
+
font-display: swap;
|
|
22
|
+
src: url("../fonts/geist-variable-italic.woff2") format("woff2");
|
|
23
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @stagewise/ui — Main Style Entry Point
|
|
3
|
+
*
|
|
4
|
+
* Import this file in your app's CSS:
|
|
5
|
+
* @import "@stagewise/ui/style.css";
|
|
6
|
+
*
|
|
7
|
+
* This provides:
|
|
8
|
+
* 1. The stage-ui OKLCH color palette (dynamic hue/chroma system)
|
|
9
|
+
* 2. Theme tokens (light/dark mode semantic colors)
|
|
10
|
+
* 3. Derived color utilities (border-derived, bg-hover-derived, etc.)
|
|
11
|
+
* 4. Animations (caret-blink, switch-knob)
|
|
12
|
+
* 5. Bundled Geist Variable font (woff2, weights 100–900, upright + italic)
|
|
13
|
+
* 6. Bridge layer: shadcn token names → stage-ui color values
|
|
14
|
+
* 7. @theme inline: Tailwind utility → shadcn token mapping
|
|
15
|
+
* 8. The tailwindcss-color-modifiers plugin (auto-loaded via @plugin)
|
|
16
|
+
* 9. tw-animate-css animation utilities (auto-loaded via @import)
|
|
17
|
+
*
|
|
18
|
+
* Consumers only need this one import — no separate plugin configuration
|
|
19
|
+
* or additional CSS imports are required.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
@import "tailwindcss";
|
|
23
|
+
@import "tw-animate-css";
|
|
24
|
+
|
|
25
|
+
@import "./fonts.css";
|
|
26
|
+
@import "./palette.css";
|
|
27
|
+
@import "./theme.css";
|
|
28
|
+
@import "./derived-utilities.css";
|
|
29
|
+
@import "./animations.css";
|
|
30
|
+
@import "./bridge.css";
|
|
31
|
+
@import "./tailwind-tokens.css";
|
|
32
|
+
|
|
33
|
+
/* Auto-load the color-modifiers plugin so consumers don't need @config.
|
|
34
|
+
Uses a relative path so it resolves within the package for both
|
|
35
|
+
monorepo and external npm consumers. */
|
|
36
|
+
@plugin "../plugin/index.ts";
|
|
37
|
+
|
|
38
|
+
@custom-variant dark (&:is(.dark *));
|
|
39
|
+
@custom-variant data-horizontal (&[data-orientation="horizontal"]);
|
|
40
|
+
@custom-variant data-vertical (&[data-orientation="vertical"]);
|
|
41
|
+
|
|
42
|
+
@utility no-scrollbar {
|
|
43
|
+
scrollbar-width: none;
|
|
44
|
+
&::-webkit-scrollbar {
|
|
45
|
+
display: none;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@layer base {
|
|
50
|
+
* {
|
|
51
|
+
@apply border-derived-subtle outline-ring/50;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:root {
|
|
55
|
+
color-scheme: light;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
:root.dark {
|
|
59
|
+
color-scheme: dark;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
:focus-visible {
|
|
63
|
+
outline: 2px solid var(--color-primary-solid);
|
|
64
|
+
outline-offset: 0px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
:where(button,a, [data-checked], [data-unchecked]):focus-visible,
|
|
68
|
+
:where(button,a, [data-checked], [data-unchecked]):focus-visible * {
|
|
69
|
+
transition-duration: 0ms !important;
|
|
70
|
+
animation-duration: 0ms !important;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
@property --H {
|
|
2
|
+
syntax: '<number>';
|
|
3
|
+
inherits: true;
|
|
4
|
+
initial-value: 265;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@property --H-primary {
|
|
8
|
+
syntax: '<number>';
|
|
9
|
+
inherits: true;
|
|
10
|
+
initial-value: 265;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@property --H-base {
|
|
14
|
+
syntax: '<number>';
|
|
15
|
+
inherits: true;
|
|
16
|
+
initial-value: 85;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@property --primary-chroma-scale {
|
|
20
|
+
syntax: '<number>';
|
|
21
|
+
inherits: true;
|
|
22
|
+
initial-value: 1;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@property --H-brand {
|
|
26
|
+
syntax: '<number>';
|
|
27
|
+
inherits: true;
|
|
28
|
+
initial-value: 265;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@property --brand-chroma-scale {
|
|
32
|
+
syntax: '<number>';
|
|
33
|
+
inherits: true;
|
|
34
|
+
initial-value: 1;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@property --base-chroma-scale {
|
|
38
|
+
syntax: '<number>';
|
|
39
|
+
inherits: true;
|
|
40
|
+
initial-value: 1;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@theme default {
|
|
44
|
+
--H: 265;
|
|
45
|
+
--H-primary: var(--H);
|
|
46
|
+
--H-base: 85; /* Warm complement of primary, used for base neutrals */
|
|
47
|
+
--primary-chroma-scale: 1;
|
|
48
|
+
--base-chroma-scale: 1;
|
|
49
|
+
--H-brand: 265; /* Fixed default primary hue — never overridden by personalization themes */
|
|
50
|
+
--brand-chroma-scale: 1; /* Fixed default primary chroma — never overridden */
|
|
51
|
+
--H-green: 152; /* Near triadic color */
|
|
52
|
+
--H-red: 28; /* Near triadic color */
|
|
53
|
+
--H-blue: 220;
|
|
54
|
+
--H-yellow: 80; /* Complementary color/ Tetradic color */
|
|
55
|
+
--H-pink: 355; /* Tetradic color */
|
|
56
|
+
--H-purple: 300; /* Tetradic color */
|
|
57
|
+
--H-cyan: 175; /* Tetradic color */
|
|
58
|
+
--H-orange: 55; /* Tetradic color */
|
|
59
|
+
|
|
60
|
+
/* Primary (accent + UI fill) */
|
|
61
|
+
--color-primary-50: oklch(0.93 calc(0.033 * var(--primary-chroma-scale)) var(--H-primary));
|
|
62
|
+
--color-primary-100: oklch(0.86 calc(0.07 * var(--primary-chroma-scale)) var(--H-primary));
|
|
63
|
+
--color-primary-150: oklch(0.82 calc(0.095 * var(--primary-chroma-scale)) var(--H-primary));
|
|
64
|
+
--color-primary-200: oklch(0.78 calc(0.12 * var(--primary-chroma-scale)) var(--H-primary));
|
|
65
|
+
--color-primary-250: oklch(0.74 calc(0.15 * var(--primary-chroma-scale)) var(--H-primary));
|
|
66
|
+
--color-primary-300: oklch(0.70 calc(0.18 * var(--primary-chroma-scale)) var(--H-primary));
|
|
67
|
+
--color-primary-350: oklch(0.66 calc(0.205 * var(--primary-chroma-scale)) var(--H-primary));
|
|
68
|
+
--color-primary-400: oklch(0.62 calc(0.23 * var(--primary-chroma-scale)) var(--H-primary));
|
|
69
|
+
--color-primary-450: oklch(0.583 calc(0.24 * var(--primary-chroma-scale)) var(--H-primary));
|
|
70
|
+
--color-primary-500: oklch(0.5455 calc(0.25 * var(--primary-chroma-scale)) var(--H-primary)); /* peak chroma */
|
|
71
|
+
--color-primary-550: oklch(0.521 calc(0.235 * var(--primary-chroma-scale)) var(--H-primary));
|
|
72
|
+
--color-primary-600: oklch(0.49 calc(0.22 * var(--primary-chroma-scale)) var(--H-primary));
|
|
73
|
+
--color-primary-650: oklch(0.46 calc(0.20 * var(--primary-chroma-scale)) var(--H-primary));
|
|
74
|
+
--color-primary-700: oklch(0.43 calc(0.18 * var(--primary-chroma-scale)) var(--H-primary));
|
|
75
|
+
--color-primary-750: oklch(0.40 calc(0.16 * var(--primary-chroma-scale)) var(--H-primary));
|
|
76
|
+
--color-primary-800: oklch(0.37 calc(0.14 * var(--primary-chroma-scale)) var(--H-primary));
|
|
77
|
+
--color-primary-850: oklch(0.34 calc(0.125 * var(--primary-chroma-scale)) var(--H-primary));
|
|
78
|
+
--color-primary-900: oklch(0.31 calc(0.11 * var(--primary-chroma-scale)) var(--H-primary));
|
|
79
|
+
--color-primary-950: oklch(0.26 calc(0.082 * var(--primary-chroma-scale)) var(--H-primary));
|
|
80
|
+
|
|
81
|
+
/* Brand (fixed default primary — always hue 265, chroma scale 1) */
|
|
82
|
+
--color-brand-50: oklch(0.93 calc(0.033 * var(--brand-chroma-scale)) var(--H-brand));
|
|
83
|
+
--color-brand-100: oklch(0.86 calc(0.07 * var(--brand-chroma-scale)) var(--H-brand));
|
|
84
|
+
--color-brand-150: oklch(0.82 calc(0.095 * var(--brand-chroma-scale)) var(--H-brand));
|
|
85
|
+
--color-brand-200: oklch(0.78 calc(0.12 * var(--brand-chroma-scale)) var(--H-brand));
|
|
86
|
+
--color-brand-250: oklch(0.74 calc(0.15 * var(--brand-chroma-scale)) var(--H-brand));
|
|
87
|
+
--color-brand-300: oklch(0.70 calc(0.18 * var(--brand-chroma-scale)) var(--H-brand));
|
|
88
|
+
--color-brand-350: oklch(0.66 calc(0.205 * var(--brand-chroma-scale)) var(--H-brand));
|
|
89
|
+
--color-brand-400: oklch(0.62 calc(0.23 * var(--brand-chroma-scale)) var(--H-brand));
|
|
90
|
+
--color-brand-450: oklch(0.583 calc(0.24 * var(--brand-chroma-scale)) var(--H-brand));
|
|
91
|
+
--color-brand-500: oklch(0.5455 calc(0.25 * var(--brand-chroma-scale)) var(--H-brand));
|
|
92
|
+
--color-brand-550: oklch(0.521 calc(0.235 * var(--brand-chroma-scale)) var(--H-brand));
|
|
93
|
+
--color-brand-600: oklch(0.49 calc(0.22 * var(--brand-chroma-scale)) var(--H-brand));
|
|
94
|
+
--color-brand-650: oklch(0.46 calc(0.20 * var(--brand-chroma-scale)) var(--H-brand));
|
|
95
|
+
--color-brand-700: oklch(0.43 calc(0.18 * var(--brand-chroma-scale)) var(--H-brand));
|
|
96
|
+
--color-brand-750: oklch(0.40 calc(0.16 * var(--brand-chroma-scale)) var(--H-brand));
|
|
97
|
+
--color-brand-800: oklch(0.37 calc(0.14 * var(--brand-chroma-scale)) var(--H-brand));
|
|
98
|
+
--color-brand-850: oklch(0.34 calc(0.125 * var(--brand-chroma-scale)) var(--H-brand));
|
|
99
|
+
--color-brand-900: oklch(0.31 calc(0.11 * var(--brand-chroma-scale)) var(--H-brand));
|
|
100
|
+
--color-brand-950: oklch(0.26 calc(0.082 * var(--brand-chroma-scale)) var(--H-brand));
|
|
101
|
+
|
|
102
|
+
/* Neutrals (tinted, low chroma) - more nuance in dark range for elevation */
|
|
103
|
+
--color-base-50: oklch(0.992 calc(0.001 * var(--base-chroma-scale)) var(--H-base));
|
|
104
|
+
--color-base-100: oklch(0.96 calc(0.0015 * var(--base-chroma-scale)) var(--H-base));
|
|
105
|
+
--color-base-150: oklch(0.92 calc(0.002 * var(--base-chroma-scale)) var(--H-base));
|
|
106
|
+
--color-base-200: oklch(0.88 calc(0.0024 * var(--base-chroma-scale)) var(--H-base)); /* current light mode bg #d3d8e1 */
|
|
107
|
+
--color-base-250: oklch(0.81 calc(0.0026 * var(--base-chroma-scale)) var(--H-base)); /* #bcc1cc */
|
|
108
|
+
--color-base-300: oklch(0.74 calc(0.003 * var(--base-chroma-scale)) var(--H-base));
|
|
109
|
+
--color-base-350: oklch(0.665 calc(0.0034 * var(--base-chroma-scale)) var(--H-base));
|
|
110
|
+
--color-base-400: oklch(0.59 calc(0.0038 * var(--base-chroma-scale)) var(--H-base));
|
|
111
|
+
--color-base-450: oklch(0.525 calc(0.004 * var(--base-chroma-scale)) var(--H-base));
|
|
112
|
+
--color-base-500: oklch(0.46 calc(0.0045 * var(--base-chroma-scale)) var(--H-base));
|
|
113
|
+
--color-base-550: oklch(0.40 calc(0.004 * var(--base-chroma-scale)) var(--H-base));
|
|
114
|
+
--color-base-600: oklch(0.34 calc(0.0025 * var(--base-chroma-scale)) var(--H-base));
|
|
115
|
+
--color-base-650: oklch(0.3175 calc(0.0018 * var(--base-chroma-scale)) var(--H-base));
|
|
116
|
+
--color-base-700: oklch(0.295 calc(0.0015 * var(--base-chroma-scale)) var(--H-base));
|
|
117
|
+
--color-base-750: oklch(0.2645 calc(0.0012 * var(--base-chroma-scale)) var(--H-base));
|
|
118
|
+
--color-base-800: oklch(0.234 calc(0.001 * var(--base-chroma-scale)) var(--H-base));
|
|
119
|
+
--color-base-850: oklch(0.216 calc(0.0008 * var(--base-chroma-scale)) var(--H-base));
|
|
120
|
+
--color-base-900: oklch(0.198 calc(0.0005 * var(--base-chroma-scale)) var(--H-base));
|
|
121
|
+
--color-base-950: oklch(0.161 calc(0.0003 * var(--base-chroma-scale)) var(--H-base));
|
|
122
|
+
|
|
123
|
+
/* SUCCESS LIGHT */
|
|
124
|
+
--color-success-background-light: oklch(0.94 0.045 var(--H-green));
|
|
125
|
+
--color-success-foreground-light: oklch(0.60 0.172 var(--H-green));
|
|
126
|
+
--color-success-solid-light: oklch(from var(--color-success-foreground-light) 0.58 calc(c * 1.415) h);
|
|
127
|
+
/* SUCCESS DARK */
|
|
128
|
+
--color-success-background-dark: oklch(0.32 0.060 var(--H-green));
|
|
129
|
+
--color-success-foreground-dark: oklch(0.82 0.115 var(--H-green));
|
|
130
|
+
--color-success-solid-dark: oklch(from var(--color-success-foreground-dark) 0.54 calc(c * 1.32) h);
|
|
131
|
+
|
|
132
|
+
/* ERROR LIGHT */
|
|
133
|
+
--color-error-background-light: oklch(0.94 0.050 var(--H-red));
|
|
134
|
+
--color-error-foreground-light: oklch(0.60 0.172 var(--H-red));
|
|
135
|
+
--color-error-solid-light: oklch(from var(--color-error-foreground-light) 0.58 calc(c * 1.415) h);
|
|
136
|
+
/* ERROR DARK */
|
|
137
|
+
--color-error-background-dark: oklch(0.32 0.070 var(--H-red));;
|
|
138
|
+
--color-error-foreground-dark: oklch(0.8 0.115 var(--H-red));
|
|
139
|
+
--color-error-solid-dark: oklch(from var(--color-error-foreground-dark) 0.54 calc(c * 1.32) h);
|
|
140
|
+
|
|
141
|
+
/* WARNING LIGHT */
|
|
142
|
+
--color-warning-background-light: oklch(0.955 0.070 var(--H-yellow));
|
|
143
|
+
--color-warning-foreground-light: oklch(0.62 0.169 var(--H-yellow));
|
|
144
|
+
--color-warning-solid-light: oklch(from var(--color-warning-foreground-light) 0.78 calc(c * 1.115) h);
|
|
145
|
+
/* WARNING DARK */
|
|
146
|
+
--color-warning-background-dark: oklch(0.45 0.068 var(--H-yellow));
|
|
147
|
+
--color-warning-foreground-dark: oklch(0.85 0.112 var(--H-yellow));
|
|
148
|
+
--color-warning-solid-dark: oklch(from var(--color-warning-foreground-dark) 0.54 calc(c * 1.22) h);
|
|
149
|
+
|
|
150
|
+
/* INFO LIGHT */
|
|
151
|
+
--color-info-background-light: oklch(0.94 0.040 var(--H-blue));
|
|
152
|
+
--color-info-foreground-light: oklch(0.60 0.172 var(--H-blue));
|
|
153
|
+
--color-info-solid-light: oklch(from var(--color-info-foreground-light) 0.58 calc(c * 1.415) h);
|
|
154
|
+
/* INFO DARK */
|
|
155
|
+
--color-info-background-dark: oklch(0.32 0.060 var(--H-blue));
|
|
156
|
+
--color-info-foreground-dark: oklch(0.82 0.115 var(--H-blue));
|
|
157
|
+
--color-info-solid-dark: oklch(from var(--color-info-foreground-dark) 0.54 calc(c * 1.32) h);
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
/* Code highlighting */
|
|
161
|
+
--syntax-L-light: 0.61;
|
|
162
|
+
--syntax-C-light: 0.198;
|
|
163
|
+
--syntax-L-dark: 0.84;
|
|
164
|
+
--syntax-C-dark: 0.108;
|
|
165
|
+
|
|
166
|
+
--color-syntax-green-dark: oklch(var(--syntax-L-dark) var(--syntax-C-dark) var(--H-green));
|
|
167
|
+
--color-syntax-green-light: oklch(var(--syntax-L-light) var(--syntax-C-light) var(--H-green));
|
|
168
|
+
|
|
169
|
+
--color-syntax-red-dark: oklch(var(--syntax-L-dark) var(--syntax-C-dark) var(--H-red));
|
|
170
|
+
--color-syntax-red-light: oklch(var(--syntax-L-light) var(--syntax-C-light) var(--H-red));
|
|
171
|
+
|
|
172
|
+
--color-syntax-blue-dark: oklch(var(--syntax-L-dark) var(--syntax-C-dark) var(--H-blue));
|
|
173
|
+
--color-syntax-blue-light: oklch(var(--syntax-L-light) var(--syntax-C-light) var(--H-blue));
|
|
174
|
+
|
|
175
|
+
--color-syntax-yellow-dark: oklch(var(--syntax-L-dark) var(--syntax-C-dark) var(--H-yellow));
|
|
176
|
+
--color-syntax-yellow-light: oklch(var(--syntax-L-light) var(--syntax-C-light) var(--H-yellow));
|
|
177
|
+
|
|
178
|
+
--color-syntax-pink-dark: oklch(var(--syntax-L-dark) var(--syntax-C-dark) var(--H-pink));
|
|
179
|
+
--color-syntax-pink-light: oklch(var(--syntax-L-light) var(--syntax-C-light) var(--H-pink));
|
|
180
|
+
|
|
181
|
+
--color-syntax-cyan-dark: oklch(var(--syntax-L-dark) var(--syntax-C-dark) var(--H-cyan));
|
|
182
|
+
--color-syntax-cyan-light: oklch(var(--syntax-L-light) var(--syntax-C-light) var(--H-cyan));
|
|
183
|
+
|
|
184
|
+
--color-syntax-orange-dark: oklch(var(--syntax-L-dark) var(--syntax-C-dark) var(--H-orange));
|
|
185
|
+
--color-syntax-orange-light: oklch(var(--syntax-L-light) var(--syntax-C-light) var(--H-orange));
|
|
186
|
+
|
|
187
|
+
--color-syntax-purple-dark: oklch(var(--syntax-L-dark) var(--syntax-C-dark) var(--H-purple));
|
|
188
|
+
--color-syntax-purple-light: oklch(var(--syntax-L-light) var(--syntax-C-light) var(--H-purple));
|
|
189
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Theme Inline — Maps Tailwind CSS utility --color-* names to shadcn tokens.
|
|
3
|
+
*
|
|
4
|
+
* This block tells Tailwind v4 which CSS variable each color utility resolves to.
|
|
5
|
+
* E.g., `bg-background` → `background-color: var(--background)`.
|
|
6
|
+
*
|
|
7
|
+
* Consumers that import the ui package's style.css get these mappings for free.
|
|
8
|
+
* Individual tokens can be overridden by defining them AFTER this import.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
@theme inline {
|
|
12
|
+
--color-background: var(--background);
|
|
13
|
+
--color-foreground: var(--foreground);
|
|
14
|
+
--color-card: var(--card);
|
|
15
|
+
--color-card-foreground: var(--card-foreground);
|
|
16
|
+
--color-popover: var(--popover);
|
|
17
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
18
|
+
--color-primary: var(--primary);
|
|
19
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
20
|
+
--color-secondary: var(--secondary);
|
|
21
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
22
|
+
--color-muted: var(--muted);
|
|
23
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
24
|
+
--color-accent: var(--accent);
|
|
25
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
26
|
+
--color-destructive: var(--destructive);
|
|
27
|
+
--color-destructive-foreground: var(--destructive-foreground);
|
|
28
|
+
--color-border: var(--border);
|
|
29
|
+
--color-input: var(--input);
|
|
30
|
+
--color-ring: var(--ring);
|
|
31
|
+
--color-chart-1: var(--chart-1);
|
|
32
|
+
--color-chart-2: var(--chart-2);
|
|
33
|
+
--color-chart-3: var(--chart-3);
|
|
34
|
+
--color-chart-4: var(--chart-4);
|
|
35
|
+
--color-chart-5: var(--chart-5);
|
|
36
|
+
--color-sidebar: var(--sidebar);
|
|
37
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
38
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
39
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
40
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
41
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
42
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
43
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
44
|
+
|
|
45
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
46
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
47
|
+
--radius-lg: var(--radius);
|
|
48
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
49
|
+
--radius-2xl: calc(var(--radius) + 8px);
|
|
50
|
+
--radius-3xl: calc(var(--radius) + 12px);
|
|
51
|
+
--radius-4xl: calc(var(--radius) + 16px);
|
|
52
|
+
|
|
53
|
+
--font-sans: "Geist Variable", ui-sans-serif, system-ui, sans-serif;
|
|
54
|
+
--font-mono: ui-monospace, "SF Mono", "Cascadia Code", monospace;
|
|
55
|
+
--font-heading: "Geist Variable", ui-sans-serif, system-ui, sans-serif;
|
|
56
|
+
}
|