devnonla-ui 0.13.0 → 0.14.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.
Files changed (63) hide show
  1. package/package.json +1 -1
  2. package/src/app/App.tsx +2 -2
  3. package/src/app/context.ts +1 -12
  4. package/src/avatar/avatar.css +107 -0
  5. package/src/button/Button.tsx +4 -4
  6. package/src/button/ButtonCopy.tsx +1 -1
  7. package/src/calendar/Calendar.tsx +1 -1
  8. package/src/card/Card.tsx +1 -1
  9. package/src/chat/message-ui/ChatError.tsx +1 -1
  10. package/src/chat/message-ui/ChatInput.tsx +5 -4
  11. package/src/chat/message-ui/ChatUserMessage.tsx +3 -3
  12. package/src/chat/tool-ui/BackgroundTasksBar.tsx +3 -3
  13. package/src/chat/tool-ui/CallAgentToolUI.tsx +2 -2
  14. package/src/chat/tool-ui/ChatToolCall.tsx +3 -3
  15. package/src/chat/tool-ui/ReadSkillToolUI.tsx +2 -2
  16. package/src/chat/tool-ui/RunJsToolUI.tsx +1 -1
  17. package/src/chat/tool-ui/ToolUiBadge.tsx +1 -1
  18. package/src/chat/tool-ui/WebFetchToolUI.tsx +1 -1
  19. package/src/checkbox/Checkbox.tsx +2 -2
  20. package/src/codeblock/CodeBlock.tsx +1 -1
  21. package/src/colorpicker/ColorPicker.tsx +10 -8
  22. package/src/datepicker/DatePicker.tsx +3 -3
  23. package/src/desktop/DesktopHeader.tsx +2 -2
  24. package/src/desktop/DesktopStage.tsx +1 -1
  25. package/src/desktop/DesktopWindow.tsx +3 -3
  26. package/src/desktop/MeadowDesktop.tsx +2 -2
  27. package/src/drawer/Drawer.tsx +6 -2
  28. package/src/dropdown/menuClasses.ts +1 -1
  29. package/src/empty/Empty.tsx +1 -1
  30. package/src/form/variants/FieldRadio.tsx +1 -1
  31. package/src/form/variants/FieldRepeaterItem.tsx +1 -1
  32. package/src/index.ts +3 -3
  33. package/src/input/EditableInput.tsx +3 -2
  34. package/src/input/Input.tsx +15 -7
  35. package/src/lib/sizes.ts +6 -6
  36. package/src/lib/surface.ts +14 -4
  37. package/src/markdown-editor/MarkdownDiff.tsx +4 -4
  38. package/src/markdown-editor/MarkdownPreview.tsx +4 -4
  39. package/src/markdown-editor/MarkdownSource.tsx +1 -1
  40. package/src/markdown-editor/MarkdownTable.tsx +1 -1
  41. package/src/markdown-editor/MarkdownViewer.tsx +7 -7
  42. package/src/markdown-editor/MermaidBlock.tsx +1 -1
  43. package/src/markdown-editor/ReactCodeFrame.tsx +8 -4
  44. package/src/markdown-editor/markdownScale.ts +30 -25
  45. package/src/menu/Menu.tsx +1 -1
  46. package/src/message/message.tsx +18 -8
  47. package/src/modal/Modal.tsx +13 -7
  48. package/src/pagination/Pagination.tsx +3 -3
  49. package/src/popover/Popover.tsx +1 -1
  50. package/src/scroll/OverlayScroll.tsx +2 -2
  51. package/src/segmented/Segmented.tsx +1 -1
  52. package/src/select/Select.tsx +4 -4
  53. package/src/sidebar/Sidebar.tsx +35 -32
  54. package/src/skeleton/Skeleton.tsx +4 -4
  55. package/src/spin/Spin.tsx +14 -2
  56. package/src/splitter/Splitter.tsx +1 -1
  57. package/src/styles.css +166 -842
  58. package/src/table/Table.tsx +12 -12
  59. package/src/tabs/Tabs.tsx +3 -3
  60. package/src/tag/Tag.tsx +3 -3
  61. package/src/theme.ts +53 -147
  62. package/src/timepicker/TimePicker.tsx +2 -2
  63. package/src/typography/Typography.tsx +6 -6
package/src/styles.css CHANGED
@@ -1,18 +1,15 @@
1
1
  @import "highlight.js/styles/github-dark-dimmed.css";
2
+ @import "./avatar/avatar.css";
2
3
 
3
4
  /**
4
- * NonlaUI theme — single source of color.
5
+ * NonlaUI theme.
5
6
  *
6
- * Layers:
7
- * Seed — `--nonla-*` knobs in the first block. Consumer overrides these.
8
- * Map — derived (brand-50…800, radius-sm/lg, z-popup). Do not set unless exception.
9
- * Alias — `--background`, `--brand`, `--destructive` (shadcn + Nonla names).
7
+ * Config is the first block in `:root` and `.light`. Set those.
8
+ * Derived (`--background`, `--nonla-fill`, `--brand-500`, borders) follows Config.
9
+ * `@theme` only maps tokens to Tailwind utilities (`bg-card`, `text-brand`).
10
10
  *
11
- * Dark defaults, measured from cursor.com/dashboard (chrome / editor / base).
12
- * Brand is the CTA hue (`#f18d00`). `.light` is the daylight palette.
13
- * Put `class="light"` or `class="dark"` on `<html>` (or call `setColorMode`).
14
- * Override `--nonla-*` knobs in the consuming app (CSS or `<App theme>`).
15
- * Components read only these tokens — never edit Button/Tag/… to retheme.
11
+ * Dark is the default. Put `class="light"` or `class="dark"` on `<html>`
12
+ * (or call `setColorMode`). Override Config in the consuming app's CSS.
16
13
  */
17
14
 
18
15
  :root,
@@ -20,98 +17,72 @@
20
17
  .nonla-ui {
21
18
  color-scheme: dark;
22
19
 
23
- /* ── Knobs / Seed (override these) ──────────────────────────────────── */
24
- /* Cursor dashboard chrome. Page #141414, sidebar and cards #181818. */
20
+ /* ── Config. Set these. `.light` repeats the same keys. ────────────── */
21
+ /* Page #141414. Sidebar sits with the page, #161616. Cards #181818. */
25
22
  --nonla-bg: #141414;
26
- --nonla-fg: #ffffff;
27
- --nonla-fg-muted: color-mix(in oklab, var(--nonla-fg) 74%, var(--nonla-bg));
28
- --nonla-fg-tertiary: color-mix(in oklab, var(--nonla-fg) 60%, var(--nonla-bg));
29
- --nonla-fg-quaternary: color-mix(in oklab, var(--nonla-fg) 36%, var(--nonla-bg));
30
- /* CTA hue. Button primary, checks, and switches follow this knob. */
23
+ --nonla-text-main: #ffffff;
24
+ --nonla-text-secondary: color-mix(in oklab, var(--nonla-text-main) 74%, var(--nonla-bg));
25
+ --nonla-text-tertiary: color-mix(in oklab, var(--nonla-text-main) 60%, var(--nonla-bg));
26
+ --nonla-text-quaternary: color-mix(in oklab, var(--nonla-text-main) 36%, var(--nonla-bg));
27
+ --nonla-text-on-solid: #ffffff;
31
28
  --nonla-brand: #f18d00;
32
- /* Label on brand fills (Button primary, Tag solid, Checkbox). */
33
- --nonla-solid-fg: #ffffff;
34
29
  --nonla-danger: #ef4444;
35
30
  --nonla-success: #3fa266;
36
31
  --nonla-warn: #f1b467;
37
- /* Cursor "Learn more" — the only chromatic link. */
38
32
  --nonla-link: #81a1c1;
39
- /* Body sits a step under the page ink. Headings stay on --nonla-fg so they don't pick up a gray cast from the mix. */
40
- --md-ink: color-mix(in oklab, var(--nonla-fg) 78%, var(--nonla-bg));
41
- --md-heading: var(--nonla-fg);
42
- /* Inline code chip. A light wash, not a solid stamp. */
43
- --md-inline-bg: color-mix(in oklab, var(--nonla-fg) 6%, var(--nonla-surface));
33
+
34
+ --nonla-sidebar: #161616;
35
+ --nonla-surface: #181818;
36
+ --nonla-bar: #242424;
37
+ --nonla-border: color-mix(in oklab, var(--nonla-text-main) 6%, transparent);
38
+ --nonla-border-secondary: color-mix(in oklab, var(--nonla-text-main) 3%, transparent);
39
+ --nonla-input: rgba(255, 255, 235, 0.1);
40
+
41
+ --nonla-font: ui-sans-serif, -apple-system, system-ui, "Segoe UI Variable Display", "Segoe UI", Helvetica, "Apple Color Emoji", "Noto Sans Arabic", "Noto Sans Hebrew", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
42
+ /* Body size for Typography and markdown docs. The text-* scale stays Tailwind’s default. */
43
+ --nonla-base-text-size: 16px;
44
44
  --nonla-radius: 8px;
45
45
  --nonla-height: 32px;
46
46
  --nonla-height-sm: 24px;
47
47
  --nonla-height-lg: 40px;
48
48
 
49
- --nonla-ink: var(--nonla-fg);
50
- /* Page #141414. Sidebar and cards are the same step lighter, #181818. */
51
- --nonla-sidebar: #181818;
52
- --nonla-surface: #181818;
53
- --nonla-elevated: var(--nonla-surface);
54
- --nonla-chip: color-mix(in oklab, var(--nonla-fg) 6%, var(--nonla-surface));
55
- --nonla-chip-hover: color-mix(in oklab, var(--nonla-fg) 10%, var(--nonla-surface));
56
- /* Hairlines on #1e1e1e. A step under the old 8% / 12% so they don't read heavy. */
57
- --nonla-border: color-mix(in oklab, var(--nonla-fg) 6%, transparent);
58
- /* Card ring and table rules — lighter than --nonla-border. */
59
- --nonla-hairline: color-mix(in oklab, var(--nonla-fg) 3%, transparent);
60
- --nonla-input: color-mix(in oklab, var(--nonla-fg) 9%, transparent);
61
- --nonla-composer: var(--nonla-surface);
62
- --nonla-chat-bg: var(--nonla-bg);
63
- /* Opaque header fill. */
64
- --nonla-table-head: color-mix(in srgb, var(--nonla-fg) 4%, var(--nonla-bg));
65
-
66
- /* Solid fills. Glass names stay as aliases so older class names keep working. */
67
- --nonla-meadow: #141414;
68
- --nonla-glass: var(--nonla-surface);
69
- --nonla-glass-bar: var(--nonla-bg);
70
- --nonla-glass-menu: var(--nonla-surface);
71
- --nonla-glass-border: var(--nonla-border);
72
- --nonla-glass-highlight: transparent;
73
- --nonla-ink-hover: color-mix(in oklab, var(--nonla-fg) 6%, transparent);
74
- --nonla-ink-active: color-mix(in oklab, var(--nonla-fg) 10%, transparent);
75
- --nonla-ink-line: var(--nonla-border);
76
- --nonla-desktop-bar-height: 42px;
77
- /* Desktop window title bar. Body stays on --nonla-bg. */
78
- --nonla-window-header: #242424;
49
+ /* ── Derived. Leave these — they follow Config. ─────────────────────── */
50
+ /* One soft wash and one stronger wash. Chips, table headers, wells, and bubbles share them. */
51
+ --nonla-fill: color-mix(in oklab, var(--nonla-text-main) 6%, var(--nonla-surface));
52
+ --nonla-fill-strong: color-mix(in oklab, var(--nonla-text-main) 10%, var(--nonla-surface));
53
+ --nonla-input-focus: rgb(from var(--nonla-input) r g b / calc(alpha * 2));
54
+ /* Hover and pressed/selected. Sidebar, menus, selects, buttons, and the desktop header share these. */
55
+ --nonla-ink-hover: color-mix(in oklab, var(--nonla-text-main) 6%, transparent);
56
+ --nonla-ink-active: color-mix(in oklab, var(--nonla-text-main) 10%, transparent);
79
57
  --nonla-z-base: 0;
80
58
  --nonla-z-desktop: 20;
81
59
  --nonla-z-window: 30;
82
60
  --nonla-z-header: 40;
83
61
  --nonla-z-popup-base: 1000;
84
62
 
85
- /* ── Map + Alias (do not set unless you need a one-off exception) ───── */
63
+ /* ── Aliases. Same rule: do not set. ────────────────────────────────── */
86
64
  --nonla-radius-sm: max(0px, calc(var(--nonla-radius) - 2px));
87
65
  --nonla-radius-lg: calc(var(--nonla-radius) + 2px);
88
66
  --nonla-z-drawer: var(--nonla-z-popup-base);
89
67
  --nonla-z-modal: var(--nonla-z-popup-base);
90
68
  --nonla-z-message: calc(var(--nonla-z-popup-base) + 10);
91
69
  --nonla-z-popup: calc(var(--nonla-z-popup-base) + 50);
70
+ /* Tailwind `rounded`, `rounded-sm`, and `rounded-lg` follow the knob. */
92
71
  --radius: var(--nonla-radius);
72
+ --radius-sm: var(--nonla-radius-sm);
73
+ --radius-lg: var(--nonla-radius-lg);
93
74
  --background: var(--nonla-bg);
94
- --foreground: var(--nonla-fg);
75
+ --foreground: var(--nonla-text-main);
95
76
  --sidebar: var(--nonla-sidebar);
96
77
  --card: var(--nonla-surface);
97
- --card-foreground: var(--nonla-fg);
98
- --popover: var(--nonla-elevated);
99
- --popover-foreground: var(--nonla-fg);
100
- /* Nonla: --primary = ink (emphasis), not CTA — CTA is --brand */
101
- --primary: var(--nonla-ink);
102
- --primary-foreground: var(--nonla-bg);
103
- --secondary: var(--nonla-chip);
104
- --secondary-foreground: var(--nonla-fg);
105
- --muted: var(--nonla-chip);
106
- --muted-foreground: var(--nonla-fg-muted);
107
- --accent: color-mix(in oklab, var(--nonla-brand) 14%, transparent);
108
- --accent-foreground: var(--brand-700);
78
+ --bar: var(--nonla-bar);
79
+ --muted: var(--nonla-fill);
80
+ --muted-foreground: var(--nonla-text-secondary);
109
81
  --destructive: var(--nonla-danger);
110
- --destructive-foreground: #f0f0f0;
111
82
  --border: var(--nonla-border);
112
- --hairline: var(--nonla-hairline);
83
+ --border-secondary: var(--nonla-border-secondary);
113
84
  --input: var(--nonla-input);
114
- --ring: color-mix(in oklab, var(--nonla-brand) 55%, transparent);
85
+ --input-focus: var(--nonla-input-focus);
115
86
 
116
87
  /* Brand scale — 500 is the knob. Tints sink into the surface; shades stay with the ink. */
117
88
  --brand-50: color-mix(in oklab, var(--nonla-brand) 8%, var(--nonla-surface));
@@ -120,39 +91,20 @@
120
91
  --brand-300: color-mix(in oklab, var(--nonla-brand) 40%, var(--nonla-surface));
121
92
  --brand-400: color-mix(in oklab, var(--nonla-brand) 64%, var(--nonla-surface));
122
93
  --brand-500: var(--nonla-brand);
123
- --brand-600: color-mix(in oklab, var(--nonla-brand) 82%, var(--nonla-fg));
124
- --brand-700: color-mix(in oklab, var(--nonla-brand) 64%, var(--nonla-fg));
125
- --brand-800: color-mix(in oklab, var(--nonla-brand) 48%, var(--nonla-fg));
126
- --brand: var(--brand-500);
127
- --brand-text: var(--brand-700);
128
- --solid-fg: var(--nonla-solid-fg);
94
+ --brand-600: color-mix(in oklab, var(--nonla-brand) 82%, var(--nonla-text-main));
95
+ --brand-700: color-mix(in oklab, var(--nonla-brand) 64%, var(--nonla-text-main));
96
+ --brand-800: color-mix(in oklab, var(--nonla-brand) 48%, var(--nonla-text-main));
97
+ --brand: var(--nonla-brand);
129
98
  --link: var(--nonla-link);
130
99
  --success: var(--nonla-success);
131
100
  --warn: var(--nonla-warn);
132
- --tertiary-foreground: var(--nonla-fg-tertiary);
133
- --quaternary-foreground: var(--nonla-fg-quaternary);
134
- /* Empty-field hint. Fainter than quaternary so it doesn't read as typed text. */
135
- --nonla-placeholder: color-mix(in srgb, var(--nonla-fg) 42%, transparent);
136
- --placeholder: var(--nonla-placeholder);
137
- --border-subtle: color-mix(in srgb, var(--nonla-border) 65%, transparent);
138
- --control-bg: var(--nonla-chip);
139
- --control-bg-hover: var(--nonla-chip-hover);
140
- --elevated-shadow: 0 16px 48px rgb(0 0 0 / 45%), 0 0 0 1px color-mix(in srgb, var(--nonla-fg) 8%, transparent);
141
- --popper-shadow: 0 16px 48px rgb(0 0 0 / 45%), 0 0 0 1px color-mix(in srgb, var(--nonla-fg) 8%, transparent);
101
+ --tertiary-foreground: var(--nonla-text-tertiary);
102
+ --quaternary-foreground: var(--nonla-text-quaternary);
103
+ /* Drop under a floating panel: menu, popover, desktop window. */
142
104
  --nonla-shadow: 0 16px 48px rgb(0 0 0 / 45%);
143
- /* Short drop plus the ring. On a dark page the drop lifts the surface; the ring stays the edge. */
105
+ /* Card edge. Dark adds a short drop; the ring is the border. */
144
106
  --nonla-card-shadow: 0 1px 2px rgb(0 0 0 / 32%), 0 0 0 1px var(--nonla-border);
145
- --popper-border: var(--nonla-border);
146
107
  --mask: rgb(0 0 0 / 56%);
147
- --meadow: var(--nonla-meadow);
148
- --glass: var(--nonla-glass);
149
- --glass-bar: var(--nonla-glass-bar);
150
- --glass-menu: var(--nonla-glass-menu);
151
- --glass-border: var(--nonla-glass-border);
152
- --glass-highlight: var(--nonla-glass-highlight);
153
- --ink-hover: var(--nonla-ink-hover);
154
- --ink-active: var(--nonla-ink-active);
155
- --ink-line: var(--nonla-ink-line);
156
108
 
157
109
  /* Motion — shadcn-like ease-out-expo */
158
110
  --nonla-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
@@ -161,75 +113,56 @@
161
113
  --nonla-dur: 200ms;
162
114
  --nonla-dur-slow: 300ms;
163
115
 
164
- /* Chat type — body and headings share one size. */
165
- --chat-body-size: 14px;
166
- --chat-body-leading: 24px;
167
- --chat-p-mb: 12px;
168
- --chat-h-mt: 16px;
169
- --chat-h-mb: 8px;
170
- --chat-composer-size: 14px;
171
- --chat-composer-leading: 22px;
172
- --chat-code-size: 12.5px;
173
116
  --nonla-scrollbar-size: 6px;
174
- --nonla-scrollbar-thumb: color-mix(in oklab, var(--nonla-fg) 22%, var(--nonla-bg));
175
- --nonla-scrollbar-thumb-hover: var(--nonla-fg-quaternary);
117
+ --nonla-scrollbar-thumb: color-mix(in oklab, var(--nonla-text-main) 22%, var(--nonla-bg));
118
+ --nonla-scrollbar-thumb-hover: var(--nonla-text-quaternary);
176
119
 
177
120
  color: var(--foreground);
121
+ font-family: var(--nonla-font);
178
122
  font-weight: 400;
179
- -webkit-font-smoothing: subpixel-antialiased;
180
- -moz-osx-font-smoothing: auto;
181
123
  }
182
124
 
183
- /*
184
- * Daylight. Page is white. Sidebar sits a step off it.
185
- * Beats `.nonla-ui` re-declaring the dark seeds. `.dark` inside `.light` stays on the block above.
186
- */
125
+ /* Same color keys as Config above. Brand and the label on it stay. */
187
126
  .light:not(.dark),
188
127
  .light .nonla-ui:not(.dark) {
189
128
  color-scheme: light;
190
129
 
191
- --nonla-bg: #ffffff;
192
- --nonla-fg: #2c2c2b;
193
- --nonla-fg-muted: color-mix(in oklab, var(--nonla-fg) 74%, var(--nonla-bg));
194
- --nonla-fg-tertiary: color-mix(in oklab, var(--nonla-fg) 60%, var(--nonla-bg));
195
- --nonla-fg-quaternary: color-mix(in oklab, var(--nonla-fg) 36%, var(--nonla-bg));
130
+ /* Light grays are Tailwind neutral. Page and sidebar are neutral-50. */
131
+ --nonla-bg: #fafafa;
132
+ --nonla-text-main: #404040;
133
+ --nonla-text-secondary: #737373;
134
+ --nonla-text-tertiary: #a1a1a1;
135
+ --nonla-text-quaternary: #d4d4d4;
136
+ --nonla-text-on-solid: #ffffff;
137
+ --nonla-brand: #f18d00;
196
138
  --nonla-danger: #dc3b3b;
197
139
  --nonla-success: #2f7d4a;
198
140
  --nonla-warn: #a16207;
199
141
  --nonla-link: #3b6d99;
200
- --md-ink: #37352f;
201
- --md-heading: var(--md-ink);
202
- --md-inline-bg: color-mix(in oklab, var(--nonla-fg) 6%, var(--nonla-surface));
203
142
 
204
- /* Neutral on the brand hue (~63°). Chroma stays low so it reads gray, not cream. */
205
- --nonla-sidebar: #f7f5f2;
143
+ --nonla-sidebar: #fafafa;
206
144
  --nonla-surface: #ffffff;
207
- --nonla-border: color-mix(in oklab, var(--nonla-fg) 8%, transparent);
208
- --nonla-hairline: color-mix(in oklab, var(--nonla-fg) 4%, transparent);
209
- --nonla-input: color-mix(in oklab, var(--nonla-fg) 12%, transparent);
210
- --nonla-meadow: #ffffff;
211
- --nonla-window-header: #e8e8e8;
145
+ --nonla-bar: #e5e5e5;
146
+ --nonla-border: #e5e5e5;
147
+ --nonla-border-secondary: #f5f5f5;
148
+ --nonla-input: rgb(0 0 0 / 11%);
212
149
 
213
- --elevated-shadow: 0 12px 32px rgb(0 0 0 / 12%), 0 0 0 1px color-mix(in srgb, var(--nonla-fg) 8%, transparent);
214
- --popper-shadow: 0 12px 32px rgb(0 0 0 / 12%), 0 0 0 1px color-mix(in srgb, var(--nonla-fg) 8%, transparent);
215
150
  --mask: rgb(0 0 0 / 40%);
216
151
  --nonla-shadow: 0 12px 32px rgb(0 0 0 / 12%);
217
- /* White card on a white page. A drop shadow smears the ring into a gray halo, so the edge is the ring alone. */
218
152
  --nonla-card-shadow: 0 0 0 1px var(--nonla-border);
219
- --shadow-drop: 0 2px 8px rgb(0 0 0 / 12%);
220
- --shadow-panel: 0 0 0 1px var(--border), 0 4px 16px rgb(0 0 0 / 10%);
221
153
  }
222
154
 
223
- /* Tailwind v4 — scan this package + expose semantic color utilities. */
155
+ /* Tailwind utility names (`bg-card`, `text-brand`). Not config. */
224
156
  @source "./**/*.tsx";
225
157
  @source "./**/*.ts";
226
158
 
227
159
  @theme inline {
160
+ /* `rounded`, `rounded-sm`, and `rounded-lg` follow the knob. The other steps stay fixed. */
228
161
  --radius: var(--nonla-radius);
229
162
  --radius-xs: 2px;
230
- --radius-sm: 4px;
163
+ --radius-sm: var(--nonla-radius-sm);
231
164
  --radius-md: 6px;
232
- --radius-lg: 8px;
165
+ --radius-lg: var(--nonla-radius-lg);
233
166
  --radius-xl: 12px;
234
167
  --radius-2xl: 16px;
235
168
  --radius-3xl: 20px;
@@ -240,29 +173,15 @@
240
173
  --color-foreground: var(--foreground);
241
174
  --color-sidebar: var(--sidebar);
242
175
  --color-card: var(--card);
243
- --color-card-foreground: var(--card-foreground);
244
- --color-popover: var(--popover);
245
- --color-popover-foreground: var(--popover-foreground);
246
- --color-primary: var(--primary);
247
- --color-primary-foreground: var(--primary-foreground);
248
- --color-secondary: var(--secondary);
249
- --color-secondary-foreground: var(--secondary-foreground);
176
+ --color-bar: var(--bar);
250
177
  --color-muted: var(--muted);
251
178
  --color-muted-foreground: var(--muted-foreground);
252
- --color-accent: var(--accent);
253
- --color-accent-foreground: var(--accent-foreground);
254
179
  --color-destructive: var(--destructive);
255
- --color-destructive-foreground: var(--destructive-foreground);
256
180
  --color-border: var(--border);
257
- --color-hairline: var(--hairline);
258
- --color-border-subtle: var(--border-subtle);
181
+ --color-border-secondary: var(--border-secondary);
259
182
  --default-border-color: var(--border);
260
183
  --color-input: var(--input);
261
- /* Cursor settings field, keyboard focus — `--border-primary`, ink at 20%. */
262
- --color-input-focus: color-mix(in oklab, var(--foreground) 20%, transparent);
263
- /* Cursor settings field focus fill — `--bg-tertiary`, ink at 8%. */
264
- --color-input-fill: color-mix(in oklab, var(--foreground) 8%, transparent);
265
- --color-ring: var(--ring);
184
+ --color-input-focus: var(--input-focus);
266
185
  --color-brand: var(--brand);
267
186
  --color-brand-50: var(--brand-50);
268
187
  --color-brand-100: var(--brand-100);
@@ -273,32 +192,14 @@
273
192
  --color-brand-600: var(--brand-600);
274
193
  --color-brand-700: var(--brand-700);
275
194
  --color-brand-800: var(--brand-800);
276
- --color-brand-text: var(--brand-text);
277
- --color-solid-fg: var(--solid-fg);
278
195
  --color-link: var(--link);
279
196
  --color-success: var(--success);
280
197
  --color-warn: var(--warn);
281
198
  --color-tertiary-foreground: var(--tertiary-foreground);
282
199
  --color-quaternary-foreground: var(--quaternary-foreground);
283
- --color-placeholder: var(--placeholder);
284
- --color-meadow: var(--meadow);
285
- --color-glass: var(--glass);
286
- --color-glass-bar: var(--glass-bar);
287
- --color-glass-menu: var(--glass-menu);
288
- --color-glass-border: var(--glass-border);
289
- --color-glass-highlight: var(--glass-highlight);
290
- --color-ink-hover: var(--ink-hover);
291
- --color-ink-active: var(--ink-active);
292
- --color-ink-line: var(--ink-line);
293
- --color-chat: var(--nonla-chat-bg);
294
- --color-well: color-mix(in oklab, var(--foreground) 5.5%, var(--card));
295
- --color-well-strong: color-mix(in oklab, var(--foreground) 10%, var(--card));
296
-
297
- --shadow-card: none;
298
- --shadow-whisper: none;
299
- --shadow-button-outline: 0 0 0 1px var(--border);
300
- --shadow-drop: 0 2px 8px rgb(0 0 0 / 40%);
301
- --shadow-panel: 0 0 0 1px var(--border), 0 4px 16px rgb(0 0 0 / 40%);
200
+ --color-ink-hover: var(--nonla-ink-hover);
201
+ --color-ink-active: var(--nonla-ink-active);
202
+ --color-muted-strong: var(--nonla-fill-strong);
302
203
 
303
204
  --spacing-control-xs: 24px;
304
205
  --spacing-control-sm: 24px;
@@ -309,32 +210,14 @@
309
210
  --spacing-field-md: 32px;
310
211
  --spacing-field-lg: 40px;
311
212
  --spacing-field-nav: 32px;
312
- --spacing-desktop-bar: var(--nonla-desktop-bar-height);
313
213
 
314
- --font-sans: ui-sans-serif, -apple-system, system-ui, "Segoe UI Variable Display", "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
214
+ --font-sans: var(--nonla-font);
315
215
  --font-family-sans: var(--font-sans);
316
216
  --default-font-family: var(--font-sans);
317
- --font-mono: SFMono-Regular, Menlo, Consolas, "PT Mono", "Liberation Mono", Courier, monospace;
217
+ --font-mono: Menlo, Monaco, "Courier New", monospace;
318
218
  --font-family-mono: var(--font-mono);
319
219
  --default-mono-font-family: var(--font-mono);
320
220
 
321
- --text-2xs: 11px;
322
- --text-2xs--line-height: 14px;
323
- --text-xs: 12px;
324
- --text-xs--line-height: 16px;
325
- --text-sm: 13px;
326
- --text-sm--line-height: 18px;
327
- --text-md: 16px;
328
- --text-md--line-height: 24px;
329
- --text-base: 14px;
330
- --text-base--line-height: 20px;
331
- --text-lg: 18px;
332
- --text-lg--line-height: 28px;
333
- --text-xl: 24px;
334
- --text-xl--line-height: 32px;
335
- --text-2xl: 28px;
336
- --text-2xl--line-height: 42px;
337
-
338
221
  --animate-fadeIn: fadeIn 0.28s ease-out both;
339
222
  }
340
223
 
@@ -349,165 +232,27 @@
349
232
  }
350
233
  }
351
234
 
352
- @keyframes nonla-shimmer {
353
- 0% {
354
- background-position: 100% center;
355
- }
356
- 100% {
357
- background-position: 0% center;
358
- }
359
- }
360
-
361
- .nonla-shimmer {
362
- display: inline-block;
363
- width: fit-content;
364
- max-width: 100%;
365
- /* Stable muted glyphs, with a narrow highlight that travels across the letters. */
366
- background-image:
367
- linear-gradient(90deg, transparent calc(50% - 1em), var(--foreground) 50%, transparent calc(50% + 1em)),
368
- linear-gradient(var(--tertiary-foreground), var(--tertiary-foreground));
369
- background-size: 250% 100%, auto;
370
- background-repeat: no-repeat;
371
- background-clip: text;
372
- -webkit-background-clip: text;
373
- -webkit-text-fill-color: transparent;
374
- color: transparent;
375
- animation: nonla-shimmer 1.8s linear infinite;
376
- }
377
-
378
- @media (prefers-reduced-motion: reduce) {
379
- .nonla-shimmer {
380
- animation: none;
381
- background-image: none;
382
- background-clip: border-box;
383
- -webkit-background-clip: border-box;
384
- -webkit-text-fill-color: unset;
385
- color: var(--muted-foreground);
386
- }
387
- }
388
-
389
- /* Toast host — top-center stack */
390
- .nonla-message-host {
391
- position: fixed;
392
- top: 16px;
393
- left: 50%;
394
- transform: translateX(-50%);
395
- z-index: var(--nonla-z-message);
396
- display: flex;
397
- flex-direction: column;
398
- align-items: center;
399
- gap: 8px;
400
- pointer-events: none;
401
- max-width: min(420px, calc(100vw - 32px));
402
- }
403
-
404
- .nonla-message-item {
405
- pointer-events: auto;
406
- display: inline-flex;
407
- align-items: center;
408
- gap: 8px;
409
- padding: 9px 12px;
410
- border-radius: var(--radius);
411
- font-size: 14px;
412
- line-height: 1.5714;
413
- animation: nonla-message-in var(--nonla-dur) var(--nonla-ease-out);
414
- will-change: transform, opacity;
415
- }
416
-
417
- .nonla-message-item.is-leaving {
418
- animation: nonla-message-out 150ms var(--nonla-ease-in) forwards;
419
- }
420
-
421
- .nonla-message-icon {
422
- display: inline-flex;
423
- flex-shrink: 0;
424
- width: 16px;
425
- height: 16px;
426
- align-items: center;
427
- justify-content: center;
428
- }
429
-
430
- .nonla-message-content {
431
- min-width: 0;
432
- word-break: break-word;
433
- }
434
-
435
- .nonla-message-spin {
436
- animation: nonla-message-spin 0.8s linear infinite;
437
- }
438
-
439
- @keyframes nonla-message-in {
440
- from {
441
- opacity: 0;
442
- transform: translateY(-8px) scale(0.98);
443
- }
444
- to {
445
- opacity: 1;
446
- transform: translateY(0) scale(1);
447
- }
448
- }
449
-
450
- @keyframes nonla-message-out {
451
- from {
452
- opacity: 1;
453
- transform: translateY(0) scale(1);
454
- }
455
- to {
456
- opacity: 0;
457
- transform: translateY(-6px) scale(0.98);
458
- }
459
- }
460
-
461
- @keyframes nonla-message-spin {
462
- to {
463
- transform: rotate(360deg);
464
- }
465
- }
466
-
467
- /* ── Spin: agent (3×3 random snake) ────────────────────────────────────── */
468
- .nonla-spin-matrix {
469
- align-content: center;
470
- justify-content: center;
471
- }
472
-
473
- .nonla-spin-matrix-cell {
474
- display: block;
475
- width: 100%;
476
- height: 100%;
477
- border-radius: 999px;
478
- background: color-mix(in oklab, var(--brand) 10%, transparent);
479
- transition: background 120ms linear;
235
+ /* Page scrollbar. */
236
+ * {
237
+ scrollbar-width: thin;
238
+ scrollbar-color: var(--nonla-scrollbar-thumb) transparent;
480
239
  }
481
-
482
- .nonla-spin-matrix-cell.is-on {
483
- background: var(--brand);
240
+ ::-webkit-scrollbar {
241
+ width: var(--nonla-scrollbar-size);
242
+ height: var(--nonla-scrollbar-size);
484
243
  }
485
-
486
- /* Ink gray — follows foreground, not the brand hue, in both color modes. */
487
- .nonla-spin-matrix.is-neutral .nonla-spin-matrix-cell {
488
- background: color-mix(in oklab, var(--foreground) 16%, transparent);
244
+ ::-webkit-scrollbar-track {
245
+ background: transparent;
489
246
  }
490
-
491
- .nonla-spin-matrix.is-neutral .nonla-spin-matrix-cell.is-on {
492
- background: var(--muted-foreground);
247
+ ::-webkit-scrollbar-thumb {
248
+ background: var(--nonla-scrollbar-thumb);
249
+ border-radius: 99px;
493
250
  }
494
-
495
- @media (prefers-reduced-motion: reduce) {
496
- .nonla-spin-matrix-cell {
497
- transition: none;
498
- }
251
+ ::-webkit-scrollbar-thumb:hover {
252
+ background: var(--nonla-scrollbar-thumb-hover);
499
253
  }
500
254
 
501
- @keyframes nonla-check-in {
502
- from {
503
- opacity: 0;
504
- transform: scale(0.5);
505
- }
506
- to {
507
- opacity: 1;
508
- transform: scale(1);
509
- }
510
- }
255
+ /* Motion used by Modal, Drawer, popups, toasts, Checkbox, and Avatar. */
511
256
 
512
257
  @keyframes nonla-overlay-in {
513
258
  from {
@@ -517,6 +262,7 @@
517
262
  opacity: 1;
518
263
  }
519
264
  }
265
+
520
266
  @keyframes nonla-overlay-out {
521
267
  from {
522
268
  opacity: 1;
@@ -526,7 +272,6 @@
526
272
  }
527
273
  }
528
274
 
529
- /* shadcn-style zoom: fade + scale(0.95) ↔ 1 (no slide) */
530
275
  @keyframes nonla-modal-in {
531
276
  from {
532
277
  opacity: 0;
@@ -537,6 +282,7 @@
537
282
  transform: translate(-50%, 0) scale(1);
538
283
  }
539
284
  }
285
+
540
286
  @keyframes nonla-modal-out {
541
287
  from {
542
288
  opacity: 1;
@@ -547,6 +293,7 @@
547
293
  transform: translate(-50%, 0) scale(0.95);
548
294
  }
549
295
  }
296
+
550
297
  @keyframes nonla-modal-in-centered {
551
298
  from {
552
299
  opacity: 0;
@@ -557,6 +304,7 @@
557
304
  transform: translate(-50%, -50%) scale(1);
558
305
  }
559
306
  }
307
+
560
308
  @keyframes nonla-modal-out-centered {
561
309
  from {
562
310
  opacity: 1;
@@ -576,6 +324,7 @@
576
324
  transform: translateX(0);
577
325
  }
578
326
  }
327
+
579
328
  @keyframes nonla-drawer-out-right {
580
329
  from {
581
330
  transform: translateX(0);
@@ -584,6 +333,7 @@
584
333
  transform: translateX(100%);
585
334
  }
586
335
  }
336
+
587
337
  @keyframes nonla-drawer-in-left {
588
338
  from {
589
339
  transform: translateX(-100%);
@@ -592,6 +342,7 @@
592
342
  transform: translateX(0);
593
343
  }
594
344
  }
345
+
595
346
  @keyframes nonla-drawer-out-left {
596
347
  from {
597
348
  transform: translateX(0);
@@ -600,6 +351,7 @@
600
351
  transform: translateX(-100%);
601
352
  }
602
353
  }
354
+
603
355
  @keyframes nonla-drawer-in-bottom {
604
356
  from {
605
357
  transform: translateY(100%);
@@ -608,6 +360,7 @@
608
360
  transform: translateY(0);
609
361
  }
610
362
  }
363
+
611
364
  @keyframes nonla-drawer-out-bottom {
612
365
  from {
613
366
  transform: translateY(0);
@@ -616,6 +369,7 @@
616
369
  transform: translateY(100%);
617
370
  }
618
371
  }
372
+
619
373
  @keyframes nonla-drawer-in-top {
620
374
  from {
621
375
  transform: translateY(-100%);
@@ -624,6 +378,7 @@
624
378
  transform: translateY(0);
625
379
  }
626
380
  }
381
+
627
382
  @keyframes nonla-drawer-out-top {
628
383
  from {
629
384
  transform: translateY(0);
@@ -633,7 +388,6 @@
633
388
  }
634
389
  }
635
390
 
636
- /* Direction-aware popper (Popover / Select / Dropdown / Tooltip) */
637
391
  @keyframes nonla-pop-in-top {
638
392
  from {
639
393
  opacity: 0;
@@ -644,6 +398,7 @@
644
398
  transform: translateY(0) scale(1);
645
399
  }
646
400
  }
401
+
647
402
  @keyframes nonla-pop-in-bottom {
648
403
  from {
649
404
  opacity: 0;
@@ -654,6 +409,7 @@
654
409
  transform: translateY(0) scale(1);
655
410
  }
656
411
  }
412
+
657
413
  @keyframes nonla-pop-in-left {
658
414
  from {
659
415
  opacity: 0;
@@ -664,6 +420,7 @@
664
420
  transform: translateX(0) scale(1);
665
421
  }
666
422
  }
423
+
667
424
  @keyframes nonla-pop-in-right {
668
425
  from {
669
426
  opacity: 0;
@@ -674,6 +431,7 @@
674
431
  transform: translateX(0) scale(1);
675
432
  }
676
433
  }
434
+
677
435
  @keyframes nonla-pop-out {
678
436
  from {
679
437
  opacity: 1;
@@ -685,333 +443,74 @@
685
443
  }
686
444
  }
687
445
 
688
- /* Solid card. Same fill as Cursor's settings cards. */
689
- .nonla-glass {
690
- border: 1px solid var(--border);
691
- background: var(--card);
692
- color: var(--foreground);
693
- box-shadow: var(--nonla-shadow);
694
- }
695
-
696
- /* Composer sits on the page, so the card fill disappears. Lift it the same step as the user bubble. */
697
- .nonla-chat-input {
698
- border-color: var(--nonla-input);
699
- background: color-mix(in oklab, var(--foreground) 10%, var(--card));
700
- }
701
-
702
- /* Daylight page is white. The lifted fill and the card shadow read as a gray smudge.
703
- White fill, the field stroke, and no drop shadow. */
704
- .light:not(.dark) .nonla-chat-input,
705
- .light .nonla-ui:not(.dark) .nonla-chat-input {
706
- background: var(--background);
707
- box-shadow: none;
708
- }
709
-
710
- /* User bubble on a white page. The 10% well stamps a gray block; card white reads as no fill.
711
- Match the sidebar, one warm step off the page. */
712
- .light:not(.dark) .nonla-chat-user,
713
- .light .nonla-ui:not(.dark) .nonla-chat-user {
714
- background: var(--sidebar);
715
- }
716
-
717
- /* Desktop window — solid page fill, no frost. Title bar is a step lighter. */
718
- .nonla-window-glass {
719
- border: 1px solid var(--border);
720
- box-shadow: var(--nonla-shadow);
721
- background: var(--background);
722
- }
723
- .nonla-window-header {
724
- background: var(--nonla-window-header);
725
- }
726
-
727
- .nonla-btn-glass {
728
- border-color: var(--border);
729
- background: transparent;
730
- box-shadow: none;
731
- transition: box-shadow var(--nonla-dur-fast) var(--nonla-ease-out), transform var(--nonla-dur-fast) var(--nonla-ease-out);
732
- }
733
- .nonla-btn-glass:hover:not(:disabled):not([aria-disabled]) {
734
- box-shadow: inset 0 0 0 999px var(--ink-hover);
735
- }
736
- .nonla-btn-glass:active:not(:disabled):not([aria-disabled]) {
737
- transform: scale(0.98);
738
- box-shadow: inset 0 0 0 999px var(--ink-active);
739
- }
740
-
741
- .nonla-glass-chip {
742
- background: var(--nonla-chip);
743
- border-color: var(--border);
744
- }
745
- /* Menu item hover — pure ink tint; panel's warm frost shows through, no milky gray */
746
- .nonla-menu-item[data-highlighted] {
747
- background: var(--ink-hover);
748
- border-color: var(--glass-border);
749
- }
750
- .nonla-glass-chip-on {
751
- background: var(--nonla-chip-hover);
752
- border-color: var(--border);
753
- box-shadow: none;
754
- }
755
- /* Select options: hover and the chosen row stay borderless.
756
- Hover sits one step under the chosen row (chip 6% vs chip-hover 10%). */
757
- .nonla-select-options .nonla-menu-item[data-highlighted] {
758
- background: var(--nonla-chip);
759
- border-color: transparent;
760
- }
761
- .nonla-select-options .nonla-glass-chip-on {
762
- border-color: transparent;
763
- }
764
- /* Sidebar row — glass first, a whisper of brand. Same on hover and selected. */
765
- .nonla-sidebar-item {
766
- box-sizing: border-box;
767
- height: var(--nonla-height);
768
- border-radius: var(--nonla-radius);
769
- border: 0;
770
- background: transparent;
771
- transition:
772
- background-color var(--nonla-dur-fast) var(--nonla-ease-out),
773
- box-shadow var(--nonla-dur-fast) var(--nonla-ease-out);
774
- }
775
- .nonla-sidebar-item:hover:not(:disabled):not([aria-disabled]),
776
- .nonla-sidebar-item[aria-current="true"],
777
- .nonla-sidebar-item[aria-current="page"] {
778
- background: var(--ink-hover);
779
- box-shadow: none;
780
- }
781
- /* Segmented sliding thumb — glass pill glides between items */
782
- .nonla-segmented-thumb {
783
- top: 0;
784
- left: 0;
785
- transition:
786
- transform 380ms cubic-bezier(0.3, 1.25, 0.5, 1),
787
- width 380ms cubic-bezier(0.3, 1.25, 0.5, 1),
788
- height 380ms cubic-bezier(0.3, 1.25, 0.5, 1);
789
- }
790
- /* Tabs underline — sits on the bar's hairline and glides with the active tab */
791
- .nonla-tabs-ink {
792
- position: absolute;
793
- bottom: 0;
794
- left: 0;
795
- z-index: 1;
796
- height: 2px;
797
- border-radius: 2px 2px 0 0;
798
- background: var(--brand);
799
- pointer-events: none;
800
- transition:
801
- transform 380ms cubic-bezier(0.3, 1.25, 0.5, 1),
802
- width 380ms cubic-bezier(0.3, 1.25, 0.5, 1);
803
- }
804
-
805
- @media (prefers-reduced-motion: reduce) {
806
- .nonla-btn-glass {
807
- transition: box-shadow var(--nonla-dur-fast) var(--nonla-ease-out);
808
- }
809
- .nonla-btn-glass:active:not(:disabled):not([aria-disabled]) {
810
- transform: none;
446
+ @keyframes nonla-message-in {
447
+ from {
448
+ opacity: 0;
449
+ transform: translateY(-8px) scale(0.98);
811
450
  }
812
- .nonla-segmented-thumb,
813
- .nonla-tabs-ink {
814
- transition: none;
451
+ to {
452
+ opacity: 1;
453
+ transform: translateY(0) scale(1);
815
454
  }
816
455
  }
817
456
 
818
- .nonla-overlay {
819
- position: fixed;
820
- inset: 0;
821
- z-index: var(--nonla-z-drawer);
822
- background: var(--mask);
823
- }
824
- .nonla-overlay[data-state="open"] {
825
- animation: nonla-overlay-in var(--nonla-dur) var(--nonla-ease-out);
826
- }
827
- .nonla-overlay[data-state="closed"] {
828
- animation: nonla-overlay-out var(--nonla-dur-fast) var(--nonla-ease-in);
829
- }
830
-
831
- .nonla-modal-overlay {
832
- position: fixed;
833
- inset: 0;
834
- z-index: var(--nonla-z-modal);
835
- background: var(--mask);
836
- }
837
- .nonla-modal-overlay[data-state="open"] {
838
- animation: nonla-overlay-in var(--nonla-dur) var(--nonla-ease-out);
839
- }
840
- .nonla-modal-overlay[data-state="closed"] {
841
- animation: nonla-overlay-out var(--nonla-dur-fast) var(--nonla-ease-in) forwards;
842
- pointer-events: none;
843
- }
844
-
845
- .nonla-modal-content {
846
- position: fixed;
847
- left: 50%;
848
- top: 60px;
849
- z-index: calc(var(--nonla-z-modal) + 1);
850
- transform: translate(-50%, 0);
851
- display: flex;
852
- flex-direction: column;
853
- width: min(480px, calc(100vw - 32px));
854
- max-height: calc(100vh - 88px);
855
- overflow: hidden;
856
- border-radius: calc(var(--radius) + 4px);
857
- padding: 0;
858
- outline: none;
859
- will-change: transform, opacity;
860
- }
861
- .nonla-modal-content[data-state="open"] {
862
- animation: nonla-modal-in var(--nonla-dur) var(--nonla-ease-out);
863
- }
864
- .nonla-modal-content[data-state="closed"] {
865
- animation: nonla-modal-out var(--nonla-dur-fast) var(--nonla-ease-in) forwards;
866
- pointer-events: none;
867
- }
868
- .nonla-modal-content[data-centered="true"] {
869
- top: 50%;
870
- transform: translate(-50%, -50%);
871
- max-height: calc(100vh - 64px);
872
- }
873
- .nonla-modal-content[data-centered="true"][data-state="open"] {
874
- animation: nonla-modal-in-centered var(--nonla-dur) var(--nonla-ease-out);
875
- }
876
- .nonla-modal-content[data-centered="true"][data-state="closed"] {
877
- animation: nonla-modal-out-centered var(--nonla-dur-fast) var(--nonla-ease-in) forwards;
878
- pointer-events: none;
879
- }
880
-
881
- .nonla-modal-header {
882
- display: flex;
883
- align-items: center;
884
- justify-content: space-between;
885
- gap: 12px;
886
- flex-shrink: 0;
887
- padding: 12px 16px;
888
- background: transparent;
889
- }
890
- .nonla-modal-title {
891
- margin: 0;
892
- font-size: 15px;
893
- font-weight: 600;
894
- line-height: 1.4;
895
- color: var(--foreground);
896
- }
897
- .nonla-modal-close {
898
- display: inline-flex;
899
- align-items: center;
900
- justify-content: center;
901
- width: 28px;
902
- height: 28px;
903
- margin: -4px -6px -4px 0;
904
- border: 0;
905
- border-radius: var(--radius);
906
- background: transparent;
907
- color: var(--muted-foreground);
908
- font-size: 18px;
909
- line-height: 1;
910
- cursor: pointer;
911
- }
912
- .nonla-modal-close:hover {
913
- color: var(--foreground);
914
- background: var(--control-bg);
915
- }
916
- .nonla-modal-body {
917
- flex: 1 1 auto;
918
- overflow: auto;
919
- padding: 16px 16px 24px;
920
- font-size: 14px;
921
- line-height: 1.5;
922
- color: var(--foreground);
923
- background: transparent;
924
- }
925
- .nonla-modal-footer {
926
- display: flex;
927
- align-items: center;
928
- justify-content: flex-end;
929
- gap: 8px;
930
- flex-shrink: 0;
931
- padding: 10px 16px;
932
- background: transparent;
933
- }
934
-
935
- .nonla-drawer-panel {
936
- will-change: transform;
937
- z-index: calc(var(--nonla-z-drawer) + 1);
938
- }
939
- .nonla-drawer-panel[data-side="right"][data-state="open"] {
940
- animation: nonla-drawer-in-right var(--nonla-dur-slow) var(--nonla-ease-out);
941
- }
942
- .nonla-drawer-panel[data-side="right"][data-state="closed"] {
943
- animation: nonla-drawer-out-right var(--nonla-dur) var(--nonla-ease-in);
944
- }
945
- .nonla-drawer-panel[data-side="left"][data-state="open"] {
946
- animation: nonla-drawer-in-left var(--nonla-dur-slow) var(--nonla-ease-out);
947
- }
948
- .nonla-drawer-panel[data-side="left"][data-state="closed"] {
949
- animation: nonla-drawer-out-left var(--nonla-dur) var(--nonla-ease-in);
950
- }
951
- .nonla-drawer-panel[data-side="bottom"][data-state="open"] {
952
- animation: nonla-drawer-in-bottom var(--nonla-dur-slow) var(--nonla-ease-out);
953
- }
954
- .nonla-drawer-panel[data-side="bottom"][data-state="closed"] {
955
- animation: nonla-drawer-out-bottom var(--nonla-dur) var(--nonla-ease-in);
956
- }
957
- .nonla-drawer-panel[data-side="top"][data-state="open"] {
958
- animation: nonla-drawer-in-top var(--nonla-dur-slow) var(--nonla-ease-out);
959
- }
960
- .nonla-drawer-panel[data-side="top"][data-state="closed"] {
961
- animation: nonla-drawer-out-top var(--nonla-dur) var(--nonla-ease-in);
962
- }
963
-
964
- .nonla-popup-layer {
965
- z-index: var(--nonla-z-popup, 1050);
966
- }
967
-
968
- .nonla-desktop-layer {
969
- z-index: var(--nonla-z-desktop, 20);
457
+ @keyframes nonla-message-out {
458
+ from {
459
+ opacity: 1;
460
+ transform: translateY(0) scale(1);
461
+ }
462
+ to {
463
+ opacity: 0;
464
+ transform: translateY(-6px) scale(0.98);
465
+ }
970
466
  }
971
467
 
972
- .nonla-window-layer {
973
- z-index: var(--nonla-z-window, 30);
468
+ @keyframes nonla-check-in {
469
+ from {
470
+ opacity: 0;
471
+ transform: scale(0.5);
472
+ }
473
+ to {
474
+ opacity: 1;
475
+ transform: scale(1);
476
+ }
974
477
  }
975
478
 
976
- .nonla-header-layer {
977
- z-index: var(--nonla-z-header, 40);
479
+ @keyframes nonla-shimmer {
480
+ 0% {
481
+ background-position: 100% center;
482
+ }
483
+ 100% {
484
+ background-position: 0% center;
485
+ }
978
486
  }
979
487
 
980
- .nonla-popper {
981
- will-change: transform, opacity;
982
- transform-origin: var(--radix-popover-content-transform-origin, var(--radix-dropdown-menu-content-transform-origin, var(--radix-select-content-transform-origin, var(--radix-tooltip-content-transform-origin, center))));
983
- }
984
- .nonla-popper[data-state="open"][data-side="top"] {
985
- animation: nonla-pop-in-top var(--nonla-dur-fast) var(--nonla-ease-out);
986
- }
987
- .nonla-popper[data-state="open"][data-side="bottom"] {
988
- animation: nonla-pop-in-bottom var(--nonla-dur-fast) var(--nonla-ease-out);
989
- }
990
- .nonla-popper[data-state="open"][data-side="left"] {
991
- animation: nonla-pop-in-left var(--nonla-dur-fast) var(--nonla-ease-out);
992
- }
993
- .nonla-popper[data-state="open"][data-side="right"] {
994
- animation: nonla-pop-in-right var(--nonla-dur-fast) var(--nonla-ease-out);
995
- }
996
- .nonla-popper[data-state="open"]:not([data-side]) {
997
- animation: nonla-pop-in-bottom var(--nonla-dur-fast) var(--nonla-ease-out);
998
- }
999
- .nonla-popper[data-state="closed"] {
1000
- animation: nonla-pop-out 100ms var(--nonla-ease-in);
488
+ .nonla-shimmer {
489
+ display: inline-block;
490
+ width: fit-content;
491
+ max-width: 100%;
492
+ /* Stable muted glyphs, with a narrow highlight that travels across the letters. */
493
+ background-image:
494
+ linear-gradient(90deg, transparent calc(50% - 1em), var(--foreground) 50%, transparent calc(50% + 1em)),
495
+ linear-gradient(var(--tertiary-foreground), var(--tertiary-foreground));
496
+ background-size: 250% 100%, auto;
497
+ background-repeat: no-repeat;
498
+ background-clip: text;
499
+ -webkit-background-clip: text;
500
+ -webkit-text-fill-color: transparent;
501
+ color: transparent;
502
+ animation: nonla-shimmer 1.8s linear infinite;
1001
503
  }
1002
504
 
1003
- /* Inline code. The wash hugs the glyphs and a token stays on one line, so a table of chips does not turn into broken gray bars. */
1004
- .nonla-inline-code {
1005
- box-decoration-break: clone;
1006
- -webkit-box-decoration-break: clone;
1007
- border-radius: 4px;
1008
- background: var(--md-inline-bg);
1009
- padding: 0.12em 0.35em;
1010
- font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
1011
- font-size: var(--md-inline-size, 14px);
1012
- line-height: 1;
1013
- white-space: nowrap;
1014
- vertical-align: baseline;
505
+ @media (prefers-reduced-motion: reduce) {
506
+ .nonla-shimmer {
507
+ animation: none;
508
+ background-image: none;
509
+ background-clip: border-box;
510
+ -webkit-background-clip: border-box;
511
+ -webkit-text-fill-color: unset;
512
+ color: var(--muted-foreground);
513
+ }
1015
514
  }
1016
515
 
1017
516
  .nonla-codeblock-pre code,
@@ -1048,73 +547,6 @@
1048
547
  font-size: 11px;
1049
548
  }
1050
549
 
1051
- .nonla-scroll-hidden {
1052
- scrollbar-width: none;
1053
- -ms-overflow-style: none;
1054
- }
1055
- .nonla-scroll-hidden::-webkit-scrollbar {
1056
- display: none;
1057
- width: 0;
1058
- height: 0;
1059
- }
1060
-
1061
- * {
1062
- scrollbar-width: thin;
1063
- scrollbar-color: var(--nonla-scrollbar-thumb) transparent;
1064
- }
1065
- ::-webkit-scrollbar {
1066
- width: var(--nonla-scrollbar-size);
1067
- height: var(--nonla-scrollbar-size);
1068
- }
1069
- ::-webkit-scrollbar-track {
1070
- background: transparent;
1071
- }
1072
- ::-webkit-scrollbar-thumb {
1073
- background: var(--nonla-scrollbar-thumb);
1074
- border-radius: 99px;
1075
- }
1076
- ::-webkit-scrollbar-thumb:hover {
1077
- background: var(--nonla-scrollbar-thumb-hover);
1078
- }
1079
-
1080
- .nonla-scroll-hover {
1081
- scrollbar-color: transparent transparent;
1082
- }
1083
- .nonla-scroll-hover:hover {
1084
- scrollbar-color: var(--nonla-scrollbar-thumb) transparent;
1085
- }
1086
- .nonla-scroll-hover::-webkit-scrollbar-thumb {
1087
- background: transparent;
1088
- }
1089
- .nonla-scroll-hover:hover::-webkit-scrollbar-thumb {
1090
- background: var(--nonla-scrollbar-thumb);
1091
- }
1092
- .nonla-scroll-hover:hover::-webkit-scrollbar-thumb:hover {
1093
- background: var(--nonla-scrollbar-thumb-hover);
1094
- }
1095
-
1096
- .nonla-overlay-thumb {
1097
- background: var(--nonla-scrollbar-thumb);
1098
- }
1099
- .group\/scroll:hover .nonla-overlay-thumb {
1100
- background: var(--nonla-scrollbar-thumb-hover);
1101
- }
1102
-
1103
- .nonla-color-checkered {
1104
- background-color: #fff;
1105
- background-image: conic-gradient(#d9d9d9 0.25turn, #fff 0.25turn 0.5turn, #d9d9d9 0.5turn 0.75turn, #fff 0.75turn);
1106
- background-size: 8px 8px;
1107
- }
1108
-
1109
- .nonla-color-cleared {
1110
- background: linear-gradient(
1111
- to bottom left,
1112
- transparent calc(50% - 1px),
1113
- var(--destructive) calc(50% - 1px) calc(50% + 1px),
1114
- transparent calc(50% + 1px)
1115
- );
1116
- }
1117
-
1118
550
  /* GitHub light syntax. The imported sheet is github-dark-dimmed; these beat it under `.light`. */
1119
551
  .light .hljs-doctag,
1120
552
  .light .hljs-keyword,
@@ -1182,111 +614,3 @@
1182
614
  color: #b31d28;
1183
615
  background-color: #ffeef0;
1184
616
  }
1185
-
1186
- /* ── Agent avatars — a quiet shift, not a bounce ──────────────────────── */
1187
- .nonla-avatar {
1188
- display: inline-flex;
1189
- flex-shrink: 0;
1190
- line-height: 0;
1191
- vertical-align: middle;
1192
- }
1193
-
1194
- .nonla-avatar-bob {
1195
- display: block;
1196
- width: 100%;
1197
- height: 100%;
1198
- transform: translate(var(--nonla-avatar-hx, 0), var(--nonla-avatar-hy, 0));
1199
- }
1200
-
1201
- .nonla-avatar-gaze {
1202
- transform-box: view-box;
1203
- transform: translate(var(--nonla-avatar-ex, 0), var(--nonla-avatar-ey, 0));
1204
- }
1205
-
1206
- .nonla-avatar-eyes {
1207
- transform-box: fill-box;
1208
- transform-origin: center;
1209
- }
1210
-
1211
- .nonla-avatar[data-motion="idle"] .nonla-avatar-bob {
1212
- animation: nonla-avatar-wander 8.4s ease-in-out infinite;
1213
- animation-delay: var(--nonla-avatar-delay, 0s);
1214
- }
1215
-
1216
- .nonla-avatar[data-motion="idle"] .nonla-avatar-gaze {
1217
- animation: nonla-avatar-glance 8.4s ease-in-out infinite;
1218
- animation-delay: var(--nonla-avatar-delay, 0s);
1219
- }
1220
-
1221
- .nonla-avatar[data-motion="idle"] .nonla-avatar-eyes {
1222
- animation: nonla-avatar-blink 6.4s ease-in-out infinite;
1223
- animation-delay: var(--nonla-avatar-delay, 0s);
1224
- }
1225
-
1226
- @keyframes nonla-avatar-wander {
1227
- 0%,
1228
- 14%,
1229
- 100% {
1230
- transform: translate(var(--nonla-avatar-hx, 0), var(--nonla-avatar-hy, 0));
1231
- }
1232
- 22%,
1233
- 34% {
1234
- transform: translate(-5%, 1%);
1235
- }
1236
- 42%,
1237
- 54% {
1238
- transform: translate(0, -4%);
1239
- }
1240
- 62%,
1241
- 74% {
1242
- transform: translate(5%, 1%);
1243
- }
1244
- 82%,
1245
- 94% {
1246
- transform: translate(0, 4.4%);
1247
- }
1248
- }
1249
-
1250
- @keyframes nonla-avatar-glance {
1251
- 0%,
1252
- 14%,
1253
- 100% {
1254
- transform: translate(var(--nonla-avatar-ex, 0), var(--nonla-avatar-ey, 0));
1255
- }
1256
- 22%,
1257
- 34% {
1258
- transform: translate(-10%, 0.6%);
1259
- }
1260
- 42%,
1261
- 54% {
1262
- transform: translate(0, -6.9%);
1263
- }
1264
- 62%,
1265
- 74% {
1266
- transform: translate(10%, 0.6%);
1267
- }
1268
- 82%,
1269
- 94% {
1270
- transform: translate(0, 7.2%);
1271
- }
1272
- }
1273
-
1274
- @keyframes nonla-avatar-blink {
1275
- 0%,
1276
- 46%,
1277
- 52%,
1278
- 100% {
1279
- transform: scaleY(1);
1280
- }
1281
- 49% {
1282
- transform: scaleY(0.15);
1283
- }
1284
- }
1285
-
1286
- @media (prefers-reduced-motion: reduce) {
1287
- .nonla-avatar[data-motion] .nonla-avatar-bob,
1288
- .nonla-avatar[data-motion] .nonla-avatar-gaze,
1289
- .nonla-avatar[data-motion] .nonla-avatar-eyes {
1290
- animation: none;
1291
- }
1292
- }