@yuva-devlab/tokens 0.1.2 → 1.0.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 +15 -181
- package/package.json +12 -29
- package/src/preset.css +159 -0
- package/src/styles.css +2 -0
- package/src/themes/theme-finai.css +110 -0
- package/src/themes/theme-orchestrai.css +45 -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.cjs +0 -1
- package/dist/index.d.ts +0 -11
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -15
- 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/README.md
CHANGED
|
@@ -3,17 +3,14 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/@yuva-devlab/tokens)
|
|
4
4
|
[](LICENSE)
|
|
5
5
|
|
|
6
|
-
>
|
|
7
|
-
> foundation for consistent UI development.
|
|
6
|
+
> Tailwind CSS 4 preset and design token theme bridge for the Yuva DevLab Design System.
|
|
8
7
|
|
|
9
8
|
## Features
|
|
10
9
|
|
|
11
|
-
- 🎨 **
|
|
12
|
-
- 🌓 **
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
- 🎯 **Zero Runtime** - All tokens compiled to CSS variables at build time
|
|
16
|
-
- 🔒 **Type-Safe** - Full TypeScript autocomplete for all tokens
|
|
10
|
+
- 🎨 **Tailwind CSS 4 Preset** - Native `@theme inline` mappings bridging tokens to Tailwind utilities
|
|
11
|
+
- 🌓 **Modern OKLCH Color Tokens** - Clean, perceptual contrast in light and dark modes
|
|
12
|
+
- 🚀 **Zero-Config Theming** - Drop-in theme presets for applications (FinAI, OrchestrAI)
|
|
13
|
+
- 🎯 **Pure CSS** - Zero runtime overhead and zero JS dependencies
|
|
17
14
|
|
|
18
15
|
## Installation
|
|
19
16
|
|
|
@@ -28,186 +25,23 @@ yarn add @yuva-devlab/tokens
|
|
|
28
25
|
pnpm add @yuva-devlab/tokens
|
|
29
26
|
```
|
|
30
27
|
|
|
31
|
-
|
|
32
|
-
time.
|
|
28
|
+
## Usage with Tailwind CSS 4
|
|
33
29
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
### Colors
|
|
37
|
-
|
|
38
|
-
- **Tonal Palettes** - 13-shade palettes for primary, secondary, tertiary,
|
|
39
|
-
neutral, and error
|
|
40
|
-
- **Semantic Colors** - Theme-aware tokens (background, surface, primary, etc.)
|
|
41
|
-
- **State Colors** - Hover, active, and disabled states
|
|
42
|
-
|
|
43
|
-
### Spacing
|
|
44
|
-
|
|
45
|
-
- **Scale**: `2xs`, `xs`, `sm`, `md`, `lg`, `xl`, `2xl`, `3xl`, `4xl`, `5xl`
|
|
46
|
-
- **Values**: 4px to 96px in systematic increments
|
|
47
|
-
|
|
48
|
-
### Typography
|
|
49
|
-
|
|
50
|
-
- **Sizes**: `xs`, `sm`, `md`, `lg`, `xl`, `2xl`, `3xl`, `4xl`, `5xl`
|
|
51
|
-
- **Weights**: `light`, `regular`, `medium`, `semibold`, `bold`
|
|
52
|
-
- **Line Heights**: Optimized for readability
|
|
53
|
-
|
|
54
|
-
### Other Tokens
|
|
55
|
-
|
|
56
|
-
- **Border Radius**: `sm`, `md`, `lg`, `xl`, `full`
|
|
57
|
-
- **Shadows**: `sm`, `md`, `lg`, `xl`
|
|
58
|
-
- **Z-Index**: Layered system for overlays, modals, tooltips
|
|
59
|
-
- **Breakpoints**: Responsive design breakpoints
|
|
60
|
-
|
|
61
|
-
## Usage
|
|
62
|
-
|
|
63
|
-
### In Vanilla Extract
|
|
64
|
-
|
|
65
|
-
```ts
|
|
66
|
-
import { vars } from "@yuva-devlab/tokens";
|
|
67
|
-
import { style } from "@vanilla-extract/css";
|
|
68
|
-
|
|
69
|
-
export const card = style({
|
|
70
|
-
backgroundColor: vars.colors.surface,
|
|
71
|
-
padding: vars.spacing.lg,
|
|
72
|
-
borderRadius: vars.radii.md,
|
|
73
|
-
boxShadow: vars.shadows.sm,
|
|
74
|
-
|
|
75
|
-
// Typography
|
|
76
|
-
fontSize: vars.typography.size.md,
|
|
77
|
-
lineHeight: vars.typography.lineHeight.md,
|
|
78
|
-
|
|
79
|
-
// Responsive
|
|
80
|
-
"@media": {
|
|
81
|
-
[vars.breakpoints.md]: {
|
|
82
|
-
padding: vars.spacing.xl,
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
});
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
### Importing CSS
|
|
89
|
-
|
|
90
|
-
```tsx
|
|
91
|
-
// Import compiled CSS in your app entry point
|
|
92
|
-
import "@yuva-devlab/tokens/tokens.css";
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
### Using CSS Variables Directly
|
|
30
|
+
In your application's global CSS (e.g. `globals.css`):
|
|
96
31
|
|
|
97
32
|
```css
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
padding: var(--spacing-md);
|
|
101
|
-
border-radius: var(--radii-md);
|
|
102
|
-
}
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
## Color System
|
|
33
|
+
@import "tailwindcss";
|
|
34
|
+
@import "@yuva-devlab/tokens/preset.css";
|
|
106
35
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
```ts
|
|
112
|
-
import { vars } from "@yuva-devlab/tokens";
|
|
113
|
-
|
|
114
|
-
// Primary palette
|
|
115
|
-
vars.palettes.primary[0]; // Lightest
|
|
116
|
-
vars.palettes.primary[50]; // Mid-tone
|
|
117
|
-
vars.palettes.primary[100]; // Darkest
|
|
118
|
-
|
|
119
|
-
// Available palettes:
|
|
120
|
-
// - primary (Natural green)
|
|
121
|
-
// - secondary
|
|
122
|
-
// - tertiary
|
|
123
|
-
// - neutral
|
|
124
|
-
// - neutralVariant
|
|
125
|
-
// - error
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
### Semantic Colors
|
|
129
|
-
|
|
130
|
-
Theme-aware tokens that automatically adapt:
|
|
131
|
-
|
|
132
|
-
```ts
|
|
133
|
-
vars.colors.background; // Page background
|
|
134
|
-
vars.colors.surface; // Card/panel background
|
|
135
|
-
vars.colors.primary; // Primary brand color
|
|
136
|
-
vars.colors.onPrimary; // Text on primary
|
|
137
|
-
vars.colors.secondary; // Secondary color
|
|
138
|
-
vars.colors.error; // Error state
|
|
139
|
-
vars.colors.outline; // Borders
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
## Spacing System
|
|
143
|
-
|
|
144
|
-
```ts
|
|
145
|
-
import { vars } from "@yuva-devlab/tokens";
|
|
146
|
-
|
|
147
|
-
vars.spacing["2xs"]; // 4px
|
|
148
|
-
vars.spacing.xs; // 8px
|
|
149
|
-
vars.spacing.sm; // 12px
|
|
150
|
-
vars.spacing.md; // 16px
|
|
151
|
-
vars.spacing.lg; // 24px
|
|
152
|
-
vars.spacing.xl; // 32px
|
|
153
|
-
vars.spacing["2xl"]; // 48px
|
|
154
|
-
vars.spacing["3xl"]; // 64px
|
|
155
|
-
vars.spacing["4xl"]; // 80px
|
|
156
|
-
vars.spacing["5xl"]; // 96px
|
|
157
|
-
```
|
|
158
|
-
|
|
159
|
-
## Typography
|
|
160
|
-
|
|
161
|
-
```ts
|
|
162
|
-
import { vars } from "@yuva-devlab/tokens";
|
|
163
|
-
|
|
164
|
-
// Sizes
|
|
165
|
-
vars.typography.size.xs; // 12px
|
|
166
|
-
vars.typography.size.sm; // 14px
|
|
167
|
-
vars.typography.size.md; // 16px
|
|
168
|
-
vars.typography.size.lg; // 18px
|
|
169
|
-
vars.typography.size.xl; // 20px
|
|
170
|
-
vars.typography.size["2xl"]; // 24px
|
|
171
|
-
vars.typography.size["3xl"]; // 30px
|
|
172
|
-
vars.typography.size["4xl"]; // 36px
|
|
173
|
-
vars.typography.size["5xl"]; // 48px
|
|
174
|
-
|
|
175
|
-
// Weights
|
|
176
|
-
vars.typography.weight.light; // 300
|
|
177
|
-
vars.typography.weight.regular; // 400
|
|
178
|
-
vars.typography.weight.medium; // 500
|
|
179
|
-
vars.typography.weight.semibold; // 600
|
|
180
|
-
vars.typography.weight.bold; // 700
|
|
181
|
-
```
|
|
182
|
-
|
|
183
|
-
## Development
|
|
184
|
-
|
|
185
|
-
```bash
|
|
186
|
-
# Build tokens
|
|
187
|
-
pnpm --filter @yuva-devlab/tokens build
|
|
188
|
-
|
|
189
|
-
# Watch mode
|
|
190
|
-
pnpm --filter @yuva-devlab/tokens dev
|
|
191
|
-
```
|
|
192
|
-
|
|
193
|
-
## Architecture
|
|
194
|
-
|
|
195
|
-
```
|
|
196
|
-
Color Seeds (HSL)
|
|
197
|
-
↓
|
|
198
|
-
Tonal Palette Generation (MD3 algorithm)
|
|
199
|
-
↓
|
|
200
|
-
Semantic Token Mapping (Light/Dark)
|
|
201
|
-
↓
|
|
202
|
-
CSS Variables (Compiled by Vanilla Extract)
|
|
203
|
-
↓
|
|
204
|
-
Your Components
|
|
36
|
+
/* Include your target app theme */
|
|
37
|
+
@import "@yuva-devlab/tokens/themes/finai.css";
|
|
38
|
+
/* or @import "@yuva-devlab/tokens/themes/orchestrai.css"; */
|
|
205
39
|
```
|
|
206
40
|
|
|
207
|
-
##
|
|
41
|
+
## Available Themes
|
|
208
42
|
|
|
209
|
-
-
|
|
210
|
-
-
|
|
43
|
+
- `@yuva-devlab/tokens/themes/finai.css`: Emerald & forest-green palette optimized for financial clarity and trust.
|
|
44
|
+
- `@yuva-devlab/tokens/themes/orchestrai.css`: Modern high-contrast tech palette for orchestration dashboards.
|
|
211
45
|
|
|
212
46
|
## License
|
|
213
47
|
|
package/package.json
CHANGED
|
@@ -1,46 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yuva-devlab/tokens",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"
|
|
6
|
-
"module": "./dist/index.js",
|
|
7
|
-
"types": "./dist/index.d.ts",
|
|
5
|
+
"style": "./src/styles.css",
|
|
8
6
|
"sideEffects": [
|
|
9
|
-
"**/*.css.ts",
|
|
10
7
|
"**/*.css"
|
|
11
8
|
],
|
|
12
9
|
"exports": {
|
|
13
|
-
".":
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"./tokens.css": "./dist/tokens.css",
|
|
10
|
+
".": "./src/styles.css",
|
|
11
|
+
"./preset.css": "./src/preset.css",
|
|
12
|
+
"./styles.css": "./src/styles.css",
|
|
13
|
+
"./themes/finai.css": "./src/themes/theme-finai.css",
|
|
14
|
+
"./themes/orchestrai.css": "./src/themes/theme-orchestrai.css",
|
|
19
15
|
"./package.json": "./package.json"
|
|
20
16
|
},
|
|
17
|
+
"files": [
|
|
18
|
+
"src"
|
|
19
|
+
],
|
|
21
20
|
"license": "MIT",
|
|
22
21
|
"devDependencies": {
|
|
23
|
-
"@
|
|
24
|
-
"vite": "^7.2.4",
|
|
25
|
-
"vite-plugin-dts": "^4.5.4",
|
|
26
|
-
"@yuva-devlab/colors": "0.1.2",
|
|
27
|
-
"@yuva-devlab/eslint-config": "0.1.1",
|
|
28
|
-
"@yuva-devlab/prettier-config": "0.1.1",
|
|
29
|
-
"@yuva-devlab/typescript-config": "0.1.1"
|
|
30
|
-
},
|
|
31
|
-
"dependencies": {
|
|
32
|
-
"@vanilla-extract/css": "^1.17.4"
|
|
22
|
+
"@yuva-devlab/prettier-config": "0.1.1"
|
|
33
23
|
},
|
|
34
24
|
"scripts": {
|
|
35
|
-
"build": "vite build",
|
|
36
|
-
"lint": "eslint src",
|
|
37
|
-
"lint:fix": "eslint src --fix",
|
|
38
25
|
"format": "prettier --write .",
|
|
39
26
|
"format:check": "prettier --check .",
|
|
40
|
-
"
|
|
41
|
-
"clean:build": "rm -rf dist",
|
|
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"
|
|
27
|
+
"clean": "rm -rf node_modules .turbo"
|
|
45
28
|
}
|
|
46
29
|
}
|
package/src/preset.css
ADDED
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Yuva DevLab Design System — Tailwind CSS 4 Preset Bridge
|
|
3
|
+
*
|
|
4
|
+
* Maps standard design tokens and CSS custom properties to Tailwind utility classes.
|
|
5
|
+
* Can be consumed by any downstream application (e.g. FinAI, OrchestrAI) via:
|
|
6
|
+
* `@import "@yuva-devlab/tokens/preset.css";`
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
@theme inline {
|
|
10
|
+
/* ── Radii Mappings ──────────────────────────────────────────────────────── */
|
|
11
|
+
--radius-sm: calc(var(--radius, 0.5rem) - 4px);
|
|
12
|
+
--radius-md: calc(var(--radius, 0.5rem) - 2px);
|
|
13
|
+
--radius-lg: var(--radius, 0.5rem);
|
|
14
|
+
--radius-xl: calc(var(--radius, 0.5rem) + 4px);
|
|
15
|
+
--radius-2xl: calc(var(--radius, 0.5rem) + 8px);
|
|
16
|
+
--radius-3xl: calc(var(--radius, 0.5rem) + 12px);
|
|
17
|
+
--radius-4xl: calc(var(--radius, 0.5rem) + 16px);
|
|
18
|
+
|
|
19
|
+
/* ── Semantic Color Tokens ────────────────────────────────────────────────── */
|
|
20
|
+
--color-background: var(--background);
|
|
21
|
+
--color-foreground: var(--foreground);
|
|
22
|
+
--color-card: var(--card);
|
|
23
|
+
--color-card-foreground: var(--card-foreground);
|
|
24
|
+
--color-popover: var(--popover);
|
|
25
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
26
|
+
--color-primary: var(--primary);
|
|
27
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
28
|
+
--color-secondary: var(--secondary);
|
|
29
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
30
|
+
--color-muted: var(--muted);
|
|
31
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
32
|
+
--color-accent: var(--accent);
|
|
33
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
34
|
+
--color-destructive: var(--destructive);
|
|
35
|
+
--color-destructive-foreground: var(--destructive-foreground);
|
|
36
|
+
--color-border: var(--border);
|
|
37
|
+
--color-input: var(--input);
|
|
38
|
+
--color-ring: var(--ring);
|
|
39
|
+
|
|
40
|
+
/* ── Contextual System Colors ────────────────────────────────────────────── */
|
|
41
|
+
--color-warning: var(--warning);
|
|
42
|
+
--color-warning-foreground: var(--warning-foreground);
|
|
43
|
+
--color-overlay: var(--overlay);
|
|
44
|
+
|
|
45
|
+
/* ── Navigation & Sidebar ────────────────────────────────────────────────── */
|
|
46
|
+
--color-sidebar: var(--sidebar);
|
|
47
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
48
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
49
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
50
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
51
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
52
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
53
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
54
|
+
|
|
55
|
+
/* ── Visual Data Telemetry (Charts) ──────────────────────────────────────── */
|
|
56
|
+
--color-chart-1: var(--chart-1);
|
|
57
|
+
--color-chart-2: var(--chart-2);
|
|
58
|
+
--color-chart-3: var(--chart-3);
|
|
59
|
+
--color-chart-4: var(--chart-4);
|
|
60
|
+
--color-chart-5: var(--chart-5);
|
|
61
|
+
|
|
62
|
+
/* ── Component Control Dimensions ────────────────────────────────────────── */
|
|
63
|
+
--height-control-xs: var(--control-height-xs, 1.75rem);
|
|
64
|
+
--height-control-sm: var(--control-height-sm, 2rem);
|
|
65
|
+
--height-control-md: var(--control-height-md, 2.25rem);
|
|
66
|
+
--height-control-lg: var(--control-height-lg, 2.5rem);
|
|
67
|
+
--height-control-xl: var(--control-height-xl, 3rem);
|
|
68
|
+
|
|
69
|
+
/* ── Icon Sizing Tokens ──────────────────────────────────────────────────── */
|
|
70
|
+
--size-icon-xs: var(--icon-xs, 0.875rem);
|
|
71
|
+
--size-icon-sm: var(--icon-sm, 1rem);
|
|
72
|
+
--size-icon-md: var(--icon-md, 1.25rem);
|
|
73
|
+
--size-icon-lg: var(--icon-lg, 1.5rem);
|
|
74
|
+
--size-icon-xl: var(--icon-xl, 2rem);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* ── Cybernetic Grid & Graph Topologies ────────────────────────────────────── */
|
|
78
|
+
@utility execution-grid {
|
|
79
|
+
background-image:
|
|
80
|
+
linear-gradient(var(--border) 1px, transparent 1px),
|
|
81
|
+
linear-gradient(90deg, var(--border) 1px, transparent 1px);
|
|
82
|
+
background-size: 36px 36px;
|
|
83
|
+
mask-image: linear-gradient(to bottom, black, transparent 72%);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@utility topology-grid {
|
|
87
|
+
background-image: radial-gradient(
|
|
88
|
+
circle at center,
|
|
89
|
+
var(--border) 1px,
|
|
90
|
+
transparent 1px
|
|
91
|
+
);
|
|
92
|
+
background-size: 18px 18px;
|
|
93
|
+
mask-image: linear-gradient(
|
|
94
|
+
90deg,
|
|
95
|
+
transparent,
|
|
96
|
+
black 15%,
|
|
97
|
+
black 85%,
|
|
98
|
+
transparent
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* ── Live Agent Telemetry Animations ───────────────────────────────────────── */
|
|
103
|
+
@utility animate-agent-pulse {
|
|
104
|
+
animation: agent-pulse 1.8s ease-in-out infinite;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@utility animate-signal-travel {
|
|
108
|
+
animation: signal-travel 1.5s linear infinite;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@utility animate-progress-flow {
|
|
112
|
+
animation: progress-flow 1.8s ease-in-out infinite;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
@utility runner-enter {
|
|
116
|
+
animation: runner-enter 260ms ease-out both;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
@keyframes agent-pulse {
|
|
120
|
+
0%,
|
|
121
|
+
100% {
|
|
122
|
+
opacity: 0.55;
|
|
123
|
+
transform: scale(0.9);
|
|
124
|
+
}
|
|
125
|
+
50% {
|
|
126
|
+
opacity: 1;
|
|
127
|
+
transform: scale(1.15);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@keyframes signal-travel {
|
|
132
|
+
from {
|
|
133
|
+
left: 0;
|
|
134
|
+
}
|
|
135
|
+
to {
|
|
136
|
+
left: calc(100% - 0.5rem);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
@keyframes progress-flow {
|
|
141
|
+
0%,
|
|
142
|
+
100% {
|
|
143
|
+
opacity: 0.55;
|
|
144
|
+
}
|
|
145
|
+
50% {
|
|
146
|
+
opacity: 1;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
@keyframes runner-enter {
|
|
151
|
+
from {
|
|
152
|
+
opacity: 0;
|
|
153
|
+
transform: translateY(6px);
|
|
154
|
+
}
|
|
155
|
+
to {
|
|
156
|
+
opacity: 1;
|
|
157
|
+
transform: translateY(0);
|
|
158
|
+
}
|
|
159
|
+
}
|
package/src/styles.css
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
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-theme="finai"] {
|
|
8
|
+
--radius: 0.75rem;
|
|
9
|
+
--background: oklch(0.985 0.001 247);
|
|
10
|
+
--foreground: oklch(0.21 0.02 260);
|
|
11
|
+
--card: oklch(1 0 0);
|
|
12
|
+
--card-foreground: oklch(0.21 0.02 260);
|
|
13
|
+
--popover: oklch(1 0 0);
|
|
14
|
+
--popover-foreground: oklch(0.21 0.02 260);
|
|
15
|
+
--primary: oklch(0.63 0.14 156);
|
|
16
|
+
--primary-foreground: oklch(0.99 0.005 150);
|
|
17
|
+
--secondary: oklch(0.965 0.003 260);
|
|
18
|
+
--secondary-foreground: oklch(0.21 0.02 260);
|
|
19
|
+
--muted: oklch(0.965 0.003 260);
|
|
20
|
+
--muted-foreground: oklch(0.52 0.015 260);
|
|
21
|
+
--accent: oklch(0.95 0.03 156);
|
|
22
|
+
--accent-foreground: oklch(0.35 0.09 156);
|
|
23
|
+
--destructive: oklch(0.6 0.22 25);
|
|
24
|
+
--destructive-foreground: oklch(0.99 0.005 0);
|
|
25
|
+
--warning: oklch(0.75 0.14 80);
|
|
26
|
+
--warning-foreground: oklch(0.2 0.02 80);
|
|
27
|
+
--border: oklch(0.92 0.005 260);
|
|
28
|
+
--input: oklch(0.92 0.005 260);
|
|
29
|
+
--ring: oklch(0.63 0.14 156);
|
|
30
|
+
--sidebar: oklch(1 0 0);
|
|
31
|
+
--sidebar-foreground: oklch(0.21 0.02 260);
|
|
32
|
+
--sidebar-primary: oklch(0.63 0.14 156);
|
|
33
|
+
--sidebar-primary-foreground: oklch(0.99 0.005 150);
|
|
34
|
+
--sidebar-accent: oklch(0.95 0.03 156);
|
|
35
|
+
--sidebar-accent-foreground: oklch(0.35 0.09 156);
|
|
36
|
+
--sidebar-border: oklch(0.93 0.005 260);
|
|
37
|
+
--sidebar-ring: oklch(0.63 0.14 156);
|
|
38
|
+
--chart-1: oklch(0.63 0.14 156);
|
|
39
|
+
--chart-2: oklch(0.55 0.02 260);
|
|
40
|
+
--chart-3: oklch(0.75 0.04 156);
|
|
41
|
+
--chart-4: oklch(0.7 0.15 60);
|
|
42
|
+
--chart-5: oklch(0.6 0.18 25);
|
|
43
|
+
|
|
44
|
+
/* ── Sizing, Spacing & Layout Tokens ───────────────────────────────────── */
|
|
45
|
+
--control-height-xs: 1.75rem;
|
|
46
|
+
--control-height-sm: 2rem;
|
|
47
|
+
--control-height-md: 2.375rem;
|
|
48
|
+
--control-height-lg: 2.75rem;
|
|
49
|
+
--control-height-xl: 3.25rem;
|
|
50
|
+
|
|
51
|
+
--icon-xs: 0.75rem;
|
|
52
|
+
--icon-sm: 0.875rem;
|
|
53
|
+
--icon-md: 1rem;
|
|
54
|
+
--icon-lg: 1.25rem;
|
|
55
|
+
--icon-xl: 1.5rem;
|
|
56
|
+
|
|
57
|
+
--space-1: 0.25rem;
|
|
58
|
+
--space-2: 0.5rem;
|
|
59
|
+
--space-3: 0.75rem;
|
|
60
|
+
--space-4: 1rem;
|
|
61
|
+
--space-5: 1.25rem;
|
|
62
|
+
--space-6: 1.5rem;
|
|
63
|
+
--space-8: 2rem;
|
|
64
|
+
--space-10: 2.5rem;
|
|
65
|
+
|
|
66
|
+
--card-padding: var(--space-5);
|
|
67
|
+
--dialog-padding: var(--space-6);
|
|
68
|
+
--form-field-gap: var(--space-4);
|
|
69
|
+
--section-gap: var(--space-6);
|
|
70
|
+
--table-row-padding-x: var(--space-6);
|
|
71
|
+
--table-row-padding-y: var(--space-4);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.dark,
|
|
75
|
+
[data-theme="finai-dark"] {
|
|
76
|
+
--background: oklch(0.16 0.015 260);
|
|
77
|
+
--foreground: oklch(0.97 0.003 260);
|
|
78
|
+
--card: oklch(0.2 0.015 260);
|
|
79
|
+
--card-foreground: oklch(0.97 0.003 260);
|
|
80
|
+
--popover: oklch(0.2 0.015 260);
|
|
81
|
+
--popover-foreground: oklch(0.97 0.003 260);
|
|
82
|
+
--primary: oklch(0.7 0.15 156);
|
|
83
|
+
--primary-foreground: oklch(0.15 0.02 260);
|
|
84
|
+
--secondary: oklch(0.25 0.015 260);
|
|
85
|
+
--secondary-foreground: oklch(0.97 0.003 260);
|
|
86
|
+
--muted: oklch(0.25 0.015 260);
|
|
87
|
+
--muted-foreground: oklch(0.7 0.01 260);
|
|
88
|
+
--accent: oklch(0.3 0.05 156);
|
|
89
|
+
--accent-foreground: oklch(0.9 0.08 156);
|
|
90
|
+
--destructive: oklch(0.65 0.2 25);
|
|
91
|
+
--destructive-foreground: oklch(0.97 0.003 0);
|
|
92
|
+
--warning: oklch(0.75 0.14 80);
|
|
93
|
+
--warning-foreground: oklch(0.15 0.02 80);
|
|
94
|
+
--border: oklch(1 0 0 / 8%);
|
|
95
|
+
--input: oklch(1 0 0 / 12%);
|
|
96
|
+
--ring: oklch(0.7 0.15 156);
|
|
97
|
+
--sidebar: oklch(0.18 0.015 260);
|
|
98
|
+
--sidebar-foreground: oklch(0.97 0.003 260);
|
|
99
|
+
--sidebar-primary: oklch(0.7 0.15 156);
|
|
100
|
+
--sidebar-primary-foreground: oklch(0.15 0.02 260);
|
|
101
|
+
--sidebar-accent: oklch(0.26 0.03 156);
|
|
102
|
+
--sidebar-accent-foreground: oklch(0.97 0.003 260);
|
|
103
|
+
--sidebar-border: oklch(1 0 0 / 8%);
|
|
104
|
+
--sidebar-ring: oklch(0.7 0.15 156);
|
|
105
|
+
--chart-1: oklch(0.7 0.15 156);
|
|
106
|
+
--chart-2: oklch(0.6 0.02 260);
|
|
107
|
+
--chart-3: oklch(0.8 0.04 156);
|
|
108
|
+
--chart-4: oklch(0.75 0.15 60);
|
|
109
|
+
--chart-5: oklch(0.65 0.2 25);
|
|
110
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OrchestrAI Theme Preset — Terminal Moss & Deep Slate Cybernetic Palette
|
|
3
|
+
* Modern OKLCH color spaces optimized for high-density agent telemetry and execution logs.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
:root,
|
|
7
|
+
.dark,
|
|
8
|
+
[data-theme="orchestrai"] {
|
|
9
|
+
--radius: 0.5rem;
|
|
10
|
+
--background: oklch(0.195 0.005 120);
|
|
11
|
+
--foreground: oklch(0.93 0.012 112);
|
|
12
|
+
--card: oklch(0.235 0.008 120);
|
|
13
|
+
--card-foreground: oklch(0.93 0.012 112);
|
|
14
|
+
--popover: oklch(0.235 0.008 120);
|
|
15
|
+
--popover-foreground: oklch(0.93 0.012 112);
|
|
16
|
+
--primary: oklch(0.77 0.12 120);
|
|
17
|
+
--primary-foreground: oklch(0.195 0.005 120);
|
|
18
|
+
--secondary: oklch(0.285 0.008 120);
|
|
19
|
+
--secondary-foreground: oklch(0.91 0.01 112);
|
|
20
|
+
--muted: oklch(0.31 0.008 120);
|
|
21
|
+
--muted-foreground: oklch(0.67 0.015 112);
|
|
22
|
+
--accent: oklch(0.34 0.025 120);
|
|
23
|
+
--accent-foreground: oklch(0.9 0.015 112);
|
|
24
|
+
--destructive: oklch(0.61 0.2 27);
|
|
25
|
+
--destructive-foreground: oklch(0.96 0.01 90);
|
|
26
|
+
--warning: oklch(0.72 0.13 78);
|
|
27
|
+
--warning-foreground: oklch(0.2 0.015 78);
|
|
28
|
+
--border: oklch(0.36 0.009 120);
|
|
29
|
+
--input: oklch(0.36 0.009 120);
|
|
30
|
+
--ring: oklch(0.77 0.12 120);
|
|
31
|
+
--sidebar: oklch(0.215 0.006 120);
|
|
32
|
+
--sidebar-foreground: oklch(0.89 0.012 112);
|
|
33
|
+
--sidebar-primary: oklch(0.77 0.12 120);
|
|
34
|
+
--sidebar-primary-foreground: oklch(0.195 0.005 120);
|
|
35
|
+
--sidebar-accent: oklch(0.28 0.02 120);
|
|
36
|
+
--sidebar-accent-foreground: oklch(0.93 0.012 112);
|
|
37
|
+
--sidebar-border: oklch(0.32 0.008 120);
|
|
38
|
+
--sidebar-ring: oklch(0.77 0.12 120);
|
|
39
|
+
--overlay: oklch(0.11 0.004 120);
|
|
40
|
+
--chart-1: oklch(0.77 0.12 120);
|
|
41
|
+
--chart-2: oklch(0.65 0.1 190);
|
|
42
|
+
--chart-3: oklch(0.7 0.13 78);
|
|
43
|
+
--chart-4: oklch(0.62 0.16 310);
|
|
44
|
+
--chart-5: oklch(0.72 0.12 40);
|
|
45
|
+
}
|
package/.prettierignore
DELETED
package/.turbo/turbo-build.log
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
> @yuva-devlab/tokens@0.1.2 build /home/runner/work/yuva-devlab-design-system/yuva-devlab-design-system/packages/tokens
|
|
3
|
-
> vite build
|
|
4
|
-
|
|
5
|
-
[36mvite v7.2.4 [32mbuilding client environment for production...[36m[39m
|
|
6
|
-
transforming...
|
|
7
|
-
[32m✓[39m 21 modules transformed.
|
|
8
|
-
rendering chunks...
|
|
9
|
-
|
|
10
|
-
[vite:dts] Start generate declaration files...
|
|
11
|
-
computing gzip size...
|
|
12
|
-
[2mdist/[22m[35mtokens.css [39m[1m[2m9.42 kB[22m[1m[22m[2m │ gzip: 2.19 kB[22m
|
|
13
|
-
[2mdist/[22m[36mindex.js [39m[1m[2m7.43 kB[22m[1m[22m[2m │ gzip: 1.55 kB[22m
|
|
14
|
-
[vite:dts] Declaration files built in 998ms.
|
|
15
|
-
|
|
16
|
-
[2mdist/[22m[35mtokens.css [39m[1m[2m9.42 kB[22m[1m[22m[2m │ gzip: 2.19 kB[22m
|
|
17
|
-
[2mdist/[22m[36mindex.cjs [39m[1m[2m6.95 kB[22m[1m[22m[2m │ gzip: 1.59 kB[22m
|
|
18
|
-
[32m✓ built in 1.37s[39m
|
package/CHANGELOG.md
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# @yuva-devlab/tokens
|
|
2
|
-
|
|
3
|
-
## 0.1.2
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- 38c0267: Migrate CLI to ESM, replace StyleX with Vanilla Extract, and
|
|
8
|
-
standardize documentation
|
|
9
|
-
|
|
10
|
-
CLI now uses ES modules for better compatibility with modern tools like Chalk
|
|
11
|
-
v5. Component templates have been updated to use Vanilla Extract instead of
|
|
12
|
-
StyleX, matching the actual project implementation. All package READMEs now
|
|
13
|
-
show consistent examples for npm, yarn, and pnpm.
|
|
14
|
-
|
|
15
|
-
Breaking: CLI requires Node.js 18+ for ESM support
|
|
16
|
-
|
|
17
|
-
## 0.1.1
|
|
18
|
-
|
|
19
|
-
### Patch Changes
|
|
20
|
-
|
|
21
|
-
- 2cc8dcf: Complete documentation rewrite with comprehensive examples and API
|
|
22
|
-
reference
|
|
23
|
-
|
|
24
|
-
## 0.1.0
|
|
25
|
-
|
|
26
|
-
### Minor Changes
|
|
27
|
-
|
|
28
|
-
- 16c5cc8: Initial Alpha release of the complete Yuva Devlab UI Library
|
|
29
|
-
ecosystem. Includes:
|
|
30
|
-
- Headless Radix Primitives
|
|
31
|
-
- Vanilla Extract Styling System
|
|
32
|
-
- Comprehensive Design Tokens
|
|
33
|
-
- Modern React Components
|
|
34
|
-
- Scalable Monorepo Configuration
|
|
35
|
-
- CLI tool for component scaffolding
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Responsive breakpoint tokens.
|
|
3
|
-
* Mobile-first approach aligned with common device sizes.
|
|
4
|
-
*/
|
|
5
|
-
export declare const breakpoints: {
|
|
6
|
-
xs: `var(--${string})`;
|
|
7
|
-
sm: `var(--${string})`;
|
|
8
|
-
md: `var(--${string})`;
|
|
9
|
-
lg: `var(--${string})`;
|
|
10
|
-
xl: `var(--${string})`;
|
|
11
|
-
"2xl": `var(--${string})`;
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=breakpoints.css.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"breakpoints.css.d.ts","sourceRoot":"","sources":["../src/breakpoints.css.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,WAAW;;;;;;;CAOtB,CAAC"}
|