@potenlab/ui 0.2.2 → 0.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@potenlab/ui",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Potenlab shared UI component library",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,9 +1,168 @@
1
1
  @import "tailwindcss";
2
2
  @import "tw-animate-css";
3
3
  @import "shadcn/tailwind.css";
4
- @import "@potenlab/ui/styles/globals.css";
5
4
  @source "../node_modules/@potenlab/ui/dist";
6
5
 
6
+ @custom-variant dark (&:is(.dark *));
7
+
8
+ /* ============================================================
9
+ Tailwind CSS 4 @theme — Potenlab Design Tokens
10
+ ============================================================ */
11
+ @theme inline {
12
+ /* shadcn/ui CSS-variable-backed colors */
13
+ --color-background: var(--background);
14
+ --color-foreground: var(--foreground);
15
+ --color-card: var(--card);
16
+ --color-card-foreground: var(--card-foreground);
17
+ --color-popover: var(--popover);
18
+ --color-popover-foreground: var(--popover-foreground);
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-ring: var(--ring);
28
+ --color-input: var(--input);
29
+
30
+ /* shadcn sidebar colors */
31
+ --color-sidebar-ring: var(--sidebar-ring);
32
+ --color-sidebar-border: var(--sidebar-border);
33
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
34
+ --color-sidebar-accent: var(--sidebar-accent);
35
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
36
+ --color-sidebar-primary: var(--sidebar-primary);
37
+ --color-sidebar-foreground: var(--sidebar-foreground);
38
+ --color-sidebar: var(--sidebar);
39
+
40
+ /* shadcn chart colors */
41
+ --color-chart-5: var(--chart-5);
42
+ --color-chart-4: var(--chart-4);
43
+ --color-chart-3: var(--chart-3);
44
+ --color-chart-2: var(--chart-2);
45
+ --color-chart-1: var(--chart-1);
46
+
47
+ /* Potenlab brand colors */
48
+ --color-primary: #509594;
49
+ --color-primary-hover: #3F7A79;
50
+ --color-primary-active: #357070;
51
+ --color-primary-light: #B9D5D4;
52
+
53
+ /* Backgrounds & surfaces */
54
+ --color-surface: #FFFFFF;
55
+ --color-border: #E2E8F0;
56
+ --color-divider: #EFF1F4;
57
+ --color-table-header: #F9FAFC;
58
+ --color-sidebar-selected: #EEF2F6;
59
+
60
+ /* Text colors */
61
+ --color-placeholder: #A0AEC0;
62
+ --color-subtitle: #9DA0A8;
63
+ --color-muted-fg: #5A5E6A;
64
+ --color-table-cell: #3B3F4A;
65
+ --color-inactive-tab-text: #1A202C;
66
+
67
+ /* Component-specific */
68
+ --color-inactive-tab: #EFF1F4;
69
+ --color-badge-green-bg: #C6F6D5;
70
+ --color-badge-green-text: #22543D;
71
+ --color-toggle-on: #3B82F6;
72
+ --color-toggle-off: #CBD5E0;
73
+ --color-delete-text: #3F7A79;
74
+
75
+ /* Font family tokens */
76
+ --font-pretendard: 'Pretendard Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
77
+ --font-inter: var(--font-inter-var, 'Inter'), 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
78
+ --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
79
+ --font-sans: 'Pretendard Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
80
+
81
+ /* Border radii */
82
+ --radius-sm: calc(var(--radius) - 4px);
83
+ --radius-md: calc(var(--radius) - 2px);
84
+ --radius-lg: var(--radius);
85
+ --radius-xl: calc(var(--radius) + 4px);
86
+ --radius-2xl: calc(var(--radius) + 8px);
87
+ --radius-3xl: calc(var(--radius) + 12px);
88
+ --radius-4xl: calc(var(--radius) + 16px);
89
+ }
90
+
91
+ /* ============================================================
92
+ :root — CSS variables for shadcn/ui overrides
93
+ ============================================================ */
94
+ :root {
95
+ --radius: 0.625rem;
96
+
97
+ --background: #FCFCFC;
98
+ --foreground: #000000;
99
+ --card: #FFFFFF;
100
+ --card-foreground: #000000;
101
+ --popover: #FFFFFF;
102
+ --popover-foreground: #000000;
103
+ --primary: #509594;
104
+ --primary-foreground: #FFFFFF;
105
+ --secondary: #EEF2F6;
106
+ --secondary-foreground: #000000;
107
+ --muted: #F9FAFC;
108
+ --muted-foreground: #5A5E6A;
109
+ --accent: #EEF2F6;
110
+ --accent-foreground: #000000;
111
+ --destructive: #EF4444;
112
+ --border: #E2E8F0;
113
+ --input: #E2E8F0;
114
+ --ring: #509594;
115
+
116
+ --chart-1: oklch(0.646 0.222 41.116);
117
+ --chart-2: oklch(0.6 0.118 184.704);
118
+ --chart-3: oklch(0.398 0.07 227.392);
119
+ --chart-4: oklch(0.828 0.189 84.429);
120
+ --chart-5: oklch(0.769 0.188 70.08);
121
+
122
+ --sidebar: #FFFFFF;
123
+ --sidebar-foreground: #000000;
124
+ --sidebar-primary: #509594;
125
+ --sidebar-primary-foreground: #FFFFFF;
126
+ --sidebar-accent: #EEF2F6;
127
+ --sidebar-accent-foreground: #000000;
128
+ --sidebar-border: #E2E8F0;
129
+ --sidebar-ring: #509594;
130
+ }
131
+
132
+ .dark {
133
+ --background: oklch(0.145 0 0);
134
+ --foreground: oklch(0.985 0 0);
135
+ --card: oklch(0.205 0 0);
136
+ --card-foreground: oklch(0.985 0 0);
137
+ --popover: oklch(0.205 0 0);
138
+ --popover-foreground: oklch(0.985 0 0);
139
+ --primary: oklch(0.922 0 0);
140
+ --primary-foreground: oklch(0.205 0 0);
141
+ --secondary: oklch(0.269 0 0);
142
+ --secondary-foreground: oklch(0.985 0 0);
143
+ --muted: oklch(0.269 0 0);
144
+ --muted-foreground: oklch(0.708 0 0);
145
+ --accent: oklch(0.269 0 0);
146
+ --accent-foreground: oklch(0.985 0 0);
147
+ --destructive: oklch(0.704 0.191 22.216);
148
+ --border: oklch(1 0 0 / 10%);
149
+ --input: oklch(1 0 0 / 15%);
150
+ --ring: oklch(0.556 0 0);
151
+ --chart-1: oklch(0.488 0.243 264.376);
152
+ --chart-2: oklch(0.696 0.17 162.48);
153
+ --chart-3: oklch(0.769 0.188 70.08);
154
+ --chart-4: oklch(0.627 0.265 303.9);
155
+ --chart-5: oklch(0.645 0.246 16.439);
156
+ --sidebar: oklch(0.205 0 0);
157
+ --sidebar-foreground: oklch(0.985 0 0);
158
+ --sidebar-primary: oklch(0.488 0.243 264.376);
159
+ --sidebar-primary-foreground: oklch(0.985 0 0);
160
+ --sidebar-accent: oklch(0.269 0 0);
161
+ --sidebar-accent-foreground: oklch(0.985 0 0);
162
+ --sidebar-border: oklch(1 0 0 / 10%);
163
+ --sidebar-ring: oklch(0.556 0 0);
164
+ }
165
+
7
166
  @layer base {
8
167
  * {
9
168
  @apply border-border outline-ring/50;