@j3m-quantum/ui 0.1.0 → 0.2.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/dist/index.cjs +566 -246
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +82 -27
- package/dist/index.d.ts +82 -27
- package/dist/index.js +558 -245
- package/dist/index.js.map +1 -1
- package/dist/styles/base-theme.css +124 -0
- package/dist/styles/index.css +7 -4
- package/package.json +31 -11
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/* ========================================
|
|
2
|
+
SHADCN BASE THEME
|
|
3
|
+
Required CSS variables for Tailwind v4 theme colors.
|
|
4
|
+
These map to the Tailwind classes used by components.
|
|
5
|
+
======================================== */
|
|
6
|
+
|
|
7
|
+
@theme {
|
|
8
|
+
/* Core colors */
|
|
9
|
+
--color-background: #ffffff;
|
|
10
|
+
--color-foreground: #09090b;
|
|
11
|
+
|
|
12
|
+
/* Card */
|
|
13
|
+
--color-card: #ffffff;
|
|
14
|
+
--color-card-foreground: #09090b;
|
|
15
|
+
|
|
16
|
+
/* Popover */
|
|
17
|
+
--color-popover: #ffffff;
|
|
18
|
+
--color-popover-foreground: #09090b;
|
|
19
|
+
|
|
20
|
+
/* Primary - J3M Orange */
|
|
21
|
+
--color-primary: var(--j3m-primary-300, #F36C21);
|
|
22
|
+
--color-primary-foreground: #ffffff;
|
|
23
|
+
|
|
24
|
+
/* Secondary */
|
|
25
|
+
--color-secondary: #f4f4f5;
|
|
26
|
+
--color-secondary-foreground: #18181b;
|
|
27
|
+
|
|
28
|
+
/* Muted */
|
|
29
|
+
--color-muted: #f4f4f5;
|
|
30
|
+
--color-muted-foreground: #71717a;
|
|
31
|
+
|
|
32
|
+
/* Accent */
|
|
33
|
+
--color-accent: #f4f4f5;
|
|
34
|
+
--color-accent-foreground: #18181b;
|
|
35
|
+
|
|
36
|
+
/* Destructive */
|
|
37
|
+
--color-destructive: #ef4444;
|
|
38
|
+
--color-destructive-foreground: #fafafa;
|
|
39
|
+
|
|
40
|
+
/* Border & Input */
|
|
41
|
+
--color-border: #e4e4e7;
|
|
42
|
+
--color-input: #e4e4e7;
|
|
43
|
+
--color-ring: var(--j3m-primary-300, #F36C21);
|
|
44
|
+
|
|
45
|
+
/* Sidebar */
|
|
46
|
+
--color-sidebar: #fafafa;
|
|
47
|
+
--color-sidebar-foreground: #09090b;
|
|
48
|
+
--color-sidebar-primary: var(--j3m-primary-300, #F36C21);
|
|
49
|
+
--color-sidebar-primary-foreground: #ffffff;
|
|
50
|
+
--color-sidebar-accent: #f4f4f5;
|
|
51
|
+
--color-sidebar-accent-foreground: #18181b;
|
|
52
|
+
--color-sidebar-border: #e4e4e7;
|
|
53
|
+
--color-sidebar-ring: var(--j3m-primary-300, #F36C21);
|
|
54
|
+
|
|
55
|
+
/* Chart colors - J3M branded */
|
|
56
|
+
--color-chart-1: var(--j3m-primary-300, #F36C21);
|
|
57
|
+
--color-chart-2: var(--j3m-green-200, #1FC16B);
|
|
58
|
+
--color-chart-3: var(--j3m-neutral-700, #777777);
|
|
59
|
+
--color-chart-4: var(--j3m-yellow-100, #FFDB43);
|
|
60
|
+
--color-chart-5: var(--j3m-primary-200, #F79D6B);
|
|
61
|
+
|
|
62
|
+
/* Default radius */
|
|
63
|
+
--radius: 0.5rem;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* ========================================
|
|
67
|
+
DARK MODE
|
|
68
|
+
======================================== */
|
|
69
|
+
|
|
70
|
+
.dark {
|
|
71
|
+
--color-background: #09090b;
|
|
72
|
+
--color-foreground: #fafafa;
|
|
73
|
+
|
|
74
|
+
--color-card: #09090b;
|
|
75
|
+
--color-card-foreground: #fafafa;
|
|
76
|
+
|
|
77
|
+
--color-popover: #09090b;
|
|
78
|
+
--color-popover-foreground: #fafafa;
|
|
79
|
+
|
|
80
|
+
--color-primary: var(--j3m-primary-250, #F58446);
|
|
81
|
+
--color-primary-foreground: #18181b;
|
|
82
|
+
|
|
83
|
+
--color-secondary: #27272a;
|
|
84
|
+
--color-secondary-foreground: #fafafa;
|
|
85
|
+
|
|
86
|
+
--color-muted: #27272a;
|
|
87
|
+
--color-muted-foreground: #a1a1aa;
|
|
88
|
+
|
|
89
|
+
--color-accent: #27272a;
|
|
90
|
+
--color-accent-foreground: #fafafa;
|
|
91
|
+
|
|
92
|
+
--color-destructive: #7f1d1d;
|
|
93
|
+
--color-destructive-foreground: #fafafa;
|
|
94
|
+
|
|
95
|
+
--color-border: #27272a;
|
|
96
|
+
--color-input: #27272a;
|
|
97
|
+
--color-ring: var(--j3m-primary-250, #F58446);
|
|
98
|
+
|
|
99
|
+
--color-sidebar: #09090b;
|
|
100
|
+
--color-sidebar-foreground: #fafafa;
|
|
101
|
+
--color-sidebar-primary: var(--j3m-primary-250, #F58446);
|
|
102
|
+
--color-sidebar-primary-foreground: #18181b;
|
|
103
|
+
--color-sidebar-accent: #27272a;
|
|
104
|
+
--color-sidebar-accent-foreground: #fafafa;
|
|
105
|
+
--color-sidebar-border: #27272a;
|
|
106
|
+
--color-sidebar-ring: var(--j3m-primary-250, #F58446);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/* ========================================
|
|
110
|
+
BASE STYLES
|
|
111
|
+
======================================== */
|
|
112
|
+
|
|
113
|
+
@layer base {
|
|
114
|
+
* {
|
|
115
|
+
border-color: var(--color-border);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
body {
|
|
119
|
+
background-color: var(--color-background);
|
|
120
|
+
color: var(--color-foreground);
|
|
121
|
+
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
package/dist/styles/index.css
CHANGED
|
@@ -5,12 +5,15 @@
|
|
|
5
5
|
Import this in your app to get the full J3M theme.
|
|
6
6
|
|
|
7
7
|
Usage:
|
|
8
|
-
import
|
|
8
|
+
@import "tailwindcss";
|
|
9
|
+
@import "@j3m-quantum/ui/styles";
|
|
9
10
|
======================================== */
|
|
10
11
|
|
|
11
|
-
/* 1.
|
|
12
|
+
/* 1. Shadcn Base Theme (Tailwind v4 theme colors) */
|
|
13
|
+
@import "./base-theme.css";
|
|
14
|
+
|
|
15
|
+
/* 2. J3M Design Tokens (primitives, scales) */
|
|
12
16
|
@import "./tokens.css";
|
|
13
17
|
|
|
14
|
-
/*
|
|
18
|
+
/* 3. J3M Theme Overrides (component customizations) */
|
|
15
19
|
@import "./theme.css";
|
|
16
|
-
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@j3m-quantum/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "J3M UI Component Library - themed shadcn/ui components with design tokens",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -92,16 +92,36 @@
|
|
|
92
92
|
"vaul": "^1.0.0"
|
|
93
93
|
},
|
|
94
94
|
"peerDependenciesMeta": {
|
|
95
|
-
"cmdk": {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
"
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
"
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
"
|
|
95
|
+
"cmdk": {
|
|
96
|
+
"optional": true
|
|
97
|
+
},
|
|
98
|
+
"date-fns": {
|
|
99
|
+
"optional": true
|
|
100
|
+
},
|
|
101
|
+
"embla-carousel-react": {
|
|
102
|
+
"optional": true
|
|
103
|
+
},
|
|
104
|
+
"input-otp": {
|
|
105
|
+
"optional": true
|
|
106
|
+
},
|
|
107
|
+
"react-day-picker": {
|
|
108
|
+
"optional": true
|
|
109
|
+
},
|
|
110
|
+
"react-hook-form": {
|
|
111
|
+
"optional": true
|
|
112
|
+
},
|
|
113
|
+
"react-resizable-panels": {
|
|
114
|
+
"optional": true
|
|
115
|
+
},
|
|
116
|
+
"recharts": {
|
|
117
|
+
"optional": true
|
|
118
|
+
},
|
|
119
|
+
"sonner": {
|
|
120
|
+
"optional": true
|
|
121
|
+
},
|
|
122
|
+
"vaul": {
|
|
123
|
+
"optional": true
|
|
124
|
+
}
|
|
105
125
|
},
|
|
106
126
|
"devDependencies": {
|
|
107
127
|
"@changesets/cli": "^2.29.4",
|