@atom63/styles 0.1.0-beta.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 +233 -0
- package/generated/atom63.figma-tokens.json +21650 -0
- package/generated/atom63.tokens.json +21909 -0
- package/package.json +116 -0
- package/src/animations/animations.css +55 -0
- package/src/animations/index.css +1 -0
- package/src/compat/a63-from-shadcn.css +141 -0
- package/src/compat/index.css +2 -0
- package/src/compat/mdx.css +13 -0
- package/src/compat/shadcn.css +52 -0
- package/src/contracts/action.css +31 -0
- package/src/contracts/badge.css +68 -0
- package/src/contracts/choice.css +32 -0
- package/src/contracts/control.css +102 -0
- package/src/contracts/environment.css +158 -0
- package/src/contracts/field.css +26 -0
- package/src/contracts/index.css +26 -0
- package/src/contracts/marker.css +23 -0
- package/src/contracts/menu.css +100 -0
- package/src/contracts/overlay.css +44 -0
- package/src/contracts/segment.css +100 -0
- package/src/contracts/selection.css +21 -0
- package/src/contracts/skeleton.css +14 -0
- package/src/contracts/surface.css +56 -0
- package/src/contracts/toggle.css +26 -0
- package/src/contracts/track.css +26 -0
- package/src/contracts/trigger.css +28 -0
- package/src/contracts/widget.css +196 -0
- package/src/index.css +17 -0
- package/src/manifest/types.ts +61 -0
- package/src/os/index.css +2 -0
- package/src/os/macos.css +54 -0
- package/src/os/windows.css +299 -0
- package/src/tailwind/animations.css +8 -0
- package/src/tailwind/index.css +4 -0
- package/src/tailwind/theme.css +516 -0
- package/src/tailwind/utilities.css +41 -0
- package/src/tailwind/variants.css +64 -0
- package/src/test/apply-styles.ts +30 -0
- package/src/themes/aqua.css +240 -0
- package/src/themes/index.css +4 -0
- package/src/themes/modern.css +55 -0
- package/src/themes/retro.css +112 -0
- package/src/themes/terminal.css +179 -0
- package/src/tokens/brand.css +148 -0
- package/src/tokens/contrast.browser.test.ts +140 -0
- package/src/tokens/font.css +24 -0
- package/src/tokens/foundation/aliases.css +28 -0
- package/src/tokens/foundation/effects.css +31 -0
- package/src/tokens/foundation/fonts.css +11 -0
- package/src/tokens/foundation/motion.css +19 -0
- package/src/tokens/foundation/palette.css +255 -0
- package/src/tokens/foundation/primitives.css +420 -0
- package/src/tokens/foundation/radius.css +36 -0
- package/src/tokens/foundation/typography.css +191 -0
- package/src/tokens/foundation.css +15 -0
- package/src/tokens/index.css +9 -0
- package/src/tokens/motion.css +27 -0
- package/src/tokens/personalization-axes.browser.test.ts +240 -0
- package/src/tokens/radius.css +35 -0
- package/src/tokens/semantics.css +157 -0
- package/src/tokens/space.css +21 -0
- package/src/tokens/surface.css +184 -0
- package/src/tokens/theme-overrides.browser.test.ts +140 -0
- package/src/tokens/type-scale.css +20 -0
- package/src/tokens/widget-chrome-signature.browser.test.ts +225 -0
- package/src/tokens/widget-paint.browser.test.ts +98 -0
- package/src/utils/code-highlighting.css +35 -0
- package/src/utils/debug.css +453 -0
- package/src/utils/index.css +9 -0
- package/src/utils/scroll-bar.css +78 -0
- package/src/utils/scroll-mask.css +119 -0
- package/src/utils/view-transition.css +16 -0
- package/src/z-layers.ts +40 -0
|
@@ -0,0 +1,453 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Debug Mode Styles - Enhanced Visual Debugger
|
|
3
|
+
* Highlights interactive elements globally when debug mode is enabled
|
|
4
|
+
* Toggle with: Ctrl+D (or Cmd+D on Mac)
|
|
5
|
+
*
|
|
6
|
+
* Color Legend:
|
|
7
|
+
* - RED: Buttons and primary actions
|
|
8
|
+
* - BLUE: Links and navigation
|
|
9
|
+
* - ORANGE: Form inputs
|
|
10
|
+
* - MAGENTA: Interactive elements (click handlers)
|
|
11
|
+
* - GREEN: Content blocks (code, figures)
|
|
12
|
+
* - CYAN: Semantic sections
|
|
13
|
+
* - PURPLE: Headers/footers
|
|
14
|
+
* - YELLOW: Navigation and structural
|
|
15
|
+
* - PINK: Media elements
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/* Only apply when debug-mode class is on body */
|
|
19
|
+
.debug-mode {
|
|
20
|
+
/* === INTERACTIVE ELEMENTS (High Contrast - Most Important) === */
|
|
21
|
+
|
|
22
|
+
/* Buttons - Red (Primary Actions) */
|
|
23
|
+
button {
|
|
24
|
+
outline: 2px solid rgb(239 68 68 / 80%) !important;
|
|
25
|
+
outline-offset: -2px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* Links - Blue (Navigation) */
|
|
29
|
+
a {
|
|
30
|
+
outline: 2px solid rgb(59 130 246 / 75%) !important;
|
|
31
|
+
outline-offset: -2px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Form Inputs - Orange */
|
|
35
|
+
input,
|
|
36
|
+
textarea,
|
|
37
|
+
select {
|
|
38
|
+
outline: 2px solid rgb(249 115 22 / 80%) !important;
|
|
39
|
+
outline-offset: -2px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* Interactive ARIA roles - Magenta */
|
|
43
|
+
[onclick],
|
|
44
|
+
[role='button'],
|
|
45
|
+
[role='tab'],
|
|
46
|
+
[role='menuitem'],
|
|
47
|
+
[role='link'],
|
|
48
|
+
[role='checkbox'],
|
|
49
|
+
[role='radio'],
|
|
50
|
+
[role='switch'] {
|
|
51
|
+
outline: 2px dashed rgb(236 72 153 / 70%) !important;
|
|
52
|
+
outline-offset: -2px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* Dialogs and Modals - Bright Magenta (Important) */
|
|
56
|
+
dialog,
|
|
57
|
+
[role='dialog'],
|
|
58
|
+
[role='alertdialog'],
|
|
59
|
+
[class*='modal'],
|
|
60
|
+
[class*='dialog'] {
|
|
61
|
+
outline: 3px solid rgb(219 39 119 / 85%) !important;
|
|
62
|
+
outline-offset: -3px;
|
|
63
|
+
box-shadow: 0 0 0 4px rgb(219 39 119 / 20%) !important;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* Menus and Dropdowns - Violet */
|
|
67
|
+
[role='menu'],
|
|
68
|
+
[role='menubar'],
|
|
69
|
+
[role='listbox'],
|
|
70
|
+
[class*='dropdown'],
|
|
71
|
+
[class*='menu'] {
|
|
72
|
+
outline: 2px solid rgb(139 92 246 / 70%) !important;
|
|
73
|
+
outline-offset: -2px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/* Tooltips and Popovers - Sky Blue */
|
|
77
|
+
[role='tooltip'],
|
|
78
|
+
[class*='tooltip'],
|
|
79
|
+
[class*='popover'] {
|
|
80
|
+
outline: 2px solid rgb(14 165 233 / 75%) !important;
|
|
81
|
+
outline-offset: -2px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/* === CONTENT ELEMENTS (Medium Contrast) === */
|
|
85
|
+
|
|
86
|
+
/* Code blocks - Green */
|
|
87
|
+
pre {
|
|
88
|
+
outline: 2px solid rgb(34 197 94 / 65%) !important;
|
|
89
|
+
outline-offset: -2px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* Inline code - Lime */
|
|
93
|
+
code {
|
|
94
|
+
outline: 1px solid rgb(132 204 22 / 60%) !important;
|
|
95
|
+
outline-offset: -1px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* Figures and Media - Pink */
|
|
99
|
+
figure {
|
|
100
|
+
outline: 2px dashed rgb(236 72 153 / 60%) !important;
|
|
101
|
+
outline-offset: -2px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* Images - Hot Pink */
|
|
105
|
+
img,
|
|
106
|
+
picture,
|
|
107
|
+
svg {
|
|
108
|
+
outline: 2px solid rgb(244 114 182 / 65%) !important;
|
|
109
|
+
outline-offset: -2px;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* Video and Audio - Rose */
|
|
113
|
+
video,
|
|
114
|
+
audio {
|
|
115
|
+
outline: 2px solid rgb(251 113 133 / 70%) !important;
|
|
116
|
+
outline-offset: -2px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/* === SEMANTIC STRUCTURE (Medium Contrast) === */
|
|
120
|
+
|
|
121
|
+
/* Main content - Purple */
|
|
122
|
+
main {
|
|
123
|
+
outline: 2px dashed rgb(168 85 247 / 55%) !important;
|
|
124
|
+
outline-offset: -2px;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/* Header and Footer - Indigo */
|
|
128
|
+
header,
|
|
129
|
+
footer,
|
|
130
|
+
aside {
|
|
131
|
+
outline: 2px solid rgb(129 140 248 / 58%) !important;
|
|
132
|
+
outline-offset: -2px;
|
|
133
|
+
background-color: rgb(129 140 248 / 20%) !important;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/* Navigation - Yellow */
|
|
137
|
+
nav {
|
|
138
|
+
outline: 2px solid rgb(234 179 8 / 65%) !important;
|
|
139
|
+
outline-offset: -2px;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* Sections - Cyan */
|
|
143
|
+
section {
|
|
144
|
+
outline: 2px dashed rgb(6 182 212 / 50%) !important;
|
|
145
|
+
outline-offset: -2px;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* Articles - Teal */
|
|
149
|
+
article {
|
|
150
|
+
outline: 2px dashed rgb(20 184 166 / 53%) !important;
|
|
151
|
+
outline-offset: -2px;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/* Aside - Emerald */
|
|
155
|
+
aside {
|
|
156
|
+
outline: 2px dashed rgb(16 185 129 / 55%) !important;
|
|
157
|
+
outline-offset: -2px;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/* === LAYOUT CONTAINERS (Low-Medium Contrast) === */
|
|
161
|
+
|
|
162
|
+
/* Grid containers - Amber */
|
|
163
|
+
[class*='grid'],
|
|
164
|
+
[style*='display: grid'],
|
|
165
|
+
[style*='display:grid'] {
|
|
166
|
+
outline: 1px solid rgb(245 158 11 / 58%) !important;
|
|
167
|
+
outline-offset: -1px;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/* Flex containers - Sky */
|
|
171
|
+
[class*='flex'],
|
|
172
|
+
[style*='display: flex'],
|
|
173
|
+
[style*='display:flex'] {
|
|
174
|
+
outline: 1px solid rgb(56 189 248 / 58%) !important;
|
|
175
|
+
outline-offset: -1px;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/* Common wrappers - Gray */
|
|
179
|
+
div[class*='container'],
|
|
180
|
+
div[class*='wrapper'],
|
|
181
|
+
div[class*='content'] {
|
|
182
|
+
outline: 1px dotted rgb(156 163 175 / 48%) !important;
|
|
183
|
+
outline-offset: -1px;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/* === COMPONENT PATTERNS (Medium Contrast) === */
|
|
187
|
+
|
|
188
|
+
/* Cards and Panels - Orange */
|
|
189
|
+
[class*='card'],
|
|
190
|
+
[class*='panel'],
|
|
191
|
+
[class*='box'] {
|
|
192
|
+
outline: 2px dashed rgb(251 146 60 / 55%) !important;
|
|
193
|
+
outline-offset: -2px;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/* Window components - Lime */
|
|
197
|
+
[class*='window'],
|
|
198
|
+
[class*='pane'] {
|
|
199
|
+
outline: 2px solid rgb(163 230 53 / 63%) !important;
|
|
200
|
+
outline-offset: -2px;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/* === INTERACTIVE UI (High Contrast) === */
|
|
204
|
+
|
|
205
|
+
/* Resize handles - Bright Green */
|
|
206
|
+
[class*='cursor-resize'],
|
|
207
|
+
[class*='cursor-nw'],
|
|
208
|
+
[class*='cursor-ne'],
|
|
209
|
+
[class*='cursor-sw'],
|
|
210
|
+
[class*='cursor-se'],
|
|
211
|
+
[class*='cursor-n'],
|
|
212
|
+
[class*='cursor-s'],
|
|
213
|
+
[class*='cursor-e'],
|
|
214
|
+
[class*='cursor-w'],
|
|
215
|
+
[class*='resize-handle'] {
|
|
216
|
+
outline: 2px solid rgb(34 197 94 / 75%) !important;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/* Draggable elements - Purple */
|
|
220
|
+
[draggable='true'],
|
|
221
|
+
[class*='cursor-grab'],
|
|
222
|
+
[class*='cursor-grabbing'],
|
|
223
|
+
[class*='draggable'] {
|
|
224
|
+
outline: 2px dashed rgb(147 51 234 / 75%) !important;
|
|
225
|
+
outline-offset: -2px;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/* === FORMS (Medium Contrast) === */
|
|
229
|
+
|
|
230
|
+
/* Form containers - Green */
|
|
231
|
+
form {
|
|
232
|
+
outline: 2px solid rgb(74 222 128 / 63%) !important;
|
|
233
|
+
outline-offset: -2px;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/* Labels - Slate */
|
|
237
|
+
label {
|
|
238
|
+
outline: 1px dotted rgb(148 163 184 / 55%) !important;
|
|
239
|
+
outline-offset: -1px;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/* === DATA DISPLAY (Medium Contrast) === */
|
|
243
|
+
|
|
244
|
+
/* Tables - Yellow */
|
|
245
|
+
table {
|
|
246
|
+
outline: 2px solid rgb(250 204 21 / 70%) !important;
|
|
247
|
+
outline-offset: -2px;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/* Lists with special roles - Cyan */
|
|
251
|
+
[role='list'],
|
|
252
|
+
[role='listitem'],
|
|
253
|
+
ul[class],
|
|
254
|
+
ol[class] {
|
|
255
|
+
outline: 1px dotted rgb(34 211 238 / 53%) !important;
|
|
256
|
+
outline-offset: -1px;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/* === ACCESSIBILITY WARNINGS (High Contrast - Critical) === */
|
|
260
|
+
|
|
261
|
+
/* Missing alt text - Red warning */
|
|
262
|
+
img:not([alt]),
|
|
263
|
+
img[alt=''] {
|
|
264
|
+
outline: 3px solid rgb(239 68 68 / 95%) !important;
|
|
265
|
+
outline-offset: -3px;
|
|
266
|
+
box-shadow: inset 0 0 0 3px rgb(239 68 68 / 25%) !important;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/* Unlabeled inputs - Orange warning */
|
|
270
|
+
input:not([aria-label]):not([aria-labelledby]):not([id]),
|
|
271
|
+
textarea:not([aria-label]):not([aria-labelledby]):not([id]) {
|
|
272
|
+
outline: 3px solid rgb(249 115 22 / 90%) !important;
|
|
273
|
+
box-shadow: inset 0 0 0 2px rgb(249 115 22 / 30%) !important;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/* === MDX CONTENT (Prose Elements) === */
|
|
277
|
+
|
|
278
|
+
/* MDX container - Slate border */
|
|
279
|
+
.mdx {
|
|
280
|
+
outline: 2px dashed rgb(100 116 139 / 50%) !important;
|
|
281
|
+
outline-offset: -2px;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/* MDX headings - Violet */
|
|
285
|
+
.mdx > h1,
|
|
286
|
+
.mdx > h2,
|
|
287
|
+
.mdx > h3,
|
|
288
|
+
.mdx > h4,
|
|
289
|
+
.mdx > h5,
|
|
290
|
+
.mdx > h6 {
|
|
291
|
+
outline: 2px solid rgb(139 92 246 / 60%) !important;
|
|
292
|
+
outline-offset: -2px;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
h1,
|
|
296
|
+
h2,
|
|
297
|
+
h3,
|
|
298
|
+
h4,
|
|
299
|
+
h5,
|
|
300
|
+
h6,
|
|
301
|
+
p,
|
|
302
|
+
small,
|
|
303
|
+
span {
|
|
304
|
+
outline: 2px solid rgb(139 92 246 / 60%) !important;
|
|
305
|
+
outline-offset: -2px;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
/* MDX paragraphs - Blue */
|
|
309
|
+
.mdx > p {
|
|
310
|
+
outline: 2px solid rgb(96 165 250 / 55%) !important;
|
|
311
|
+
outline-offset: -2px;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/* MDX lists - Teal */
|
|
315
|
+
.mdx > ul,
|
|
316
|
+
.mdx > ol {
|
|
317
|
+
outline: 2px dashed rgb(45 212 191 / 55%) !important;
|
|
318
|
+
outline-offset: -2px;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
/* MDX blockquotes - Amber */
|
|
322
|
+
.mdx > blockquote {
|
|
323
|
+
outline: 2px solid rgb(251 191 36 / 60%) !important;
|
|
324
|
+
outline-offset: -2px;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
/* MDX figures/media - Pink */
|
|
328
|
+
.mdx > figure,
|
|
329
|
+
.mdx > .container {
|
|
330
|
+
outline: 2px solid rgb(244 114 182 / 65%) !important;
|
|
331
|
+
outline-offset: -2px;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/* === CAROUSEL CURSOR INDICATOR ZONES === */
|
|
335
|
+
|
|
336
|
+
/* Visualize left/right hover regions for cursor indicator */
|
|
337
|
+
.carousel-cursor-indicator {
|
|
338
|
+
position: relative;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.carousel-cursor-indicator::before,
|
|
342
|
+
.carousel-cursor-indicator::after {
|
|
343
|
+
position: absolute;
|
|
344
|
+
top: 0;
|
|
345
|
+
bottom: 0;
|
|
346
|
+
z-index: 40;
|
|
347
|
+
width: 50%;
|
|
348
|
+
pointer-events: none;
|
|
349
|
+
content: '';
|
|
350
|
+
opacity: 0.15;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/* Left half - prev zone */
|
|
354
|
+
.carousel-cursor-indicator::before {
|
|
355
|
+
left: 0;
|
|
356
|
+
background: linear-gradient(90deg, rgb(239 68 68 / 60%), rgb(239 68 68 / 20%) 80%, transparent);
|
|
357
|
+
border-right: 2px dashed rgb(239 68 68 / 80%);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
/* Right half - next zone */
|
|
361
|
+
.carousel-cursor-indicator::after {
|
|
362
|
+
right: 0;
|
|
363
|
+
background: linear-gradient(
|
|
364
|
+
-90deg,
|
|
365
|
+
rgb(59 130 246 / 60%),
|
|
366
|
+
rgb(59 130 246 / 20%) 80%,
|
|
367
|
+
transparent
|
|
368
|
+
);
|
|
369
|
+
border-left: 2px dashed rgb(59 130 246 / 80%);
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
/* Zone labels */
|
|
373
|
+
.carousel-cursor-indicator [data-slot='carousel-content']::before {
|
|
374
|
+
position: absolute;
|
|
375
|
+
top: 50%;
|
|
376
|
+
left: 1rem;
|
|
377
|
+
z-index: 45;
|
|
378
|
+
padding: 0.25rem 0.5rem;
|
|
379
|
+
font-family: ui-monospace, monospace;
|
|
380
|
+
font-size: 10px;
|
|
381
|
+
font-weight: 700;
|
|
382
|
+
color: white;
|
|
383
|
+
pointer-events: none;
|
|
384
|
+
content: '← PREV';
|
|
385
|
+
background: rgb(239 68 68 / 90%);
|
|
386
|
+
border-radius: 4px;
|
|
387
|
+
transform: translateY(-50%);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.carousel-cursor-indicator [data-slot='carousel-content']::after {
|
|
391
|
+
position: absolute;
|
|
392
|
+
top: 50%;
|
|
393
|
+
right: 1rem;
|
|
394
|
+
z-index: 45;
|
|
395
|
+
padding: 0.25rem 0.5rem;
|
|
396
|
+
font-family: ui-monospace, monospace;
|
|
397
|
+
font-size: 10px;
|
|
398
|
+
font-weight: 700;
|
|
399
|
+
color: white;
|
|
400
|
+
pointer-events: none;
|
|
401
|
+
content: 'NEXT →';
|
|
402
|
+
background: rgb(59 130 246 / 90%);
|
|
403
|
+
border-radius: 4px;
|
|
404
|
+
transform: translateY(-50%);
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
/* === PEEK TRIGGER ZONE === */
|
|
408
|
+
|
|
409
|
+
.peek-trigger-debug {
|
|
410
|
+
background: linear-gradient(180deg, rgb(16 185 129 / 15%), transparent);
|
|
411
|
+
border-bottom: 2px dashed rgb(16 185 129 / 60%);
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.peek-trigger-debug::after {
|
|
415
|
+
position: absolute;
|
|
416
|
+
bottom: 0.25rem;
|
|
417
|
+
left: 0.5rem;
|
|
418
|
+
padding: 0.15rem 0.4rem;
|
|
419
|
+
font-family: ui-monospace, monospace;
|
|
420
|
+
font-size: 10px;
|
|
421
|
+
font-weight: 700;
|
|
422
|
+
color: white;
|
|
423
|
+
pointer-events: none;
|
|
424
|
+
content: 'PEEK TRIGGER';
|
|
425
|
+
background: rgb(16 185 129 / 90%);
|
|
426
|
+
border-radius: 4px;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
/* === DEBUG INFO BADGE === */
|
|
430
|
+
|
|
431
|
+
/* &::before {
|
|
432
|
+
position: fixed;
|
|
433
|
+
bottom: 0.5rem;
|
|
434
|
+
left: 0.5rem;
|
|
435
|
+
z-index: 99999;
|
|
436
|
+
padding: 0.4rem 0.6rem;
|
|
437
|
+
font-family: ui-monospace, monospace;
|
|
438
|
+
font-size: 8px;
|
|
439
|
+
font-weight: 700;
|
|
440
|
+
color: white;
|
|
441
|
+
text-transform: uppercase;
|
|
442
|
+
letter-spacing: 0.08em;
|
|
443
|
+
pointer-events: none;
|
|
444
|
+
content: "DEBUG MODE - Ctrl+SHIFT+D";
|
|
445
|
+
background: linear-gradient(
|
|
446
|
+
135deg,
|
|
447
|
+
rgb(239 68 68 / 95%),
|
|
448
|
+
rgb(220 38 38 / 95%)
|
|
449
|
+
);
|
|
450
|
+
} */
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
/* Debug toggle keyboard shortcut: Ctrl+D (or Cmd+D on Mac) */
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared UI utilities — scrollbars, MDX code blocks, theme view transitions.
|
|
3
|
+
* Imported by default from `@atom63/styles`. Opt into debug via
|
|
4
|
+
* `@atom63/styles/utils/debug`.
|
|
5
|
+
*/
|
|
6
|
+
@import './scroll-bar.css';
|
|
7
|
+
@import './scroll-mask.css';
|
|
8
|
+
@import './code-highlighting.css';
|
|
9
|
+
@import './view-transition.css';
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
* {
|
|
3
|
+
scrollbar-color: color-mix(in srgb, var(--a63-text-primary), transparent 50%)
|
|
4
|
+
var(--a63-border-subtle);
|
|
5
|
+
scrollbar-width: thin;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
*::-webkit-scrollbar {
|
|
9
|
+
width: 4px;
|
|
10
|
+
height: 4px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
*::-webkit-scrollbar-track {
|
|
14
|
+
background: var(--a63-border-subtle);
|
|
15
|
+
border-radius: 9999px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
*::-webkit-scrollbar-thumb {
|
|
19
|
+
background: color-mix(in srgb, var(--a63-text-primary), transparent 50%);
|
|
20
|
+
border-radius: 9999px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
*::-webkit-scrollbar-thumb:hover {
|
|
24
|
+
background: color-mix(in srgb, var(--a63-text-primary), transparent 30%);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
*::-webkit-scrollbar-corner {
|
|
28
|
+
background: var(--a63-border-subtle);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.scrollbar-none,
|
|
33
|
+
.no-scrollbar {
|
|
34
|
+
scrollbar-width: none;
|
|
35
|
+
|
|
36
|
+
-ms-overflow-style: none;
|
|
37
|
+
|
|
38
|
+
&::-webkit-scrollbar {
|
|
39
|
+
display: none;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/*
|
|
44
|
+
* scrollbar-reveal — hover-revealed scrollbar (matches ScrollArea look).
|
|
45
|
+
* Use on overflow containers where ScrollArea is not appropriate.
|
|
46
|
+
*/
|
|
47
|
+
.scrollbar-reveal {
|
|
48
|
+
scrollbar-width: thin;
|
|
49
|
+
scrollbar-color: transparent transparent;
|
|
50
|
+
|
|
51
|
+
&::-webkit-scrollbar {
|
|
52
|
+
width: 6px;
|
|
53
|
+
height: 6px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&::-webkit-scrollbar-track {
|
|
57
|
+
background: transparent;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&::-webkit-scrollbar-thumb {
|
|
61
|
+
background-color: transparent;
|
|
62
|
+
border-radius: 9999px;
|
|
63
|
+
transition: background-color 0.15s ease 0.3s;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&:hover {
|
|
67
|
+
scrollbar-color: color-mix(in srgb, var(--a63-text-primary), transparent 80%) transparent;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&:hover::-webkit-scrollbar-thumb {
|
|
71
|
+
background-color: color-mix(in srgb, var(--a63-text-primary), transparent 80%);
|
|
72
|
+
transition: background-color 0.1s ease 0s;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&:hover::-webkit-scrollbar-thumb:hover {
|
|
76
|
+
background-color: color-mix(in srgb, var(--a63-text-primary), transparent 60%);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* scroll-mask — CSS-only scroll-aware edge fades via animation-timeline: scroll().
|
|
3
|
+
* Adapted from https://twilson.net/scroll-mask
|
|
4
|
+
*
|
|
5
|
+
* Usage:
|
|
6
|
+
* scroll-mask-y — fade top & bottom edges
|
|
7
|
+
* scroll-mask-t — fade top edge only
|
|
8
|
+
* scroll-mask-b — fade bottom edge only
|
|
9
|
+
* scroll-mask-x — fade left & right edges
|
|
10
|
+
* scroll-mask-b-from-* — custom fade distance (e.g. scroll-mask-b-from-60%)
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
@property --scroll-mask-t-from {
|
|
14
|
+
syntax: '<length-percentage>';
|
|
15
|
+
inherits: false;
|
|
16
|
+
initial-value: 100%;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@property --scroll-mask-b-from {
|
|
20
|
+
syntax: '<length-percentage>';
|
|
21
|
+
inherits: false;
|
|
22
|
+
initial-value: 100%;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@property --scroll-mask-l-from {
|
|
26
|
+
syntax: '<length-percentage>';
|
|
27
|
+
inherits: false;
|
|
28
|
+
initial-value: 100%;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@property --scroll-mask-r-from {
|
|
32
|
+
syntax: '<length-percentage>';
|
|
33
|
+
inherits: false;
|
|
34
|
+
initial-value: 100%;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@keyframes scroll-mask-y-scroll {
|
|
38
|
+
0% {
|
|
39
|
+
--scroll-mask-t-from: 100%;
|
|
40
|
+
}
|
|
41
|
+
10%,
|
|
42
|
+
100% {
|
|
43
|
+
--scroll-mask-t-from: var(--scroll-mask-fade-from-t, 100%);
|
|
44
|
+
}
|
|
45
|
+
/* independent custom-property track animating on overlapping keyframe offsets */
|
|
46
|
+
0%,
|
|
47
|
+
90% {
|
|
48
|
+
--scroll-mask-b-from: var(--scroll-mask-fade-from-b, 100%);
|
|
49
|
+
}
|
|
50
|
+
100% {
|
|
51
|
+
--scroll-mask-b-from: 100%;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@keyframes scroll-mask-x-scroll {
|
|
56
|
+
0% {
|
|
57
|
+
--scroll-mask-l-from: 100%;
|
|
58
|
+
}
|
|
59
|
+
10%,
|
|
60
|
+
100% {
|
|
61
|
+
--scroll-mask-l-from: var(--scroll-mask-fade-from-l, 100%);
|
|
62
|
+
}
|
|
63
|
+
/* independent custom-property track animating on overlapping keyframe offsets */
|
|
64
|
+
0%,
|
|
65
|
+
90% {
|
|
66
|
+
--scroll-mask-r-from: var(--scroll-mask-fade-from-r, 100%);
|
|
67
|
+
}
|
|
68
|
+
100% {
|
|
69
|
+
--scroll-mask-r-from: 100%;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@supports (animation-timeline: scroll()) {
|
|
74
|
+
:where([class^='scroll-mask-'], [class*=' scroll-mask-']) {
|
|
75
|
+
--scroll-mask-t: linear-gradient(to top, black, black var(--scroll-mask-t-from), transparent);
|
|
76
|
+
--scroll-mask-b: linear-gradient(
|
|
77
|
+
to bottom,
|
|
78
|
+
black,
|
|
79
|
+
black var(--scroll-mask-b-from),
|
|
80
|
+
transparent
|
|
81
|
+
);
|
|
82
|
+
--scroll-mask-l: linear-gradient(to left, black, black var(--scroll-mask-l-from), transparent);
|
|
83
|
+
--scroll-mask-r: linear-gradient(to right, black, black var(--scroll-mask-r-from), transparent);
|
|
84
|
+
mask-image:
|
|
85
|
+
var(--scroll-mask-t), var(--scroll-mask-b), var(--scroll-mask-l), var(--scroll-mask-r);
|
|
86
|
+
mask-composite: intersect;
|
|
87
|
+
-webkit-mask-composite: source-in;
|
|
88
|
+
animation:
|
|
89
|
+
scroll-mask-y-scroll linear,
|
|
90
|
+
scroll-mask-x-scroll linear;
|
|
91
|
+
animation-timeline: scroll(self block), scroll(self inline);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.scroll-mask-t {
|
|
96
|
+
--scroll-mask-fade-from-t: 80%;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.scroll-mask-b {
|
|
100
|
+
--scroll-mask-fade-from-b: 80%;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.scroll-mask-y {
|
|
104
|
+
--scroll-mask-fade-from-t: 80%;
|
|
105
|
+
--scroll-mask-fade-from-b: 80%;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.scroll-mask-l {
|
|
109
|
+
--scroll-mask-fade-from-l: 80%;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.scroll-mask-r {
|
|
113
|
+
--scroll-mask-fade-from-r: 80%;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.scroll-mask-x {
|
|
117
|
+
--scroll-mask-fade-from-l: 80%;
|
|
118
|
+
--scroll-mask-fade-from-r: 80%;
|
|
119
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
html[data-theme-transitioning] *,
|
|
2
|
+
html[data-theme-transitioning] *::before,
|
|
3
|
+
html[data-theme-transitioning] *::after {
|
|
4
|
+
transition: none !important;
|
|
5
|
+
animation-duration: 0s !important;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@layer utilities {
|
|
9
|
+
.no-theme-transition {
|
|
10
|
+
transition: none !important;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.no-theme-transition * {
|
|
14
|
+
transition: none !important;
|
|
15
|
+
}
|
|
16
|
+
}
|
package/src/z-layers.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical z-index scale — typed mirror of the `--z-layer-*` custom
|
|
3
|
+
* properties in `tokens/foundation/primitives.css`. CSS is the source of
|
|
4
|
+
* truth; this mirror exists for JS consumers (e.g. the os63 windowing engine)
|
|
5
|
+
* that need numbers.
|
|
6
|
+
*
|
|
7
|
+
* Keep in sync with `tokens/foundation/primitives.css`; the archived token package keeps
|
|
8
|
+
* the drift-guarded mirror (`z-layers.test.ts`) for its own token consumers.
|
|
9
|
+
*/
|
|
10
|
+
export const Z_LAYERS = {
|
|
11
|
+
below: -1,
|
|
12
|
+
default: 0,
|
|
13
|
+
raised: 1,
|
|
14
|
+
base: 10,
|
|
15
|
+
sticky: 20,
|
|
16
|
+
windowOverlay: 40,
|
|
17
|
+
header: 50,
|
|
18
|
+
drawer: 90,
|
|
19
|
+
window: 300,
|
|
20
|
+
snapPreview: 390,
|
|
21
|
+
windowCeiling: 399,
|
|
22
|
+
flyout: 400,
|
|
23
|
+
launcher: 450,
|
|
24
|
+
scrim: 500,
|
|
25
|
+
modal: 600,
|
|
26
|
+
toast: 1050,
|
|
27
|
+
dock: 900,
|
|
28
|
+
overviewBackdrop: 905,
|
|
29
|
+
overviewWindow: 910,
|
|
30
|
+
overviewLabel: 940,
|
|
31
|
+
switcher: 950,
|
|
32
|
+
menu: 960,
|
|
33
|
+
popover: 970,
|
|
34
|
+
tooltip: 980,
|
|
35
|
+
overlay: 990,
|
|
36
|
+
lock: 1000,
|
|
37
|
+
boot: 1100,
|
|
38
|
+
} as const
|
|
39
|
+
|
|
40
|
+
export type ZLayer = keyof typeof Z_LAYERS
|