devnonla-ui 0.11.0 → 0.13.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.
@@ -0,0 +1,144 @@
1
+ import type { CSSProperties } from "react";
2
+
3
+ /** `docs` is the article scale. `chat` is the tighter thread scale. */
4
+ export type MarkdownVariant = "docs" | "chat";
5
+
6
+ /**
7
+ * Size and spacing for each scale. Class fallbacks match `docs`, so the editor
8
+ * preview stays on the article scale when no preset is set.
9
+ * Docs body is 16px. Chat body and h1–h3 are 15px. Inline code is 14px on docs, 13px in chat.
10
+ */
11
+ const MARKDOWN_PRESETS = {
12
+ docs: {
13
+ "--md-body-size": "16px",
14
+ "--md-body-leading": "24px",
15
+ "--md-h1-size": "32px",
16
+ "--md-h1-leading": "1.25",
17
+ "--md-h1-weight": "800",
18
+ "--md-h1-mt": "0px",
19
+ "--md-h1-mb": "12px",
20
+ "--md-h1-py": "3px",
21
+ "--md-h2-size": "30px",
22
+ "--md-h2-leading": "40px",
23
+ "--md-h2-weight": "600",
24
+ "--md-h2-mt": "24px",
25
+ "--md-h2-mb": "1px",
26
+ "--md-h2-py": "3px",
27
+ "--md-h3-size": "24px",
28
+ "--md-h3-leading": "32px",
29
+ "--md-h3-weight": "700",
30
+ "--md-h3-mt": "22px",
31
+ "--md-h3-mb": "1px",
32
+ "--md-h4-size": "20px",
33
+ "--md-h4-leading": "26px",
34
+ "--md-h4-weight": "700",
35
+ "--md-h4-mt": "16px",
36
+ "--md-h4-mb": "1px",
37
+ "--md-h5-size": "16px",
38
+ "--md-h5-leading": "1.375",
39
+ "--md-h5-weight": "700",
40
+ "--md-h5-mt": "0px",
41
+ "--md-h5-mb": "0px",
42
+ "--md-h6-size": "14px",
43
+ "--md-h6-leading": "1.375",
44
+ "--md-h6-weight": "700",
45
+ "--md-h6-mt": "0px",
46
+ "--md-h6-mb": "0px",
47
+ "--md-strong-weight": "600",
48
+ "--md-p-my": "1px",
49
+ "--md-p-py": "4px",
50
+ "--md-p-leading": "1.5",
51
+ "--md-list-my": "8px",
52
+ "--md-ul-pl": "4px",
53
+ "--md-ol-pl": "4px",
54
+ "--md-li-mt": "4px",
55
+ "--md-quote-my": "4px",
56
+ "--md-rule-my": "8px",
57
+ "--md-img-my": "4px",
58
+ "--md-table-my": "16px",
59
+ "--md-table-size": "15px",
60
+ "--md-code-my": "8px",
61
+ "--md-inline-size": "14px",
62
+ "--md-item-pl": "4px",
63
+ "--md-nest": "1.25rem",
64
+ },
65
+ chat: {
66
+ "--md-body-size": "15px",
67
+ "--md-body-leading": "24px",
68
+ "--md-h1-size": "15px",
69
+ "--md-h1-leading": "24px",
70
+ "--md-h1-weight": "600",
71
+ "--md-h1-mt": "0px",
72
+ "--md-h1-mb": "2px",
73
+ "--md-h1-py": "0px",
74
+ "--md-h2-size": "15px",
75
+ "--md-h2-leading": "24px",
76
+ "--md-h2-weight": "600",
77
+ "--md-h2-mt": "12px",
78
+ "--md-h2-mb": "2px",
79
+ "--md-h2-py": "0px",
80
+ "--md-h3-size": "15px",
81
+ "--md-h3-leading": "24px",
82
+ "--md-h3-weight": "600",
83
+ "--md-h3-mt": "10px",
84
+ "--md-h3-mb": "2px",
85
+ "--md-h4-size": "15px",
86
+ "--md-h4-leading": "24px",
87
+ "--md-h4-weight": "600",
88
+ "--md-h4-mt": "8px",
89
+ "--md-h4-mb": "2px",
90
+ "--md-h5-size": "14px",
91
+ "--md-h5-leading": "22px",
92
+ "--md-h5-weight": "600",
93
+ "--md-h5-mt": "6px",
94
+ "--md-h5-mb": "0px",
95
+ "--md-h6-size": "14px",
96
+ "--md-h6-leading": "22px",
97
+ "--md-h6-weight": "600",
98
+ "--md-h6-mt": "6px",
99
+ "--md-h6-mb": "0px",
100
+ "--md-strong-weight": "400",
101
+ "--md-p-my": "0px",
102
+ "--md-p-py": "1px",
103
+ "--md-p-leading": "1.5",
104
+ "--md-list-my": "4px",
105
+ "--md-ul-pl": "4px",
106
+ "--md-ol-pl": "4px",
107
+ "--md-li-mt": "2px",
108
+ "--md-quote-my": "2px",
109
+ "--md-rule-my": "6px",
110
+ "--md-img-my": "4px",
111
+ "--md-table-my": "8px",
112
+ "--md-table-size": "15px",
113
+ "--md-code-my": "6px",
114
+ "--md-inline-size": "13px",
115
+ "--md-item-pl": "4px",
116
+ "--md-nest": "1rem",
117
+ },
118
+ } as const;
119
+
120
+ export function markdownVariantStyle(variant: MarkdownVariant = "docs"): CSSProperties {
121
+ return MARKDOWN_PRESETS[variant] as CSSProperties;
122
+ }
123
+
124
+ /**
125
+ * Article headings. A markdown `#` paints the same as `##`.
126
+ * The large page title is `pageTitleClass`, used by Typography only.
127
+ */
128
+ export function headingClass(level: number): string {
129
+ if (level <= 1) return "text-(--md-heading) mt-(--md-h2-mt,24px) mb-(--md-h1-mb,12px) pt-(--md-h2-py,3px) pb-(--md-h2-py,3px) text-(length:--md-h2-size,30px) leading-(--md-h2-leading,40px) font-(--md-h2-weight,600)";
130
+ if (level === 2) return "text-(--md-heading) mt-(--md-h2-mt,24px) mb-(--md-h2-mb,1px) pt-(--md-h2-py,3px) pb-(--md-h2-py,3px) text-(length:--md-h2-size,30px) leading-(--md-h2-leading,40px) font-(--md-h2-weight,600)";
131
+ if (level === 3) return "text-(--md-heading) mt-(--md-h3-mt,22px) mb-(--md-h3-mb,1px) text-(length:--md-h3-size,24px) leading-(--md-h3-leading,32px) font-(--md-h3-weight,700)";
132
+ if (level === 4) return "text-(--md-heading) mt-(--md-h4-mt,16px) mb-(--md-h4-mb,1px) text-(length:--md-h4-size,20px) leading-(--md-h4-leading,26px) font-(--md-h4-weight,700)";
133
+ if (level === 5) return "text-(--md-heading) mt-(--md-h5-mt,0px) mb-(--md-h5-mb,0px) text-(length:--md-h5-size,16px) leading-(--md-h5-leading,1.375) font-(--md-h5-weight,700)";
134
+ return "text-(--md-heading) mt-(--md-h6-mt,0px) mb-(--md-h6-mb,0px) text-(length:--md-h6-size,14px) leading-(--md-h6-leading,1.375) font-(--md-h6-weight,700)";
135
+ }
136
+
137
+ /** Landing and page title. Not used inside markdown. */
138
+ export const pageTitleClass = "text-(--md-heading) mt-(--md-h1-mt,0px) mb-(--md-h1-mb,1px) pt-(--md-h1-py,3px) pb-(--md-h1-py,3px) text-(length:--md-h1-size,32px) leading-(--md-h1-leading,1.25) font-(--md-h1-weight,800) tracking-tight";
139
+
140
+ /** Body line. Same size and color as a markdown paragraph. */
141
+ export const markdownBodyClass = "text-(length:--md-body-size,16px) leading-(--md-body-leading,24px) text-(--md-ink)";
142
+
143
+ /** Paragraph box. Same rhythm as `MarkdownViewer` `p`. */
144
+ export const markdownParagraphClass = "nonla-typo m-0 my-(--md-p-my,1px) py-(--md-p-py,4px) text-(length:--md-body-size,16px) leading-(--md-p-leading,1.5) text-(--md-ink)";
@@ -98,9 +98,9 @@ function SidebarList({
98
98
  }
99
99
  if (isGroup(item)) {
100
100
  return (
101
- <div key={key} className="mb-4">
101
+ <div key={key} className="mb-5 last:mb-0">
102
102
  {item.label != null && item.label !== "" ? (
103
- <div className={cn("px-2.5 pb-1.5 pt-2 text-[11px] font-bold uppercase tracking-wider text-quaternary-foreground", item.className)}>
103
+ <div className={cn("px-3 pb-2 pt-3 text-[11px] font-semibold uppercase tracking-wider text-quaternary-foreground", item.className)}>
104
104
  {item.label}
105
105
  </div>
106
106
  ) : null}
@@ -113,9 +113,9 @@ function SidebarList({
113
113
 
114
114
  const active = selected != null && key === selected;
115
115
  const className = cn(
116
- "nonla-sidebar-item flex w-full items-center gap-2.5 px-2.5 text-left text-base no-underline",
116
+ "nonla-sidebar-item flex w-full items-center gap-3 px-3 text-left text-[14px] font-normal no-underline",
117
117
  item.disabled ? "pointer-events-none cursor-not-allowed opacity-40" : "cursor-pointer",
118
- active ? "font-medium text-foreground" : "text-foreground/80 hover:text-foreground",
118
+ active ? "text-foreground" : "text-foreground/80 hover:text-foreground",
119
119
  item.className,
120
120
  );
121
121
 
@@ -184,13 +184,13 @@ export function Sidebar({
184
184
  <div className={cn("flex h-full min-h-0 flex-col", className)}>
185
185
  {header}
186
186
  {searchable ? (
187
- <div className={cn("shrink-0 px-3 pb-2", header ? "pt-1" : "pt-3")}>
187
+ <div className={cn("shrink-0 px-3 pb-3", header ? "pt-1" : "pt-3")}>
188
188
  <SearchInput size="small" wait={0} placeholder={searchPlaceholder} onChange={setQuery} />
189
189
  </div>
190
190
  ) : null}
191
- <OverlayScroll className="min-h-0 flex-1" innerClassName={cn("px-2 pb-6", !searchable && !header && "pt-2")}>
191
+ <OverlayScroll className="min-h-0 flex-1" innerClassName={cn("px-3 pb-6", !searchable && !header && "pt-3")}>
192
192
  <nav aria-label={ariaLabel}>
193
- {visible.length === 0 ? <p className="px-2 py-4 text-sm text-muted-foreground">{emptyText}</p> : <SidebarList items={visible} selected={selected} onSelect={handleSelect} />}
193
+ {visible.length === 0 ? <p className="px-3 py-4 text-sm text-muted-foreground">{emptyText}</p> : <SidebarList items={visible} selected={selected} onSelect={handleSelect} />}
194
194
  </nav>
195
195
  </OverlayScroll>
196
196
  {footer}
package/src/styles.css CHANGED
@@ -1,6 +1,4 @@
1
1
  @import "highlight.js/styles/github-dark-dimmed.css";
2
- @import "@fontsource-variable/inter/index.css";
3
- @import "@fontsource-variable/inter/wght-italic.css";
4
2
 
5
3
  /**
6
4
  * NonlaUI theme — single source of color.
@@ -23,9 +21,9 @@
23
21
  color-scheme: dark;
24
22
 
25
23
  /* ── Knobs / Seed (override these) ──────────────────────────────────── */
26
- /* chrome #141414, editor #181818, base #f0f0f0. Text ranks follow Cursor's mix. */
24
+ /* Cursor dashboard chrome. Page #141414, sidebar and cards #181818. */
27
25
  --nonla-bg: #141414;
28
- --nonla-fg: #f0f0f0;
26
+ --nonla-fg: #ffffff;
29
27
  --nonla-fg-muted: color-mix(in oklab, var(--nonla-fg) 74%, var(--nonla-bg));
30
28
  --nonla-fg-tertiary: color-mix(in oklab, var(--nonla-fg) 60%, var(--nonla-bg));
31
29
  --nonla-fg-quaternary: color-mix(in oklab, var(--nonla-fg) 36%, var(--nonla-bg));
@@ -38,23 +36,28 @@
38
36
  --nonla-warn: #f1b467;
39
37
  /* Cursor "Learn more" — the only chromatic link. */
40
38
  --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));
41
44
  --nonla-radius: 8px;
42
45
  --nonla-height: 32px;
43
46
  --nonla-height-sm: 24px;
44
47
  --nonla-height-lg: 40px;
45
48
 
46
49
  --nonla-ink: var(--nonla-fg);
47
- /* Page #141414, sidebar and cards #181818. Borders are ink hairlines, same as the dashboard. */
50
+ /* Page #141414. Sidebar and cards are the same step lighter, #181818. */
48
51
  --nonla-sidebar: #181818;
49
52
  --nonla-surface: #181818;
50
53
  --nonla-elevated: var(--nonla-surface);
51
54
  --nonla-chip: color-mix(in oklab, var(--nonla-fg) 6%, var(--nonla-surface));
52
55
  --nonla-chip-hover: color-mix(in oklab, var(--nonla-fg) 10%, var(--nonla-surface));
53
- /* border-tertiary 8%. Inputs use border-secondary 12%. */
54
- --nonla-border: color-mix(in oklab, var(--nonla-fg) 8%, transparent);
55
- /* Card ring and table rules — border-quaternary, lighter than --nonla-border. */
56
- --nonla-hairline: color-mix(in oklab, var(--nonla-fg) 4%, transparent);
57
- --nonla-input: color-mix(in oklab, var(--nonla-fg) 12%, transparent);
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);
58
61
  --nonla-composer: var(--nonla-surface);
59
62
  --nonla-chat-bg: var(--nonla-bg);
60
63
  /* Opaque header fill. */
@@ -72,28 +75,13 @@
72
75
  --nonla-ink-line: var(--nonla-border);
73
76
  --nonla-desktop-bar-height: 42px;
74
77
  /* Desktop window title bar. Body stays on --nonla-bg. */
75
- --nonla-window-header: #323233;
78
+ --nonla-window-header: #242424;
76
79
  --nonla-z-base: 0;
77
80
  --nonla-z-desktop: 20;
78
81
  --nonla-z-window: 30;
79
82
  --nonla-z-header: 40;
80
83
  --nonla-z-popup-base: 1000;
81
84
 
82
- /* Preset accents — Cursor dark seeds. Only used when a control asks for color="blue" / … */
83
- --nonla-blue: #7bafe9;
84
- --nonla-purple: #9386f2;
85
- --nonla-cyan: #81a1c1;
86
- --nonla-green: #3fa266;
87
- --nonla-magenta: #b48ead;
88
- --nonla-pink: #b48ead;
89
- --nonla-red: #fc6b83;
90
- --nonla-orange: #d08770;
91
- --nonla-yellow: #f1b467;
92
- --nonla-volcano: #fc6b83;
93
- --nonla-geekblue: #7bafe9;
94
- --nonla-lime: #70b489;
95
- --nonla-gold: #f1b467;
96
-
97
85
  /* ── Map + Alias (do not set unless you need a one-off exception) ───── */
98
86
  --nonla-radius-sm: max(0px, calc(var(--nonla-radius) - 2px));
99
87
  --nonla-radius-lg: calc(var(--nonla-radius) + 2px);
@@ -152,6 +140,8 @@
152
140
  --elevated-shadow: 0 16px 48px rgb(0 0 0 / 45%), 0 0 0 1px color-mix(in srgb, var(--nonla-fg) 8%, transparent);
153
141
  --popper-shadow: 0 16px 48px rgb(0 0 0 / 45%), 0 0 0 1px color-mix(in srgb, var(--nonla-fg) 8%, transparent);
154
142
  --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. */
144
+ --nonla-card-shadow: 0 1px 2px rgb(0 0 0 / 32%), 0 0 0 1px var(--nonla-border);
155
145
  --popper-border: var(--nonla-border);
156
146
  --mask: rgb(0 0 0 / 56%);
157
147
  --meadow: var(--nonla-meadow);
@@ -173,7 +163,7 @@
173
163
 
174
164
  /* Chat type — body and headings share one size. */
175
165
  --chat-body-size: 14px;
176
- --chat-body-leading: 22px;
166
+ --chat-body-leading: 24px;
177
167
  --chat-p-mb: 12px;
178
168
  --chat-h-mt: 16px;
179
169
  --chat-h-mb: 8px;
@@ -185,50 +175,47 @@
185
175
  --nonla-scrollbar-thumb-hover: var(--nonla-fg-quaternary);
186
176
 
187
177
  color: var(--foreground);
188
- /* macOS default is subpixel AA, which makes Inter look heavier. */
189
- -webkit-font-smoothing: antialiased;
190
- -moz-osx-font-smoothing: grayscale;
178
+ font-weight: 400;
179
+ -webkit-font-smoothing: subpixel-antialiased;
180
+ -moz-osx-font-smoothing: auto;
191
181
  }
192
182
 
193
183
  /*
194
- * Daylight. Page is a step off white so white cards lift the way #181818 lifts off #141414.
184
+ * Daylight. Page is white. Sidebar sits a step off it.
195
185
  * Beats `.nonla-ui` re-declaring the dark seeds. `.dark` inside `.light` stays on the block above.
196
186
  */
197
187
  .light:not(.dark),
198
188
  .light .nonla-ui:not(.dark) {
199
189
  color-scheme: light;
200
190
 
201
- --nonla-bg: #f3f3f3;
202
- --nonla-fg: #141414;
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));
203
196
  --nonla-danger: #dc3b3b;
204
197
  --nonla-success: #2f7d4a;
205
198
  --nonla-warn: #a16207;
206
199
  --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));
207
203
 
208
- --nonla-sidebar: #ffffff;
204
+ /* Neutral on the brand hue (~63°). Chroma stays low so it reads gray, not cream. */
205
+ --nonla-sidebar: #f7f5f2;
209
206
  --nonla-surface: #ffffff;
210
- --nonla-meadow: #f3f3f3;
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
211
  --nonla-window-header: #e8e8e8;
212
212
 
213
- /* Darker than the night pastels so solid chips stay readable on white. */
214
- --nonla-blue: #3b7fc4;
215
- --nonla-purple: #6d5bd0;
216
- --nonla-cyan: #3d6a8c;
217
- --nonla-green: #2f7d4a;
218
- --nonla-magenta: #9a5f8a;
219
- --nonla-pink: #9a5f8a;
220
- --nonla-red: #e23b57;
221
- --nonla-orange: #c2613f;
222
- --nonla-yellow: #a16207;
223
- --nonla-volcano: #e23b57;
224
- --nonla-geekblue: #3b7fc4;
225
- --nonla-lime: #3d8f5c;
226
- --nonla-gold: #a16207;
227
-
228
213
  --elevated-shadow: 0 12px 32px rgb(0 0 0 / 12%), 0 0 0 1px color-mix(in srgb, var(--nonla-fg) 8%, transparent);
229
214
  --popper-shadow: 0 12px 32px rgb(0 0 0 / 12%), 0 0 0 1px color-mix(in srgb, var(--nonla-fg) 8%, transparent);
230
215
  --mask: rgb(0 0 0 / 40%);
231
216
  --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
+ --nonla-card-shadow: 0 0 0 1px var(--nonla-border);
232
219
  --shadow-drop: 0 2px 8px rgb(0 0 0 / 12%);
233
220
  --shadow-panel: 0 0 0 1px var(--border), 0 4px 16px rgb(0 0 0 / 10%);
234
221
  }
@@ -324,9 +311,12 @@
324
311
  --spacing-field-nav: 32px;
325
312
  --spacing-desktop-bar: var(--nonla-desktop-bar-height);
326
313
 
327
- --font-sans: "Inter Variable", sans-serif;
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";
328
315
  --font-family-sans: var(--font-sans);
329
316
  --default-font-family: var(--font-sans);
317
+ --font-mono: SFMono-Regular, Menlo, Consolas, "PT Mono", "Liberation Mono", Courier, monospace;
318
+ --font-family-mono: var(--font-mono);
319
+ --default-mono-font-family: var(--font-mono);
330
320
 
331
321
  --text-2xs: 11px;
332
322
  --text-2xs--line-height: 14px;
@@ -709,6 +699,21 @@
709
699
  background: color-mix(in oklab, var(--foreground) 10%, var(--card));
710
700
  }
711
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
+
712
717
  /* Desktop window — solid page fill, no frost. Title bar is a step lighter. */
713
718
  .nonla-window-glass {
714
719
  border: 1px solid var(--border);
@@ -782,6 +787,20 @@
782
787
  width 380ms cubic-bezier(0.3, 1.25, 0.5, 1),
783
788
  height 380ms cubic-bezier(0.3, 1.25, 0.5, 1);
784
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
+ }
785
804
 
786
805
  @media (prefers-reduced-motion: reduce) {
787
806
  .nonla-btn-glass {
@@ -790,7 +809,8 @@
790
809
  .nonla-btn-glass:active:not(:disabled):not([aria-disabled]) {
791
810
  transform: none;
792
811
  }
793
- .nonla-segmented-thumb {
812
+ .nonla-segmented-thumb,
813
+ .nonla-tabs-ink {
794
814
  transition: none;
795
815
  }
796
816
  }
@@ -980,6 +1000,20 @@
980
1000
  animation: nonla-pop-out 100ms var(--nonla-ease-in);
981
1001
  }
982
1002
 
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;
1015
+ }
1016
+
983
1017
  .nonla-codeblock-pre code,
984
1018
  .nonla-codeblock-pre .hljs {
985
1019
  color: var(--foreground);