@burdenoff/fe-libs 2026.1116.1 → 2026.1116.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/dist/chrome/Tabs.js +4 -0
- package/dist/shared/assistant/history/useHistoryRowControls.d.ts +16 -0
- package/dist/shared/assistant/history/useHistoryRowControls.js +38 -14
- package/dist/shared/assistant/i18nManifest.d.ts +9 -0
- package/dist/shared/assistant/i18nManifest.js +9 -0
- package/dist/shared/assistant/index.d.ts +2 -0
- package/dist/shared/assistant/ui/AIAssistantPanel.d.ts +16 -0
- package/dist/shared/assistant/ui/AIAssistantPanel.js +247 -223
- package/dist/shared/assistant/ui/AssistantChatArea.js +1355 -1347
- package/dist/shared/assistant/ui/AssistantOverlay.d.ts +6 -0
- package/dist/shared/assistant/ui/AssistantOverlay.js +4 -2
- package/dist/shared/assistant/ui/AssistantPageHost.d.ts +14 -1
- package/dist/shared/assistant/ui/AssistantPageHost.js +32 -19
- package/dist/shared/assistant/ui/AssistantRenameConversationDialog.d.ts +33 -0
- package/dist/shared/assistant/ui/AssistantRenameConversationDialog.js +70 -0
- package/dist/shared/assistant/ui/assistantPageBar.d.ts +33 -0
- package/dist/shared/assistant/ui/assistantPageBar.js +53 -0
- package/dist/shared/assistant/ui/assistantPageLayout.d.ts +20 -0
- package/dist/shared/assistant/ui/assistantPageLayout.js +10 -2
- package/dist/shared/assistant/ui/assistantPageStart.d.ts +17 -0
- package/dist/shared/assistant/ui/assistantPageStart.js +7 -4
- package/dist/shared/assistant/ui/compact/AssistantConversationMenu.d.ts +30 -0
- package/dist/shared/assistant/ui/compact/AssistantConversationMenu.js +174 -53
- package/dist/shared/assistant/ui/compact/AssistantPageBar.d.ts +19 -0
- package/dist/shared/assistant/ui/compact/AssistantPageBar.js +24 -19
- package/dist/shared/assistant/ui/composer/AssistantComposer.d.ts +2 -0
- package/dist/shared/assistant/ui/composer/AssistantComposer.js +347 -340
- package/dist/shared/assistant/ui/composer/AssistantDictation.d.ts +5 -0
- package/dist/shared/assistant/ui/composer/AssistantDictation.js +41 -40
- package/dist/shared/assistant/ui/composer/pageBoxClass.d.ts +28 -1
- package/dist/shared/assistant/ui/composer/pageBoxClass.js +17 -1
- package/dist/shared/assistant/ui/conversationDeleteDialog.d.ts +14 -4
- package/dist/shared/assistant/ui/conversationDeleteDialog.js +7 -6
- package/dist/shared/assistant/ui/voice/AssistantVoiceSessionButton.js +1 -1
- package/dist/shared/assistant/ui/voice/LiveWaveform.js +1 -1
- package/dist/shared-assistant.js +256 -254
- package/dist/ui/aurora-background.js +1 -0
- package/dist/ui/badge.d.ts +5 -0
- package/dist/ui/badge.js +2 -0
- package/dist/ui/card.d.ts +6 -0
- package/dist/ui/card.js +8 -0
- package/dist/ui/emphasis-panel.js +1 -0
- package/dist/ui/empty-state.js +4 -0
- package/dist/ui/glass-card.d.ts +9 -0
- package/dist/ui/glass-card.js +5 -0
- package/dist/ui/icon-tile.d.ts +19 -0
- package/dist/ui/icon-tile.js +21 -0
- package/dist/ui/illustration.d.ts +4 -0
- package/dist/ui/illustration.js +4 -0
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui/input.js +1 -0
- package/dist/ui/page-tabs.js +2 -0
- package/dist/ui/responsive-table.js +3 -0
- package/dist/ui/select.js +2 -0
- package/dist/ui/table.js +9 -0
- package/dist/ui/textarea.js +1 -0
- package/dist/ui.js +16 -15
- package/package.json +2 -1
- package/src/shared/tokens/depth.css +760 -0
- package/src/shared/tokens/tokens.css +6 -0
|
@@ -0,0 +1,760 @@
|
|
|
1
|
+
/* BOFF-14994: the depth layer (D1-D6 and the light theme, L1), approved for FluidGrids on 16 Nov.
|
|
2
|
+
*
|
|
3
|
+
* Inert unless the host opts in. Every selector starts with
|
|
4
|
+
* :root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
5
|
+
* so HealthyBowl, VibeControls, BigConsole and every other product render exactly as before
|
|
6
|
+
* (shared/utils/depthLayer.test.ts fails on any rule that does not). High contrast keeps its
|
|
7
|
+
* own solid surfaces and yellow focus ring, forced colours get nothing, and a browser without
|
|
8
|
+
* color-mix() gets nothing (the build's fallbacks would paint the accents at full strength).
|
|
9
|
+
*
|
|
10
|
+
* Host contract (the FluidGrids shell sets these; nothing here sets them):
|
|
11
|
+
* <html data-depth="rich"> the opt-in. The shell sets it in a layout effect while it is
|
|
12
|
+
* mounted and removes it on unmount; shell-less pages never
|
|
13
|
+
* carry it.
|
|
14
|
+
* [data-shell-page] the routed page's box under the sticky top bar (the wrapper
|
|
15
|
+
* [data-page-width="..."] inside [data-swipe-root]). It also carries the page's width
|
|
16
|
+
* tier from BOFF-14993: form, standard, catalog or tool. `tool`
|
|
17
|
+
* is the uncapped tier (builder, template preview, /assistant,
|
|
18
|
+
* AI Studio, data tables, conversations, calendar, scheduler,
|
|
19
|
+
* tour builders, editors) and keeps its own look. Nothing puts
|
|
20
|
+
* data-page-width on <html>.
|
|
21
|
+
* [data-page-enter] on that box when the pathname changes (never the query or the
|
|
22
|
+
* hash): the host removes it, forces a reflow and sets it again,
|
|
23
|
+
* without remounting the box, so the rise-in restarts.
|
|
24
|
+
* [data-depth="off"] on any element: its subtree keeps today's look.
|
|
25
|
+
* Page rules key on the box, `[data-shell-page][data-page-width]:not([data-page-width='tool'])`;
|
|
26
|
+
* the rise-in on `[data-shell-page][data-page-enter]:not([data-page-width='tool'])`; the glow on
|
|
27
|
+
* the shell's scroll container that holds such a box. The sidebar's rules key on
|
|
28
|
+
* [data-shell-sidebar] and apply on every page. fe-libs provides the rest:
|
|
29
|
+
* [data-shell-scroll-container] on AppShellLayout's <main>, [data-shell-topbar] on ShellTopBar,
|
|
30
|
+
* [data-shell-sidebar], [data-active] and [data-shell-active-bar] in the sidebar, the data-slot
|
|
31
|
+
* hooks on the primitives (Card, GlassCard, IconTile, Table, Tabs, Button, Input, Badge, ...),
|
|
32
|
+
* and <html dir> from the I18nProvider for the mirrored rules.
|
|
33
|
+
*
|
|
34
|
+
* Rules of this file:
|
|
35
|
+
* - Colours only from tokens (the two accent glows, the gloss tokens, the pop and elevation
|
|
36
|
+
* shadows, --boff-on-glow, the text and border tokens) and `transparent`; motion only from
|
|
37
|
+
* the --motion-* tokens and the existing boff-rise keyframes.
|
|
38
|
+
* - Unlayered like the rest of tokens.css, so it wins over the layered Tailwind utilities it
|
|
39
|
+
* decorates without !important. That is also why it never sets a border colour at rest and
|
|
40
|
+
* never touches a focused element's box-shadow, outline or border: a consumer's meaning and
|
|
41
|
+
* focus ring stay. A focused field's glow is a drop-shadow filter drawn around its own ring.
|
|
42
|
+
* - It never makes an element a containing block or a scroll area for other elements: the
|
|
43
|
+
* glow is drawn by two empty, zero-height boxes of <main> (see D1), and the rise-in does not
|
|
44
|
+
* fill forwards (a transform fill would hold the box as the containing block of every
|
|
45
|
+
* position: fixed element inside the page).
|
|
46
|
+
* - Class-token selectors (`[class~=...]`, `[class*=...]`) only for hand-drawn module markup
|
|
47
|
+
* with no hook, always inside the page box, and as exclusions. depthLayer.test.ts fails on a
|
|
48
|
+
* positive one outside the box; the PR lists each one as a follow-up for a hook.
|
|
49
|
+
* - Every motion sits inside (prefers-reduced-motion: no-preference) AND needs the root
|
|
50
|
+
* without data-reduce-motion; every lift also needs (hover: hover).
|
|
51
|
+
* - Every rule that uses :has() sits inside @supports selector(:has(*)): a browser without
|
|
52
|
+
* :has() skips only those rules, and the build cannot merge them into the others.
|
|
53
|
+
* - A selector breaks across lines only where it already has a descendant combinator.
|
|
54
|
+
* - The strengths below are the most each theme allows while every text token that reads at
|
|
55
|
+
* 4.5:1 today keeps 4.5:1, and every icon and bar that reads at 3:1 keeps 3:1, on what the
|
|
56
|
+
* layer paints, under the glow where it shows below the top bar
|
|
57
|
+
* (shared/utils/depthContrast.test.ts, which also pins the pairs that fail before it). */
|
|
58
|
+
|
|
59
|
+
@media screen and (forced-colors: none) {
|
|
60
|
+
@supports (color: color-mix(in oklab, red 50%, transparent)) {
|
|
61
|
+
/* ---------- Strengths per theme ---------- */
|
|
62
|
+
:root[data-depth='rich']:not([data-theme='high-contrast']) {
|
|
63
|
+
/* D1: the glow over the top of the page; "multiply" tints the light page. */
|
|
64
|
+
--depth-mesh-a: 8%;
|
|
65
|
+
--depth-mesh-b: 6%;
|
|
66
|
+
--depth-blend: multiply;
|
|
67
|
+
--depth-glow-height: 380px;
|
|
68
|
+
/* ShellTopBar's height (h-14): where the scroll container has no top bar of its own
|
|
69
|
+
* (phones), the glow starts this far above it, so the page shows what a desktop page
|
|
70
|
+
* shows below its opaque bar. */
|
|
71
|
+
--depth-glow-under-bar: 3.5rem;
|
|
72
|
+
/* D2: how far a clickable card lifts; the light card sheen's bottom rim (a share of
|
|
73
|
+
* --gloss-rim-light). */
|
|
74
|
+
--depth-lift: -2px;
|
|
75
|
+
--depth-rim: 45%;
|
|
76
|
+
/* D3: the table header wash and the hovered row. */
|
|
77
|
+
--depth-head-wash: 7%;
|
|
78
|
+
--depth-row-wash: 8%;
|
|
79
|
+
/* D4: the accent sheen inside a primary button (the light accent equals the button). */
|
|
80
|
+
--depth-button-sheen: 22%;
|
|
81
|
+
/* D6: the sidebar's current item, and how much of the primary text its subtitle takes. */
|
|
82
|
+
--depth-nav-wash: 24%;
|
|
83
|
+
--depth-nav-subtitle: 0%;
|
|
84
|
+
}
|
|
85
|
+
/* ThemeProvider sets .dark for the dark, forest, ocean and sunset themes. */
|
|
86
|
+
:root[data-depth='rich']:not([data-theme='high-contrast']).dark {
|
|
87
|
+
/* "screen" lightens the dark page. */
|
|
88
|
+
--depth-mesh-a: 10%;
|
|
89
|
+
--depth-mesh-b: 10%;
|
|
90
|
+
--depth-blend: screen;
|
|
91
|
+
--depth-nav-subtitle: 30%;
|
|
92
|
+
}
|
|
93
|
+
/* White labels on a mid-tone accent: any sheen takes them under 4.5:1. */
|
|
94
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])[data-theme='forest'] {
|
|
95
|
+
--depth-mesh-a: 9.5%;
|
|
96
|
+
--depth-mesh-b: 10%;
|
|
97
|
+
--depth-button-sheen: 0%;
|
|
98
|
+
}
|
|
99
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])[data-theme='ocean'] {
|
|
100
|
+
--depth-mesh-a: 7.5%;
|
|
101
|
+
--depth-mesh-b: 9%;
|
|
102
|
+
--depth-button-sheen: 0%;
|
|
103
|
+
}
|
|
104
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])[data-theme='sunset'] {
|
|
105
|
+
--depth-mesh-a: 10.5%;
|
|
106
|
+
--depth-mesh-b: 11%;
|
|
107
|
+
--depth-button-sheen: 0%;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* ---------- D1: a soft two-accent glow over the top of every page ----------
|
|
111
|
+
* Page roots paint opaque backgrounds, so the glow is an overlay above them, blended
|
|
112
|
+
* ("screen" or "multiply"), under the sticky top bar (z-30), and it never takes a click.
|
|
113
|
+
* Each accent is an empty ::before / ::after of the shell's <main>: zero height and in the
|
|
114
|
+
* flow (main is a flex column in every FluidGrids layout; `order: -1` brings ::after to its
|
|
115
|
+
* top), so it takes no space. The ellipse is its border-image, painted outward from that
|
|
116
|
+
* box: border-image outside the border box is ink overflow (CSS Backgrounds 3), so it scrolls
|
|
117
|
+
* away with the page and adds no scroll height however short <main> is. <main> stays
|
|
118
|
+
* unpositioned: no element changes containing block. The pseudo-elements are positioned
|
|
119
|
+
* only to take a z-index; they hold nothing. The two ellipses never overlap, so the
|
|
120
|
+
* strongest tint anywhere is one accent at its mesh share. */
|
|
121
|
+
@supports selector(:has(*)) {
|
|
122
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
123
|
+
[data-shell-scroll-container]:has(
|
|
124
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'], [data-depth='off'], [data-depth='off'] *)
|
|
125
|
+
):not(:where([data-depth='off'], [data-depth='off'] *))::before,
|
|
126
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
127
|
+
[data-shell-scroll-container]:has(
|
|
128
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'], [data-depth='off'], [data-depth='off'] *)
|
|
129
|
+
):not(:where([data-depth='off'], [data-depth='off'] *))::after {
|
|
130
|
+
content: '';
|
|
131
|
+
display: block;
|
|
132
|
+
position: relative;
|
|
133
|
+
z-index: 20;
|
|
134
|
+
flex: none;
|
|
135
|
+
block-size: 0;
|
|
136
|
+
pointer-events: none;
|
|
137
|
+
mix-blend-mode: var(--depth-blend);
|
|
138
|
+
border-image-slice: 0 fill;
|
|
139
|
+
border-image-width: 0;
|
|
140
|
+
border-image-outset: 0 0 var(--depth-glow-height) 0;
|
|
141
|
+
}
|
|
142
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
143
|
+
[data-shell-scroll-container]:has(
|
|
144
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'], [data-depth='off'], [data-depth='off'] *)
|
|
145
|
+
):not(:where([data-depth='off'], [data-depth='off'] *))::before {
|
|
146
|
+
border-image-source: radial-gradient(46% 100% at 18% 0%, color-mix(in oklab, var(--color-accent-glow) var(--depth-mesh-a), transparent), transparent 72%);
|
|
147
|
+
}
|
|
148
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
149
|
+
[data-shell-scroll-container]:has(
|
|
150
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'], [data-depth='off'], [data-depth='off'] *)
|
|
151
|
+
):not(:where([data-depth='off'], [data-depth='off'] *))::after {
|
|
152
|
+
order: -1;
|
|
153
|
+
border-image-source: radial-gradient(40% 92% at 82% 0%, color-mix(in oklab, var(--color-accent-glow-alt) var(--depth-mesh-b), transparent), transparent 74%);
|
|
154
|
+
}
|
|
155
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])[dir='rtl']
|
|
156
|
+
[data-shell-scroll-container]:has(
|
|
157
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'], [data-depth='off'], [data-depth='off'] *)
|
|
158
|
+
):not(:where([data-depth='off'], [data-depth='off'] *))::before {
|
|
159
|
+
border-image-source: radial-gradient(46% 100% at 82% 0%, color-mix(in oklab, var(--color-accent-glow) var(--depth-mesh-a), transparent), transparent 72%);
|
|
160
|
+
}
|
|
161
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])[dir='rtl']
|
|
162
|
+
[data-shell-scroll-container]:has(
|
|
163
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'], [data-depth='off'], [data-depth='off'] *)
|
|
164
|
+
):not(:where([data-depth='off'], [data-depth='off'] *))::after {
|
|
165
|
+
border-image-source: radial-gradient(40% 92% at 18% 0%, color-mix(in oklab, var(--color-accent-glow-alt) var(--depth-mesh-b), transparent), transparent 74%);
|
|
166
|
+
}
|
|
167
|
+
/* No top bar in the scroll container (phones put theirs above it): start the glow above
|
|
168
|
+
* <main>, where it is clipped, so the page sees what it sees below a desktop bar. */
|
|
169
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
170
|
+
[data-shell-scroll-container]:has(
|
|
171
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'], [data-depth='off'], [data-depth='off'] *)
|
|
172
|
+
):not(:has([data-shell-topbar])):not(:where([data-depth='off'], [data-depth='off'] *))::before,
|
|
173
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
174
|
+
[data-shell-scroll-container]:has(
|
|
175
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'], [data-depth='off'], [data-depth='off'] *)
|
|
176
|
+
):not(:has([data-shell-topbar])):not(:where([data-depth='off'], [data-depth='off'] *))::after {
|
|
177
|
+
border-image-outset: var(--depth-glow-under-bar) 0 calc(var(--depth-glow-height) - var(--depth-glow-under-bar)) 0;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
/* The glow already shines where AuroraBackground's -z-10 blobs sit (under <main>'s
|
|
181
|
+
* canvas, so unseen at rest); hidden, they can neither double it nor flash while a page
|
|
182
|
+
* rises (the animation makes the page box a stacking context for a moment). */
|
|
183
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
184
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
185
|
+
[data-slot='aurora-background']:not(:where([data-depth='off'], [data-depth='off'] *)) {
|
|
186
|
+
display: none;
|
|
187
|
+
}
|
|
188
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
189
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
190
|
+
[data-slot='page-header']
|
|
191
|
+
h1:not(:where([data-depth='off'], [data-depth='off'] *)) {
|
|
192
|
+
letter-spacing: -0.01em;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/* ---------- D2: cards ----------
|
|
196
|
+
* Every card gets the soft edge light (--shadow-pop carries the 1px accent ring) and a
|
|
197
|
+
* hairline on its top edge: fe-libs Card, GlassCard (plain, insight, metric) and
|
|
198
|
+
* ResponsiveTable's phone cards. Never a border colour at rest (consumers set it for
|
|
199
|
+
* meaning), never a card with its own ring or no shadow, a status-tinted card, a GlassCard
|
|
200
|
+
* with `glow` (it keeps --shadow-glow) or in the `glass` treatment (its own gloss and pop),
|
|
201
|
+
* and never anything that is or sits in a menu, listbox, dialog, tooltip or popper. */
|
|
202
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
203
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
204
|
+
:is(
|
|
205
|
+
[data-slot='card'],
|
|
206
|
+
[data-slot='glass-card']:is([data-treatment='plain'], [data-treatment='insight'], [data-treatment='metric']),
|
|
207
|
+
[data-slot='responsive-table-card']
|
|
208
|
+
):not(
|
|
209
|
+
[data-glow], :focus-visible, [class~='ring'], [class~='ring-1'], [class~='ring-2'],
|
|
210
|
+
[class~='ring-4'], [class~='shadow-none'], [class*='status-']
|
|
211
|
+
):not(
|
|
212
|
+
:where(
|
|
213
|
+
[role='menu'], [role='menubar'], [role='listbox'], [role='dialog'], [role='alertdialog'],
|
|
214
|
+
[role='tooltip'], [popover], [data-radix-popper-content-wrapper],
|
|
215
|
+
:is(
|
|
216
|
+
[role='menu'], [role='menubar'], [role='listbox'], [role='dialog'], [role='alertdialog'],
|
|
217
|
+
[role='tooltip'], [popover], [data-radix-popper-content-wrapper]
|
|
218
|
+
) *
|
|
219
|
+
)
|
|
220
|
+
):not(:where([data-depth='off'], [data-depth='off'] *)) {
|
|
221
|
+
box-shadow: inset 0 1px 0 color-mix(in oklab, var(--color-text-primary) 6%, transparent), var(--shadow-pop);
|
|
222
|
+
}
|
|
223
|
+
/* The gloss sheen on surface-coloured cards, never over a background image (a consumer's,
|
|
224
|
+
* or the metric treatment's accent wash). Dark themes: the gloss token. Light: its white top
|
|
225
|
+
* (unseen on a white card) and its bottom rim at --depth-rim, which keeps muted text at
|
|
226
|
+
* 4.5:1 where the full rim would not.
|
|
227
|
+
* Never on a card that holds a table (or a grid): the header and hovered-row washes (D3)
|
|
228
|
+
* would stack on the sheen, and in the dark themes muted text there falls under 4.5:1 even
|
|
229
|
+
* without the glow (5.6-6.1:1 today). Such a card keeps the edge light, like a hand-drawn
|
|
230
|
+
* card that holds a table. Without :has() no card gets the sheen. */
|
|
231
|
+
@supports selector(:has(*)) {
|
|
232
|
+
:root[data-depth='rich']:not([data-theme='high-contrast']).dark
|
|
233
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
234
|
+
:is(
|
|
235
|
+
[data-slot='card'],
|
|
236
|
+
[data-slot='glass-card']:is([data-treatment='plain'], [data-treatment='insight']),
|
|
237
|
+
[data-slot='responsive-table-card']
|
|
238
|
+
):not(
|
|
239
|
+
[data-glow], [class*='status-'], [class*='bg-gradient'], [class*='bg-linear'],
|
|
240
|
+
[class*='bg-radial'], [class*='bg-conic'], [class*='bg-['], [class~='bg-accent-wash'],
|
|
241
|
+
[class*='bg-bg-elevated'], [class~='bg-card']
|
|
242
|
+
):not(:has(table, [role='table'], [role='grid'], [role='treegrid'])):not(
|
|
243
|
+
:where(
|
|
244
|
+
[role='menu'], [role='menubar'], [role='listbox'], [role='dialog'], [role='alertdialog'],
|
|
245
|
+
[role='tooltip'], [popover], [data-radix-popper-content-wrapper],
|
|
246
|
+
:is(
|
|
247
|
+
[role='menu'], [role='menubar'], [role='listbox'], [role='dialog'], [role='alertdialog'],
|
|
248
|
+
[role='tooltip'], [popover], [data-radix-popper-content-wrapper]
|
|
249
|
+
) *
|
|
250
|
+
)
|
|
251
|
+
):not(:where([data-depth='off'], [data-depth='off'] *)) {
|
|
252
|
+
background-image: var(--gradient-gloss-card);
|
|
253
|
+
}
|
|
254
|
+
:root[data-depth='rich']:not([data-theme='high-contrast']):not(.dark)
|
|
255
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
256
|
+
:is(
|
|
257
|
+
[data-slot='card'],
|
|
258
|
+
[data-slot='glass-card']:is([data-treatment='plain'], [data-treatment='insight']),
|
|
259
|
+
[data-slot='responsive-table-card']
|
|
260
|
+
):not(
|
|
261
|
+
[data-glow], [class*='status-'], [class*='bg-gradient'], [class*='bg-linear'],
|
|
262
|
+
[class*='bg-radial'], [class*='bg-conic'], [class*='bg-['], [class~='bg-accent-wash'],
|
|
263
|
+
[class*='bg-bg-elevated'], [class~='bg-card']
|
|
264
|
+
):not(:has(table, [role='table'], [role='grid'], [role='treegrid'])):not(
|
|
265
|
+
:where(
|
|
266
|
+
[role='menu'], [role='menubar'], [role='listbox'], [role='dialog'], [role='alertdialog'],
|
|
267
|
+
[role='tooltip'], [popover], [data-radix-popper-content-wrapper],
|
|
268
|
+
:is(
|
|
269
|
+
[role='menu'], [role='menubar'], [role='listbox'], [role='dialog'], [role='alertdialog'],
|
|
270
|
+
[role='tooltip'], [popover], [data-radix-popper-content-wrapper]
|
|
271
|
+
) *
|
|
272
|
+
)
|
|
273
|
+
):not(:where([data-depth='off'], [data-depth='off'] *)) {
|
|
274
|
+
background-image: linear-gradient(180deg, var(--gloss-sheen-light) 0%, transparent 38%, transparent 82%, color-mix(in oklab, var(--gloss-rim-light) var(--depth-rim), transparent) 100%);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
/* Hand-drawn cards in module code (no hook yet, so class tokens; a follow-up gives each a
|
|
278
|
+
* hook): exact tokens only, inside the page box. Never a filter bar (a search, a toolbar or
|
|
279
|
+
* any field inside), a table's wrapper, a sticky bar or anything inside one, a positioned
|
|
280
|
+
* popover, a status panel, or anything that is or sits in a menu, listbox, dialog, tooltip
|
|
281
|
+
* or popper. The edge light and the sheen; never a border colour or a lift. */
|
|
282
|
+
@supports selector(:has(*)) {
|
|
283
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
284
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
285
|
+
:is(div, section, article, li)[class~='border']:is(
|
|
286
|
+
[class~='rounded-lg'], [class~='rounded-xl'], [class~='rounded-2xl'], [class~='rounded-card']
|
|
287
|
+
):is(
|
|
288
|
+
[class~='bg-bg-surface'], [class~='bg-bg-elevated'], [class~='bg-surface'], [class~='bg-card'],
|
|
289
|
+
[class~='bg-surface-default']
|
|
290
|
+
):not(
|
|
291
|
+
[data-slot], [role='search'], [role='toolbar'], [class~='absolute'], [class~='fixed'],
|
|
292
|
+
[class*='sticky'], [class*='status-'], :focus-visible, [class~='ring'], [class~='ring-1'],
|
|
293
|
+
[class~='ring-2'], [class~='ring-4'], [class~='shadow-none']
|
|
294
|
+
):not(
|
|
295
|
+
:has(
|
|
296
|
+
table, [role='table'], [role='grid'], [role='treegrid'], [role='search'], [role='searchbox'],
|
|
297
|
+
[role='combobox'], select, textarea,
|
|
298
|
+
input:not([type='checkbox'], [type='radio'], [type='hidden'], [type='button'], [type='submit'], [type='reset'])
|
|
299
|
+
)
|
|
300
|
+
):not(
|
|
301
|
+
:where(
|
|
302
|
+
[class*='sticky'] *, [role='menu'] *, [role='menubar'] *, [role='listbox'] *, [role='dialog'] *,
|
|
303
|
+
[role='alertdialog'] *, [role='tooltip'] *, [popover] *, [data-radix-popper-content-wrapper] *
|
|
304
|
+
)
|
|
305
|
+
):not([role='menu'], [role='menubar'], [role='listbox'], [role='dialog'], [role='alertdialog'], [role='tooltip'], [popover]):not(
|
|
306
|
+
:where([data-depth='off'], [data-depth='off'] *)
|
|
307
|
+
) {
|
|
308
|
+
box-shadow: inset 0 1px 0 color-mix(in oklab, var(--color-text-primary) 6%, transparent), var(--shadow-pop);
|
|
309
|
+
}
|
|
310
|
+
:root[data-depth='rich']:not([data-theme='high-contrast']).dark
|
|
311
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
312
|
+
:is(div, section, article, li)[class~='border']:is(
|
|
313
|
+
[class~='rounded-lg'], [class~='rounded-xl'], [class~='rounded-2xl'], [class~='rounded-card']
|
|
314
|
+
):is([class~='bg-bg-surface'], [class~='bg-surface'], [class~='bg-surface-default']):not(
|
|
315
|
+
[data-slot], [role='search'], [role='toolbar'], [class~='absolute'], [class~='fixed'],
|
|
316
|
+
[class*='sticky'], [class*='status-'], [class*='bg-gradient'], [class*='bg-linear'],
|
|
317
|
+
[class*='bg-radial'], [class*='bg-conic'], [class*='bg-['], [class~='bg-accent-wash']
|
|
318
|
+
):not(
|
|
319
|
+
:has(
|
|
320
|
+
table, [role='table'], [role='grid'], [role='treegrid'], [role='search'], [role='searchbox'],
|
|
321
|
+
[role='combobox'], select, textarea,
|
|
322
|
+
input:not([type='checkbox'], [type='radio'], [type='hidden'], [type='button'], [type='submit'], [type='reset'])
|
|
323
|
+
)
|
|
324
|
+
):not(
|
|
325
|
+
:where(
|
|
326
|
+
[class*='sticky'] *, [role='menu'] *, [role='menubar'] *, [role='listbox'] *, [role='dialog'] *,
|
|
327
|
+
[role='alertdialog'] *, [role='tooltip'] *, [popover] *, [data-radix-popper-content-wrapper] *
|
|
328
|
+
)
|
|
329
|
+
):not([role='menu'], [role='menubar'], [role='listbox'], [role='dialog'], [role='alertdialog'], [role='tooltip'], [popover]):not(
|
|
330
|
+
:where([data-depth='off'], [data-depth='off'] *)
|
|
331
|
+
) {
|
|
332
|
+
background-image: var(--gradient-gloss-card);
|
|
333
|
+
}
|
|
334
|
+
:root[data-depth='rich']:not([data-theme='high-contrast']):not(.dark)
|
|
335
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
336
|
+
:is(div, section, article, li)[class~='border']:is(
|
|
337
|
+
[class~='rounded-lg'], [class~='rounded-xl'], [class~='rounded-2xl'], [class~='rounded-card']
|
|
338
|
+
):is([class~='bg-bg-surface'], [class~='bg-surface'], [class~='bg-surface-default']):not(
|
|
339
|
+
[data-slot], [role='search'], [role='toolbar'], [class~='absolute'], [class~='fixed'],
|
|
340
|
+
[class*='sticky'], [class*='status-'], [class*='bg-gradient'], [class*='bg-linear'],
|
|
341
|
+
[class*='bg-radial'], [class*='bg-conic'], [class*='bg-['], [class~='bg-accent-wash']
|
|
342
|
+
):not(
|
|
343
|
+
:has(
|
|
344
|
+
table, [role='table'], [role='grid'], [role='treegrid'], [role='search'], [role='searchbox'],
|
|
345
|
+
[role='combobox'], select, textarea,
|
|
346
|
+
input:not([type='checkbox'], [type='radio'], [type='hidden'], [type='button'], [type='submit'], [type='reset'])
|
|
347
|
+
)
|
|
348
|
+
):not(
|
|
349
|
+
:where(
|
|
350
|
+
[class*='sticky'] *, [role='menu'] *, [role='menubar'] *, [role='listbox'] *, [role='dialog'] *,
|
|
351
|
+
[role='alertdialog'] *, [role='tooltip'] *, [popover] *, [data-radix-popper-content-wrapper] *
|
|
352
|
+
)
|
|
353
|
+
):not([role='menu'], [role='menubar'], [role='listbox'], [role='dialog'], [role='alertdialog'], [role='tooltip'], [popover]):not(
|
|
354
|
+
:where([data-depth='off'], [data-depth='off'] *)
|
|
355
|
+
) {
|
|
356
|
+
background-image: linear-gradient(180deg, var(--gloss-sheen-light) 0%, transparent 38%, transparent 82%, color-mix(in oklab, var(--gloss-rim-light) var(--depth-rim), transparent) 100%);
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
/* ---------- D2: clickable cards light up under the pointer (the lift is with the motion) ---------- */
|
|
361
|
+
@media (hover: hover) {
|
|
362
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
363
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
364
|
+
:is(
|
|
365
|
+
[data-slot='card']:is([data-interactive], [role='button'], [role='link']),
|
|
366
|
+
[data-slot='glass-card']:is([data-interactive], [role='button'], [role='link']),
|
|
367
|
+
[data-slot='responsive-table-card'][data-interactive]
|
|
368
|
+
):hover:not(
|
|
369
|
+
[data-glow], :focus-visible, [class~='ring'], [class~='ring-1'], [class~='ring-2'],
|
|
370
|
+
[class~='ring-4'], [class*='status-']
|
|
371
|
+
):not(:where([data-depth='off'], [data-depth='off'] *)) {
|
|
372
|
+
border-color: color-mix(in oklab, var(--color-accent-glow) 45%, transparent);
|
|
373
|
+
box-shadow:
|
|
374
|
+
0 0 0 1px color-mix(in oklab, var(--color-accent-glow) 30%, transparent),
|
|
375
|
+
0 18px 40px -22px color-mix(in oklab, var(--color-accent-glow) 60%, transparent),
|
|
376
|
+
var(--shadow-pop);
|
|
377
|
+
}
|
|
378
|
+
/* Hand-drawn clickable cards: a button or link with the card tokens and a card-shaped
|
|
379
|
+
* body. Chips, page numbers, toggles and pickers share the tokens but not the body, and
|
|
380
|
+
* are skipped by their ARIA state. A <div onClick> leaves no trace in the DOM: move it
|
|
381
|
+
* to Card or GlassCard, which set data-interactive. */
|
|
382
|
+
@supports selector(:has(*)) {
|
|
383
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
384
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
385
|
+
:is(button, a)[class~='border']:is(
|
|
386
|
+
[class~='rounded-lg'], [class~='rounded-xl'], [class~='rounded-2xl'], [class~='rounded-card']
|
|
387
|
+
):is([class~='bg-bg-surface'], [class~='bg-bg-elevated'], [class~='bg-surface'], [class~='bg-card']):not(
|
|
388
|
+
[data-slot], [aria-pressed], [aria-selected], [aria-current], [role='tab'], [role='radio'],
|
|
389
|
+
[role='option'], [role='combobox'], [role='menuitem'], [class*='status-'], [class~='ring-2'],
|
|
390
|
+
[class*='sticky'], :focus-visible
|
|
391
|
+
):not(
|
|
392
|
+
:where(
|
|
393
|
+
[class*='sticky'] *, [role='menu'] *, [role='menubar'] *, [role='listbox'] *, [role='dialog'] *,
|
|
394
|
+
[role='alertdialog'] *, [role='tooltip'] *, [popover] *, [data-radix-popper-content-wrapper] *
|
|
395
|
+
)
|
|
396
|
+
):has(> :is(div, p, h2, h3, h4)):hover:not(:where([data-depth='off'], [data-depth='off'] *)) {
|
|
397
|
+
border-color: color-mix(in oklab, var(--color-accent-glow) 45%, transparent);
|
|
398
|
+
box-shadow:
|
|
399
|
+
0 0 0 1px color-mix(in oklab, var(--color-accent-glow) 30%, transparent),
|
|
400
|
+
0 18px 40px -22px color-mix(in oklab, var(--color-accent-glow) 60%, transparent),
|
|
401
|
+
var(--shadow-pop);
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
/* ---------- D2: accent icon tiles ----------
|
|
407
|
+
* IconTile takes the /assistant tile gradient, and its icon --boff-on-glow (its own colour
|
|
408
|
+
* class would fall to about 2:1 on the bright tile). Not in a menu, listbox, dialog, tooltip
|
|
409
|
+
* or popper. */
|
|
410
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
411
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
412
|
+
[data-slot='icon-tile']:not(
|
|
413
|
+
:where(
|
|
414
|
+
[role='menu'] *, [role='menubar'] *, [role='listbox'] *, [role='dialog'] *, [role='alertdialog'] *,
|
|
415
|
+
[role='tooltip'] *, [popover] *, [data-radix-popper-content-wrapper] *
|
|
416
|
+
)
|
|
417
|
+
):not(:where([data-depth='off'], [data-depth='off'] *)) {
|
|
418
|
+
background-image: linear-gradient(135deg, var(--color-accent-glow), color-mix(in oklab, var(--color-accent-glow) 55%, var(--color-accent-glow-alt)));
|
|
419
|
+
color: var(--boff-on-glow);
|
|
420
|
+
box-shadow: 0 6px 16px -6px color-mix(in oklab, var(--color-accent-glow) 70%, transparent);
|
|
421
|
+
}
|
|
422
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
423
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
424
|
+
[data-slot='icon-tile']:not(
|
|
425
|
+
:where(
|
|
426
|
+
[role='menu'] *, [role='menubar'] *, [role='listbox'] *, [role='dialog'] *, [role='alertdialog'] *,
|
|
427
|
+
[role='tooltip'] *, [popover] *, [data-radix-popper-content-wrapper] *
|
|
428
|
+
)
|
|
429
|
+
):not(:where([data-depth='off'], [data-depth='off'] *))
|
|
430
|
+
> svg {
|
|
431
|
+
color: var(--boff-on-glow);
|
|
432
|
+
}
|
|
433
|
+
/* Hand-drawn tiles in module code (no hook yet): a small rounded tile whose only element
|
|
434
|
+
* child is an icon, on one of the exact resting accent tints. Not the empty-state icon (D5),
|
|
435
|
+
* not a selection tint or an avatar (no lone icon), not a chip (side padding or a text
|
|
436
|
+
* size), not in a menu, listbox, dialog, tooltip or popper. */
|
|
437
|
+
@supports selector(:has(*)) {
|
|
438
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
439
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
440
|
+
:is(div, span):is(
|
|
441
|
+
[class~='bg-action-primary-bg/10'], [class~='bg-action-primary-bg/15'],
|
|
442
|
+
[class~='bg-action-primary-bg/20'], [class~='bg-[var(--color-accent-soft)]'],
|
|
443
|
+
[class~='bg-accent-soft'], [class~='bg-bg-accent']
|
|
444
|
+
)[class*='rounded']:not([data-slot], [class*='px-'], [class~='text-xs'], [class~='text-sm']):not(
|
|
445
|
+
:where(
|
|
446
|
+
[role='menu'] *, [role='menubar'] *, [role='listbox'] *, [role='dialog'] *, [role='alertdialog'] *,
|
|
447
|
+
[role='tooltip'] *, [popover] *, [data-radix-popper-content-wrapper] *
|
|
448
|
+
)
|
|
449
|
+
):has(> svg:only-child):not(:where([data-depth='off'], [data-depth='off'] *)) {
|
|
450
|
+
background-image: linear-gradient(135deg, var(--color-accent-glow), color-mix(in oklab, var(--color-accent-glow) 55%, var(--color-accent-glow-alt)));
|
|
451
|
+
color: var(--boff-on-glow);
|
|
452
|
+
box-shadow: 0 6px 16px -6px color-mix(in oklab, var(--color-accent-glow) 70%, transparent);
|
|
453
|
+
}
|
|
454
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
455
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
456
|
+
:is(div, span):is(
|
|
457
|
+
[class~='bg-action-primary-bg/10'], [class~='bg-action-primary-bg/15'],
|
|
458
|
+
[class~='bg-action-primary-bg/20'], [class~='bg-[var(--color-accent-soft)]'],
|
|
459
|
+
[class~='bg-accent-soft'], [class~='bg-bg-accent']
|
|
460
|
+
)[class*='rounded']:not([data-slot], [class*='px-'], [class~='text-xs'], [class~='text-sm']):not(
|
|
461
|
+
:where(
|
|
462
|
+
[role='menu'] *, [role='menubar'] *, [role='listbox'] *, [role='dialog'] *, [role='alertdialog'] *,
|
|
463
|
+
[role='tooltip'] *, [popover] *, [data-radix-popper-content-wrapper] *
|
|
464
|
+
)
|
|
465
|
+
):has(> svg:only-child):not(:where([data-depth='off'], [data-depth='off'] *))
|
|
466
|
+
> svg {
|
|
467
|
+
color: var(--boff-on-glow);
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
/* ---------- D3: tables ----------
|
|
472
|
+
* An accent wash on the header and on the row under the pointer (background images, so a
|
|
473
|
+
* row's own hover fill and the selected tint stay underneath), and an accent bar on the
|
|
474
|
+
* hovered row's start edge. In the light theme, muted text there reads in the secondary
|
|
475
|
+
* token and a link in its hover token: muted (#6B7280) is 4.63:1 on the canvas and 4.39:1 on
|
|
476
|
+
* a hovered fe-libs row today, a link 4.70:1 on that row, so the approved washes would take
|
|
477
|
+
* them under 4.5:1 (secondary and the link's hover token keep 6:1 or more).
|
|
478
|
+
* The remap covers the aliases that resolve at :root and so never follow a remapped
|
|
479
|
+
* --color-text-muted: text-muted-foreground (semantic.css, app-shell.css and the app's
|
|
480
|
+
* @theme) and text-content-muted / -tertiary (app-shell.css). The header's remap sits on the
|
|
481
|
+
* header group, so a colour class on <thead> reads it too; a colour set on <tbody>, the table
|
|
482
|
+
* or above it is inherited already resolved and keeps the muted token (a follow-up). Never in
|
|
483
|
+
* a prose table, or in a GlassCard that paints its own surface (metric's accent wash, the
|
|
484
|
+
* glass treatment's gloss): the washes would stack on it. */
|
|
485
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
486
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
487
|
+
:is([data-slot='table'], table):not(
|
|
488
|
+
.prose table, [data-slot='glass-card']:is([data-treatment='metric'], [data-treatment='glass']) table
|
|
489
|
+
)
|
|
490
|
+
> :is([data-slot='table-header'], thead)
|
|
491
|
+
> tr:not(:where([data-depth='off'], [data-depth='off'] *)) {
|
|
492
|
+
background-image: linear-gradient(180deg, color-mix(in oklab, var(--color-accent-glow) var(--depth-head-wash), transparent), transparent);
|
|
493
|
+
}
|
|
494
|
+
:root[data-depth='rich']:not([data-theme='high-contrast']):not(.dark)
|
|
495
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
496
|
+
:is([data-slot='table'], table):not(
|
|
497
|
+
.prose table, [data-slot='glass-card']:is([data-treatment='metric'], [data-treatment='glass']) table
|
|
498
|
+
)
|
|
499
|
+
> :is([data-slot='table-header'], thead):not(:where([data-depth='off'], [data-depth='off'] *)) {
|
|
500
|
+
--color-text-muted: var(--color-text-secondary);
|
|
501
|
+
--color-muted-foreground: var(--color-text-secondary);
|
|
502
|
+
--color-content-muted: var(--color-text-secondary);
|
|
503
|
+
--color-content-tertiary: var(--color-text-secondary);
|
|
504
|
+
--color-text-link: var(--color-text-linkHover);
|
|
505
|
+
}
|
|
506
|
+
@media (hover: hover) {
|
|
507
|
+
/* A full-width colspan row (an expanded detail, "No variables yet") is not a row to pick. */
|
|
508
|
+
@supports selector(:has(*)) {
|
|
509
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
510
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
511
|
+
:is([data-slot='table'], table):not(
|
|
512
|
+
.prose table, [data-slot='glass-card']:is([data-treatment='metric'], [data-treatment='glass']) table
|
|
513
|
+
)
|
|
514
|
+
> :is([data-slot='table-body'], tbody)
|
|
515
|
+
> tr:hover:not([data-state='selected'], [aria-selected='true']):not(
|
|
516
|
+
:has(> td[colspan]:only-child)
|
|
517
|
+
):not(:where([data-depth='off'], [data-depth='off'] *)) {
|
|
518
|
+
background-image: linear-gradient(
|
|
519
|
+
color-mix(in oklab, var(--color-accent-glow) var(--depth-row-wash), transparent),
|
|
520
|
+
color-mix(in oklab, var(--color-accent-glow) var(--depth-row-wash), transparent)
|
|
521
|
+
);
|
|
522
|
+
}
|
|
523
|
+
:root[data-depth='rich']:not([data-theme='high-contrast']):not(.dark)
|
|
524
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
525
|
+
:is([data-slot='table'], table):not(
|
|
526
|
+
.prose table, [data-slot='glass-card']:is([data-treatment='metric'], [data-treatment='glass']) table
|
|
527
|
+
)
|
|
528
|
+
> :is([data-slot='table-body'], tbody)
|
|
529
|
+
> tr:hover:not([data-state='selected'], [aria-selected='true']):not(
|
|
530
|
+
:has(> td[colspan]:only-child)
|
|
531
|
+
):not(:where([data-depth='off'], [data-depth='off'] *)) {
|
|
532
|
+
--color-text-muted: var(--color-text-secondary);
|
|
533
|
+
--color-muted-foreground: var(--color-text-secondary);
|
|
534
|
+
--color-content-muted: var(--color-text-secondary);
|
|
535
|
+
--color-content-tertiary: var(--color-text-secondary);
|
|
536
|
+
--color-text-link: var(--color-text-linkHover);
|
|
537
|
+
}
|
|
538
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
539
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
540
|
+
:is([data-slot='table'], table):not(
|
|
541
|
+
.prose table, [data-slot='glass-card']:is([data-treatment='metric'], [data-treatment='glass']) table
|
|
542
|
+
)
|
|
543
|
+
> :is([data-slot='table-body'], tbody)
|
|
544
|
+
> tr:hover:not([data-state='selected'], [aria-selected='true']):not(:has(> td[colspan]:only-child))
|
|
545
|
+
> :first-child:not(:where([data-depth='off'], [data-depth='off'] *)) {
|
|
546
|
+
box-shadow: inset 3px 0 0 var(--color-accent-glow);
|
|
547
|
+
}
|
|
548
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])[dir='rtl']
|
|
549
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
550
|
+
:is([data-slot='table'], table):not(
|
|
551
|
+
.prose table, [data-slot='glass-card']:is([data-treatment='metric'], [data-treatment='glass']) table
|
|
552
|
+
)
|
|
553
|
+
> :is([data-slot='table-body'], tbody)
|
|
554
|
+
> tr:hover:not([data-state='selected'], [aria-selected='true']):not(:has(> td[colspan]:only-child))
|
|
555
|
+
> :first-child:not(:where([data-depth='off'], [data-depth='off'] *)) {
|
|
556
|
+
box-shadow: inset -3px 0 0 var(--color-accent-glow);
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
/* ---------- D4: the selected tab ----------
|
|
562
|
+
* Every selected tab gets a soft accent glow beneath it; a Radix pill keeps its own raised
|
|
563
|
+
* shadow under it, and underline tabs (PageTabs, nav Tabs in the underline variant,
|
|
564
|
+
* hand-drawn border-b-2 tabs) also get the accent underline and the primary text colour.
|
|
565
|
+
* A pill's fill and label stay its own. The top bar's segmented tabs are outside the page. */
|
|
566
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
567
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
568
|
+
[role='tablist']
|
|
569
|
+
[role='tab']:is([aria-selected='true'], [data-state='active']):not(:focus-visible):not(
|
|
570
|
+
:where([data-depth='off'], [data-depth='off'] *)
|
|
571
|
+
) {
|
|
572
|
+
box-shadow: 0 10px 20px -14px color-mix(in oklab, var(--color-accent-glow) 90%, transparent);
|
|
573
|
+
}
|
|
574
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
575
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
576
|
+
[data-slot='tabs-list']
|
|
577
|
+
[data-slot='tabs-trigger'][data-state='active']:not(:focus-visible):not(
|
|
578
|
+
:where([data-depth='off'], [data-depth='off'] *)
|
|
579
|
+
) {
|
|
580
|
+
box-shadow:
|
|
581
|
+
var(--shadow-elevation-1),
|
|
582
|
+
0 10px 20px -14px color-mix(in oklab, var(--color-accent-glow) 90%, transparent);
|
|
583
|
+
}
|
|
584
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
585
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
586
|
+
[role='tablist']
|
|
587
|
+
:is(
|
|
588
|
+
[data-slot='page-tabs-tab'],
|
|
589
|
+
[data-slot='page-tabs-more'],
|
|
590
|
+
[data-slot='nav-tabs'][data-variant='underline'] [data-slot='nav-tabs-tab'],
|
|
591
|
+
[role='tab'][class~='border-b-2']
|
|
592
|
+
):is([aria-selected='true'], [data-state='active']):not(:focus-visible):not(
|
|
593
|
+
:where([data-depth='off'], [data-depth='off'] *)
|
|
594
|
+
) {
|
|
595
|
+
color: var(--color-text-primary);
|
|
596
|
+
box-shadow:
|
|
597
|
+
inset 0 -2px 0 var(--color-accent-glow),
|
|
598
|
+
0 10px 20px -14px color-mix(in oklab, var(--color-accent-glow) 90%, transparent);
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
/* ---------- D4: primary buttons glow ----------
|
|
602
|
+
* fe-libs Button only: a class match would catch chips, page numbers and toggles that share
|
|
603
|
+
* bg-action-primary-bg. Also in the sidebar (its New button), on every page. */
|
|
604
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
605
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
606
|
+
[data-slot='button'][data-variant='default']:not(
|
|
607
|
+
:disabled, [aria-disabled='true'], :focus-visible, .boff-voice-start
|
|
608
|
+
):not(:where([data-depth='off'], [data-depth='off'] *)),
|
|
609
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
610
|
+
[data-shell-sidebar]
|
|
611
|
+
[data-slot='button'][data-variant='default']:not(
|
|
612
|
+
:disabled, [aria-disabled='true'], :focus-visible, .boff-voice-start
|
|
613
|
+
):not(:where([data-depth='off'], [data-depth='off'] *)) {
|
|
614
|
+
background-image: linear-gradient(135deg, color-mix(in oklab, var(--color-accent-glow) var(--depth-button-sheen), transparent), transparent 60%);
|
|
615
|
+
box-shadow: 0 8px 22px -10px color-mix(in oklab, var(--color-accent-glow) 80%, transparent);
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
/* ---------- D4: a field you type in glows ----------
|
|
619
|
+
* A soft accent halo drawn with a drop-shadow filter around the field and its own focus
|
|
620
|
+
* ring: the field keeps its border, ring and outline, so the focus indicator is exactly
|
|
621
|
+
* today's plus the halo. An invalid field, a borderless field (its wrapper shows the focus)
|
|
622
|
+
* and one whose focus style is turned off are left alone. Raw fields need the bare `border`
|
|
623
|
+
* token and a text-like type (an untyped input is text). */
|
|
624
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
625
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
626
|
+
:is([data-slot='input'], [data-slot='textarea'], [data-slot='select-trigger']):focus-visible:not(
|
|
627
|
+
[aria-invalid='true'], [class~='border-0'], [class~='border-none'],
|
|
628
|
+
[class~='focus-visible:ring-0'], [class~='focus:ring-0'], [class~='focus-visible:shadow-none']
|
|
629
|
+
):not(:where([data-depth='off'], [data-depth='off'] *)),
|
|
630
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
631
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
632
|
+
:is(
|
|
633
|
+
input:not(
|
|
634
|
+
[type='checkbox'], [type='radio'], [type='range'], [type='file'], [type='color'],
|
|
635
|
+
[type='hidden'], [type='button'], [type='submit'], [type='reset'], [type='image']
|
|
636
|
+
),
|
|
637
|
+
textarea,
|
|
638
|
+
select
|
|
639
|
+
)[class~='border']:not(
|
|
640
|
+
[data-slot], [class~='border-0'], [class~='border-none'], [aria-invalid='true']
|
|
641
|
+
):focus-visible:not(:where([data-depth='off'], [data-depth='off'] *)) {
|
|
642
|
+
filter: drop-shadow(0 0 6px color-mix(in oklab, var(--color-accent-glow) 45%, transparent));
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
/* ---------- Neutral badges take a faint accent edge ----------
|
|
646
|
+
* Outline and secondary only (data-badge-variant; Badge never uses data-variant, which the
|
|
647
|
+
* UI agent tools read as a destructive Button), and only while they keep their own border
|
|
648
|
+
* token: a consumer's status border replaces that token (tailwind-merge), and then the
|
|
649
|
+
* badge is left alone. */
|
|
650
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
651
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
652
|
+
[data-slot='badge']:is(
|
|
653
|
+
[data-badge-variant='outline'][class~='border-border-default'],
|
|
654
|
+
[data-badge-variant='secondary'][class~='border-border-subtle']
|
|
655
|
+
):not(:where([data-depth='off'], [data-depth='off'] *)) {
|
|
656
|
+
border-color: color-mix(in oklab, var(--color-accent-glow) 22%, var(--color-border-subtle));
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
/* ---------- D5: an empty page's picture glows in both accents ---------- */
|
|
660
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
661
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
662
|
+
[data-slot='illustrated-empty-state']
|
|
663
|
+
[data-slot='illustration']:not(:where([data-depth='off'], [data-depth='off'] *)) {
|
|
664
|
+
filter:
|
|
665
|
+
drop-shadow(0 0 18px color-mix(in oklab, var(--color-accent-glow) 60%, transparent))
|
|
666
|
+
drop-shadow(0 0 42px color-mix(in oklab, var(--color-accent-glow-alt) 35%, transparent));
|
|
667
|
+
}
|
|
668
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
669
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
670
|
+
[data-slot='empty-state-icon']:not(:where([data-depth='off'], [data-depth='off'] *)) {
|
|
671
|
+
box-shadow:
|
|
672
|
+
0 0 0 6px color-mix(in oklab, var(--color-accent-glow) 12%, transparent),
|
|
673
|
+
0 0 28px -4px color-mix(in oklab, var(--color-accent-glow) 55%, transparent);
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
/* ---------- D6: the sidebar shows where you are ----------
|
|
677
|
+
* The current item (expanded, child, pinned and rail rows all carry data-active) gets an
|
|
678
|
+
* accent wash from its start edge, and the existing 3 px bar glows. On the wash the item's
|
|
679
|
+
* accent icon takes the accent glow, and its muted subtitle the secondary token with
|
|
680
|
+
* --depth-nav-subtitle of the primary text mixed in (the dark themes need some to keep
|
|
681
|
+
* 4.5:1 on the approved 24% wash). The radius matches the rows that are already rounded and
|
|
682
|
+
* gives the Assistant row's wrapper the same shape. Never keyed on aria-current, which page
|
|
683
|
+
* tabs carry too. */
|
|
684
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
685
|
+
[data-shell-sidebar]
|
|
686
|
+
[data-active='true']:not(:where([data-depth='off'], [data-depth='off'] *)) {
|
|
687
|
+
--color-accent-primary: var(--color-accent-glow);
|
|
688
|
+
--color-text-muted: color-mix(in oklab, var(--color-text-primary) var(--depth-nav-subtitle), var(--color-text-secondary));
|
|
689
|
+
border-radius: var(--radius-button);
|
|
690
|
+
background-image: linear-gradient(to right, color-mix(in oklab, var(--color-accent-glow) var(--depth-nav-wash), transparent), color-mix(in oklab, var(--color-accent-glow-alt) 8%, transparent));
|
|
691
|
+
}
|
|
692
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])[dir='rtl']
|
|
693
|
+
[data-shell-sidebar]
|
|
694
|
+
[data-active='true']:not(:where([data-depth='off'], [data-depth='off'] *)) {
|
|
695
|
+
background-image: linear-gradient(to left, color-mix(in oklab, var(--color-accent-glow) var(--depth-nav-wash), transparent), color-mix(in oklab, var(--color-accent-glow-alt) 8%, transparent));
|
|
696
|
+
}
|
|
697
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
698
|
+
[data-shell-sidebar]
|
|
699
|
+
[data-shell-active-bar]:not(:where([data-depth='off'], [data-depth='off'] *)) {
|
|
700
|
+
background-color: var(--color-accent-glow);
|
|
701
|
+
box-shadow: 0 0 10px color-mix(in oklab, var(--color-accent-glow) 70%, transparent);
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
/* ---------- Motion: only without a reduced-motion preference, from the OS or the app ---------- */
|
|
705
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
706
|
+
/* D1: the page rises in when it opens. The host re-arms data-page-enter on a pathname
|
|
707
|
+
* change (never a query or a hash) without remounting the box. `backwards`, never
|
|
708
|
+
* `both`: a transform that fills forwards keeps the box the containing block of every
|
|
709
|
+
* position: fixed element in the page after the rise. The installed app's own
|
|
710
|
+
* NativePageTransition already animates its routes. */
|
|
711
|
+
:root[data-depth='rich']:not([data-theme='high-contrast']):not([data-reduce-motion])
|
|
712
|
+
[data-shell-page][data-page-enter]:not([data-page-width='tool']):not([data-native-shell] *):not(
|
|
713
|
+
:where([data-depth='off'], [data-depth='off'] *)
|
|
714
|
+
) {
|
|
715
|
+
animation: boff-rise var(--motion-duration-slow) var(--motion-easing-out) backwards;
|
|
716
|
+
}
|
|
717
|
+
:root[data-depth='rich']:not([data-theme='high-contrast']):not([data-reduce-motion])
|
|
718
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
719
|
+
:is(
|
|
720
|
+
[data-slot='card']:is([data-interactive], [role='button'], [role='link']),
|
|
721
|
+
[data-slot='glass-card']:is([data-interactive], [role='button'], [role='link']),
|
|
722
|
+
[data-slot='responsive-table-card'][data-interactive]
|
|
723
|
+
):not([data-glow]):not(:where([data-depth='off'], [data-depth='off'] *)) {
|
|
724
|
+
transition:
|
|
725
|
+
translate var(--motion-duration-fast) var(--motion-easing-standard),
|
|
726
|
+
box-shadow var(--motion-duration-fast) var(--motion-easing-standard),
|
|
727
|
+
border-color var(--motion-duration-fast) var(--motion-easing-standard);
|
|
728
|
+
}
|
|
729
|
+
@media (hover: hover) {
|
|
730
|
+
/* D2: a clickable card lifts a little under the pointer. */
|
|
731
|
+
:root[data-depth='rich']:not([data-theme='high-contrast']):not([data-reduce-motion])
|
|
732
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
733
|
+
:is(
|
|
734
|
+
[data-slot='card']:is([data-interactive], [role='button'], [role='link']),
|
|
735
|
+
[data-slot='glass-card']:is([data-interactive], [role='button'], [role='link']),
|
|
736
|
+
[data-slot='responsive-table-card'][data-interactive]
|
|
737
|
+
):hover:not([data-glow], [class*='status-']):not(:where([data-depth='off'], [data-depth='off'] *)) {
|
|
738
|
+
translate: 0 var(--depth-lift);
|
|
739
|
+
}
|
|
740
|
+
@supports selector(:has(*)) {
|
|
741
|
+
:root[data-depth='rich']:not([data-theme='high-contrast']):not([data-reduce-motion])
|
|
742
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
743
|
+
:is(button, a)[class~='border']:is(
|
|
744
|
+
[class~='rounded-lg'], [class~='rounded-xl'], [class~='rounded-2xl'], [class~='rounded-card']
|
|
745
|
+
):is([class~='bg-bg-surface'], [class~='bg-bg-elevated'], [class~='bg-surface'], [class~='bg-card']):not(
|
|
746
|
+
[data-slot], [aria-pressed], [aria-selected], [aria-current], [role='tab'], [role='radio'],
|
|
747
|
+
[role='option'], [role='combobox'], [role='menuitem'], [class*='status-'], [class*='sticky']
|
|
748
|
+
):not(
|
|
749
|
+
:where(
|
|
750
|
+
[class*='sticky'] *, [role='menu'] *, [role='menubar'] *, [role='listbox'] *, [role='dialog'] *,
|
|
751
|
+
[role='alertdialog'] *, [role='tooltip'] *, [popover] *, [data-radix-popper-content-wrapper] *
|
|
752
|
+
)
|
|
753
|
+
):has(> :is(div, p, h2, h3, h4)):hover:not(:where([data-depth='off'], [data-depth='off'] *)) {
|
|
754
|
+
translate: 0 var(--depth-lift);
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
}
|