@loworbitstudio/visor-core 0.3.0 → 0.5.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 +0 -4
- package/dist/primitives.css +22 -0
- package/dist/semantic.css +1 -0
- package/dist/themes/blackout.css +462 -0
- package/dist/themes/dark.css +2 -0
- package/dist/themes/light.css +1 -0
- package/dist/themes/modern-minimal.css +512 -0
- package/dist/themes/neutral.css +462 -0
- package/dist/themes/space.css +462 -0
- package/dist/tokens.css +26 -0
- package/package.json +7 -2
- package/src/types.ts +2 -0
package/README.md
CHANGED
|
@@ -4,10 +4,6 @@ CSS custom property design tokens for the Visor design system.
|
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
-
> **Note:** This package (`@loworbitstudio/visor-core`) is not yet published to npm. For new projects, use `npx @loworbitstudio/visor init --template nextjs` — it generates all tokens inline via the theme engine, no npm package needed. For monorepo usage, import via a relative path.
|
|
8
|
-
|
|
9
|
-
When the package is published, installation will be:
|
|
10
|
-
|
|
11
7
|
```sh
|
|
12
8
|
npm install @loworbitstudio/visor-core
|
|
13
9
|
```
|
package/dist/primitives.css
CHANGED
|
@@ -98,6 +98,15 @@
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
|
|
101
|
+
/* --- Primitive: Stroke Widths --- */
|
|
102
|
+
:root {
|
|
103
|
+
--stroke-width-thin: 1px;
|
|
104
|
+
--stroke-width-regular: 1.5px;
|
|
105
|
+
--stroke-width-medium: 2px;
|
|
106
|
+
--stroke-width-thick: 2.5px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
|
|
101
110
|
/* --- Primitive: Font Families --- */
|
|
102
111
|
:root {
|
|
103
112
|
--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
@@ -160,6 +169,19 @@
|
|
|
160
169
|
}
|
|
161
170
|
|
|
162
171
|
|
|
172
|
+
/* --- Primitive: Opacity --- */
|
|
173
|
+
:root {
|
|
174
|
+
--opacity-5: 0.05;
|
|
175
|
+
--opacity-10: 0.1;
|
|
176
|
+
--opacity-12: 0.12;
|
|
177
|
+
--opacity-20: 0.2;
|
|
178
|
+
--opacity-40: 0.4;
|
|
179
|
+
--opacity-50: 0.5;
|
|
180
|
+
--opacity-60: 0.6;
|
|
181
|
+
--opacity-80: 0.8;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
|
|
163
185
|
/* --- Primitive: Overlay --- */
|
|
164
186
|
:root {
|
|
165
187
|
--overlay-bg: rgba(0, 0, 0, 0.5);
|
package/dist/semantic.css
CHANGED
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
--surface-interactive-hover: var(--color-neutral-50);
|
|
34
34
|
--surface-interactive-active: var(--color-neutral-100);
|
|
35
35
|
--surface-interactive-disabled: var(--color-neutral-50);
|
|
36
|
+
--surface-selected: var(--color-primary-100);
|
|
36
37
|
--surface-accent-subtle: var(--color-primary-50);
|
|
37
38
|
--surface-accent-default: var(--color-primary-500);
|
|
38
39
|
--surface-accent-strong: var(--color-primary-600);
|
|
@@ -0,0 +1,462 @@
|
|
|
1
|
+
|
|
2
|
+
/* ── Section 1: Shared tokens (mode-independent) ── */
|
|
3
|
+
|
|
4
|
+
/* --- Primitive: Colors --- */
|
|
5
|
+
.blackout-theme {
|
|
6
|
+
min-height: 100vh;
|
|
7
|
+
font-size: 1rem;
|
|
8
|
+
background: var(--surface-page, var(--surface-background));
|
|
9
|
+
color: var(--text-primary);
|
|
10
|
+
font-family: var(--font-sans);
|
|
11
|
+
|
|
12
|
+
--color-white: #ffffff;
|
|
13
|
+
--color-black: #000000;
|
|
14
|
+
--color-primary-50: #f5f5f5;
|
|
15
|
+
--color-primary-100: #f2f2f2;
|
|
16
|
+
--color-primary-200: #ededed;
|
|
17
|
+
--color-primary-300: #e6e6e6;
|
|
18
|
+
--color-primary-400: #dcdcdc;
|
|
19
|
+
--color-primary-500: #666666;
|
|
20
|
+
--color-primary-600: #555555;
|
|
21
|
+
--color-primary-700: #424242;
|
|
22
|
+
--color-primary-800: #2e2e2e;
|
|
23
|
+
--color-primary-900: #1b1b1b;
|
|
24
|
+
--color-primary-950: #090909;
|
|
25
|
+
--color-accent-50: #f5f5f5;
|
|
26
|
+
--color-accent-100: #f2f2f2;
|
|
27
|
+
--color-accent-200: #ededed;
|
|
28
|
+
--color-accent-300: #e6e6e6;
|
|
29
|
+
--color-accent-400: #dcdcdc;
|
|
30
|
+
--color-accent-500: #666666;
|
|
31
|
+
--color-accent-600: #555555;
|
|
32
|
+
--color-accent-700: #424242;
|
|
33
|
+
--color-accent-800: #2e2e2e;
|
|
34
|
+
--color-accent-900: #1b1b1b;
|
|
35
|
+
--color-accent-950: #090909;
|
|
36
|
+
--color-neutral-50: #f5f5f5;
|
|
37
|
+
--color-neutral-100: #f1f1f1;
|
|
38
|
+
--color-neutral-200: #eaeaea;
|
|
39
|
+
--color-neutral-300: #e0e0e0;
|
|
40
|
+
--color-neutral-400: #d2d2d2;
|
|
41
|
+
--color-neutral-500: #333333;
|
|
42
|
+
--color-neutral-600: #555555;
|
|
43
|
+
--color-neutral-700: #424242;
|
|
44
|
+
--color-neutral-800: #2e2e2e;
|
|
45
|
+
--color-neutral-900: #1b1b1b;
|
|
46
|
+
--color-neutral-950: #090909;
|
|
47
|
+
--color-success-50: #e8fbeb;
|
|
48
|
+
--color-success-100: #defde3;
|
|
49
|
+
--color-success-500: #22c55e;
|
|
50
|
+
--color-success-600: #00672b;
|
|
51
|
+
--color-success-700: #005120;
|
|
52
|
+
--color-success-900: #002209;
|
|
53
|
+
--color-warning-50: #fff3e6;
|
|
54
|
+
--color-warning-100: #fff1e3;
|
|
55
|
+
--color-warning-500: #f59e0b;
|
|
56
|
+
--color-warning-600: #774a01;
|
|
57
|
+
--color-warning-700: #5e3900;
|
|
58
|
+
--color-warning-900: #281600;
|
|
59
|
+
--color-error-50: #fff2f0;
|
|
60
|
+
--color-error-100: #ffefed;
|
|
61
|
+
--color-error-500: #ef4444;
|
|
62
|
+
--color-error-600: #a30016;
|
|
63
|
+
--color-error-700: #81000f;
|
|
64
|
+
--color-error-900: #3a0003;
|
|
65
|
+
--color-info-50: #ecf7ff;
|
|
66
|
+
--color-info-100: #e8f5ff;
|
|
67
|
+
--color-info-500: #0ea5e9;
|
|
68
|
+
--color-info-600: #005c85;
|
|
69
|
+
--color-info-700: #004869;
|
|
70
|
+
--color-info-900: #001d2e;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
/* --- Primitive: Spacing --- */
|
|
75
|
+
.blackout-theme {
|
|
76
|
+
--spacing-0: 0;
|
|
77
|
+
--spacing-1: 0.25rem;
|
|
78
|
+
--spacing-2: 0.5rem;
|
|
79
|
+
--spacing-3: 0.75rem;
|
|
80
|
+
--spacing-4: 1rem;
|
|
81
|
+
--spacing-5: 1.25rem;
|
|
82
|
+
--spacing-6: 1.5rem;
|
|
83
|
+
--spacing-8: 2rem;
|
|
84
|
+
--spacing-10: 2.5rem;
|
|
85
|
+
--spacing-12: 3rem;
|
|
86
|
+
--spacing-16: 4rem;
|
|
87
|
+
--spacing-20: 5rem;
|
|
88
|
+
--spacing-24: 6rem;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
/* --- Primitive: Border Radius --- */
|
|
93
|
+
.blackout-theme {
|
|
94
|
+
--radius-none: 0;
|
|
95
|
+
--radius-sm: 0.125rem; /* 2px */
|
|
96
|
+
--radius-md: 0.25rem; /* 4px */
|
|
97
|
+
--radius-lg: 0.5rem; /* 8px */
|
|
98
|
+
--radius-xl: 0.75rem; /* 12px */
|
|
99
|
+
--radius-2xl: 0.9997499999999999rem; /* 16px */
|
|
100
|
+
--radius-3xl: 1.5rem; /* 24px */
|
|
101
|
+
--radius-full: 9999px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
/* --- Primitive: Typography --- */
|
|
106
|
+
.blackout-theme {
|
|
107
|
+
--font-display: Satoshi;
|
|
108
|
+
--font-sans: Satoshi;
|
|
109
|
+
--font-heading: var(--font-sans);
|
|
110
|
+
--font-body: Satoshi;
|
|
111
|
+
--font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
|
|
112
|
+
--font-size-xs: 0.75rem; /* 12px */
|
|
113
|
+
--font-size-sm: 0.875rem; /* 14px */
|
|
114
|
+
--font-size-base: 1rem; /* 16px */
|
|
115
|
+
--font-size-lg: 1.125rem; /* 18px */
|
|
116
|
+
--font-size-xl: 1.25rem; /* 20px */
|
|
117
|
+
--font-size-2xl: 1.5rem; /* 24px */
|
|
118
|
+
--font-size-3xl: 1.875rem; /* 30px */
|
|
119
|
+
--font-size-4xl: 2.25rem; /* 36px */
|
|
120
|
+
--font-weight-normal: 400;
|
|
121
|
+
--font-weight-medium: 500;
|
|
122
|
+
--font-weight-semibold: 700;
|
|
123
|
+
--font-weight-bold: 700;
|
|
124
|
+
--line-height-none: 1;
|
|
125
|
+
--line-height-tight: 1.25;
|
|
126
|
+
--line-height-snug: 1.375;
|
|
127
|
+
--line-height-normal: 1.5;
|
|
128
|
+
--line-height-relaxed: 1.625;
|
|
129
|
+
--line-height-loose: 2;
|
|
130
|
+
--letter-spacing-normal: 0.05em;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
/* --- Primitive: Shadows --- */
|
|
135
|
+
.blackout-theme {
|
|
136
|
+
--shadow-xs: none;
|
|
137
|
+
--shadow-sm: none;
|
|
138
|
+
--shadow-md: none;
|
|
139
|
+
--shadow-lg: none;
|
|
140
|
+
--shadow-xl: none;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
/* --- Primitive: Motion --- */
|
|
145
|
+
.blackout-theme {
|
|
146
|
+
--motion-duration-100: 100ms;
|
|
147
|
+
--motion-duration-150: 150ms;
|
|
148
|
+
--motion-duration-200: 150ms;
|
|
149
|
+
--motion-duration-300: 300ms;
|
|
150
|
+
--motion-duration-500: 300ms;
|
|
151
|
+
--motion-duration-800: 800ms;
|
|
152
|
+
--motion-easing-linear: linear;
|
|
153
|
+
--motion-easing-ease-in: cubic-bezier(0.4, 0, 1, 1);
|
|
154
|
+
--motion-easing-ease-out: cubic-bezier(0, 0, 0.2, 1);
|
|
155
|
+
--motion-easing-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
156
|
+
--motion-easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
/* --- Primitive: Miscellaneous --- */
|
|
161
|
+
.blackout-theme {
|
|
162
|
+
--border-width-1: 1px;
|
|
163
|
+
--border-width-2: 2px;
|
|
164
|
+
--border-width-3: 3px;
|
|
165
|
+
--border-width-4: 4px;
|
|
166
|
+
--z-base: 0;
|
|
167
|
+
--z-raised: 1;
|
|
168
|
+
--z-dropdown: 1000;
|
|
169
|
+
--z-sticky: 1100;
|
|
170
|
+
--z-modal: 1300;
|
|
171
|
+
--z-popover: 1400;
|
|
172
|
+
--z-toast: 1500;
|
|
173
|
+
--overlay-bg: rgba(0, 0, 0, 0.5);
|
|
174
|
+
--focus-ring-width: 2px;
|
|
175
|
+
--focus-ring-offset: 2px;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
/* ── Section 2: Dark mode overrides ── */
|
|
180
|
+
|
|
181
|
+
/* --- Adaptive: Text (dark) — manual toggle --- */
|
|
182
|
+
.dark .blackout-theme {
|
|
183
|
+
--text-primary: rgba(255, 255, 255, 0.7);
|
|
184
|
+
--text-secondary: rgba(255, 255, 255, 0.70);
|
|
185
|
+
--text-tertiary: rgba(255, 255, 255, 0.55);
|
|
186
|
+
--text-disabled: rgba(255, 255, 255, 0.1);
|
|
187
|
+
--text-inverse: #1b1b1b;
|
|
188
|
+
--text-inverse-secondary: #424242;
|
|
189
|
+
--text-link: #dcdcdc;
|
|
190
|
+
--text-link-hover: #e6e6e6;
|
|
191
|
+
--text-success: #22c55e;
|
|
192
|
+
--text-warning: #f59e0b;
|
|
193
|
+
--text-error: #ef4444;
|
|
194
|
+
--text-info: #0ea5e9;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
/* --- Adaptive: Surface (dark) — manual toggle --- */
|
|
199
|
+
.dark .blackout-theme {
|
|
200
|
+
--surface-page: #000000;
|
|
201
|
+
--surface-card: rgba(255, 255, 255, 0.04);
|
|
202
|
+
--surface-popover: #141414;
|
|
203
|
+
--surface-subtle: rgba(255, 255, 255, 0.02);
|
|
204
|
+
--surface-muted: rgba(255, 255, 255, 0.04);
|
|
205
|
+
--surface-overlay: #090909;
|
|
206
|
+
--surface-interactive-default: #2e2e2e;
|
|
207
|
+
--surface-interactive-hover: #424242;
|
|
208
|
+
--surface-interactive-active: #555555;
|
|
209
|
+
--surface-interactive-disabled: #2e2e2e;
|
|
210
|
+
--surface-selected: #2e2e2e;
|
|
211
|
+
--surface-accent-subtle: #1b1b1b;
|
|
212
|
+
--surface-accent-default: #666666;
|
|
213
|
+
--surface-accent-strong: #dcdcdc;
|
|
214
|
+
--surface-success-subtle: #002209;
|
|
215
|
+
--surface-success-default: #22c55e;
|
|
216
|
+
--surface-warning-subtle: #281600;
|
|
217
|
+
--surface-warning-default: #f59e0b;
|
|
218
|
+
--surface-error-subtle: #3a0003;
|
|
219
|
+
--surface-error-default: #ef4444;
|
|
220
|
+
--surface-info-subtle: #001d2e;
|
|
221
|
+
--surface-info-default: #0ea5e9;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
/* --- Adaptive: Border (dark) — manual toggle --- */
|
|
226
|
+
.dark .blackout-theme {
|
|
227
|
+
--border-default: rgba(255, 255, 255, 0.06);
|
|
228
|
+
--border-muted: rgba(255, 255, 255, 0.03);
|
|
229
|
+
--border-strong: rgba(255, 255, 255, 0.1);
|
|
230
|
+
--border-focus: #dcdcdc;
|
|
231
|
+
--border-disabled: #2e2e2e;
|
|
232
|
+
--border-success: #22c55e;
|
|
233
|
+
--border-warning: #f59e0b;
|
|
234
|
+
--border-error: #ef4444;
|
|
235
|
+
--border-info: #0ea5e9;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
/* --- Adaptive: Interactive (dark) — manual toggle --- */
|
|
240
|
+
.dark .blackout-theme {
|
|
241
|
+
--interactive-primary-bg: #666666;
|
|
242
|
+
--interactive-primary-bg-hover: #dcdcdc;
|
|
243
|
+
--interactive-primary-bg-active: #e6e6e6;
|
|
244
|
+
--interactive-primary-text: #ffffff;
|
|
245
|
+
--interactive-secondary-bg: #2e2e2e;
|
|
246
|
+
--interactive-secondary-bg-hover: #424242;
|
|
247
|
+
--interactive-secondary-bg-active: #555555;
|
|
248
|
+
--interactive-secondary-text: #f5f5f5;
|
|
249
|
+
--interactive-secondary-border: #555555;
|
|
250
|
+
--interactive-destructive-bg: #ef4444;
|
|
251
|
+
--interactive-destructive-bg-hover: #a30016;
|
|
252
|
+
--interactive-destructive-text: #ffffff;
|
|
253
|
+
--interactive-ghost-bg: #2e2e2e;
|
|
254
|
+
--interactive-ghost-bg-hover: #424242;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
/* --- Adaptive: Text (dark) — prefers-color-scheme --- */
|
|
259
|
+
@media (prefers-color-scheme: dark) {
|
|
260
|
+
.blackout-theme:not(.light) {
|
|
261
|
+
--text-primary: rgba(255, 255, 255, 0.7);
|
|
262
|
+
--text-secondary: rgba(255, 255, 255, 0.70);
|
|
263
|
+
--text-tertiary: rgba(255, 255, 255, 0.55);
|
|
264
|
+
--text-disabled: rgba(255, 255, 255, 0.1);
|
|
265
|
+
--text-inverse: #1b1b1b;
|
|
266
|
+
--text-inverse-secondary: #424242;
|
|
267
|
+
--text-link: #dcdcdc;
|
|
268
|
+
--text-link-hover: #e6e6e6;
|
|
269
|
+
--text-success: #22c55e;
|
|
270
|
+
--text-warning: #f59e0b;
|
|
271
|
+
--text-error: #ef4444;
|
|
272
|
+
--text-info: #0ea5e9;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
/* --- Adaptive: Surface (dark) — prefers-color-scheme --- */
|
|
278
|
+
@media (prefers-color-scheme: dark) {
|
|
279
|
+
.blackout-theme:not(.light) {
|
|
280
|
+
--surface-page: #000000;
|
|
281
|
+
--surface-card: rgba(255, 255, 255, 0.04);
|
|
282
|
+
--surface-popover: #141414;
|
|
283
|
+
--surface-subtle: rgba(255, 255, 255, 0.02);
|
|
284
|
+
--surface-muted: rgba(255, 255, 255, 0.04);
|
|
285
|
+
--surface-overlay: #090909;
|
|
286
|
+
--surface-interactive-default: #2e2e2e;
|
|
287
|
+
--surface-interactive-hover: #424242;
|
|
288
|
+
--surface-interactive-active: #555555;
|
|
289
|
+
--surface-interactive-disabled: #2e2e2e;
|
|
290
|
+
--surface-selected: #2e2e2e;
|
|
291
|
+
--surface-accent-subtle: #1b1b1b;
|
|
292
|
+
--surface-accent-default: #666666;
|
|
293
|
+
--surface-accent-strong: #dcdcdc;
|
|
294
|
+
--surface-success-subtle: #002209;
|
|
295
|
+
--surface-success-default: #22c55e;
|
|
296
|
+
--surface-warning-subtle: #281600;
|
|
297
|
+
--surface-warning-default: #f59e0b;
|
|
298
|
+
--surface-error-subtle: #3a0003;
|
|
299
|
+
--surface-error-default: #ef4444;
|
|
300
|
+
--surface-info-subtle: #001d2e;
|
|
301
|
+
--surface-info-default: #0ea5e9;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
/* --- Adaptive: Border (dark) — prefers-color-scheme --- */
|
|
307
|
+
@media (prefers-color-scheme: dark) {
|
|
308
|
+
.blackout-theme:not(.light) {
|
|
309
|
+
--border-default: rgba(255, 255, 255, 0.06);
|
|
310
|
+
--border-muted: rgba(255, 255, 255, 0.03);
|
|
311
|
+
--border-strong: rgba(255, 255, 255, 0.1);
|
|
312
|
+
--border-focus: #dcdcdc;
|
|
313
|
+
--border-disabled: #2e2e2e;
|
|
314
|
+
--border-success: #22c55e;
|
|
315
|
+
--border-warning: #f59e0b;
|
|
316
|
+
--border-error: #ef4444;
|
|
317
|
+
--border-info: #0ea5e9;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
/* --- Adaptive: Interactive (dark) — prefers-color-scheme --- */
|
|
323
|
+
@media (prefers-color-scheme: dark) {
|
|
324
|
+
.blackout-theme:not(.light) {
|
|
325
|
+
--interactive-primary-bg: #666666;
|
|
326
|
+
--interactive-primary-bg-hover: #dcdcdc;
|
|
327
|
+
--interactive-primary-bg-active: #e6e6e6;
|
|
328
|
+
--interactive-primary-text: #ffffff;
|
|
329
|
+
--interactive-secondary-bg: #2e2e2e;
|
|
330
|
+
--interactive-secondary-bg-hover: #424242;
|
|
331
|
+
--interactive-secondary-bg-active: #555555;
|
|
332
|
+
--interactive-secondary-text: #f5f5f5;
|
|
333
|
+
--interactive-secondary-border: #555555;
|
|
334
|
+
--interactive-destructive-bg: #ef4444;
|
|
335
|
+
--interactive-destructive-bg-hover: #a30016;
|
|
336
|
+
--interactive-destructive-text: #ffffff;
|
|
337
|
+
--interactive-ghost-bg: #2e2e2e;
|
|
338
|
+
--interactive-ghost-bg-hover: #424242;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
/* ── Section 3: Light mode overrides ── */
|
|
344
|
+
|
|
345
|
+
/* --- Adaptive: Text (light) --- */
|
|
346
|
+
html:not(.dark) .blackout-theme {
|
|
347
|
+
--text-primary: rgba(255, 255, 255, 0.75);
|
|
348
|
+
--text-secondary: rgba(255, 255, 255, 0.5);
|
|
349
|
+
--text-tertiary: rgba(255, 255, 255, 0.55);
|
|
350
|
+
--text-disabled: rgba(255, 255, 255, 0.12);
|
|
351
|
+
--text-inverse: #ffffff;
|
|
352
|
+
--text-inverse-secondary: #eaeaea;
|
|
353
|
+
--text-link: #555555;
|
|
354
|
+
--text-link-hover: #424242;
|
|
355
|
+
--text-success: #005120;
|
|
356
|
+
--text-warning: #5e3900;
|
|
357
|
+
--text-error: #81000f;
|
|
358
|
+
--text-info: #004869;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
/* --- Adaptive: Surface (light) --- */
|
|
363
|
+
html:not(.dark) .blackout-theme {
|
|
364
|
+
--surface-page: #0a0a0a;
|
|
365
|
+
--surface-card: rgba(255, 255, 255, 0.05);
|
|
366
|
+
--surface-popover: #141414;
|
|
367
|
+
--surface-subtle: rgba(255, 255, 255, 0.02);
|
|
368
|
+
--surface-muted: rgba(255, 255, 255, 0.05);
|
|
369
|
+
--surface-overlay: #1b1b1b;
|
|
370
|
+
--surface-interactive-default: transparent;
|
|
371
|
+
--surface-interactive-hover: rgba(255, 255, 255, 0.08);
|
|
372
|
+
--surface-interactive-active: rgba(255, 255, 255, 0.12);
|
|
373
|
+
--surface-interactive-disabled: rgba(255, 255, 255, 0.04);
|
|
374
|
+
--surface-selected: #f2f2f2;
|
|
375
|
+
--surface-accent-subtle: #f5f5f5;
|
|
376
|
+
--surface-accent-default: #666666;
|
|
377
|
+
--surface-accent-strong: #555555;
|
|
378
|
+
--surface-success-subtle: #e8fbeb;
|
|
379
|
+
--surface-success-default: #22c55e;
|
|
380
|
+
--surface-warning-subtle: #fff3e6;
|
|
381
|
+
--surface-warning-default: #f59e0b;
|
|
382
|
+
--surface-error-subtle: #fff2f0;
|
|
383
|
+
--surface-error-default: #ef4444;
|
|
384
|
+
--surface-info-subtle: #ecf7ff;
|
|
385
|
+
--surface-info-default: #0ea5e9;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
/* --- Adaptive: Border (light) --- */
|
|
390
|
+
html:not(.dark) .blackout-theme {
|
|
391
|
+
--border-default: rgba(255, 255, 255, 0.08);
|
|
392
|
+
--border-muted: rgba(255, 255, 255, 0.04);
|
|
393
|
+
--border-strong: rgba(255, 255, 255, 0.12);
|
|
394
|
+
--border-focus: #666666;
|
|
395
|
+
--border-disabled: #f1f1f1;
|
|
396
|
+
--border-success: #22c55e;
|
|
397
|
+
--border-warning: #f59e0b;
|
|
398
|
+
--border-error: #ef4444;
|
|
399
|
+
--border-info: #0ea5e9;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
/* --- Adaptive: Interactive (light) --- */
|
|
404
|
+
html:not(.dark) .blackout-theme {
|
|
405
|
+
--interactive-primary-bg: #555555;
|
|
406
|
+
--interactive-primary-bg-hover: #424242;
|
|
407
|
+
--interactive-primary-bg-active: #2e2e2e;
|
|
408
|
+
--interactive-primary-text: #ffffff;
|
|
409
|
+
--interactive-secondary-bg: #ffffff;
|
|
410
|
+
--interactive-secondary-bg-hover: #f5f5f5;
|
|
411
|
+
--interactive-secondary-bg-active: #f1f1f1;
|
|
412
|
+
--interactive-secondary-text: #1b1b1b;
|
|
413
|
+
--interactive-secondary-border: #e0e0e0;
|
|
414
|
+
--interactive-destructive-bg: #a30016;
|
|
415
|
+
--interactive-destructive-bg-hover: #81000f;
|
|
416
|
+
--interactive-destructive-text: #ffffff;
|
|
417
|
+
--interactive-ghost-bg: #ffffff;
|
|
418
|
+
--interactive-ghost-bg-hover: #f1f1f1;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
/* --- Fumadocs bridge: dark --- */
|
|
423
|
+
.dark .blackout-theme {
|
|
424
|
+
--color-fd-background: #000000;
|
|
425
|
+
--color-fd-foreground: rgba(255, 255, 255, 0.7);
|
|
426
|
+
--color-fd-card: rgba(255, 255, 255, 0.04);
|
|
427
|
+
--color-fd-card-foreground: rgba(255, 255, 255, 0.7);
|
|
428
|
+
--color-fd-border: rgba(255, 255, 255, 0.06);
|
|
429
|
+
--color-fd-muted: rgba(255, 255, 255, 0.04);
|
|
430
|
+
--color-fd-muted-foreground: rgba(255, 255, 255, 0.70);
|
|
431
|
+
--color-fd-accent: #666666;
|
|
432
|
+
--color-fd-accent-foreground: #ffffff;
|
|
433
|
+
--color-fd-primary: #666666;
|
|
434
|
+
--color-fd-primary-foreground: #ffffff;
|
|
435
|
+
--color-fd-secondary: rgba(255, 255, 255, 0.04);
|
|
436
|
+
--color-fd-secondary-foreground: rgba(255, 255, 255, 0.7);
|
|
437
|
+
--color-fd-popover: #141414;
|
|
438
|
+
--color-fd-popover-foreground: rgba(255, 255, 255, 0.7);
|
|
439
|
+
--color-fd-ring: #dcdcdc;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
/* --- Fumadocs bridge: light --- */
|
|
444
|
+
html:not(.dark) .blackout-theme {
|
|
445
|
+
--color-fd-background: #0a0a0a;
|
|
446
|
+
--color-fd-foreground: rgba(255, 255, 255, 0.75);
|
|
447
|
+
--color-fd-card: rgba(255, 255, 255, 0.05);
|
|
448
|
+
--color-fd-card-foreground: rgba(255, 255, 255, 0.75);
|
|
449
|
+
--color-fd-border: rgba(255, 255, 255, 0.08);
|
|
450
|
+
--color-fd-muted: rgba(255, 255, 255, 0.05);
|
|
451
|
+
--color-fd-muted-foreground: rgba(255, 255, 255, 0.5);
|
|
452
|
+
--color-fd-accent: #666666;
|
|
453
|
+
--color-fd-accent-foreground: #ffffff;
|
|
454
|
+
--color-fd-primary: #666666;
|
|
455
|
+
--color-fd-primary-foreground: #ffffff;
|
|
456
|
+
--color-fd-secondary: rgba(255, 255, 255, 0.05);
|
|
457
|
+
--color-fd-secondary-foreground: rgba(255, 255, 255, 0.75);
|
|
458
|
+
--color-fd-popover: #141414;
|
|
459
|
+
--color-fd-popover-foreground: rgba(255, 255, 255, 0.75);
|
|
460
|
+
--color-fd-ring: #666666;
|
|
461
|
+
}
|
|
462
|
+
|
package/dist/themes/dark.css
CHANGED
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
--surface-interactive-hover: var(--color-neutral-700);
|
|
38
38
|
--surface-interactive-active: var(--color-neutral-600);
|
|
39
39
|
--surface-interactive-disabled: var(--color-neutral-800);
|
|
40
|
+
--surface-selected: var(--color-primary-800);
|
|
40
41
|
--surface-accent-subtle: var(--color-primary-900);
|
|
41
42
|
--surface-accent-default: var(--color-primary-500);
|
|
42
43
|
--surface-accent-strong: var(--color-primary-400);
|
|
@@ -170,6 +171,7 @@
|
|
|
170
171
|
--surface-interactive-hover: var(--color-neutral-700);
|
|
171
172
|
--surface-interactive-active: var(--color-neutral-600);
|
|
172
173
|
--surface-interactive-disabled: var(--color-neutral-800);
|
|
174
|
+
--surface-selected: var(--color-primary-800);
|
|
173
175
|
--surface-accent-subtle: var(--color-primary-900);
|
|
174
176
|
--surface-accent-default: var(--color-primary-500);
|
|
175
177
|
--surface-accent-strong: var(--color-primary-400);
|
package/dist/themes/light.css
CHANGED
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
--surface-interactive-hover: var(--color-neutral-50);
|
|
34
34
|
--surface-interactive-active: var(--color-neutral-100);
|
|
35
35
|
--surface-interactive-disabled: var(--color-neutral-50);
|
|
36
|
+
--surface-selected: var(--color-primary-100);
|
|
36
37
|
--surface-accent-subtle: var(--color-primary-50);
|
|
37
38
|
--surface-accent-default: var(--color-primary-500);
|
|
38
39
|
--surface-accent-strong: var(--color-primary-600);
|