@codefast/ui 0.9.1 → 0.9.3
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/CHANGELOG.md +46 -0
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/components/accordion.js +1 -1
- package/dist/components/alert-dialog.d.ts +1 -1
- package/dist/components/alert-dialog.js +2 -2
- package/dist/components/alert.d.ts +1 -1
- package/dist/components/alert.js +2 -2
- package/dist/components/attachment.d.ts +2 -2
- package/dist/components/attachment.js +3 -3
- package/dist/components/avatar.js +1 -1
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/badge.js +1 -1
- package/dist/components/breadcrumb.js +1 -1
- package/dist/components/bubble.d.ts +1 -1
- package/dist/components/bubble.js +2 -2
- package/dist/components/button-group.d.ts +2 -2
- package/dist/components/button-group.js +3 -3
- package/dist/components/button.d.ts +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/calendar.d.ts +1 -1
- package/dist/components/calendar.js +3 -3
- package/dist/components/card.js +1 -1
- package/dist/components/carousel.d.ts +1 -1
- package/dist/components/carousel.js +3 -3
- package/dist/components/chart.js +1 -1
- package/dist/components/checkbox-cards.d.ts +1 -1
- package/dist/components/checkbox-cards.js +3 -3
- package/dist/components/checkbox-group.d.ts +1 -1
- package/dist/components/checkbox-group.js +2 -2
- package/dist/components/checkbox.js +1 -1
- package/dist/components/command.d.ts +1 -1
- package/dist/components/command.js +3 -3
- package/dist/components/context-menu.js +1 -1
- package/dist/components/dialog.js +2 -2
- package/dist/components/drawer.d.ts +2 -2
- package/dist/components/drawer.js +2 -2
- package/dist/components/dropdown-menu.js +1 -1
- package/dist/components/empty.d.ts +1 -1
- package/dist/components/empty.js +2 -2
- package/dist/components/field.d.ts +2 -2
- package/dist/components/field.js +4 -4
- package/dist/components/form.js +2 -2
- package/dist/components/hover-card.js +1 -1
- package/dist/components/input-group.d.ts +4 -4
- package/dist/components/input-group.js +5 -5
- package/dist/components/input-number.d.ts +1 -1
- package/dist/components/input-number.js +4 -4
- package/dist/components/input-otp.js +1 -1
- package/dist/components/input-password.d.ts +1 -1
- package/dist/components/input-password.js +1 -1
- package/dist/components/input-search.d.ts +1 -1
- package/dist/components/input-search.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/item.d.ts +2 -2
- package/dist/components/item.js +3 -3
- package/dist/components/kbd.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/marker.d.ts +1 -1
- package/dist/components/marker.js +2 -2
- package/dist/components/menubar.js +1 -1
- package/dist/components/message-scroller.d.ts +3 -3
- package/dist/components/message-scroller.js +3 -3
- package/dist/components/message.js +1 -1
- package/dist/components/native-select.js +1 -1
- package/dist/components/navigation-menu.js +2 -2
- package/dist/components/pagination.d.ts +2 -2
- package/dist/components/pagination.js +2 -2
- package/dist/components/popover.js +1 -1
- package/dist/components/progress-circle.d.ts +2 -2
- package/dist/components/progress-circle.js +3 -3
- package/dist/components/progress.js +1 -1
- package/dist/components/radio-cards.js +2 -2
- package/dist/components/radio-group.js +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/resizable.js +1 -1
- package/dist/components/scroll-area.d.ts +1 -1
- package/dist/components/scroll-area.js +2 -2
- package/dist/components/select.js +1 -1
- package/dist/components/separator.d.ts +1 -1
- package/dist/components/separator.js +2 -2
- package/dist/components/sheet.d.ts +2 -2
- package/dist/components/sheet.js +3 -3
- package/dist/components/sidebar.d.ts +5 -5
- package/dist/components/sidebar.js +9 -9
- package/dist/components/skeleton.js +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/spinner.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/tabs.d.ts +1 -1
- package/dist/components/tabs.js +2 -2
- package/dist/components/textarea.js +1 -1
- package/dist/components/toggle-group.d.ts +2 -2
- package/dist/components/toggle-group.js +2 -2
- package/dist/components/toggle.d.ts +1 -1
- package/dist/components/toggle.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/hooks/use-is-mobile.js +1 -1
- package/dist/hooks/use-message-scroller-commands.d.ts +2 -2
- package/dist/hooks/use-message-scroller-commands.js +2 -2
- package/dist/hooks/use-message-scroller-controller.d.ts +2 -2
- package/dist/hooks/use-message-scroller-controller.js +4 -4
- package/dist/hooks/use-message-scroller-refs.d.ts +1 -1
- package/dist/hooks/use-message-scroller-refs.js +3 -3
- package/dist/index.d.ts +180 -180
- package/dist/index.js +93 -93
- package/dist/lib/message-scroller/geometry.d.ts +1 -1
- package/dist/lib/message-scroller/geometry.js +1 -1
- package/dist/lib/message-scroller/stores.d.ts +1 -1
- package/dist/lib/message-scroller/stores.js +1 -1
- package/dist/lib/message-scroller/types.d.ts +1 -1
- package/dist/primitives/input-number.d.ts +1 -1
- package/dist/primitives/input-number.js +2 -2
- package/dist/primitives/message-scroller.d.ts +6 -6
- package/dist/primitives/message-scroller.js +3 -3
- package/dist/variants/alert.d.ts +1 -1
- package/dist/variants/alert.js +1 -1
- package/dist/variants/attachment.d.ts +1 -1
- package/dist/variants/attachment.js +1 -1
- package/dist/variants/badge.d.ts +1 -1
- package/dist/variants/badge.js +1 -1
- package/dist/variants/bubble.d.ts +1 -1
- package/dist/variants/bubble.js +1 -1
- package/dist/variants/button-group.d.ts +1 -1
- package/dist/variants/button-group.js +1 -1
- package/dist/variants/button.d.ts +1 -1
- package/dist/variants/button.js +1 -1
- package/dist/variants/empty.d.ts +1 -1
- package/dist/variants/empty.js +1 -1
- package/dist/variants/field.d.ts +1 -1
- package/dist/variants/field.js +1 -1
- package/dist/variants/input-group.d.ts +1 -1
- package/dist/variants/input-group.js +1 -1
- package/dist/variants/item.d.ts +1 -1
- package/dist/variants/item.js +1 -1
- package/dist/variants/marker.d.ts +1 -1
- package/dist/variants/marker.js +1 -1
- package/dist/variants/navigation-menu.d.ts +1 -1
- package/dist/variants/navigation-menu.js +1 -1
- package/dist/variants/progress-circle.d.ts +1 -1
- package/dist/variants/progress-circle.js +1 -1
- package/dist/variants/scroll-area.d.ts +1 -1
- package/dist/variants/scroll-area.js +1 -1
- package/dist/variants/separator.d.ts +1 -1
- package/dist/variants/separator.js +1 -1
- package/dist/variants/sheet.d.ts +1 -1
- package/dist/variants/sheet.js +1 -1
- package/dist/variants/sidebar.d.ts +1 -1
- package/dist/variants/sidebar.js +1 -1
- package/dist/variants/tabs.d.ts +1 -1
- package/dist/variants/tabs.js +1 -1
- package/dist/variants/toggle.d.ts +1 -1
- package/dist/variants/toggle.js +1 -1
- package/package.json +11 -47
- package/src/css/foundation/base.css +68 -0
- package/src/css/foundation/motion.css +65 -0
- package/src/css/foundation/source.css +10 -0
- package/src/css/foundation/tokens.css +83 -0
- package/src/css/foundation/utilities.css +451 -0
- package/src/css/foundation/variants.css +108 -0
- package/src/css/preset.css +14 -0
- package/src/css/style.css +11 -0
- package/src/css/themes/amber.css +105 -0
- package/src/css/themes/blue.css +105 -0
- package/src/css/themes/cyan.css +105 -0
- package/src/css/themes/emerald.css +105 -0
- package/src/css/themes/fuchsia.css +105 -0
- package/src/css/themes/gray.css +105 -0
- package/src/css/themes/green.css +105 -0
- package/src/css/themes/indigo.css +105 -0
- package/src/css/themes/lime.css +105 -0
- package/src/css/themes/neutral.css +105 -0
- package/src/css/themes/orange.css +105 -0
- package/src/css/themes/pink.css +105 -0
- package/src/css/themes/purple.css +105 -0
- package/src/css/themes/red.css +105 -0
- package/src/css/themes/rose.css +105 -0
- package/src/css/themes/sky.css +105 -0
- package/src/css/themes/slate.css +105 -0
- package/src/css/themes/stone.css +105 -0
- package/src/css/themes/teal.css +105 -0
- package/src/css/themes/violet.css +105 -0
- package/src/css/themes/yellow.css +105 -0
- package/src/css/themes/zinc.css +105 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codefast/ui",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.3",
|
|
4
4
|
"description": "Core UI components library built with React and Tailwind CSS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"components",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"url": "https://github.com/codefastlabs/codefast/issues"
|
|
19
19
|
},
|
|
20
20
|
"license": "MIT",
|
|
21
|
-
"author": "Vuong Phan <mr.thevuong@gmail.com>",
|
|
21
|
+
"author": "Vuong Phan <mr.thevuong@gmail.com> (https://github.com/thevuong)",
|
|
22
22
|
"repository": {
|
|
23
23
|
"type": "git",
|
|
24
24
|
"url": "git+https://github.com/codefastlabs/codefast.git",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"files": [
|
|
28
28
|
"dist",
|
|
29
|
+
"src/css",
|
|
29
30
|
"CHANGELOG.md",
|
|
30
31
|
"README.md",
|
|
31
32
|
"LICENSE"
|
|
@@ -38,14 +39,7 @@
|
|
|
38
39
|
"module": "./dist/index.js",
|
|
39
40
|
"types": "./dist/index.d.ts",
|
|
40
41
|
"imports": {
|
|
41
|
-
"
|
|
42
|
-
"./tests/*",
|
|
43
|
-
"./tests/*.ts",
|
|
44
|
-
"./tests/*.tsx",
|
|
45
|
-
"./tests/*/index.ts",
|
|
46
|
-
"./tests/*/index.tsx"
|
|
47
|
-
],
|
|
48
|
-
"#/*": {
|
|
42
|
+
"#*": {
|
|
49
43
|
"types": "./dist/*.d.ts",
|
|
50
44
|
"default": "./dist/*.js"
|
|
51
45
|
}
|
|
@@ -494,39 +488,21 @@
|
|
|
494
488
|
"access": "public"
|
|
495
489
|
},
|
|
496
490
|
"dependencies": {
|
|
491
|
+
"@codefast/tailwind-variants": "0.8.1",
|
|
497
492
|
"@daypicker/react": "^10.0.1",
|
|
498
493
|
"cmdk": "^1.1.1",
|
|
499
494
|
"embla-carousel-react": "^8.6.0",
|
|
500
495
|
"input-otp": "^1.5.0",
|
|
501
|
-
"lucide-react": "^1.
|
|
496
|
+
"lucide-react": "^1.47.0",
|
|
502
497
|
"next-themes": "^0.4.6",
|
|
503
498
|
"radix-ui": "^1.6.7",
|
|
504
|
-
"react-hook-form": "^7.
|
|
505
|
-
"react-resizable-panels": "^4.12.
|
|
499
|
+
"react-hook-form": "^7.88.0",
|
|
500
|
+
"react-resizable-panels": "^4.12.4",
|
|
506
501
|
"recharts": "^3.10.1",
|
|
507
502
|
"sonner": "^2.0.8",
|
|
508
|
-
"tailwind-merge": "^3.
|
|
503
|
+
"tailwind-merge": "^3.7.0",
|
|
509
504
|
"tw-animate-css": "^1.4.0",
|
|
510
|
-
"vaul": "^1.1.2"
|
|
511
|
-
"@codefast/tailwind-variants": "0.7.1"
|
|
512
|
-
},
|
|
513
|
-
"devDependencies": {
|
|
514
|
-
"@tailwindcss/postcss": "^4.3.3",
|
|
515
|
-
"@testing-library/dom": "^10.4.1",
|
|
516
|
-
"@testing-library/jest-dom": "^7.0.1",
|
|
517
|
-
"@testing-library/react": "^16.3.3",
|
|
518
|
-
"@testing-library/user-event": "^14.6.7",
|
|
519
|
-
"@types/jest-axe": "^3.5.9",
|
|
520
|
-
"@types/node": "^26.4.1",
|
|
521
|
-
"@vitejs/plugin-react": "^6.1.1",
|
|
522
|
-
"@vitest/coverage-v8": "^5.0.0",
|
|
523
|
-
"jest-axe": "^11.0.0",
|
|
524
|
-
"jsdom": "^30.0.1",
|
|
525
|
-
"postcss": "^8.5.28",
|
|
526
|
-
"tailwindcss": "^4.3.3",
|
|
527
|
-
"typescript": "^7.0.2",
|
|
528
|
-
"vitest": "^5.0.0",
|
|
529
|
-
"@codefast/typescript-config": "0.9.0"
|
|
505
|
+
"vaul": "^1.1.2"
|
|
530
506
|
},
|
|
531
507
|
"peerDependencies": {
|
|
532
508
|
"@types/react": ">=19.0.0",
|
|
@@ -543,18 +519,6 @@
|
|
|
543
519
|
}
|
|
544
520
|
},
|
|
545
521
|
"engines": {
|
|
546
|
-
"node": ">=
|
|
547
|
-
},
|
|
548
|
-
"scripts": {
|
|
549
|
-
"build": "rm -rf dist && tsc -p tsconfig.build.json",
|
|
550
|
-
"check-types": "tsc --noEmit",
|
|
551
|
-
"clean": "rm -rf dist",
|
|
552
|
-
"test": "vitest run",
|
|
553
|
-
"test:coverage": "vitest run --coverage",
|
|
554
|
-
"test:e2e": "vitest run tests/e2e",
|
|
555
|
-
"test:integration": "vitest run tests/integration",
|
|
556
|
-
"test:type": "vitest run tests/types",
|
|
557
|
-
"test:unit": "vitest run tests/unit",
|
|
558
|
-
"test:watch": "vitest"
|
|
522
|
+
"node": ">=22.12.0"
|
|
559
523
|
}
|
|
560
524
|
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/* -------------------------------------------------------------------------
|
|
2
|
+
* Base
|
|
3
|
+
*
|
|
4
|
+
* Global element defaults layered into Tailwind's `base` cascade: default
|
|
5
|
+
* border/outline colors, scrollbar styling, document background, and
|
|
6
|
+
* native input appearance resets.
|
|
7
|
+
* ------------------------------------------------------------------------- */
|
|
8
|
+
|
|
9
|
+
@layer base {
|
|
10
|
+
/* ── Default border & focus-ring colors for every element ──────────────────────────────────────────────────────── */
|
|
11
|
+
|
|
12
|
+
*,
|
|
13
|
+
::after,
|
|
14
|
+
::before,
|
|
15
|
+
::backdrop,
|
|
16
|
+
::file-selector-button {
|
|
17
|
+
border-color: var(--color-border);
|
|
18
|
+
outline-color: --alpha(var(--color-ring) / 20%);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* ----------------------------------------------------------------------
|
|
22
|
+
* Scrollbars — WebKit (size + colors) and Firefox (thin + colors)
|
|
23
|
+
* ---------------------------------------------------------------------- */
|
|
24
|
+
|
|
25
|
+
::-webkit-scrollbar {
|
|
26
|
+
@apply size-2;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
::-webkit-scrollbar-track {
|
|
30
|
+
@apply bg-transparent;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
::-webkit-scrollbar-thumb {
|
|
34
|
+
@apply rounded-full bg-border;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
* {
|
|
38
|
+
scrollbar-width: thin;
|
|
39
|
+
scrollbar-color: var(--color-border) transparent;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* ── Document ──────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
43
|
+
|
|
44
|
+
html,
|
|
45
|
+
body {
|
|
46
|
+
background-color: var(--color-background);
|
|
47
|
+
color: var(--color-foreground);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* ── Inputs — strip native search & number-spinner affordances ─────────────────────────────────────────────────── */
|
|
51
|
+
|
|
52
|
+
input {
|
|
53
|
+
&::-webkit-search-cancel-button,
|
|
54
|
+
&::-webkit-search-decoration {
|
|
55
|
+
appearance: none;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&::-webkit-outer-spin-button,
|
|
59
|
+
&::-webkit-inner-spin-button {
|
|
60
|
+
-webkit-appearance: none;
|
|
61
|
+
margin: 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&[type="number"] {
|
|
65
|
+
-moz-appearance: textfield;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/* -------------------------------------------------------------------------
|
|
2
|
+
* Motion
|
|
3
|
+
*
|
|
4
|
+
* Easing curves, semantic durations, and keyframes for @codefast/ui. Tokens
|
|
5
|
+
* are exposed through Tailwind's @theme so they mint matching `ease-*`,
|
|
6
|
+
* `duration-*`, and `animate-*` utilities.
|
|
7
|
+
* ------------------------------------------------------------------------- */
|
|
8
|
+
|
|
9
|
+
@theme {
|
|
10
|
+
/* ── Easing — enter curves (decelerate into place) ─────────────────────────────────────────────────────────────── */
|
|
11
|
+
|
|
12
|
+
--ease-ui: cubic-bezier(0.32, 0.72, 0, 1); /* Large surfaces: dialog, sheet */
|
|
13
|
+
--ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1); /* Playful overshoot (opt-in) */
|
|
14
|
+
--ease-snappy: cubic-bezier(0.23, 1, 0.32, 1); /* Small popups: menu, tooltip */
|
|
15
|
+
--ease-gentle: cubic-bezier(0.4, 0, 0.2, 1); /* Continuous layout shifts, fades */
|
|
16
|
+
|
|
17
|
+
/* ----------------------------------------------------------------------
|
|
18
|
+
* Easing — exit curve (accelerate away; pair with `data-closed:`)
|
|
19
|
+
* ---------------------------------------------------------------------- */
|
|
20
|
+
|
|
21
|
+
--ease-exit: cubic-bezier(0.4, 0, 1, 1);
|
|
22
|
+
|
|
23
|
+
/* ----------------------------------------------------------------------
|
|
24
|
+
* Durations — enter/exit pairs per surface role
|
|
25
|
+
*
|
|
26
|
+
* Exit ≈ 60% of enter to offset the slow start of the accelerating exit
|
|
27
|
+
* curve.
|
|
28
|
+
* ---------------------------------------------------------------------- */
|
|
29
|
+
|
|
30
|
+
--animation-duration-menu-in: 150ms; /* Menus, tooltip — instant tools */
|
|
31
|
+
--animation-duration-menu-out: 100ms;
|
|
32
|
+
--animation-duration-popup-in: 200ms; /* Popover, hover card — content surfaces */
|
|
33
|
+
--animation-duration-popup-out: 120ms;
|
|
34
|
+
--animation-duration-overlay-in: 220ms; /* Dialog content + backdrop */
|
|
35
|
+
--animation-duration-overlay-out: 150ms;
|
|
36
|
+
--animation-duration-panel-in: 320ms; /* Sheet, drawer — large sliding panels */
|
|
37
|
+
--animation-duration-panel-out: 220ms;
|
|
38
|
+
--animation-duration-expand-in: 200ms; /* Accordion, inline disclosure */
|
|
39
|
+
--animation-duration-expand-out: 150ms;
|
|
40
|
+
|
|
41
|
+
/* ----------------------------------------------------------------------
|
|
42
|
+
* Durations — form controls (switch, checkbox, radio)
|
|
43
|
+
*
|
|
44
|
+
* Defined in the transition-duration namespace so they mint clean
|
|
45
|
+
* `duration-control*` utilities; `animate-in` also picks them up via its
|
|
46
|
+
* --tw-duration fallback, so a single utility drives both the state
|
|
47
|
+
* transition and the indicator keyframe.
|
|
48
|
+
* ---------------------------------------------------------------------- */
|
|
49
|
+
|
|
50
|
+
--transition-duration-control: 100ms; /* Container / ring: switch track, checkbox & radio box */
|
|
51
|
+
--transition-duration-control-indicator: 200ms; /* Moving part: switch thumb, check, radio dot */
|
|
52
|
+
|
|
53
|
+
/* ── Keyframes ─────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
54
|
+
|
|
55
|
+
--animate-shimmer: shimmer 2.2s linear infinite;
|
|
56
|
+
|
|
57
|
+
@keyframes shimmer {
|
|
58
|
+
from {
|
|
59
|
+
background-position: 200% center;
|
|
60
|
+
}
|
|
61
|
+
to {
|
|
62
|
+
background-position: -200% center;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* -------------------------------------------------------------------------
|
|
2
|
+
* Source
|
|
3
|
+
*
|
|
4
|
+
* Third-party imports and the Tailwind content source scanned for class
|
|
5
|
+
* usage across the package.
|
|
6
|
+
* ------------------------------------------------------------------------- */
|
|
7
|
+
|
|
8
|
+
@import "tw-animate-css";
|
|
9
|
+
|
|
10
|
+
@source "../../**/*.{ts,tsx}";
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* -------------------------------------------------------------------------
|
|
2
|
+
* Design tokens
|
|
3
|
+
*
|
|
4
|
+
* Bridges the raw theme variables (`--background`, `--primary`, …) defined by
|
|
5
|
+
* each theme into Tailwind's `@theme inline` namespace, minting the
|
|
6
|
+
* `bg-*`, `text-*`, `border-*`, and `rounded-*` utilities the components use.
|
|
7
|
+
* ------------------------------------------------------------------------- */
|
|
8
|
+
|
|
9
|
+
:root {
|
|
10
|
+
--radius: 0.375rem;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@theme inline {
|
|
14
|
+
/* ── Typography ────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
15
|
+
|
|
16
|
+
/* Bridge the app-owned raw vars into the font-* utilities; fall back to sane
|
|
17
|
+
stacks so a consumer that forgets one degrades gracefully instead of
|
|
18
|
+
silently inheriting the sans font. */
|
|
19
|
+
--font-sans: var(--font-sans, ui-sans-serif, system-ui, sans-serif);
|
|
20
|
+
--font-heading: var(--font-heading, var(--font-sans, ui-sans-serif, system-ui, sans-serif));
|
|
21
|
+
--font-mono: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
|
|
22
|
+
|
|
23
|
+
/* ── Surfaces & semantic colors ────────────────────────────────────────────────────────────────────────────────── */
|
|
24
|
+
|
|
25
|
+
--color-background: var(--background);
|
|
26
|
+
--color-foreground: var(--foreground);
|
|
27
|
+
|
|
28
|
+
--color-primary: var(--primary);
|
|
29
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
30
|
+
|
|
31
|
+
--color-secondary: var(--secondary);
|
|
32
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
33
|
+
|
|
34
|
+
--color-destructive: var(--destructive);
|
|
35
|
+
|
|
36
|
+
--color-muted: var(--muted);
|
|
37
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
38
|
+
|
|
39
|
+
--color-accent: var(--accent);
|
|
40
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
41
|
+
|
|
42
|
+
--color-popover: var(--popover);
|
|
43
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
44
|
+
|
|
45
|
+
--color-card: var(--card);
|
|
46
|
+
--color-card-foreground: var(--card-foreground);
|
|
47
|
+
|
|
48
|
+
/* ── Form & focus ──────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
49
|
+
|
|
50
|
+
--color-border: var(--border);
|
|
51
|
+
--color-input: var(--input);
|
|
52
|
+
--color-ring: var(--ring);
|
|
53
|
+
|
|
54
|
+
/* ── Sidebar ───────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
55
|
+
|
|
56
|
+
--color-sidebar: var(--sidebar);
|
|
57
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
58
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
59
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
60
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
61
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
62
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
63
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
64
|
+
|
|
65
|
+
/* ── Charts ────────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
66
|
+
|
|
67
|
+
--color-chart-1: var(--chart-1);
|
|
68
|
+
--color-chart-2: var(--chart-2);
|
|
69
|
+
--color-chart-3: var(--chart-3);
|
|
70
|
+
--color-chart-4: var(--chart-4);
|
|
71
|
+
--color-chart-5: var(--chart-5);
|
|
72
|
+
|
|
73
|
+
/* ── Radius scale — derived from --radius (6 = base unit) ──────────────────────────────────────────────────────── */
|
|
74
|
+
|
|
75
|
+
--radius-xs: calc(var(--radius) * 2 / 6);
|
|
76
|
+
--radius-sm: calc(var(--radius) * 4 / 6);
|
|
77
|
+
--radius-md: var(--radius);
|
|
78
|
+
--radius-lg: calc(var(--radius) * 8 / 6);
|
|
79
|
+
--radius-xl: calc(var(--radius) * 12 / 6);
|
|
80
|
+
--radius-2xl: calc(var(--radius) * 16 / 6);
|
|
81
|
+
--radius-3xl: calc(var(--radius) * 24 / 6);
|
|
82
|
+
--radius-4xl: calc(var(--radius) * 32 / 6);
|
|
83
|
+
}
|