@yuva-devlab/tokens 0.1.2 → 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/README.md +7 -200
- package/dist/index.cjs +23 -1
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +16 -0
- package/dist/index.d.ts +16 -11
- package/dist/index.js +18 -14
- package/dist/index.js.map +1 -0
- package/dist/preset.css +254 -0
- package/dist/root.css +91 -0
- package/dist/styles.css +12 -0
- package/dist/themes/finai.css +114 -0
- package/dist/themes/orchestrai.css +197 -0
- package/package.json +25 -17
- package/styles/preset.css +254 -0
- package/styles/root.css +91 -0
- package/styles/styles.css +12 -0
- package/styles/themes/finai.css +114 -0
- package/styles/themes/orchestrai.css +197 -0
- package/.prettierignore +0 -12
- package/.turbo/turbo-build.log +0 -18
- package/CHANGELOG.md +0 -35
- package/dist/breakpoints.css.d.ts +0 -13
- package/dist/breakpoints.css.d.ts.map +0 -1
- package/dist/colors.css.d.ts +0 -99
- package/dist/colors.css.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/palettes.css.d.ts +0 -109
- package/dist/palettes.css.d.ts.map +0 -1
- package/dist/radii.css.d.ts +0 -15
- package/dist/radii.css.d.ts.map +0 -1
- package/dist/shadows.css.d.ts +0 -15
- package/dist/shadows.css.d.ts.map +0 -1
- package/dist/spacing.css.d.ts +0 -17
- package/dist/spacing.css.d.ts.map +0 -1
- package/dist/themes.css.d.ts +0 -7
- package/dist/themes.css.d.ts.map +0 -1
- package/dist/tokens.css +0 -1
- package/dist/transitions.css.d.ts +0 -20
- package/dist/transitions.css.d.ts.map +0 -1
- package/dist/typography.css.d.ts +0 -40
- package/dist/typography.css.d.ts.map +0 -1
- package/dist/utils/color-generator.d.ts +0 -39
- package/dist/utils/color-generator.d.ts.map +0 -1
- package/dist/zindex.css.d.ts +0 -16
- package/dist/zindex.css.d.ts.map +0 -1
- package/eslint.config.js +0 -8
- package/prettier.config.js +0 -1
- package/src/breakpoints.css.ts +0 -23
- package/src/colors.css.ts +0 -73
- package/src/index.ts +0 -16
- package/src/palettes.css.ts +0 -122
- package/src/radii.css.ts +0 -28
- package/src/shadows.css.ts +0 -28
- package/src/spacing.css.ts +0 -31
- package/src/themes.css.ts +0 -181
- package/src/transitions.css.ts +0 -38
- package/src/typography.css.ts +0 -77
- package/src/utils/color-generator.ts +0 -90
- package/src/zindex.css.ts +0 -29
- package/tsconfig.json +0 -12
- package/vite.config.ts +0 -31
package/dist/root.css
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file src/styles/root.css
|
|
3
|
+
* @description Baseline normalizations, CSS variables, and interactive element resets.
|
|
4
|
+
* Pure CSS — zero Tailwind dependency.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
@layer dl-base {
|
|
8
|
+
/* ── Interactive Cursors ───────────────────────────────────────────── */
|
|
9
|
+
button,
|
|
10
|
+
a,
|
|
11
|
+
select,
|
|
12
|
+
summary,
|
|
13
|
+
[role="button"],
|
|
14
|
+
[role="tab"],
|
|
15
|
+
[type="button"],
|
|
16
|
+
[type="submit"],
|
|
17
|
+
[type="reset"] {
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
button:disabled,
|
|
22
|
+
a[aria-disabled="true"],
|
|
23
|
+
[aria-disabled="true"],
|
|
24
|
+
[type="button"]:disabled,
|
|
25
|
+
[type="submit"]:disabled {
|
|
26
|
+
cursor: not-allowed;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* ── Interactive Focus Normalization ───────────────────────────────── */
|
|
30
|
+
:focus:not(:focus-visible) {
|
|
31
|
+
outline: none;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* ── Text Selection ────────────────────────────────────────────────── */
|
|
35
|
+
::selection {
|
|
36
|
+
background: color-mix(in oklab, var(--primary) 28%, transparent);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* ── Scrollbars ────────────────────────────────────────────────────── */
|
|
40
|
+
* {
|
|
41
|
+
scrollbar-width: thin;
|
|
42
|
+
scrollbar-color: var(--border) transparent;
|
|
43
|
+
}
|
|
44
|
+
::-webkit-scrollbar {
|
|
45
|
+
width: 6px;
|
|
46
|
+
height: 6px;
|
|
47
|
+
}
|
|
48
|
+
::-webkit-scrollbar-track {
|
|
49
|
+
background: transparent;
|
|
50
|
+
}
|
|
51
|
+
::-webkit-scrollbar-thumb {
|
|
52
|
+
background: var(--border);
|
|
53
|
+
border-radius: 9999px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* ── Form Typography Inheritance ───────────────────────────────────── */
|
|
57
|
+
button,
|
|
58
|
+
input,
|
|
59
|
+
select,
|
|
60
|
+
textarea {
|
|
61
|
+
letter-spacing: 0;
|
|
62
|
+
font-family: inherit;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/*
|
|
66
|
+
* Radix Select — Item relative positioning anchor.
|
|
67
|
+
* Ensures stacking context for the indicator (absolute right-2).
|
|
68
|
+
*/
|
|
69
|
+
[role="option"] {
|
|
70
|
+
position: relative;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/*
|
|
74
|
+
* Breadcrumb Separator SVG Sizing
|
|
75
|
+
*/
|
|
76
|
+
[data-slot="breadcrumb-separator"] svg {
|
|
77
|
+
width: 0.875rem;
|
|
78
|
+
height: 0.875rem;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* ── Reduced Motion ────────────────────────────────────────────────── */
|
|
82
|
+
@media (prefers-reduced-motion: reduce) {
|
|
83
|
+
*,
|
|
84
|
+
*::before,
|
|
85
|
+
*::after {
|
|
86
|
+
animation-duration: 0.01ms !important;
|
|
87
|
+
animation-iteration-count: 1 !important;
|
|
88
|
+
scroll-behavior: auto !important;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
package/dist/styles.css
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file src/styles/styles.css
|
|
3
|
+
* @description Master stylesheet for @yuva-devlab/tokens.
|
|
4
|
+
* Contains base CSS custom properties, theme definitions, and design tokens.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/* ── Base Normalization & Design Tokens ──────────────────────────────────── */
|
|
8
|
+
@import "./root.css";
|
|
9
|
+
|
|
10
|
+
/* ── Brand Scoped Themes ─────────────────────────────────────────────────── */
|
|
11
|
+
@import "./themes/finai.css";
|
|
12
|
+
@import "./themes/orchestrai.css";
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FinAI Theme Preset — Emerald / Forest Green Palette
|
|
3
|
+
* Modern OKLCH color spaces optimized for trust, clarity, and financial wellness.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
:root,
|
|
7
|
+
[data-brand="finai"],
|
|
8
|
+
[data-theme="finai"] {
|
|
9
|
+
--radius: 0.75rem;
|
|
10
|
+
--background: oklch(0.985 0.001 247);
|
|
11
|
+
--foreground: oklch(0.21 0.02 260);
|
|
12
|
+
--card: oklch(1 0 0);
|
|
13
|
+
--card-foreground: oklch(0.21 0.02 260);
|
|
14
|
+
--popover: oklch(1 0 0);
|
|
15
|
+
--popover-foreground: oklch(0.21 0.02 260);
|
|
16
|
+
--primary: oklch(0.63 0.14 156);
|
|
17
|
+
--primary-foreground: oklch(0.99 0.005 150);
|
|
18
|
+
--secondary: oklch(0.965 0.003 260);
|
|
19
|
+
--secondary-foreground: oklch(0.21 0.02 260);
|
|
20
|
+
--muted: oklch(0.965 0.003 260);
|
|
21
|
+
--muted-foreground: oklch(0.52 0.015 260);
|
|
22
|
+
--accent: oklch(0.95 0.03 156);
|
|
23
|
+
--accent-foreground: oklch(0.35 0.09 156);
|
|
24
|
+
--destructive: oklch(0.6 0.22 25);
|
|
25
|
+
--destructive-foreground: oklch(0.99 0.005 0);
|
|
26
|
+
--warning: oklch(0.75 0.14 80);
|
|
27
|
+
--warning-foreground: oklch(0.2 0.02 80);
|
|
28
|
+
--border: oklch(0.92 0.005 260);
|
|
29
|
+
--input: oklch(0.92 0.005 260);
|
|
30
|
+
--ring: oklch(0.63 0.14 156);
|
|
31
|
+
--sidebar: oklch(1 0 0);
|
|
32
|
+
--sidebar-foreground: oklch(0.21 0.02 260);
|
|
33
|
+
--sidebar-primary: oklch(0.63 0.14 156);
|
|
34
|
+
--sidebar-primary-foreground: oklch(0.99 0.005 150);
|
|
35
|
+
--sidebar-accent: oklch(0.95 0.03 156);
|
|
36
|
+
--sidebar-accent-foreground: oklch(0.35 0.09 156);
|
|
37
|
+
--sidebar-border: oklch(0.93 0.005 260);
|
|
38
|
+
--sidebar-ring: oklch(0.63 0.14 156);
|
|
39
|
+
--chart-1: oklch(0.63 0.14 156);
|
|
40
|
+
--chart-2: oklch(0.55 0.02 260);
|
|
41
|
+
--chart-3: oklch(0.75 0.04 156);
|
|
42
|
+
--chart-4: oklch(0.7 0.15 60);
|
|
43
|
+
--chart-5: oklch(0.6 0.18 25);
|
|
44
|
+
|
|
45
|
+
/* ── Sizing, Spacing & Layout Tokens ───────────────────────────────────── */
|
|
46
|
+
--control-height-xs: 1.75rem;
|
|
47
|
+
--control-height-sm: 2rem;
|
|
48
|
+
--control-height-md: 2.375rem;
|
|
49
|
+
--control-height-lg: 2.75rem;
|
|
50
|
+
--control-height-xl: 3.25rem;
|
|
51
|
+
|
|
52
|
+
--icon-xs: 0.75rem;
|
|
53
|
+
--icon-sm: 0.875rem;
|
|
54
|
+
--icon-md: 1rem;
|
|
55
|
+
--icon-lg: 1.25rem;
|
|
56
|
+
--icon-xl: 1.5rem;
|
|
57
|
+
|
|
58
|
+
--space-1: 0.25rem;
|
|
59
|
+
--space-2: 0.5rem;
|
|
60
|
+
--space-3: 0.75rem;
|
|
61
|
+
--space-4: 1rem;
|
|
62
|
+
--space-5: 1.25rem;
|
|
63
|
+
--space-6: 1.5rem;
|
|
64
|
+
--space-8: 2rem;
|
|
65
|
+
--space-10: 2.5rem;
|
|
66
|
+
|
|
67
|
+
--card-padding: var(--space-5);
|
|
68
|
+
--dialog-padding: var(--space-6);
|
|
69
|
+
--form-field-gap: var(--space-4);
|
|
70
|
+
--section-gap: var(--space-6);
|
|
71
|
+
--table-row-padding-x: var(--space-6);
|
|
72
|
+
--table-row-padding-y: var(--space-4);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.dark,
|
|
76
|
+
[data-theme="dark"],
|
|
77
|
+
[data-theme="finai-dark"],
|
|
78
|
+
[data-brand="finai"].dark,
|
|
79
|
+
[data-brand="finai"][data-theme="dark"] {
|
|
80
|
+
--background: oklch(0.16 0.015 260);
|
|
81
|
+
--foreground: oklch(0.97 0.003 260);
|
|
82
|
+
--card: oklch(0.2 0.015 260);
|
|
83
|
+
--card-foreground: oklch(0.97 0.003 260);
|
|
84
|
+
--popover: oklch(0.2 0.015 260);
|
|
85
|
+
--popover-foreground: oklch(0.97 0.003 260);
|
|
86
|
+
--primary: oklch(0.7 0.15 156);
|
|
87
|
+
--primary-foreground: oklch(0.15 0.02 260);
|
|
88
|
+
--secondary: oklch(0.25 0.015 260);
|
|
89
|
+
--secondary-foreground: oklch(0.97 0.003 260);
|
|
90
|
+
--muted: oklch(0.25 0.015 260);
|
|
91
|
+
--muted-foreground: oklch(0.7 0.01 260);
|
|
92
|
+
--accent: oklch(0.3 0.05 156);
|
|
93
|
+
--accent-foreground: oklch(0.9 0.08 156);
|
|
94
|
+
--destructive: oklch(0.65 0.2 25);
|
|
95
|
+
--destructive-foreground: oklch(0.97 0.003 0);
|
|
96
|
+
--warning: oklch(0.75 0.14 80);
|
|
97
|
+
--warning-foreground: oklch(0.15 0.02 80);
|
|
98
|
+
--border: oklch(1 0 0 / 8%);
|
|
99
|
+
--input: oklch(1 0 0 / 12%);
|
|
100
|
+
--ring: oklch(0.7 0.15 156);
|
|
101
|
+
--sidebar: oklch(0.18 0.015 260);
|
|
102
|
+
--sidebar-foreground: oklch(0.97 0.003 260);
|
|
103
|
+
--sidebar-primary: oklch(0.7 0.15 156);
|
|
104
|
+
--sidebar-primary-foreground: oklch(0.15 0.02 260);
|
|
105
|
+
--sidebar-accent: oklch(0.26 0.03 156);
|
|
106
|
+
--sidebar-accent-foreground: oklch(0.97 0.003 260);
|
|
107
|
+
--sidebar-border: oklch(1 0 0 / 8%);
|
|
108
|
+
--sidebar-ring: oklch(0.7 0.15 156);
|
|
109
|
+
--chart-1: oklch(0.7 0.15 156);
|
|
110
|
+
--chart-2: oklch(0.6 0.02 260);
|
|
111
|
+
--chart-3: oklch(0.8 0.04 156);
|
|
112
|
+
--chart-4: oklch(0.75 0.15 60);
|
|
113
|
+
--chart-5: oklch(0.65 0.2 25);
|
|
114
|
+
}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OrchestrAI Theme — Lovable UI Blue/Teal Palette
|
|
3
|
+
*
|
|
4
|
+
* Derived from orchestrai-src/src/styles.css (the official Lovable-sourced design).
|
|
5
|
+
* Uses OKLCH color space with both light and dark mode support.
|
|
6
|
+
* Hue axis: ~195–250 (blue-teal spectrum), primary at hue 205 (light) / 195 (dark).
|
|
7
|
+
* Fonts are intentionally NOT set here; they are managed by the consuming app
|
|
8
|
+
* (Manrope / Sora / JetBrains Mono for the robotic-technical feel).
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/* ── Light Mode ────────────────────────────────────────────────────────── */
|
|
12
|
+
:root,
|
|
13
|
+
[data-brand="orchestrai"],
|
|
14
|
+
[data-theme="orchestrai"] {
|
|
15
|
+
--radius: 0.75rem;
|
|
16
|
+
|
|
17
|
+
/* Surfaces */
|
|
18
|
+
--background: oklch(0.985 0.004 210);
|
|
19
|
+
--foreground: oklch(0.21 0.02 245);
|
|
20
|
+
--card: oklch(1 0 0);
|
|
21
|
+
--card-foreground: oklch(0.21 0.02 245);
|
|
22
|
+
--popover: oklch(1 0 0);
|
|
23
|
+
--popover-foreground: oklch(0.21 0.02 245);
|
|
24
|
+
|
|
25
|
+
/* Brand */
|
|
26
|
+
--primary: oklch(0.58 0.126 205);
|
|
27
|
+
--primary-foreground: oklch(0.99 0.005 200);
|
|
28
|
+
--secondary: oklch(0.955 0.008 220);
|
|
29
|
+
--secondary-foreground: oklch(0.28 0.02 245);
|
|
30
|
+
|
|
31
|
+
/* Muted / Accent */
|
|
32
|
+
--muted: oklch(0.955 0.008 220);
|
|
33
|
+
--muted-foreground: oklch(0.52 0.02 245);
|
|
34
|
+
--accent: oklch(0.93 0.035 200);
|
|
35
|
+
--accent-foreground: oklch(0.28 0.04 220);
|
|
36
|
+
|
|
37
|
+
/* Status (Feedback tokens: success #47c58c, destructive #f3625d, warning #f0b648, info #6fa7ee) */
|
|
38
|
+
--destructive: oklch(68% 0.18 25);
|
|
39
|
+
--destructive-foreground: oklch(0.99 0.005 200);
|
|
40
|
+
--success: oklch(74% 0.14 160);
|
|
41
|
+
--success-foreground: oklch(0.18 0.02 240);
|
|
42
|
+
--warning: oklch(81% 0.14 80);
|
|
43
|
+
--warning-foreground: oklch(0.2 0.03 80);
|
|
44
|
+
--info: oklch(72% 0.12 255);
|
|
45
|
+
--info-foreground: oklch(0.18 0.02 240);
|
|
46
|
+
|
|
47
|
+
/* Form / Ring */
|
|
48
|
+
--border: oklch(0.9 0.01 230);
|
|
49
|
+
--input: oklch(0.9 0.01 230);
|
|
50
|
+
--ring: oklch(0.58 0.126 205);
|
|
51
|
+
|
|
52
|
+
/* Glass surfaces */
|
|
53
|
+
--surface: oklch(1 0 0 / 70%);
|
|
54
|
+
--surface-2: oklch(0.975 0.006 220);
|
|
55
|
+
--overlay: oklch(0.985 0.004 210 / 80%);
|
|
56
|
+
|
|
57
|
+
/* Charts */
|
|
58
|
+
--chart-1: oklch(0.58 0.126 205);
|
|
59
|
+
--chart-2: oklch(0.62 0.13 158);
|
|
60
|
+
--chart-3: oklch(0.6 0.12 250);
|
|
61
|
+
--chart-4: oklch(0.75 0.14 75);
|
|
62
|
+
--chart-5: oklch(0.6 0.16 15);
|
|
63
|
+
|
|
64
|
+
/* Sidebar */
|
|
65
|
+
--sidebar: oklch(0.99 0.004 220);
|
|
66
|
+
--sidebar-foreground: oklch(0.21 0.02 245);
|
|
67
|
+
--sidebar-primary: oklch(0.58 0.126 205);
|
|
68
|
+
--sidebar-primary-foreground: oklch(0.99 0.005 200);
|
|
69
|
+
--sidebar-accent: oklch(0.95 0.012 220);
|
|
70
|
+
--sidebar-accent-foreground: oklch(0.24 0.02 245);
|
|
71
|
+
--sidebar-border: oklch(0.9 0.01 230);
|
|
72
|
+
--sidebar-ring: oklch(0.58 0.126 205);
|
|
73
|
+
|
|
74
|
+
/* ── Sizing, Spacing & Layout Tokens ────────────────────────────── */
|
|
75
|
+
--control-height-xs: 1.75rem;
|
|
76
|
+
--control-height-sm: 2rem;
|
|
77
|
+
--control-height-md: 2.25rem;
|
|
78
|
+
--control-height-lg: 2.5rem;
|
|
79
|
+
--control-height-xl: 3rem;
|
|
80
|
+
|
|
81
|
+
--icon-xs: 0.875rem;
|
|
82
|
+
--icon-sm: 1rem;
|
|
83
|
+
--icon-md: 1.25rem;
|
|
84
|
+
--icon-lg: 1.5rem;
|
|
85
|
+
--icon-xl: 2rem;
|
|
86
|
+
|
|
87
|
+
--space-1: 0.25rem;
|
|
88
|
+
--space-2: 0.5rem;
|
|
89
|
+
--space-3: 0.75rem;
|
|
90
|
+
--space-4: 1rem;
|
|
91
|
+
--space-5: 1.25rem;
|
|
92
|
+
--space-6: 1.5rem;
|
|
93
|
+
--space-8: 2rem;
|
|
94
|
+
--space-10: 2.5rem;
|
|
95
|
+
|
|
96
|
+
--card-padding: var(--space-4);
|
|
97
|
+
--dialog-padding: var(--space-5);
|
|
98
|
+
--form-field-gap: var(--space-3);
|
|
99
|
+
--section-gap: var(--space-5);
|
|
100
|
+
--table-row-padding-x: var(--space-4);
|
|
101
|
+
--table-row-padding-y: var(--space-3);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* ── Dark Mode ────────────────────────────────────────────────────────── */
|
|
105
|
+
.dark,
|
|
106
|
+
[data-theme="dark"],
|
|
107
|
+
[data-brand="orchestrai"].dark,
|
|
108
|
+
[data-brand="orchestrai"][data-theme="dark"],
|
|
109
|
+
[data-theme="orchestrai-dark"] {
|
|
110
|
+
--radius: 0.75rem;
|
|
111
|
+
|
|
112
|
+
/* Surfaces */
|
|
113
|
+
--background: oklch(0.175 0.015 250);
|
|
114
|
+
--foreground: oklch(0.955 0.006 230);
|
|
115
|
+
--card: oklch(0.215 0.017 250);
|
|
116
|
+
--card-foreground: oklch(0.955 0.006 230);
|
|
117
|
+
--popover: oklch(0.22 0.018 250);
|
|
118
|
+
--popover-foreground: oklch(0.955 0.006 230);
|
|
119
|
+
|
|
120
|
+
/* Brand */
|
|
121
|
+
--primary: oklch(0.76 0.115 195);
|
|
122
|
+
--primary-foreground: oklch(0.19 0.02 240);
|
|
123
|
+
--secondary: oklch(0.27 0.02 250);
|
|
124
|
+
--secondary-foreground: oklch(0.945 0.006 230);
|
|
125
|
+
|
|
126
|
+
/* Muted / Accent */
|
|
127
|
+
--muted: oklch(0.27 0.02 250);
|
|
128
|
+
--muted-foreground: oklch(0.71 0.02 240);
|
|
129
|
+
--accent: oklch(0.31 0.035 210);
|
|
130
|
+
--accent-foreground: oklch(0.95 0.01 210);
|
|
131
|
+
|
|
132
|
+
/* Status (Feedback tokens: success #47c58c, destructive #f3625d, warning #f0b648, info #6fa7ee) */
|
|
133
|
+
--destructive: oklch(68% 0.18 25);
|
|
134
|
+
--destructive-foreground: oklch(0.18 0.02 240);
|
|
135
|
+
--success: oklch(74% 0.14 160);
|
|
136
|
+
--success-foreground: oklch(0.18 0.02 240);
|
|
137
|
+
--warning: oklch(81% 0.14 80);
|
|
138
|
+
--warning-foreground: oklch(0.2 0.03 80);
|
|
139
|
+
--info: oklch(72% 0.12 255);
|
|
140
|
+
--info-foreground: oklch(0.18 0.02 240);
|
|
141
|
+
|
|
142
|
+
/* Form / Ring */
|
|
143
|
+
--border: oklch(1 0 0 / 11%);
|
|
144
|
+
--input: oklch(1 0 0 / 16%);
|
|
145
|
+
--ring: oklch(0.76 0.115 195);
|
|
146
|
+
|
|
147
|
+
/* Glass surfaces */
|
|
148
|
+
--surface: oklch(0.24 0.018 250 / 70%);
|
|
149
|
+
--surface-2: oklch(0.235 0.018 250);
|
|
150
|
+
--overlay: oklch(0.11 0.008 250 / 80%);
|
|
151
|
+
|
|
152
|
+
/* Charts */
|
|
153
|
+
--chart-1: oklch(0.76 0.115 195);
|
|
154
|
+
--chart-2: oklch(0.74 0.14 160);
|
|
155
|
+
--chart-3: oklch(0.72 0.12 255);
|
|
156
|
+
--chart-4: oklch(0.81 0.14 80);
|
|
157
|
+
--chart-5: oklch(0.7 0.16 15);
|
|
158
|
+
|
|
159
|
+
/* Sidebar */
|
|
160
|
+
--sidebar: oklch(0.195 0.016 250);
|
|
161
|
+
--sidebar-foreground: oklch(0.955 0.006 230);
|
|
162
|
+
--sidebar-primary: oklch(0.76 0.115 195);
|
|
163
|
+
--sidebar-primary-foreground: oklch(0.19 0.02 240);
|
|
164
|
+
--sidebar-accent: oklch(0.28 0.022 250);
|
|
165
|
+
--sidebar-accent-foreground: oklch(0.95 0.006 230);
|
|
166
|
+
--sidebar-border: oklch(1 0 0 / 11%);
|
|
167
|
+
--sidebar-ring: oklch(0.76 0.115 195);
|
|
168
|
+
|
|
169
|
+
/* ── Sizing, Spacing & Layout Tokens ────────────────────────────── */
|
|
170
|
+
--control-height-xs: 1.75rem;
|
|
171
|
+
--control-height-sm: 2rem;
|
|
172
|
+
--control-height-md: 2.25rem;
|
|
173
|
+
--control-height-lg: 2.5rem;
|
|
174
|
+
--control-height-xl: 3rem;
|
|
175
|
+
|
|
176
|
+
--icon-xs: 0.875rem;
|
|
177
|
+
--icon-sm: 1rem;
|
|
178
|
+
--icon-md: 1.25rem;
|
|
179
|
+
--icon-lg: 1.5rem;
|
|
180
|
+
--icon-xl: 2rem;
|
|
181
|
+
|
|
182
|
+
--space-1: 0.25rem;
|
|
183
|
+
--space-2: 0.5rem;
|
|
184
|
+
--space-3: 0.75rem;
|
|
185
|
+
--space-4: 1rem;
|
|
186
|
+
--space-5: 1.25rem;
|
|
187
|
+
--space-6: 1.5rem;
|
|
188
|
+
--space-8: 2rem;
|
|
189
|
+
--space-10: 2.5rem;
|
|
190
|
+
|
|
191
|
+
--card-padding: var(--space-4);
|
|
192
|
+
--dialog-padding: var(--space-5);
|
|
193
|
+
--form-field-gap: var(--space-3);
|
|
194
|
+
--section-gap: var(--space-5);
|
|
195
|
+
--table-row-padding-x: var(--space-4);
|
|
196
|
+
--table-row-padding-y: var(--space-3);
|
|
197
|
+
}
|
package/package.json
CHANGED
|
@@ -1,46 +1,54 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yuva-devlab/tokens",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "Design tokens, brand themes, and Tailwind CSS 4 preset bridge for Yuva DevLab",
|
|
4
5
|
"type": "module",
|
|
5
6
|
"main": "./dist/index.cjs",
|
|
6
7
|
"module": "./dist/index.js",
|
|
7
8
|
"types": "./dist/index.d.ts",
|
|
9
|
+
"style": "./styles/styles.css",
|
|
8
10
|
"sideEffects": [
|
|
9
|
-
"**/*.css.ts",
|
|
10
11
|
"**/*.css"
|
|
11
12
|
],
|
|
12
13
|
"exports": {
|
|
13
14
|
".": {
|
|
14
|
-
"types":
|
|
15
|
+
"types": {
|
|
16
|
+
"import": "./dist/index.d.ts",
|
|
17
|
+
"require": "./dist/index.d.cts"
|
|
18
|
+
},
|
|
15
19
|
"import": "./dist/index.js",
|
|
16
20
|
"require": "./dist/index.cjs"
|
|
17
21
|
},
|
|
18
|
-
"./
|
|
22
|
+
"./preset.css": "./styles/preset.css",
|
|
23
|
+
"./styles.css": "./styles/styles.css",
|
|
24
|
+
"./root.css": "./styles/root.css",
|
|
25
|
+
"./themes/finai.css": "./styles/themes/finai.css",
|
|
26
|
+
"./themes/orchestrai.css": "./styles/themes/orchestrai.css",
|
|
19
27
|
"./package.json": "./package.json"
|
|
20
28
|
},
|
|
29
|
+
"files": [
|
|
30
|
+
"dist",
|
|
31
|
+
"styles"
|
|
32
|
+
],
|
|
21
33
|
"license": "MIT",
|
|
22
34
|
"devDependencies": {
|
|
23
|
-
"@
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
35
|
+
"@types/node": "^24.10.1",
|
|
36
|
+
"eslint": "^9.39.1",
|
|
37
|
+
"prettier": "^3.9.8",
|
|
38
|
+
"tsup": "^8.5.1",
|
|
39
|
+
"typescript": "^6.0.3",
|
|
27
40
|
"@yuva-devlab/eslint-config": "0.1.1",
|
|
28
41
|
"@yuva-devlab/prettier-config": "0.1.1",
|
|
29
42
|
"@yuva-devlab/typescript-config": "0.1.1"
|
|
30
43
|
},
|
|
31
|
-
"dependencies": {
|
|
32
|
-
"@vanilla-extract/css": "^1.17.4"
|
|
33
|
-
},
|
|
34
44
|
"scripts": {
|
|
35
|
-
"build": "
|
|
45
|
+
"build": "tsup",
|
|
46
|
+
"dev": "tsup --watch",
|
|
36
47
|
"lint": "eslint src",
|
|
37
48
|
"lint:fix": "eslint src --fix",
|
|
38
49
|
"format": "prettier --write .",
|
|
39
50
|
"format:check": "prettier --check .",
|
|
40
|
-
"
|
|
41
|
-
"clean
|
|
42
|
-
"clean:node_modules": "rm -rf node_modules",
|
|
43
|
-
"clean:turbo": "rm -rf .turbo",
|
|
44
|
-
"clean": "pnpm run clean:build && pnpm run clean:node_modules && pnpm run clean:turbo"
|
|
51
|
+
"typecheck": "tsc --noEmit",
|
|
52
|
+
"clean": "rm -rf dist node_modules .turbo"
|
|
45
53
|
}
|
|
46
54
|
}
|