@godxjp/ui 2.1.0 → 2.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/package.json +2 -1
- package/src/tokens/tokens-ext.css +401 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@godxjp/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "GoDX Forge unified design system — tokens, primitives, i18n, hooks shared across every service frontend (admin-platform, forge-service, console-service, me-service, agent-service, knowledge-service, …). Source of truth for design language per Plan #19/#22.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"./tokens": "./src/tokens/tokens.css",
|
|
40
40
|
"./tokens.css": "./src/tokens/tokens.css",
|
|
41
|
+
"./tokens-ext.css": "./src/tokens/tokens-ext.css",
|
|
41
42
|
"./i18n": {
|
|
42
43
|
"types": "./dist/i18n.d.ts",
|
|
43
44
|
"import": "./dist/i18n.js"
|
|
@@ -0,0 +1,401 @@
|
|
|
1
|
+
/* ============================================================================
|
|
2
|
+
* Famgia / godx — Unified Design System extensions
|
|
3
|
+
* Builds on tokens.css (dxs-kintai) + adds:
|
|
4
|
+
* - Dark mode
|
|
5
|
+
* - 4 tenant presets (godx, betoya, kintai, tempo)
|
|
6
|
+
* - Sidebar variables, status dots, focus rings
|
|
7
|
+
* - Utility classes used across the prototype
|
|
8
|
+
* ========================================================================= */
|
|
9
|
+
|
|
10
|
+
:root {
|
|
11
|
+
/* Layout extensions */
|
|
12
|
+
--sidebar-bg: oklch(98% 0.003 60);
|
|
13
|
+
--sidebar-border: var(--border);
|
|
14
|
+
--sidebar-fg: var(--foreground);
|
|
15
|
+
--sidebar-muted: var(--muted-foreground);
|
|
16
|
+
--sidebar-active-bg: oklch(95% 0.02 240);
|
|
17
|
+
--sidebar-active-fg: var(--primary);
|
|
18
|
+
--topbar-bg: var(--background);
|
|
19
|
+
--topbar-border: var(--border);
|
|
20
|
+
|
|
21
|
+
--surface-1: oklch(99% 0.002 60); /* card, popover */
|
|
22
|
+
--surface-2: oklch(97% 0.003 60); /* page bg subtle */
|
|
23
|
+
--surface-3: oklch(95% 0.004 60); /* hover, accent */
|
|
24
|
+
--surface-inset: oklch(96% 0.004 60);
|
|
25
|
+
|
|
26
|
+
--kbd-bg: oklch(94% 0.005 60);
|
|
27
|
+
|
|
28
|
+
/* Status dot tokens — use as bg-color */
|
|
29
|
+
--dot-success: var(--success);
|
|
30
|
+
--dot-warning: var(--warning);
|
|
31
|
+
--dot-error: var(--error);
|
|
32
|
+
--dot-info: var(--info);
|
|
33
|
+
--dot-attention: var(--attention);
|
|
34
|
+
--dot-muted: var(--muted-foreground);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
[data-tenant="godx"] {
|
|
38
|
+
/* Default: Famgia emerald accent (--brand) + SmartHR blue primary */
|
|
39
|
+
--primary: oklch(56% 0.15 240);
|
|
40
|
+
--primary-foreground: oklch(99% 0.002 60);
|
|
41
|
+
--ring: oklch(56% 0.15 240);
|
|
42
|
+
--brand: oklch(60% 0.137 163);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
[data-tenant="kintai"] {
|
|
46
|
+
--primary: oklch(56% 0.15 240); /* SmartHR blue */
|
|
47
|
+
--primary-foreground: oklch(99% 0.002 60);
|
|
48
|
+
--ring: oklch(56% 0.15 240);
|
|
49
|
+
--brand: oklch(56% 0.15 240);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
[data-tenant="tempo"] {
|
|
53
|
+
--primary: oklch(48% 0.16 285); /* deeper indigo for Tempo */
|
|
54
|
+
--primary-foreground: oklch(99% 0.002 60);
|
|
55
|
+
--ring: oklch(48% 0.16 285);
|
|
56
|
+
--brand: oklch(48% 0.16 285);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
[data-tenant="betoya"] {
|
|
60
|
+
--primary: oklch(58% 0.159 150);
|
|
61
|
+
--primary-foreground: oklch(99% 0.002 60);
|
|
62
|
+
--ring: oklch(58% 0.159 150);
|
|
63
|
+
--brand: oklch(58% 0.159 150);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* Dark mode */
|
|
67
|
+
[data-theme="dark"] {
|
|
68
|
+
--background: oklch(18% 0.005 60);
|
|
69
|
+
--foreground: oklch(95% 0.005 60);
|
|
70
|
+
--card: oklch(22% 0.005 60);
|
|
71
|
+
--card-foreground: oklch(95% 0.005 60);
|
|
72
|
+
--popover: oklch(24% 0.005 60);
|
|
73
|
+
--popover-foreground: oklch(95% 0.005 60);
|
|
74
|
+
--secondary: oklch(26% 0.006 60);
|
|
75
|
+
--secondary-foreground: oklch(95% 0.005 60);
|
|
76
|
+
--muted: oklch(26% 0.006 60);
|
|
77
|
+
--muted-foreground: oklch(68% 0.008 60);
|
|
78
|
+
--accent: oklch(30% 0.008 60);
|
|
79
|
+
--accent-foreground: oklch(95% 0.005 60);
|
|
80
|
+
--border: oklch(32% 0.008 60);
|
|
81
|
+
--input: oklch(32% 0.008 60);
|
|
82
|
+
--input-background: oklch(24% 0.005 60);
|
|
83
|
+
|
|
84
|
+
--sidebar-bg: oklch(20% 0.005 60);
|
|
85
|
+
--sidebar-border: oklch(28% 0.006 60);
|
|
86
|
+
--sidebar-fg: oklch(92% 0.005 60);
|
|
87
|
+
--sidebar-muted: oklch(64% 0.008 60);
|
|
88
|
+
--sidebar-active-bg: oklch(28% 0.04 240);
|
|
89
|
+
--sidebar-active-fg: oklch(78% 0.13 240);
|
|
90
|
+
--topbar-bg: oklch(20% 0.005 60);
|
|
91
|
+
--topbar-border: oklch(28% 0.006 60);
|
|
92
|
+
|
|
93
|
+
--surface-1: oklch(22% 0.005 60);
|
|
94
|
+
--surface-2: oklch(20% 0.005 60);
|
|
95
|
+
--surface-3: oklch(28% 0.008 60);
|
|
96
|
+
--surface-inset: oklch(24% 0.006 60);
|
|
97
|
+
|
|
98
|
+
--kbd-bg: oklch(28% 0.008 60);
|
|
99
|
+
|
|
100
|
+
--primary: oklch(70% 0.13 240);
|
|
101
|
+
--primary-foreground: oklch(18% 0.005 60);
|
|
102
|
+
--ring: oklch(70% 0.13 240);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
[data-theme="dark"][data-tenant="kintai"] { --primary: oklch(70% 0.13 240); --ring: oklch(70% 0.13 240); --brand: oklch(70% 0.13 240); }
|
|
106
|
+
[data-theme="dark"][data-tenant="tempo"] { --primary: oklch(70% 0.14 285); --ring: oklch(70% 0.14 285); --brand: oklch(70% 0.14 285); }
|
|
107
|
+
[data-theme="dark"][data-tenant="betoya"] { --primary: oklch(72% 0.14 150); --ring: oklch(72% 0.14 150); --brand: oklch(72% 0.14 150); }
|
|
108
|
+
[data-theme="dark"][data-tenant="godx"] { --primary: oklch(70% 0.13 240); --ring: oklch(70% 0.13 240); --brand: oklch(72% 0.13 163); }
|
|
109
|
+
|
|
110
|
+
/* ── Globals ──────────────────────────────────────────────────────── */
|
|
111
|
+
* { box-sizing: border-box; }
|
|
112
|
+
html, body { margin: 0; padding: 0; }
|
|
113
|
+
body {
|
|
114
|
+
font-family: var(--font-sans-jp);
|
|
115
|
+
font-size: var(--text-base);
|
|
116
|
+
line-height: var(--leading-body);
|
|
117
|
+
color: var(--foreground);
|
|
118
|
+
background: var(--background);
|
|
119
|
+
-webkit-font-smoothing: antialiased;
|
|
120
|
+
text-rendering: optimizeLegibility;
|
|
121
|
+
font-feature-settings: "palt";
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
button { font-family: inherit; cursor: pointer; }
|
|
125
|
+
input, textarea, select { font-family: inherit; color: inherit; }
|
|
126
|
+
::selection { background: color-mix(in oklch, var(--primary) 30%, transparent); }
|
|
127
|
+
|
|
128
|
+
/* Scrollbar */
|
|
129
|
+
::-webkit-scrollbar { width: 10px; height: 10px; }
|
|
130
|
+
::-webkit-scrollbar-thumb { background: color-mix(in oklch, var(--muted-foreground) 30%, transparent); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
|
|
131
|
+
::-webkit-scrollbar-thumb:hover { background: color-mix(in oklch, var(--muted-foreground) 50%, transparent); border: 2px solid transparent; background-clip: padding-box; }
|
|
132
|
+
::-webkit-scrollbar-track { background: transparent; }
|
|
133
|
+
|
|
134
|
+
/* ── App shell ────────────────────────────────────────────────────── */
|
|
135
|
+
.app-root {
|
|
136
|
+
display: grid;
|
|
137
|
+
grid-template-columns: var(--sidebar-width) 1fr;
|
|
138
|
+
grid-template-rows: var(--header-height) 1fr;
|
|
139
|
+
grid-template-areas: "sidebar topbar" "sidebar main";
|
|
140
|
+
height: 100vh;
|
|
141
|
+
background: var(--surface-2);
|
|
142
|
+
transition: grid-template-columns var(--sidebar-transition) var(--ease-in-out);
|
|
143
|
+
}
|
|
144
|
+
.app-root[data-collapsed="true"] { grid-template-columns: var(--sidebar-collapsed-width) 1fr; }
|
|
145
|
+
|
|
146
|
+
.app-sidebar { grid-area: sidebar; background: var(--sidebar-bg); border-right: 1px solid var(--sidebar-border); display: flex; flex-direction: column; overflow: hidden; }
|
|
147
|
+
.app-topbar { grid-area: topbar; background: var(--topbar-bg); border-bottom: 1px solid var(--topbar-border); display: flex; align-items: center; padding: 0 var(--spacing-4); gap: var(--spacing-3); }
|
|
148
|
+
.app-main { grid-area: main; overflow: auto; }
|
|
149
|
+
|
|
150
|
+
/* Sidebar */
|
|
151
|
+
.sb-product { display: flex; align-items: center; gap: var(--spacing-2); height: var(--header-height); padding: 0 var(--spacing-4); border-bottom: 1px solid var(--sidebar-border); flex-shrink: 0; cursor: pointer; user-select: none; }
|
|
152
|
+
.sb-product:hover { background: var(--surface-3); }
|
|
153
|
+
.sb-logo-mark { width: 24px; height: 24px; border-radius: 6px; background: var(--brand); color: var(--primary-foreground); display: grid; place-items: center; font-weight: 700; font-size: 12px; flex-shrink: 0; }
|
|
154
|
+
.sb-product-name { font-weight: 500; font-size: var(--text-sm); white-space: nowrap; overflow: hidden; }
|
|
155
|
+
.sb-product-tenant { font-size: var(--text-2xs); color: var(--sidebar-muted); white-space: nowrap; }
|
|
156
|
+
|
|
157
|
+
.sb-section { padding: var(--spacing-3) var(--spacing-2); }
|
|
158
|
+
.sb-section + .sb-section { border-top: 1px solid var(--sidebar-border); }
|
|
159
|
+
.sb-section-label { font-size: var(--text-2xs); color: var(--sidebar-muted); text-transform: uppercase; letter-spacing: 0.06em; padding: 0 var(--spacing-2) var(--spacing-1); white-space: nowrap; overflow: hidden; }
|
|
160
|
+
.sb-nav { display: flex; flex-direction: column; gap: 1px; }
|
|
161
|
+
.sb-nav-item { display: flex; align-items: center; gap: var(--spacing-2); height: var(--density-element-sm); padding: 0 var(--spacing-2); border-radius: var(--radius-md); color: var(--sidebar-fg); font-size: var(--text-sm); cursor: pointer; user-select: none; white-space: nowrap; overflow: hidden; }
|
|
162
|
+
.sb-nav-item:hover { background: var(--surface-3); }
|
|
163
|
+
.sb-nav-item[data-active="true"] { background: var(--sidebar-active-bg); color: var(--sidebar-active-fg); font-weight: 500; }
|
|
164
|
+
.sb-nav-item .sb-icon { flex-shrink: 0; width: 16px; height: 16px; display: grid; place-items: center; }
|
|
165
|
+
.sb-nav-item .sb-label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
|
|
166
|
+
.sb-nav-item .sb-badge { background: var(--surface-3); color: var(--muted-foreground); font-size: var(--text-2xs); padding: 1px 6px; border-radius: var(--radius-full); }
|
|
167
|
+
.sb-nav-item[data-active="true"] .sb-badge { background: color-mix(in oklch, var(--primary) 18%, transparent); color: var(--primary); }
|
|
168
|
+
|
|
169
|
+
.app-root[data-collapsed="true"] .sb-product-name,
|
|
170
|
+
.app-root[data-collapsed="true"] .sb-product-tenant,
|
|
171
|
+
.app-root[data-collapsed="true"] .sb-section-label,
|
|
172
|
+
.app-root[data-collapsed="true"] .sb-label,
|
|
173
|
+
.app-root[data-collapsed="true"] .sb-badge { display: none; }
|
|
174
|
+
.app-root[data-collapsed="true"] .sb-nav-item { justify-content: center; padding: 0; width: var(--density-element-sm); margin: 0 auto; }
|
|
175
|
+
.app-root[data-collapsed="true"] .sb-product { padding: 0; justify-content: center; }
|
|
176
|
+
|
|
177
|
+
.sb-footer { margin-top: auto; border-top: 1px solid var(--sidebar-border); padding: var(--spacing-3) var(--spacing-2); }
|
|
178
|
+
|
|
179
|
+
/* Topbar */
|
|
180
|
+
.tb-breadcrumb { display: flex; align-items: center; gap: var(--spacing-1); font-size: var(--text-sm); color: var(--muted-foreground); flex: 1; min-width: 0; }
|
|
181
|
+
.tb-breadcrumb .crumb { padding: 2px 6px; border-radius: var(--radius-md); white-space: nowrap; }
|
|
182
|
+
|
|
183
|
+
/* Switcher chips in topbar — Linear-style quick switch */
|
|
184
|
+
.tb-switcher { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
|
|
185
|
+
.tb-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 6px; border-radius: var(--radius-md); border: 1px solid transparent; background: transparent; font-size: var(--text-sm); color: var(--foreground); cursor: pointer; max-width: 240px; min-width: 0; transition: background .12s, border-color .12s; }
|
|
186
|
+
.tb-chip:hover { background: var(--surface-3); }
|
|
187
|
+
.tb-chip[data-open="true"] { background: var(--surface-3); border-color: var(--border); }
|
|
188
|
+
.tb-chip-icon { width: 18px; height: 18px; border-radius: 4px; display: grid; place-items: center; color: var(--primary-foreground); font-weight: 700; font-size: 10px; flex-shrink: 0; }
|
|
189
|
+
.tb-chip-label { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
190
|
+
.tb-chip-caret { color: var(--muted-foreground); flex-shrink: 0; }
|
|
191
|
+
.tb-chip.empty { color: var(--muted-foreground); border: 1px dashed var(--border); }
|
|
192
|
+
.tb-chip-sep { color: var(--muted-foreground); user-select: none; padding: 0 1px; }
|
|
193
|
+
.tb-chip-route { color: var(--muted-foreground); padding: 4px 6px; font-size: var(--text-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
194
|
+
|
|
195
|
+
/* Switcher dropdown */
|
|
196
|
+
.sw-pop {
|
|
197
|
+
position: absolute; top: calc(100% + 4px); z-index: 100;
|
|
198
|
+
width: 360px; max-height: 460px;
|
|
199
|
+
background: var(--popover); color: var(--popover-foreground);
|
|
200
|
+
border: 1px solid var(--border); border-radius: var(--radius-lg);
|
|
201
|
+
box-shadow: var(--shadow-2xl);
|
|
202
|
+
display: flex; flex-direction: column; overflow: hidden;
|
|
203
|
+
animation: sw-pop-in .14s var(--ease-out);
|
|
204
|
+
}
|
|
205
|
+
@keyframes sw-pop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
|
|
206
|
+
.sw-pop-search { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
|
|
207
|
+
.sw-pop-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: var(--text-sm); color: var(--foreground); padding: 0; }
|
|
208
|
+
.sw-pop-list { flex: 1; overflow-y: auto; padding: 4px; }
|
|
209
|
+
.sw-pop-section { padding: 8px 10px 4px; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-foreground); display: flex; align-items: center; justify-content: space-between; }
|
|
210
|
+
.sw-pop-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--radius-md); cursor: pointer; font-size: var(--text-sm); }
|
|
211
|
+
.sw-pop-item:hover, .sw-pop-item[data-focused="true"] { background: var(--surface-3); }
|
|
212
|
+
.sw-pop-item[data-active="true"] { background: color-mix(in oklch, var(--primary) 10%, transparent); }
|
|
213
|
+
.sw-pop-item-meta { color: var(--muted-foreground); font-size: var(--text-2xs); margin-left: auto; flex-shrink: 0; }
|
|
214
|
+
.sw-pop-empty { padding: 24px 12px; text-align: center; color: var(--muted-foreground); font-size: var(--text-sm); }
|
|
215
|
+
.sw-pop-foot { padding: 6px 10px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 12px; font-size: 10px; color: var(--muted-foreground); flex-shrink: 0; }
|
|
216
|
+
.sw-pop-foot .kbd { font-size: 9px; }
|
|
217
|
+
.sw-kind-chip { padding: 1px 5px; border-radius: 3px; font-size: 9px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; background: var(--surface-3); color: var(--muted-foreground); border: 1px solid var(--border); }
|
|
218
|
+
.tb-breadcrumb .crumb.current { color: var(--foreground); font-weight: 500; }
|
|
219
|
+
.tb-breadcrumb .sep { opacity: 0.4; }
|
|
220
|
+
.tb-search { display: flex; align-items: center; gap: var(--spacing-2); width: 320px; height: var(--density-element-sm); padding: 0 var(--spacing-2); border: 1px solid var(--input); border-radius: var(--radius-md); background: var(--input-background); color: var(--muted-foreground); font-size: var(--text-sm); cursor: pointer; }
|
|
221
|
+
.tb-search:hover { border-color: var(--muted-foreground); }
|
|
222
|
+
.tb-search .kbd { margin-left: auto; }
|
|
223
|
+
|
|
224
|
+
.kbd { display: inline-flex; align-items: center; padding: 1px 5px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; background: var(--kbd-bg); font-size: var(--text-2xs); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted-foreground); line-height: 1.2; }
|
|
225
|
+
|
|
226
|
+
.tb-icon-btn { width: var(--density-element-sm); height: var(--density-element-sm); display: grid; place-items: center; border-radius: var(--radius-md); border: 0; background: transparent; color: var(--muted-foreground); }
|
|
227
|
+
.tb-icon-btn:hover { background: var(--surface-3); color: var(--foreground); }
|
|
228
|
+
.tb-icon-btn[data-active="true"] { color: var(--primary); }
|
|
229
|
+
|
|
230
|
+
.avatar { width: 28px; height: 28px; border-radius: 99px; background: var(--surface-3); display: grid; place-items: center; font-size: var(--text-xs); font-weight: 600; color: var(--foreground); flex-shrink: 0; }
|
|
231
|
+
.avatar.brand { background: var(--brand); color: var(--primary-foreground); }
|
|
232
|
+
|
|
233
|
+
/* ── Page primitives ──────────────────────────────────────────────── */
|
|
234
|
+
.page { padding: var(--spacing-6); max-width: var(--container-max-width); margin: 0 auto; }
|
|
235
|
+
.page-header { display: flex; align-items: flex-start; gap: var(--spacing-4); margin-bottom: var(--spacing-6); }
|
|
236
|
+
.page-title { font-size: var(--density-page-title); font-weight: 500; line-height: 1.25; margin: 0 0 var(--spacing-1); letter-spacing: -0.01em; }
|
|
237
|
+
.page-subtitle { font-size: var(--text-sm); color: var(--muted-foreground); margin: 0; }
|
|
238
|
+
.page-actions { margin-left: auto; display: flex; gap: var(--spacing-2); align-items: center; }
|
|
239
|
+
|
|
240
|
+
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--density-card); }
|
|
241
|
+
.card-header { display: flex; align-items: center; gap: var(--spacing-2); margin-bottom: var(--spacing-3); padding-bottom: var(--spacing-3); border-bottom: 1px solid var(--border); }
|
|
242
|
+
.card-title { font-size: var(--text-base); font-weight: 500; margin: 0; }
|
|
243
|
+
.card-subtitle { font-size: var(--text-xs); color: var(--muted-foreground); margin: 0; }
|
|
244
|
+
|
|
245
|
+
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--spacing-2); height: var(--density-element); padding: 0 var(--spacing-3); border-radius: var(--radius-md); border: 1px solid transparent; font-size: var(--text-sm); font-weight: 500; line-height: 1; transition: background var(--transition-fast), border-color var(--transition-fast); white-space: nowrap; }
|
|
246
|
+
.btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
|
|
247
|
+
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
|
|
248
|
+
.btn-primary:hover { background: color-mix(in oklch, var(--primary) 88%, black); }
|
|
249
|
+
.btn-secondary { background: var(--surface-1); color: var(--foreground); border-color: var(--border); }
|
|
250
|
+
.btn-secondary:hover { background: var(--surface-3); }
|
|
251
|
+
.btn-ghost { background: transparent; color: var(--foreground); }
|
|
252
|
+
.btn-ghost:hover { background: var(--surface-3); }
|
|
253
|
+
.btn-danger { background: var(--destructive); color: var(--destructive-foreground); }
|
|
254
|
+
.btn-danger:hover { background: color-mix(in oklch, var(--destructive) 90%, black); }
|
|
255
|
+
.btn-sm { height: var(--density-element-sm); padding: 0 var(--spacing-2); font-size: var(--text-xs); }
|
|
256
|
+
.btn-lg { height: var(--density-element-lg); padding: 0 var(--spacing-4); }
|
|
257
|
+
|
|
258
|
+
.input { display: flex; align-items: center; height: var(--density-element); padding: 0 var(--spacing-3); border: 1px solid var(--input); border-radius: var(--radius-md); background: var(--input-background); color: var(--foreground); font-size: var(--text-sm); width: 100%; }
|
|
259
|
+
.input:focus { outline: 2px solid var(--ring); outline-offset: -1px; border-color: transparent; }
|
|
260
|
+
textarea.input { padding: var(--spacing-2) var(--spacing-3); height: auto; line-height: var(--leading-normal); resize: vertical; }
|
|
261
|
+
|
|
262
|
+
.label { display: block; font-size: var(--text-xs); font-weight: 500; color: var(--foreground); margin-bottom: var(--spacing-1); }
|
|
263
|
+
.help { font-size: var(--text-xs); color: var(--muted-foreground); margin-top: var(--spacing-1); }
|
|
264
|
+
|
|
265
|
+
/* Badges */
|
|
266
|
+
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: var(--radius-full); font-size: var(--text-2xs); font-weight: 500; line-height: 1.5; border: 1px solid transparent; }
|
|
267
|
+
.badge .dot { width: 6px; height: 6px; border-radius: 99px; flex-shrink: 0; }
|
|
268
|
+
.badge-success { background: color-mix(in oklch, var(--success) 14%, transparent); color: color-mix(in oklch, var(--success) 80%, var(--foreground)); }
|
|
269
|
+
.badge-success .dot { background: var(--success); }
|
|
270
|
+
.badge-warning { background: color-mix(in oklch, var(--warning) 18%, transparent); color: color-mix(in oklch, var(--warning) 50%, var(--foreground)); }
|
|
271
|
+
.badge-warning .dot { background: var(--warning); }
|
|
272
|
+
.badge-info { background: color-mix(in oklch, var(--info) 14%, transparent); color: color-mix(in oklch, var(--info) 80%, var(--foreground)); }
|
|
273
|
+
.badge-info .dot { background: var(--info); }
|
|
274
|
+
.badge-error { background: color-mix(in oklch, var(--error) 14%, transparent); color: color-mix(in oklch, var(--error) 80%, var(--foreground)); }
|
|
275
|
+
.badge-error .dot { background: var(--error); }
|
|
276
|
+
.badge-attention { background: color-mix(in oklch, var(--attention) 14%, transparent); color: color-mix(in oklch, var(--attention) 80%, var(--foreground)); }
|
|
277
|
+
.badge-attention .dot { background: var(--attention); }
|
|
278
|
+
.badge-neutral { background: var(--surface-3); color: var(--muted-foreground); }
|
|
279
|
+
.badge-neutral .dot { background: var(--muted-foreground); }
|
|
280
|
+
.badge-outline { background: transparent; border-color: var(--border); color: var(--muted-foreground); }
|
|
281
|
+
|
|
282
|
+
/* Tags / chips */
|
|
283
|
+
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; background: var(--surface-3); color: var(--foreground); border-radius: var(--radius-md); font-size: var(--text-xs); }
|
|
284
|
+
|
|
285
|
+
/* Table */
|
|
286
|
+
.table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
|
|
287
|
+
.table thead th { background: var(--surface-2); text-align: left; padding: 0 var(--spacing-3); height: var(--density-table-head); font-size: var(--text-xs); font-weight: 500; color: var(--muted-foreground); border-bottom: 1px solid var(--border); white-space: nowrap; }
|
|
288
|
+
.table tbody td { padding: var(--spacing-2) var(--spacing-3); border-bottom: 1px solid var(--border); vertical-align: middle; }
|
|
289
|
+
.table tbody tr:hover td { background: var(--surface-2); }
|
|
290
|
+
.table tbody tr:last-child td { border-bottom: 0; }
|
|
291
|
+
.table .num { font-variant-numeric: tabular-nums; text-align: right; }
|
|
292
|
+
.table .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--text-xs); }
|
|
293
|
+
|
|
294
|
+
/* Tabs */
|
|
295
|
+
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); }
|
|
296
|
+
.tab { padding: var(--spacing-2) var(--spacing-3); font-size: var(--text-sm); color: var(--muted-foreground); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; user-select: none; }
|
|
297
|
+
.tab:hover { color: var(--foreground); }
|
|
298
|
+
.tab[data-active="true"] { color: var(--foreground); font-weight: 500; border-bottom-color: var(--primary); }
|
|
299
|
+
|
|
300
|
+
/* KPI cards */
|
|
301
|
+
.kpi { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--density-card); display: flex; flex-direction: column; gap: var(--spacing-1); }
|
|
302
|
+
.kpi-label { font-size: var(--text-xs); color: var(--muted-foreground); display: flex; align-items: center; gap: var(--spacing-1); }
|
|
303
|
+
.kpi-value { font-size: var(--text-2xl); font-weight: 500; line-height: 1.2; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
|
|
304
|
+
.kpi-delta { font-size: var(--text-xs); color: var(--success); display: flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
|
|
305
|
+
.kpi-delta.down { color: var(--error); }
|
|
306
|
+
|
|
307
|
+
/* Activity / log lines */
|
|
308
|
+
.log-line { display: grid; grid-template-columns: 80px 80px 1fr; gap: var(--spacing-3); padding: var(--spacing-1) var(--spacing-2); border-radius: var(--radius-md); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--text-xs); line-height: var(--leading-normal); align-items: baseline; }
|
|
309
|
+
.log-line:hover { background: var(--surface-2); }
|
|
310
|
+
.log-line .time { color: var(--muted-foreground); }
|
|
311
|
+
.log-line .src { color: var(--info); }
|
|
312
|
+
.log-line .src.warn { color: var(--attention); }
|
|
313
|
+
.log-line .src.err { color: var(--error); }
|
|
314
|
+
.log-line .src.ok { color: var(--success); }
|
|
315
|
+
|
|
316
|
+
/* Diff hunks (for code browser) */
|
|
317
|
+
.diff { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--text-xs); line-height: 1.5; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
|
|
318
|
+
.diff-row { display: grid; grid-template-columns: 40px 40px 1fr; }
|
|
319
|
+
.diff-row .ln { background: var(--surface-2); color: var(--muted-foreground); text-align: right; padding: 0 var(--spacing-2); user-select: none; border-right: 1px solid var(--border); }
|
|
320
|
+
.diff-row .body { padding: 0 var(--spacing-3); white-space: pre; }
|
|
321
|
+
.diff-row.add { background: color-mix(in oklch, var(--success) 8%, transparent); }
|
|
322
|
+
.diff-row.add .body::before { content: "+ "; color: var(--success); }
|
|
323
|
+
.diff-row.del { background: color-mix(in oklch, var(--error) 8%, transparent); }
|
|
324
|
+
.diff-row.del .body::before { content: "− "; color: var(--error); }
|
|
325
|
+
.diff-row.ctx .body::before { content: " "; }
|
|
326
|
+
|
|
327
|
+
/* Kanban */
|
|
328
|
+
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--spacing-3); }
|
|
329
|
+
.kanban-col { background: var(--surface-2); border-radius: var(--radius-lg); padding: var(--spacing-3); display: flex; flex-direction: column; gap: var(--spacing-2); min-height: 320px; }
|
|
330
|
+
.kanban-col-head { display: flex; align-items: center; gap: var(--spacing-2); font-size: var(--text-xs); color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.05em; }
|
|
331
|
+
.kanban-col-count { background: var(--surface-3); padding: 0 6px; border-radius: 99px; font-size: var(--text-2xs); color: var(--foreground); font-weight: 500; }
|
|
332
|
+
.issue-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--spacing-3); display: flex; flex-direction: column; gap: var(--spacing-2); cursor: grab; }
|
|
333
|
+
.issue-card:hover { border-color: var(--primary); }
|
|
334
|
+
.issue-id { font-size: var(--text-2xs); color: var(--muted-foreground); font-family: ui-monospace, monospace; }
|
|
335
|
+
.issue-title { font-size: var(--text-sm); font-weight: 500; }
|
|
336
|
+
|
|
337
|
+
/* Wiki TOC */
|
|
338
|
+
.wiki-layout { display: grid; grid-template-columns: 220px 1fr 220px; gap: var(--spacing-6); }
|
|
339
|
+
.wiki-toc { font-size: var(--text-xs); color: var(--muted-foreground); position: sticky; top: var(--spacing-4); align-self: start; }
|
|
340
|
+
.wiki-toc a { display: block; padding: 4px 8px; border-radius: 4px; color: inherit; text-decoration: none; }
|
|
341
|
+
.wiki-toc a:hover { background: var(--surface-3); color: var(--foreground); }
|
|
342
|
+
.wiki-toc a.active { color: var(--primary); border-left: 2px solid var(--primary); padding-left: 6px; }
|
|
343
|
+
|
|
344
|
+
.prose { max-width: 70ch; }
|
|
345
|
+
.prose h1 { font-size: var(--text-2xl); font-weight: 500; margin: 0 0 var(--spacing-3); }
|
|
346
|
+
.prose h2 { font-size: var(--text-xl); font-weight: 500; margin: var(--spacing-6) 0 var(--spacing-3); padding-bottom: var(--spacing-1); border-bottom: 1px solid var(--border); }
|
|
347
|
+
.prose h3 { font-size: var(--text-lg); font-weight: 500; margin: var(--spacing-5) 0 var(--spacing-2); }
|
|
348
|
+
.prose p { margin: 0 0 var(--spacing-3); line-height: var(--leading-body); }
|
|
349
|
+
.prose code { font-family: ui-monospace, monospace; font-size: 0.9em; background: var(--surface-3); padding: 1px 5px; border-radius: 4px; }
|
|
350
|
+
.prose pre { background: var(--surface-3); padding: var(--spacing-3); border-radius: var(--radius-md); overflow-x: auto; margin: var(--spacing-3) 0; }
|
|
351
|
+
.prose pre code { background: transparent; padding: 0; }
|
|
352
|
+
.prose ul { padding-left: 1.5rem; margin: 0 0 var(--spacing-3); }
|
|
353
|
+
.prose blockquote { border-left: 3px solid var(--border); padding-left: var(--spacing-3); margin: var(--spacing-3) 0; color: var(--muted-foreground); }
|
|
354
|
+
|
|
355
|
+
/* Misc helpers */
|
|
356
|
+
.row { display: flex; align-items: center; }
|
|
357
|
+
.col { display: flex; flex-direction: column; }
|
|
358
|
+
.gap-1 { gap: var(--spacing-1); } .gap-2 { gap: var(--spacing-2); } .gap-3 { gap: var(--spacing-3); } .gap-4 { gap: var(--spacing-4); } .gap-6 { gap: var(--spacing-6); }
|
|
359
|
+
.muted { color: var(--muted-foreground); }
|
|
360
|
+
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--text-xs); }
|
|
361
|
+
.tnum { font-variant-numeric: tabular-nums; }
|
|
362
|
+
.divider { height: 1px; background: var(--border); border: 0; margin: var(--spacing-3) 0; }
|
|
363
|
+
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 99px; }
|
|
364
|
+
.grow { flex: 1; min-width: 0; }
|
|
365
|
+
.ml-auto { margin-left: auto; }
|
|
366
|
+
|
|
367
|
+
/* Sparkline */
|
|
368
|
+
.spark { height: 32px; width: 100%; display: block; }
|
|
369
|
+
.spark path.line { stroke: var(--primary); stroke-width: 1.5; fill: none; }
|
|
370
|
+
.spark path.area { fill: var(--primary); fill-opacity: 0.08; }
|
|
371
|
+
|
|
372
|
+
/* Donut */
|
|
373
|
+
.donut { width: 80px; height: 80px; }
|
|
374
|
+
|
|
375
|
+
/* Login screen */
|
|
376
|
+
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
|
|
377
|
+
.auth-card { display: flex; align-items: center; justify-content: center; padding: var(--spacing-12); }
|
|
378
|
+
.auth-art { background: linear-gradient(135deg, var(--brand) 0%, color-mix(in oklch, var(--brand) 60%, var(--foreground)) 100%); display: flex; flex-direction: column; justify-content: space-between; padding: var(--spacing-12); color: var(--primary-foreground); position: relative; overflow: hidden; }
|
|
379
|
+
.auth-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 80%, color-mix(in oklch, white 10%, transparent), transparent 50%); pointer-events: none; }
|
|
380
|
+
|
|
381
|
+
@media (max-width: 768px) {
|
|
382
|
+
.auth-shell { grid-template-columns: 1fr; }
|
|
383
|
+
.auth-art { display: none; }
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
/* Animations */
|
|
387
|
+
@keyframes pulse-dot {
|
|
388
|
+
0%, 100% { opacity: 1; }
|
|
389
|
+
50% { opacity: 0.55; }
|
|
390
|
+
}
|
|
391
|
+
.pulse { animation: pulse-dot 2s var(--ease-in-out) infinite; }
|
|
392
|
+
.pulse-dot { animation: pulse-dot 2s var(--ease-in-out) infinite; }
|
|
393
|
+
@media (prefers-reduced-motion: reduce) {
|
|
394
|
+
.pulse, .pulse-dot { animation: none; }
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
@keyframes fade-in {
|
|
398
|
+
from { opacity: 0; transform: translateY(4px); }
|
|
399
|
+
to { opacity: 1; transform: none; }
|
|
400
|
+
}
|
|
401
|
+
.fade-in { animation: fade-in var(--transition-base) var(--ease-out) both; }
|