@mcp-b/design-tokens 0.41.0 → 0.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcp-b/design-tokens",
3
- "version": "0.41.0",
3
+ "version": "0.43.0",
4
4
  "description": "Shared design tokens for MCP-B React applications.",
5
5
  "homepage": "https://mcp-b-design-system-storybook.alexmnahas.workers.dev",
6
6
  "bugs": {
@@ -30,6 +30,8 @@
30
30
  "./elevation.css": "./src/elevation.css",
31
31
  "./focus": "./src/focus.css",
32
32
  "./focus.css": "./src/focus.css",
33
+ "./layout": "./src/layout.css",
34
+ "./layout.css": "./src/layout.css",
33
35
  "./motion": "./src/motion.css",
34
36
  "./motion.css": "./src/motion.css",
35
37
  "./palettes": "./src/palettes.css",
package/src/index.css CHANGED
@@ -4,6 +4,7 @@
4
4
  @import "./borders.css";
5
5
  @import "./focus.css";
6
6
  @import "./spacing.css";
7
+ @import "./layout.css";
7
8
  @import "./motion.css";
8
9
  @import "./layers.css";
9
10
  @import "./elevation.css";
package/src/layout.css ADDED
@@ -0,0 +1,53 @@
1
+ /*
2
+ * Application layout.
3
+ *
4
+ * Spacing.css is the 4px grid. This file names the layout decisions every
5
+ * application plane must share, so switching routes does not change how far
6
+ * content sits from chrome, how wide a sidebar is, or where a page column
7
+ * stops. A length that is only used once is not a layout token; it stays in
8
+ * the component.
9
+ *
10
+ * Container queries cannot read custom properties. The compact breakpoint
11
+ * literal in @container rules is 56rem and must stay in lockstep with
12
+ * --sigvelo-layout-break-compact.
13
+ */
14
+
15
+ :root {
16
+ /* Inset of an application plane from its host, and of page content from
17
+ that plane. Codex and Claude both settle on 12px in the side panel. */
18
+ --sigvelo-layout-gutter: var(--sigvelo-spacing-3);
19
+
20
+ /* Gap between sibling regions in a shell (conversation | workbench). */
21
+ --sigvelo-layout-gap: var(--sigvelo-layout-gutter);
22
+
23
+ /* Vertical rhythm between stacked page sections. */
24
+ --sigvelo-layout-stack: var(--sigvelo-spacing-4);
25
+
26
+ /* Gap inside a wrap cluster: toolbars, action groups, compact lists. */
27
+ --sigvelo-layout-cluster: var(--sigvelo-spacing-2);
28
+
29
+ /* Default rail. Hosts may override --responsive-sidebar-shell-sidebar-size;
30
+ this is the fallback before that hook is set, and the documented default. */
31
+ --sigvelo-layout-sidebar: 16rem;
32
+
33
+ /* Conversation column. Sizing this side, not the workbench, keeps one
34
+ readable transcript at any window width. 24.5rem is 392px. */
35
+ --sigvelo-layout-conversation: 24.5rem;
36
+
37
+ /* Compact shell: one track, no inset plane. Used as documentation and by
38
+ script; @container conditions must repeat the 56rem literal. */
39
+ --sigvelo-layout-break-compact: 56rem;
40
+
41
+ /* The flexible track in every 1fr column or row. minmax(0, 1fr) is what
42
+ stops a grid item from overflowing its track. */
43
+ --sigvelo-layout-track-fill: minmax(0, 1fr);
44
+
45
+ /* Capped reading/work column for full-page lists and dossiers. 50rem is
46
+ Ploy's 800px list cap; wider panes stretch a name away from its status. */
47
+ --sigvelo-layout-content: 50rem;
48
+
49
+ /* Application chrome row, before safe-area insets. */
50
+ --sigvelo-layout-chrome: calc(
51
+ var(--sigvelo-density-compact-control-height) + var(--sigvelo-spacing-2)
52
+ );
53
+ }
@@ -296,3 +296,47 @@
296
296
  --sigvelo-color-danger-border-light: var(--sigvelo-color-danger-500);
297
297
  --sigvelo-color-danger-border-dark: var(--sigvelo-color-danger-600);
298
298
  }
299
+
300
+ /*
301
+ * Interaction fills. Derived from the activated aliases so they follow system
302
+ * preference, data-theme, and data-preset without another light/dark map.
303
+ * Mix toward the on-fill text: that lightens a dark control and darkens a
304
+ * light one, instead of always mixing toward black.
305
+ */
306
+ :root {
307
+ --sigvelo-color-primary-bg-hover: color-mix(
308
+ in oklab,
309
+ var(--sigvelo-color-primary-bg),
310
+ var(--sigvelo-color-primary-text-on-bg) 10%
311
+ );
312
+ --sigvelo-color-primary-bg-press: color-mix(
313
+ in oklab,
314
+ var(--sigvelo-color-primary-bg),
315
+ var(--sigvelo-color-primary-text-on-bg) 16%
316
+ );
317
+ --sigvelo-color-neutral-bg-hover: color-mix(
318
+ in oklab,
319
+ var(--sigvelo-color-neutral-bg-subtle),
320
+ var(--sigvelo-color-neutral-text-on-subtle) 10%
321
+ );
322
+ --sigvelo-color-neutral-bg-press: color-mix(
323
+ in oklab,
324
+ var(--sigvelo-color-neutral-bg-subtle),
325
+ var(--sigvelo-color-neutral-text-on-subtle) 16%
326
+ );
327
+ --sigvelo-color-danger-bg-hover: color-mix(
328
+ in oklab,
329
+ var(--sigvelo-color-danger-bg),
330
+ var(--sigvelo-color-danger-text-on-bg) 10%
331
+ );
332
+ --sigvelo-color-danger-bg-press: color-mix(
333
+ in oklab,
334
+ var(--sigvelo-color-danger-bg),
335
+ var(--sigvelo-color-danger-text-on-bg) 16%
336
+ );
337
+ --sigvelo-color-neutral-bg-selected: color-mix(
338
+ in oklab,
339
+ var(--sigvelo-color-neutral-bg-subtle),
340
+ var(--sigvelo-color-neutral-text-on-subtle) 14%
341
+ );
342
+ }
@@ -108,6 +108,18 @@
108
108
  /* Code, tables, and diagrams read worse when wrapped than when wide. */
109
109
  --sigvelo-measure-wide-block: 100ch;
110
110
 
111
+ /*
112
+ * Reading roles. Body text is one size across chat, markdown, activity, and
113
+ * workspace. Activity stays that size and fades (Codex conversation-body);
114
+ * headings and metadata are the only size exceptions.
115
+ */
116
+ --sigvelo-text-prose: var(--sigvelo-text-sm);
117
+ --sigvelo-text-prose-leading: var(--sigvelo-text-sm-leading);
118
+ --sigvelo-text-code: var(--sigvelo-text-prose);
119
+ --sigvelo-text-code-leading: var(--sigvelo-text-prose-leading);
120
+ --sigvelo-text-meta: var(--sigvelo-text-xs);
121
+ --sigvelo-text-meta-leading: var(--sigvelo-text-xs-leading);
122
+
111
123
  /*
112
124
  * Reader text scale. Applied by .sigvelo-reader-text to prose only, never to
113
125
  * chrome: a reader who wants larger message text is not asking for taller