@filipgutica/design-system 1.1.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/themes/graphite-indigo.css +3 -3
- package/dist/tokens.d.ts +57 -57
- package/dist/tokens.js +113 -113
- package/dist/tokens.json +112 -112
- package/language/DESIGN.md +74 -32
- package/language/components.html +978 -399
- package/language/components.md +175 -94
- package/language/decisions.md +114 -19
- package/language/docs.html +28 -25
- package/language/product.html +22 -22
- package/language/reference.html +223 -222
- package/language/tokens.css +138 -137
- package/language/visualizations/build-count-report.mjs +4 -2
- package/language/visualizations/report.css +2 -2
- package/package.json +4 -2
- /package/language/{themes → editor-themes}/graphite-indigo/LICENSE +0 -0
- /package/language/{themes → editor-themes}/graphite-indigo/README.md +0 -0
- /package/language/{themes → editor-themes}/graphite-indigo/SOURCE.json +0 -0
- /package/language/{themes → editor-themes}/graphite-indigo/THIRD_PARTY_NOTICES.md +0 -0
- /package/language/{themes → editor-themes}/graphite-indigo/graphite-indigo.t3-theme.json +0 -0
- /package/language/{themes → editor-themes}/graphite-indigo/package.json +0 -0
- /package/language/{themes → editor-themes}/graphite-indigo/themes/graphite-indigo-dark-color-theme.json +0 -0
- /package/language/{themes → editor-themes}/graphite-indigo/themes/graphite-indigo-light-color-theme.json +0 -0
package/language/reference.html
CHANGED
|
@@ -13,20 +13,20 @@
|
|
|
13
13
|
/* App shell */
|
|
14
14
|
/* The main pane scrolls; the sidebar stays full height. */
|
|
15
15
|
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); height: 100dvh; }
|
|
16
|
-
.sidebar { border-right: 1px solid var(--border-subtle); background: var(--surface); padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-4); min-height: 0; }
|
|
16
|
+
.sidebar { border-right: 1px solid var(--color-border-subtle); background: var(--color-surface); padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-4); min-height: 0; }
|
|
17
17
|
.workspace { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-2); font-weight: var(--weight-semibold); }
|
|
18
|
-
.workspace .mark { width: 20px; height: 20px; border-radius: var(--radius-
|
|
18
|
+
.workspace .mark { width: 20px; height: 20px; border-radius: var(--radius-inline); background: var(--color-text); color: var(--color-bg); display: grid; place-items: center; font-size: var(--text-xs); }
|
|
19
19
|
/* Navigation rows: components.html#navigation-list, unchanged. The sidebar adds icons and counts. */
|
|
20
20
|
.navlist { display: grid; gap: 0.125rem; width: min(100%, 240px); }
|
|
21
|
-
.navlist .group-label { padding: 0 var(--space-3) var(--space-1); color: var(--
|
|
22
|
-
.navlist a { position: relative; display: flex; align-items: center; min-height: var(--row); padding-inline: var(--space-3); border-radius: var(--radius-
|
|
23
|
-
.navlist a:is(:hover, .is-hover) { background: var(--row-hover); color: var(--text); text-decoration: none; }
|
|
21
|
+
.navlist .group-label { padding: 0 var(--space-3) var(--space-1); color: var(--color-muted); font-size: var(--text-xs); font-weight: var(--weight-semibold); }
|
|
22
|
+
.navlist a { position: relative; display: flex; align-items: center; min-height: var(--row); padding-inline: var(--space-3); border-radius: var(--radius-inline); color: var(--color-muted); font-size: var(--text-sm); text-decoration: none; transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out); }
|
|
23
|
+
.navlist a:is(:hover, .is-hover) { background: var(--color-row-hover); color: var(--color-text); text-decoration: none; }
|
|
24
24
|
/* The Foundations specimens share the current-page and location rules, forced colors included. */
|
|
25
|
-
.navlist a[aria-current="page"], .nav-current-sample { background: var(--nav-current); box-shadow: var(--shadow-nav-current); color: var(--nav-current-text); font-weight: var(--weight-medium); }
|
|
26
|
-
.navlist a[aria-current="location"], .pip-sample { color: var(--text); font-weight: var(--weight-medium); }
|
|
27
|
-
.navlist a[aria-current="location"]::before, .pip-sample::before { content: ""; position: absolute; inset-inline-start: var(--space-1); width: 3px; height: 14px; border-radius: var(--radius-pill); background: var(--accent); }
|
|
25
|
+
.navlist a[aria-current="page"], .nav-current-sample { background: var(--color-nav-current); box-shadow: var(--shadow-nav-current); color: var(--color-nav-current-text); font-weight: var(--weight-medium); }
|
|
26
|
+
.navlist a[aria-current="location"], .pip-sample { color: var(--color-text); font-weight: var(--weight-medium); }
|
|
27
|
+
.navlist a[aria-current="location"]::before, .pip-sample::before { content: ""; position: absolute; inset-inline-start: var(--space-1); width: 3px; height: 14px; border-radius: var(--radius-pill); background: var(--color-accent); }
|
|
28
28
|
/* Inset: the rail and the drawer scroll. */
|
|
29
|
-
.navlist a:is(:focus-visible, .is-focus) { outline: var(--focus-width) solid var(--focus); outline-offset: calc(var(--focus-width) * -1); }
|
|
29
|
+
.navlist a:is(:focus-visible, .is-focus) { outline: var(--focus-width) solid var(--color-focus); outline-offset: calc(var(--focus-width) * -1); }
|
|
30
30
|
/* Fills and shadows drop. The current page takes a system border; the in-page location keeps
|
|
31
31
|
its pip, redrawn in the system highlight, so the two still differ. */
|
|
32
32
|
@media (forced-colors: active) {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
.navlist a[aria-current="location"]::before, .pip-sample::before { forced-color-adjust: none; background: Highlight; }
|
|
35
35
|
}
|
|
36
36
|
.sidebar .navlist a { gap: var(--space-2); }
|
|
37
|
-
.sidebar .navlist .count { margin-left: auto; font-size: var(--text-xs); color: var(--
|
|
37
|
+
.sidebar .navlist .count { margin-left: auto; font-size: var(--text-xs); color: var(--color-muted); font-variant-numeric: tabular-nums; }
|
|
38
38
|
.sidebar-foot { margin-top: auto; }
|
|
39
39
|
|
|
40
40
|
/* Main */
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
/* main scrolls on desktop and the page scrolls at tablet width; either way an anchor lands below the
|
|
43
43
|
sticky toolbar. The script writes --toolbar-height, because the toolbar wraps on narrow screens. */
|
|
44
44
|
:root, main { scroll-padding-top: var(--toolbar-height, 0px); }
|
|
45
|
-
.toolbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 2; background: var(--bg); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-6); border-bottom: 1px solid var(--border-subtle); }
|
|
45
|
+
.toolbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 2; background: var(--color-bg); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-6); border-bottom: 1px solid var(--color-border-subtle); }
|
|
46
46
|
.toolbar h1 { font-size: var(--text-md); }
|
|
47
47
|
.toolbar .spacer { flex: 1; }
|
|
48
48
|
.content { padding: var(--space-6); display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--space-6); align-items: start; }
|
|
@@ -50,78 +50,80 @@
|
|
|
50
50
|
.section { display: grid; gap: var(--space-4); }
|
|
51
51
|
.section > header { display: grid; gap: var(--space-1); }
|
|
52
52
|
.section h2 { font-size: var(--text-lg); }
|
|
53
|
-
.lede { color: var(--
|
|
54
|
-
.muted { color: var(--
|
|
53
|
+
.lede { color: var(--color-muted); max-width: var(--measure); }
|
|
54
|
+
.muted { color: var(--color-muted); }
|
|
55
55
|
.mono { font-family: var(--font-mono); }
|
|
56
56
|
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
57
|
-
.caption { color: var(--
|
|
57
|
+
.caption { color: var(--color-muted); font-size: var(--text-xs); }
|
|
58
58
|
|
|
59
59
|
/* Icons */
|
|
60
60
|
.icon { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
|
|
61
61
|
|
|
62
62
|
/* Buttons and quiet actions: components.html#button and #quiet-action, unchanged. The page adds layout only. */
|
|
63
|
-
.btn { --depth: var(--shadow-raise); display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--control-md); padding: 0 var(--space-3); border: 1px solid transparent; border-radius: var(--radius-
|
|
63
|
+
.btn { --depth: var(--shadow-raise); display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--control-md); padding: 0 var(--space-3); border: 1px solid transparent; border-radius: var(--radius-control); background: var(--color-accent); color: var(--color-accent-text); box-shadow: var(--depth); font: var(--weight-medium) var(--text-md) / 1.25 var(--font-ui); letter-spacing: -0.01em; cursor: pointer; transition: background-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out); }
|
|
64
64
|
.btn[data-size="sm"] { min-height: var(--control-sm); padding: 0 0.625rem; font-size: var(--text-sm); }
|
|
65
|
-
.btn:is(:hover, .is-hover):not(:disabled) { background: var(--button-hover); }
|
|
66
|
-
.btn.secondary { background: var(--control-thumb); color: var(--text); }
|
|
67
|
-
.btn.secondary:is(:hover, .is-hover):not(:disabled) { background: color-mix(in srgb, var(--text) 8%, var(--control-thumb)); }
|
|
68
|
-
.btn.ghost { --depth: none; background: transparent; color: var(--
|
|
69
|
-
.btn.ghost:is(:hover, .is-hover):not(:disabled) { background: var(--row-hover); color: var(--text); }
|
|
70
|
-
.btn:not(.secondary, .ghost, .danger, .text):is(:active, [aria-pressed="true"], .is-active):not(:disabled) { background: var(--button-hover); }
|
|
71
|
-
.btn:is(.secondary, .ghost):is(:active, [aria-pressed="true"], .is-active):not(:disabled) { background: var(--
|
|
65
|
+
.btn:is(:hover, .is-hover):not(:disabled) { background: var(--color-button-hover); }
|
|
66
|
+
.btn.secondary { background: var(--color-control-thumb); color: var(--color-text); }
|
|
67
|
+
.btn.secondary:is(:hover, .is-hover):not(:disabled) { background: color-mix(in srgb, var(--color-text) 8%, var(--color-control-thumb)); }
|
|
68
|
+
.btn.ghost { --depth: none; background: transparent; color: var(--color-muted); }
|
|
69
|
+
.btn.ghost:is(:hover, .is-hover):not(:disabled) { background: var(--color-row-hover); color: var(--color-text); }
|
|
70
|
+
.btn:not(.secondary, .ghost, .danger, .text):is(:active, [aria-pressed="true"], .is-active):not(:disabled) { background: var(--color-button-hover); }
|
|
71
|
+
.btn:is(.secondary, .ghost):is(:active, [aria-pressed="true"], .is-active):not(:disabled) { background: var(--color-well); }
|
|
72
72
|
.btn:not(.text):is(:active, [aria-pressed="true"], .is-active):not(:disabled) { --depth: var(--shadow-sink); transform: translateY(1px); }
|
|
73
73
|
.btn:disabled { --depth: none; opacity: 0.58; cursor: not-allowed; }
|
|
74
|
-
:where(.quiet-action) { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: var(--radius-
|
|
75
|
-
.quiet-action:is(:hover, .is-hover):where(:not(:disabled)) { color: var(--text); background: color-mix(in srgb, currentColor 12%, transparent); }
|
|
74
|
+
:where(.quiet-action) { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: var(--radius-control); background: transparent; font: inherit; cursor: pointer; transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out); }
|
|
75
|
+
.quiet-action:is(:hover, .is-hover):where(:not(:disabled)) { color: var(--color-text); background: color-mix(in srgb, currentColor 12%, transparent); }
|
|
76
76
|
.quiet-action:is(:active, .is-active):where(:not(:disabled)) { background: color-mix(in srgb, currentColor 18%, transparent); }
|
|
77
77
|
.quiet-action:disabled { opacity: 0.58; cursor: not-allowed; }
|
|
78
78
|
/* .is-focus pins the focus state in the Focus and motion specimens. */
|
|
79
|
-
.is-focus { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
|
|
79
|
+
.is-focus { outline: var(--focus-width) solid var(--color-focus); outline-offset: var(--focus-offset); }
|
|
80
80
|
|
|
81
81
|
/* Input */
|
|
82
|
-
.search { display: flex; align-items: center; gap: var(--space-2); height: var(--control-sm); padding: 0 var(--space-2); border: 1px solid var(--field-edge); border-radius: var(--radius-field); background: var(--field-bg); box-shadow: var(--field
|
|
82
|
+
.search { display: flex; align-items: center; gap: var(--space-2); height: var(--control-sm); padding: 0 var(--space-2); border: 1px solid var(--color-field-edge); border-radius: var(--radius-field); background: var(--color-field-bg); box-shadow: var(--shadow-field); color: var(--color-muted); width: 248px; min-width: 0; }
|
|
83
83
|
/* The field takes the field focus, an accent edge with a muted accent line inside and no ring, so the input inside it draws nothing. */
|
|
84
|
-
.search:is(:has(input:focus-visible), .is-focus) { outline: none; border-color: var(--accent); box-shadow: var(--field-
|
|
84
|
+
.search:is(:has(input:focus-visible), .is-focus) { outline: none; border-color: var(--color-accent); box-shadow: var(--shadow-field-focus); }
|
|
85
85
|
/* A search wrapper follows the shared invalid and disabled field states through the input it holds. */
|
|
86
|
-
.search:has(input[aria-invalid="true"]) { border-color: var(--
|
|
87
|
-
.search:has(input[aria-invalid="true"]):is(:has(input:focus-visible), .is-focus) { border-color: var(--
|
|
88
|
-
.search:has(input:disabled) { background: var(--
|
|
89
|
-
.search input { border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: var(--text-sm); flex: 1; min-width: 0; }
|
|
90
|
-
.search input::placeholder { color: var(--
|
|
86
|
+
.search:has(input[aria-invalid="true"]) { border-color: var(--color-error); }
|
|
87
|
+
.search:has(input[aria-invalid="true"]):is(:has(input:focus-visible), .is-focus) { border-color: var(--color-error); box-shadow: var(--shadow-field-focus-invalid); }
|
|
88
|
+
.search:has(input:disabled) { background: var(--color-well); box-shadow: none; opacity: 0.58; cursor: not-allowed; }
|
|
89
|
+
.search input { border: 0; outline: 0; background: transparent; color: var(--color-text); font: inherit; font-size: var(--text-sm); flex: 1; min-width: 0; }
|
|
90
|
+
.search input::placeholder { color: var(--color-muted); }
|
|
91
91
|
/* The native clear button, quieted to a thin muted cross drawn with a mask. */
|
|
92
|
-
.search input::-webkit-search-cancel-button { width: 0.75rem; height: 0.75rem; margin-inline-start: var(--space-2); background: var(--
|
|
93
|
-
.search input::-webkit-search-cancel-button:hover { background: var(--text); }
|
|
92
|
+
.search input::-webkit-search-cancel-button { width: 0.75rem; height: 0.75rem; margin-inline-start: var(--space-2); background: var(--color-muted); cursor: pointer; -webkit-appearance: none; appearance: none; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 2.5l7 7m0-7l-7 7' stroke='black' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
|
|
93
|
+
.search input::-webkit-search-cancel-button:hover { background: var(--color-text); }
|
|
94
94
|
/* Forced colors would drop the masked fill, so the cross opts out and takes the system text colour. */
|
|
95
95
|
/* Forced colors drop the inset line, so the focused field draws the system ring just inside its edge. */
|
|
96
96
|
@media (forced-colors: active) { .search:is(:has(input:focus-visible), .is-focus) { outline: var(--focus-width) solid Highlight; outline-offset: -1px; } }
|
|
97
97
|
@media (forced-colors: active) { .search input::-webkit-search-cancel-button, .search input::-webkit-search-cancel-button:hover { forced-color-adjust: none; background: CanvasText; } }
|
|
98
|
-
kbd { font-size: var(--text-xs); color: var(--
|
|
98
|
+
kbd { font-size: var(--text-xs); color: var(--color-muted); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-inline); padding: 0 var(--space-1); line-height: 1.125rem; background: var(--color-surface-raised); }
|
|
99
99
|
|
|
100
100
|
/* Tabs, for the Foundations specimens: components.html#tabs, unchanged. */
|
|
101
|
-
.tablist { display: flex; width: max-content; max-width: 100%; overflow-x: auto; padding: var(--space-1); }
|
|
102
|
-
.tab { flex: none; min-height: var(--control-md); padding: var(--space-2) var(--space-3); border: 0; border-radius: var(--radius-
|
|
103
|
-
.tab:is(:hover, .is-hover) { background: var(--row-hover); color: var(--text); }
|
|
104
|
-
/* The selected tab takes the navigation row's lifted fill
|
|
105
|
-
|
|
101
|
+
.tablist { --glide-lead: 260ms; --glide-trail: 300ms; display: flex; width: max-content; max-width: 100%; overflow-x: auto; padding: var(--space-1); isolation: isolate; }
|
|
102
|
+
.tab { position: relative; flex: none; min-height: var(--control-md); padding: var(--space-2) var(--space-3); border: 0; border-radius: var(--radius-inline); background: transparent; color: var(--color-muted); font: var(--weight-medium) var(--text-md) / var(--leading) var(--font-ui); white-space: nowrap; cursor: pointer; transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out); }
|
|
103
|
+
.tab:is(:hover, .is-hover) { background: var(--color-row-hover); color: var(--color-text); }
|
|
104
|
+
/* The selected tab takes the navigation row's lifted fill: one selected state for both. The fill is a
|
|
105
|
+
::before layer behind the label; in the catalogue it glides between tabs. */
|
|
106
|
+
.tab[aria-selected="true"] { background: transparent; color: var(--color-nav-current-text); }
|
|
107
|
+
.tab[aria-selected="true"]::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--color-nav-current); box-shadow: var(--shadow-nav-current); pointer-events: none; }
|
|
106
108
|
/* Inset: the tab list scrolls sideways, which would clip an outer ring. */
|
|
107
|
-
.tab:is(:focus-visible, .is-focus) { outline: var(--focus-width) solid var(--focus); outline-offset: calc(var(--focus-width) * -1); }
|
|
109
|
+
.tab:is(:focus-visible, .is-focus) { outline: var(--focus-width) solid var(--color-focus); outline-offset: calc(var(--focus-width) * -1); }
|
|
108
110
|
|
|
109
111
|
/* Segmented control: components.html#segmented-control, unchanged. The theme picker and the
|
|
110
112
|
monitor filters use it. */
|
|
111
113
|
/* Segmented control: a raised pill thumb on a sunk, undivided track. */
|
|
112
|
-
.segmented { --item: var(--control-md); --glide-lead: 260ms; --glide-trail: 300ms; display: inline-flex; flex: none; border: 1px solid transparent; border-radius: var(--radius-
|
|
114
|
+
.segmented { --item: var(--control-md); --glide-lead: 260ms; --glide-trail: 300ms; display: inline-flex; flex: none; border: 1px solid transparent; border-radius: var(--radius-control); background: var(--color-well); box-shadow: var(--shadow-sink); isolation: isolate; }
|
|
113
115
|
/* The fill alone marks the track. The transparent border keeps its size, and forced colors draw it. */
|
|
114
116
|
.segmented[data-size="sm"] { --item: var(--control-sm); font-size: var(--text-sm); }
|
|
115
117
|
.segmented[data-size="lg"] { --item: var(--control-lg); font-size: var(--text-lg); }
|
|
116
|
-
.segmented button { --depth: none; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--item); padding: 0 var(--space-3); border: 0; border-radius: var(--radius-
|
|
118
|
+
.segmented button { --depth: none; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--item); padding: 0 var(--space-3); border: 0; border-radius: var(--radius-control); background: transparent; color: var(--color-muted); font: inherit; cursor: pointer; }
|
|
117
119
|
.segmented[data-icon-only] button { width: var(--item); padding: 0; }
|
|
118
120
|
/* The thumb is inset inside each full-size button, so it floats on the track and the hit area keeps its size. */
|
|
119
|
-
.segmented button::before { content: ""; position: absolute; inset: 2px; z-index: -2; border-radius: var(--radius-
|
|
120
|
-
.segmented button:is(:hover, .is-hover):not(:disabled, [aria-pressed="true"]) { color: var(--text); }
|
|
121
|
-
.segmented button:is(:hover, .is-hover):not(:disabled, [aria-pressed="true"])::before { background: color-mix(in srgb, var(--control-thumb) 45%, transparent); }
|
|
122
|
-
/* The pressed label reads at 4.5:1 on its thumb, and an icon at 3:1 (--segmented-current-text). */
|
|
123
|
-
.segmented button[aria-pressed="true"] { color: var(--segmented-current-text); }
|
|
124
|
-
.segmented button[aria-pressed="true"]::before { z-index: -1; background: var(--control-thumb); box-shadow: var(--shadow-raise); }
|
|
121
|
+
.segmented button::before { content: ""; position: absolute; inset: 2px; z-index: -2; border-radius: var(--radius-control); pointer-events: none; }
|
|
122
|
+
.segmented button:is(:hover, .is-hover):not(:disabled, [aria-pressed="true"]) { color: var(--color-text); }
|
|
123
|
+
.segmented button:is(:hover, .is-hover):not(:disabled, [aria-pressed="true"])::before { background: color-mix(in srgb, var(--color-control-thumb) 45%, transparent); }
|
|
124
|
+
/* The pressed label reads at 4.5:1 on its thumb, and an icon at 3:1 (--color-segmented-current-text). */
|
|
125
|
+
.segmented button[aria-pressed="true"] { color: var(--color-segmented-current-text); }
|
|
126
|
+
.segmented button[aria-pressed="true"]::before { z-index: -1; background: var(--color-control-thumb); box-shadow: var(--shadow-raise); }
|
|
125
127
|
.segmented button:disabled { opacity: 0.58; cursor: not-allowed; }
|
|
126
128
|
/* Motion answers only the reader: hover, and a change of choice, which the script marks with data-slide and the old thumb's edges. */
|
|
127
129
|
@media (prefers-reduced-motion: no-preference) {
|
|
@@ -132,7 +134,7 @@
|
|
|
132
134
|
}
|
|
133
135
|
@keyframes glide-left { from { left: var(--slide-left); } }
|
|
134
136
|
@keyframes glide-right { from { right: var(--slide-right); } }
|
|
135
|
-
.filters .count { color: var(--
|
|
137
|
+
.filters .count { color: var(--color-muted); font-variant-numeric: tabular-nums; }
|
|
136
138
|
/* Layout only: on a narrow screen or at a large text size the status filter and the theme control
|
|
137
139
|
scroll inside their bar, and options keep their width with labels on one line. */
|
|
138
140
|
:is(.toolbar, .sidebar) .segmented { max-width: 100%; overflow-x: auto; white-space: nowrap; }
|
|
@@ -140,6 +142,7 @@
|
|
|
140
142
|
@media (forced-colors: active) {
|
|
141
143
|
/* The lifted fill drops, so the selected tab takes a system border; the padding absorbs it. */
|
|
142
144
|
.tab[aria-selected="true"] { border: 2px solid Highlight; padding: calc(var(--space-2) - 2px) calc(var(--space-3) - 2px); }
|
|
145
|
+
.tab[aria-selected="true"]::before { content: none; }
|
|
143
146
|
.segmented button[aria-pressed="true"] { forced-color-adjust: none; color: HighlightText; }
|
|
144
147
|
.segmented button[aria-pressed="true"]::before { forced-color-adjust: none; background: Highlight; }
|
|
145
148
|
/* The pressed option opts out of adjustment, so its ring would keep the accent. The ring sits on the track, so it takes the track's text colour. */
|
|
@@ -150,7 +153,7 @@
|
|
|
150
153
|
|
|
151
154
|
/* Unchecked choices for the Borders specimen: components.html#checkbox-and-radio, unchanged. */
|
|
152
155
|
.check { display: inline-flex; align-items: center; gap: 0.5625rem; min-height: var(--control-md); cursor: pointer; }
|
|
153
|
-
.check input { --depth: none; appearance: none; display: grid; place-items: center; flex: none; width: 18px; height: 18px; margin: 0; border: 1px solid var(--border); border-radius: var(--radius-
|
|
156
|
+
.check input { --depth: none; appearance: none; display: grid; place-items: center; flex: none; width: 18px; height: 18px; margin: 0; border: 1px solid var(--color-border); border-radius: var(--radius-inline); background: var(--color-surface-raised); cursor: inherit; }
|
|
154
157
|
.check input[type="radio"] { border-radius: 50%; }
|
|
155
158
|
|
|
156
159
|
/* Control focus is the base ring (tokens.css) and the .is-focus pin above.
|
|
@@ -159,130 +162,130 @@
|
|
|
159
162
|
|
|
160
163
|
/* List */
|
|
161
164
|
.list { display: grid; }
|
|
162
|
-
.list-group { font-size: var(--text-xs); color: var(--
|
|
163
|
-
.row { position: relative; display: grid; grid-template-columns: 16px 56px minmax(0, 1fr) 80px 120px 72px; align-items: center; gap: var(--space-3); min-height: var(--row); padding: 0 var(--space-3); border-radius: var(--radius-
|
|
165
|
+
.list-group { font-size: var(--text-xs); color: var(--color-muted); padding: var(--space-3) var(--space-3) var(--space-2); display: flex; gap: var(--space-2); }
|
|
166
|
+
.row { position: relative; display: grid; grid-template-columns: 16px 56px minmax(0, 1fr) 80px 120px 72px; align-items: center; gap: var(--space-3); min-height: var(--row); padding: 0 var(--space-3); border-radius: var(--radius-inline); color: var(--color-text); background: transparent; border: 0; font: inherit; font-size: var(--text-sm); text-align: left; cursor: pointer; width: 100%; transition: background var(--duration-fast) var(--ease-out); }
|
|
164
167
|
/* List selection: components.html#navigation-list. Dividers are straight lines inset by the row
|
|
165
168
|
padding; a filled row (hovered or selected) hides the divider above it and the one below it. */
|
|
166
|
-
.row + .row::before { content: ""; position: absolute; inset: 0 var(--space-3) auto; border-top: 1px solid var(--border-subtle); }
|
|
169
|
+
.row + .row::before { content: ""; position: absolute; inset: 0 var(--space-3) auto; border-top: 1px solid var(--color-border-subtle); }
|
|
167
170
|
.row:is(:hover, [aria-selected="true"])::before,
|
|
168
171
|
.row:is(:hover, [aria-selected="true"]) + .row::before { display: none; }
|
|
169
|
-
.row:hover { background: var(--row-hover); }
|
|
172
|
+
.row:hover { background: var(--color-row-hover); }
|
|
170
173
|
/* The selected row takes the navigation row's current recipe; it comes after hover, so hover keeps the fill. */
|
|
171
|
-
.row[aria-selected="true"] { background: var(--nav-current); box-shadow: var(--shadow-nav-current); font-weight: var(--weight-medium); }
|
|
172
|
-
.row[aria-selected="true"] .title { color: var(--nav-current-text); }
|
|
174
|
+
.row[aria-selected="true"] { background: var(--color-nav-current); box-shadow: var(--shadow-nav-current); font-weight: var(--weight-medium); }
|
|
175
|
+
.row[aria-selected="true"] .title { color: var(--color-nav-current-text); }
|
|
173
176
|
@media (forced-colors: active) { .row[aria-selected="true"] { border-inline-start: 2px solid Highlight; } }
|
|
174
|
-
.row .id { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--
|
|
177
|
+
.row .id { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-muted); }
|
|
175
178
|
.row .title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
176
|
-
.row .meta { display: flex; align-items: center; gap: var(--space-3); color: var(--
|
|
177
|
-
.st-alerting { color: var(--
|
|
178
|
-
.st-warning { color: var(--warning); }
|
|
179
|
-
.st-ok { color: var(--success); }
|
|
180
|
-
.st-nodata { color: var(--
|
|
181
|
-
.row .value { color: var(--text); font-size: var(--text-xs); text-align: right; white-space: nowrap; }
|
|
179
|
+
.row .meta { display: flex; align-items: center; gap: var(--space-3); color: var(--color-muted); font-size: var(--text-xs); white-space: nowrap; }
|
|
180
|
+
.st-alerting { color: var(--color-error); }
|
|
181
|
+
.st-warning { color: var(--color-warning); }
|
|
182
|
+
.st-ok { color: var(--color-success); }
|
|
183
|
+
.st-nodata { color: var(--color-muted); }
|
|
184
|
+
.row .value { color: var(--color-text); font-size: var(--text-xs); text-align: right; white-space: nowrap; }
|
|
182
185
|
.row .channel { overflow: hidden; text-overflow: ellipsis; }
|
|
183
186
|
|
|
184
187
|
/* Sparkline: one muted series; alerting series uses the status color. */
|
|
185
188
|
.spark { width: 80px; height: 20px; display: block; }
|
|
186
|
-
.spark path { fill: none; stroke: var(--
|
|
187
|
-
.spark path.hot { stroke: var(--
|
|
189
|
+
.spark path { fill: none; stroke: var(--color-muted); stroke-width: 1.25; stroke-linejoin: round; }
|
|
190
|
+
.spark path.hot { stroke: var(--color-error); }
|
|
188
191
|
|
|
189
192
|
/* Inline stats: a quiet row, not big-number tiles. */
|
|
190
|
-
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid var(--border-subtle); padding-bottom: var(--space-4); }
|
|
193
|
+
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid var(--color-border-subtle); padding-bottom: var(--space-4); }
|
|
191
194
|
.stats div { display: grid; gap: var(--space-1); padding: 0 var(--space-4); min-width: 0; }
|
|
192
195
|
.stats div:first-child { padding-left: var(--space-3); }
|
|
193
|
-
.stats div + div { border-left: 1px solid var(--border-subtle); }
|
|
194
|
-
.stats dt { font-size: var(--text-xs); color: var(--
|
|
196
|
+
.stats div + div { border-left: 1px solid var(--color-border-subtle); }
|
|
197
|
+
.stats dt { font-size: var(--text-xs); color: var(--color-muted); }
|
|
195
198
|
.stats dd { margin: 0; font-size: var(--text-lg); font-weight: var(--weight-medium); letter-spacing: var(--tracking-tight); }
|
|
196
199
|
/* The number stays muted text; the arrow shows direction and its color says better or worse. */
|
|
197
|
-
.delta { display: inline-flex; align-items: center; gap: 0.125rem; font-size: var(--text-xs); font-weight: var(--weight-regular); color: var(--
|
|
200
|
+
.delta { display: inline-flex; align-items: center; gap: 0.125rem; font-size: var(--text-xs); font-weight: var(--weight-regular); color: var(--color-muted); margin-left: var(--space-1); }
|
|
198
201
|
.delta .icon { width: 12px; height: 12px; }
|
|
199
|
-
.delta.better .icon { color: var(--success); }
|
|
200
|
-
.delta.worse .icon { color: var(--
|
|
202
|
+
.delta.better .icon { color: var(--color-success); }
|
|
203
|
+
.delta.worse .icon { color: var(--color-error); }
|
|
201
204
|
.stack { display: grid; gap: var(--space-4); min-width: 0; }
|
|
202
205
|
|
|
203
206
|
/* Time-series chart */
|
|
204
207
|
.chart-wrap { margin: 0; display: grid; gap: var(--space-2); }
|
|
205
208
|
.chart { width: 100%; height: auto; display: block; overflow: visible; }
|
|
206
|
-
.chart text { font: var(--text-xs) var(--font-mono); fill: var(--
|
|
207
|
-
.chart .grid { stroke: var(--border-subtle); stroke-width: 1; }
|
|
208
|
-
.chart .threshold { stroke: var(--
|
|
209
|
-
.chart .line { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; }
|
|
210
|
-
.chart .area { fill: color-mix(in srgb, var(--accent) 10%, transparent); stroke: none; }
|
|
209
|
+
.chart text { font: var(--text-xs) var(--font-mono); fill: var(--color-muted); }
|
|
210
|
+
.chart .grid { stroke: var(--color-border-subtle); stroke-width: 1; }
|
|
211
|
+
.chart .threshold { stroke: var(--color-error); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0.7; }
|
|
212
|
+
.chart .line { fill: none; stroke: var(--color-accent); stroke-width: 1.5; stroke-linejoin: round; }
|
|
213
|
+
.chart .area { fill: color-mix(in srgb, var(--color-accent) 10%, transparent); stroke: none; }
|
|
211
214
|
|
|
212
215
|
/* Badge: components.html#badge, unchanged. The same tone supplies a 22% tint, readable text, and a 6px dot. */
|
|
213
|
-
.badge { display: inline-flex; align-items: center; gap: 0.375rem; width: fit-content; padding: 0.1875rem 0.5625rem; border: 1px solid transparent; border-radius: var(--radius-pill); background: var(--surface-
|
|
214
|
-
.badge:is(.success, .warning, .danger, .info) { background: color-mix(in srgb, var(--tone) 22%, var(--surface-raised)); color: light-dark(color-mix(in srgb, var(--tone) 75%, var(--text)), color-mix(in srgb, var(--tone) 85%, var(--text))); }
|
|
216
|
+
.badge { display: inline-flex; align-items: center; gap: 0.375rem; width: fit-content; padding: 0.1875rem 0.5625rem; border: 1px solid transparent; border-radius: var(--radius-pill); background: var(--color-surface-muted); color: var(--color-muted); font: var(--weight-medium) var(--text-xs) / 1.25 var(--font-ui); white-space: nowrap; }
|
|
217
|
+
.badge:is(.success, .warning, .danger, .info) { background: color-mix(in srgb, var(--tone) 22%, var(--color-surface-raised)); color: light-dark(color-mix(in srgb, var(--tone) 75%, var(--color-text)), color-mix(in srgb, var(--tone) 85%, var(--color-text))); }
|
|
215
218
|
.badge:is(.success, .warning, .danger, .info)::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
|
|
216
|
-
.badge.success { --tone: var(--success); }
|
|
217
|
-
.badge.warning { --tone: var(--warning); }
|
|
218
|
-
.badge.danger { --tone: var(--
|
|
219
|
-
.badge.info { --tone: var(--info); }
|
|
219
|
+
.badge.success { --tone: var(--color-success); }
|
|
220
|
+
.badge.warning { --tone: var(--color-warning); }
|
|
221
|
+
.badge.danger { --tone: var(--color-error); }
|
|
222
|
+
.badge.info { --tone: var(--color-info); }
|
|
220
223
|
|
|
221
224
|
/* Panel */
|
|
222
|
-
.panel { background: var(--surface-raised); border: 1px solid transparent; box-shadow: var(--shadow-surface); border-radius: var(--radius-
|
|
225
|
+
.panel { background: var(--color-surface-raised); border: 1px solid transparent; box-shadow: var(--shadow-surface); border-radius: var(--radius-panel); min-width: 0; }
|
|
223
226
|
.detail { position: sticky; top: 4.5rem; display: grid; }
|
|
224
227
|
.detail > * { padding: var(--space-4); }
|
|
225
|
-
.detail > * + * { border-top: 1px solid var(--border-subtle); }
|
|
228
|
+
.detail > * + * { border-top: 1px solid var(--color-border-subtle); }
|
|
226
229
|
.detail h2 { font-size: var(--text-md); }
|
|
227
230
|
/* A code block inside a panel becomes a flush section, not a nested box. */
|
|
228
|
-
.detail > .code { padding: 0; border: 0; border-radius: 0; border-top: 1px solid var(--border-subtle); box-shadow: none; }
|
|
231
|
+
.detail > .code { padding: 0; border: 0; border-radius: 0; border-top: 1px solid var(--color-border-subtle); box-shadow: none; }
|
|
229
232
|
|
|
230
233
|
/* Properties */
|
|
231
234
|
.props { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--space-2) var(--space-4); font-size: var(--text-sm); margin: 0; }
|
|
232
|
-
.props dt { color: var(--
|
|
235
|
+
.props dt { color: var(--color-muted); }
|
|
233
236
|
.props dd { margin: 0; overflow-wrap: anywhere; }
|
|
234
237
|
.props .mono { font-family: var(--font-mono); font-size: var(--text-xs); }
|
|
235
238
|
|
|
236
239
|
/* Alert: components.html#alert, unchanged. */
|
|
237
|
-
.alert { display: flex; align-items: flex-start; gap: var(--space-3); max-width: var(--measure); padding: var(--space-3) var(--space-4); border: 1px solid transparent; border-radius: var(--radius-
|
|
238
|
-
.alert .icon { margin-top: 0.125rem; color: var(--
|
|
239
|
-
.alert.success { background: var(--success-
|
|
240
|
-
.alert.warning { background: var(--warning-
|
|
241
|
-
.alert.danger { background: var(--
|
|
242
|
-
.alert.info { background: var(--info-
|
|
240
|
+
.alert { display: flex; align-items: flex-start; gap: var(--space-3); max-width: var(--measure); padding: var(--space-3) var(--space-4); border: 1px solid transparent; border-radius: var(--radius-panel); background: var(--color-surface); color: var(--color-text); font-size: var(--text-sm); }
|
|
241
|
+
.alert .icon { margin-top: 0.125rem; color: var(--color-muted); }
|
|
242
|
+
.alert.success { background: var(--color-success-surface); } .alert.success .icon { color: var(--color-success); }
|
|
243
|
+
.alert.warning { background: var(--color-warning-surface); } .alert.warning .icon { color: var(--color-warning); }
|
|
244
|
+
.alert.danger { background: var(--color-error-surface); } .alert.danger .icon { color: var(--color-error); }
|
|
245
|
+
.alert.info { background: var(--color-info-surface); } .alert.info .icon { color: var(--color-info); }
|
|
243
246
|
|
|
244
247
|
/* Code block: components.html#code-block, unchanged. */
|
|
245
|
-
.code { width: 100%; max-width: var(--measure); min-width: 0; overflow: hidden; border: 1px solid transparent; border-radius: var(--radius-
|
|
246
|
-
.code-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); min-height: 2.5rem; padding: var(--space-1) var(--space-1) var(--space-1) var(--space-3); border-bottom: 1px solid var(--border-subtle); background: var(--surface-raised); font-size: var(--text-xs); }
|
|
248
|
+
.code { width: 100%; max-width: var(--measure); min-width: 0; overflow: hidden; border: 1px solid transparent; border-radius: var(--radius-panel); background: var(--color-code); color: var(--color-code-text); box-shadow: var(--shadow-surface); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
|
|
249
|
+
.code-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); min-height: 2.5rem; padding: var(--space-1) var(--space-1) var(--space-1) var(--space-3); border-bottom: 1px solid var(--color-border-subtle); background: var(--color-surface-raised); font-size: var(--text-xs); }
|
|
247
250
|
.code-head b { font-weight: var(--weight-semibold); }
|
|
248
|
-
.code-head .lang { color: var(--
|
|
251
|
+
.code-head .lang { color: var(--color-muted); }
|
|
249
252
|
/* Copy is a quiet action; this sets its size and place. */
|
|
250
253
|
.copy { display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem; min-width: var(--control-lg); min-height: var(--control-lg); margin-left: auto; padding: var(--space-1) 0.375rem; color: inherit; }
|
|
251
254
|
/* The code block has its own palette, so its Copy keeps the plate's text colour on hover. */
|
|
252
255
|
.code .copy:is(:hover, .is-hover) { color: inherit; }
|
|
253
256
|
/* Inset: the code block clips its content. */
|
|
254
|
-
.code pre:is(:focus-visible, .is-focus) { outline: var(--focus-width) solid var(--focus); outline-offset: calc(var(--focus-width) * -1); }
|
|
257
|
+
.code pre:is(:focus-visible, .is-focus) { outline: var(--focus-width) solid var(--color-focus); outline-offset: calc(var(--focus-width) * -1); }
|
|
255
258
|
.code .copy.quiet-action:is(:focus-visible, .is-focus) { outline-offset: calc(var(--focus-width) * -1); }
|
|
256
259
|
.code pre { margin: 0; padding: var(--space-4); overflow: auto; max-height: 32rem; font-size: var(--text-code); line-height: 1.65; tab-size: 2; }
|
|
257
260
|
/* Each line is a baseline-aligned row, so a prompt or line number sits on the text's baseline. */
|
|
258
261
|
.code .line { display: flex; align-items: baseline; min-height: 1.65em; }
|
|
259
262
|
.code .line > span { white-space: pre; }
|
|
260
|
-
.code .ln { min-width: 2.5em; padding-right: 1em; flex: none; text-align: right; color: var(--
|
|
261
|
-
.code .k { color: var(--
|
|
263
|
+
.code .ln { min-width: 2.5em; padding-right: 1em; flex: none; text-align: right; color: var(--color-muted); user-select: none; }
|
|
264
|
+
.code .k { color: var(--color-syntax-keyword); } .code .s { color: var(--color-syntax-string); } .code .n { color: var(--color-syntax-number); } .code .c { color: var(--color-syntax-comment); }
|
|
262
265
|
.code.compact { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
|
|
263
266
|
.code.compact pre { padding: var(--space-2) var(--space-3); }
|
|
264
267
|
.code.compact .copy { margin: var(--space-1); }
|
|
265
268
|
|
|
266
269
|
/* Command plate: components.html#command-plate, unchanged. */
|
|
267
270
|
/* The plate is dark in both themes, so its focus ring takes the dark-theme accent, which reaches 3:1 on it. */
|
|
268
|
-
.code.command { --code-text: var(--terminal-text); --focus: var(--project-dark); border-color: var(--command-border); background: var(--command-bg); color: var(--terminal-text); }
|
|
269
|
-
.code.command .code-head { border-color: var(--command-border); background: transparent; color: var(--terminal-caption-text); }
|
|
270
|
-
.code.command .code-head .lang { color: var(--terminal-caption-text); }
|
|
271
|
+
.code.command { --color-code-text: var(--color-terminal-text); --color-focus: var(--color-project-dark); border-color: var(--color-command-border); background: var(--color-command-bg); color: var(--color-terminal-text); }
|
|
272
|
+
.code.command .code-head { border-color: var(--color-command-border); background: transparent; color: var(--color-terminal-caption-text); }
|
|
273
|
+
.code.command .code-head .lang { color: var(--color-terminal-caption-text); }
|
|
271
274
|
/* The prompt is drawn by CSS, so copied and spoken text omit it. */
|
|
272
|
-
.code.command .line::before { content: "$ " / ""; flex: none; white-space: pre; color: var(--project-dark); user-select: none; }
|
|
275
|
+
.code.command .line::before { content: "$ " / ""; flex: none; white-space: pre; color: var(--color-project-dark); user-select: none; }
|
|
273
276
|
|
|
274
277
|
/* Table */
|
|
275
278
|
.table-wrap { overflow-x: auto; }
|
|
276
279
|
table { border-collapse: collapse; width: 100%; font-size: var(--text-sm); }
|
|
277
|
-
th { text-align: left; font-weight: var(--weight-medium); color: var(--
|
|
278
|
-
td { padding: var(--space-2) var(--space-4) var(--space-2) 0; border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
|
|
280
|
+
th { text-align: left; font-weight: var(--weight-medium); color: var(--color-muted); font-size: var(--text-xs); padding: var(--space-2) var(--space-4) var(--space-2) 0; border-bottom: 1px solid var(--color-border-subtle); }
|
|
281
|
+
td { padding: var(--space-2) var(--space-4) var(--space-2) 0; border-bottom: 1px solid var(--color-border-subtle); vertical-align: top; }
|
|
279
282
|
tr:last-child td { border-bottom: 0; }
|
|
280
283
|
td.num, th.num { text-align: right; }
|
|
281
284
|
td code { font-size: var(--text-xs); }
|
|
282
285
|
|
|
283
286
|
/* Details */
|
|
284
|
-
details.disclosure { border-top: 1px solid var(--border-subtle); padding-top: var(--space-3); max-width: var(--measure); }
|
|
285
|
-
details.disclosure summary { cursor: pointer; color: var(--
|
|
287
|
+
details.disclosure { border-top: 1px solid var(--color-border-subtle); padding-top: var(--space-3); max-width: var(--measure); }
|
|
288
|
+
details.disclosure summary { cursor: pointer; color: var(--color-muted); font-size: var(--text-sm); list-style: none; display: flex; gap: var(--space-2); align-items: center; }
|
|
286
289
|
details.disclosure summary::-webkit-details-marker { display: none; }
|
|
287
290
|
details.disclosure summary .icon { transition: transform var(--duration-fast) var(--ease-out); }
|
|
288
291
|
details.disclosure[open] summary .icon { transform: rotate(90deg); }
|
|
@@ -293,36 +296,36 @@
|
|
|
293
296
|
.defs { display: grid; gap: var(--space-3); align-content: start; }
|
|
294
297
|
/* Card grid: 2–4 parallel, self-contained items. Raised panel surface, same inner order. */
|
|
295
298
|
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
|
|
296
|
-
.card { background: var(--surface-raised); border: 1px solid transparent; box-shadow: var(--shadow-surface); border-radius: var(--radius-
|
|
299
|
+
.card { background: var(--color-surface-raised); border: 1px solid transparent; box-shadow: var(--shadow-surface); border-radius: var(--radius-panel); padding: var(--space-4); min-width: 0; }
|
|
297
300
|
/* Content row stretches so rule lines align along the bottom of each row. */
|
|
298
301
|
.defs.card { grid-template-rows: auto 1fr auto; }
|
|
299
302
|
.defs dl { align-content: start; }
|
|
300
303
|
.defs h3 { display: flex; gap: var(--space-2); align-items: baseline; font-size: var(--text-md); }
|
|
301
|
-
.defs h3 code { font-size: var(--text-xs); color: var(--
|
|
304
|
+
.defs h3 code { font-size: var(--text-xs); color: var(--color-muted); font-weight: var(--weight-regular); }
|
|
302
305
|
.defs dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--space-2) var(--space-4); margin: 0; font-size: var(--text-sm); }
|
|
303
306
|
.defs dt { font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1.25rem; }
|
|
304
|
-
.defs dd { margin: 0; color: var(--
|
|
305
|
-
.rule { line-height: 1.375rem; padding-top: var(--space-2); border-top: 1px solid var(--border-subtle); font-size: var(--text-xs); color: var(--
|
|
306
|
-
.gate { display: inline-block; margin-right: var(--space-1); font-family: var(--font-mono); color: var(--text); background: var(--surface-
|
|
307
|
+
.defs dd { margin: 0; color: var(--color-muted); }
|
|
308
|
+
.rule { line-height: 1.375rem; padding-top: var(--space-2); border-top: 1px solid var(--color-border-subtle); font-size: var(--text-xs); color: var(--color-muted); }
|
|
309
|
+
.gate { display: inline-block; margin-right: var(--space-1); font-family: var(--font-mono); color: var(--color-text); background: var(--color-surface-muted); padding: 0 0.375rem; border-radius: var(--radius-inline); line-height: 1.125rem; }
|
|
307
310
|
|
|
308
311
|
/* Empty state */
|
|
309
|
-
.empty { display: grid; justify-items: center; gap: var(--space-3); padding: var(--space-12) var(--space-4); text-align: center; color: var(--
|
|
312
|
+
.empty { display: grid; justify-items: center; gap: var(--space-3); padding: var(--space-12) var(--space-4); text-align: center; color: var(--color-muted); font-size: var(--text-sm); }
|
|
310
313
|
|
|
311
314
|
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
|
|
312
315
|
|
|
313
316
|
/* Foundations catalogue. Specimens set their style from tokens; the script prints resolved values. */
|
|
314
317
|
.jump { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); font-size: var(--text-sm); }
|
|
315
|
-
.foundation { display: grid; gap: var(--space-4); padding-top: var(--space-8); border-top: 1px solid var(--border-subtle); scroll-margin-top: var(--space-4); }
|
|
318
|
+
.foundation { display: grid; gap: var(--space-4); padding-top: var(--space-8); border-top: 1px solid var(--color-border-subtle); scroll-margin-top: var(--space-4); }
|
|
316
319
|
.foundation h3 { font-size: var(--text-lg); }
|
|
317
|
-
.foundation h4 { font-size: var(--text-sm); color: var(--
|
|
318
|
-
.note { color: var(--
|
|
320
|
+
.foundation h4 { font-size: var(--text-sm); color: var(--color-muted); font-weight: var(--weight-medium); letter-spacing: 0; margin-top: var(--space-2); }
|
|
321
|
+
.note { color: var(--color-muted); font-size: var(--text-sm); max-width: var(--measure); }
|
|
319
322
|
.specs { display: grid; margin: 0; padding: 0; list-style: none; }
|
|
320
|
-
.spec { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-2) var(--space-6); align-items: center; padding: var(--space-3) 0; border-bottom: 1px solid var(--border-subtle); }
|
|
323
|
+
.spec { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-2) var(--space-6); align-items: center; padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border-subtle); }
|
|
321
324
|
.spec:last-child { border-bottom: 0; }
|
|
322
325
|
.spec-meta { display: grid; gap: 0.125rem; font-size: var(--text-xs); min-width: 0; }
|
|
323
|
-
.spec-meta code { font-size: var(--text-xs); color: var(--text); }
|
|
324
|
-
.value { font-family: var(--font-mono); color: var(--
|
|
325
|
-
.use { color: var(--
|
|
326
|
+
.spec-meta code { font-size: var(--text-xs); color: var(--color-text); }
|
|
327
|
+
.value { font-family: var(--font-mono); color: var(--color-muted); overflow-wrap: anywhere; }
|
|
328
|
+
.use { color: var(--color-muted); }
|
|
326
329
|
.spec-sample { min-width: 0; overflow-wrap: anywhere; }
|
|
327
330
|
.t-display, .t-doc-title, .t-section { font-family: var(--font-mono); font-weight: var(--weight-semibold); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); }
|
|
328
331
|
.t-display { font-size: var(--text-display); }
|
|
@@ -330,40 +333,40 @@
|
|
|
330
333
|
/* Application titles are sans, as the toolbar title is. */
|
|
331
334
|
.t-app-title { font-size: var(--text-2xl); font-weight: var(--weight-semibold); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); }
|
|
332
335
|
/* The ## mark is decorative: the empty alt text after the slash keeps screen readers from reading it. */
|
|
333
|
-
.t-section { font-size: var(--text-xl); padding-top: var(--space-4); border-top: 1px solid var(--border-subtle); }
|
|
334
|
-
.t-section::before { content: "## " / ""; color: var(--accent); }
|
|
336
|
+
.t-section { font-size: var(--text-xl); padding-top: var(--space-4); border-top: 1px solid var(--color-border-subtle); }
|
|
337
|
+
.t-section::before { content: "## " / ""; color: var(--color-accent); }
|
|
335
338
|
.t-sub { font-size: var(--text-lg); font-weight: var(--weight-semibold); line-height: var(--leading-tight); }
|
|
336
339
|
.t-reading { font-size: var(--text-reading); line-height: var(--leading); max-width: var(--measure); }
|
|
337
|
-
.t-secondary { font-size: var(--text-sm); color: var(--
|
|
340
|
+
.t-secondary { font-size: var(--text-sm); color: var(--color-muted); }
|
|
338
341
|
.t-code { font-size: var(--text-code); }
|
|
339
342
|
|
|
340
343
|
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-3) var(--space-6); margin: 0; padding: 0; list-style: none; }
|
|
341
344
|
/* The chip spans every row; the last flexible row takes its extra height so text lines stay packed. */
|
|
342
345
|
.swatch { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: repeat(4, min-content) 1fr; gap: 0.125rem var(--space-3); align-items: start; font-size: var(--text-xs); }
|
|
343
346
|
.swatch > :not(.chip) { grid-column: 2; }
|
|
344
|
-
.swatch code { color: var(--text); }
|
|
345
|
-
.chip { grid-row: 1 / -1; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border-subtle); border-radius: var(--radius-
|
|
346
|
-
.chip b { width: 16px; height: 16px; border-radius: var(--radius-
|
|
347
|
-
.ratio { color: var(--
|
|
348
|
-
|
|
349
|
-
.bar { display: block; height: 12px; background: var(--accent); border-radius: var(--radius-
|
|
350
|
-
.height-bar { display: block; width: 48px; border: 1px solid var(--border); border-radius: var(--radius-
|
|
351
|
-
.shape-box { display: block; width: 96px; height: 56px; border: 1px solid var(--border); background: var(--surface-raised); }
|
|
352
|
-
.line-subtle { display: block; height: 0; border-top: 1px solid var(--border-subtle); }
|
|
353
|
-
.line-border { display: block; height: 0; border-top: 1px solid var(--border); }
|
|
347
|
+
.swatch code { color: var(--color-text); }
|
|
348
|
+
.chip { grid-row: 1 / -1; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-control); font: var(--weight-semibold) var(--text-md) / 1 var(--font-ui); font-style: normal; }
|
|
349
|
+
.chip b { width: 16px; height: 16px; border-radius: var(--radius-inline); background: currentColor; }
|
|
350
|
+
.ratio { color: var(--color-muted); }
|
|
351
|
+
|
|
352
|
+
.bar { display: block; height: 12px; background: var(--color-accent); border-radius: var(--radius-inline); }
|
|
353
|
+
.height-bar { display: block; width: 48px; border: 1px solid var(--color-border); border-radius: var(--radius-control); background: var(--color-surface-raised); }
|
|
354
|
+
.shape-box { display: block; width: 96px; height: 56px; border: 1px solid var(--color-border); background: var(--color-surface-raised); }
|
|
355
|
+
.line-subtle { display: block; height: 0; border-top: 1px solid var(--color-border-subtle); }
|
|
356
|
+
.line-border { display: block; height: 0; border-top: 1px solid var(--color-border); }
|
|
354
357
|
/* The pip and current-row samples take their state from the navigation row rules above. */
|
|
355
358
|
.pip-sample { position: relative; display: inline-flex; align-items: center; min-height: var(--row); padding: 0 var(--space-3); font-size: var(--text-sm); }
|
|
356
|
-
.nav-current-sample { display: inline-flex; align-items: center; min-height: var(--row); padding: 0 var(--space-3); border-radius: var(--radius-
|
|
357
|
-
.header-rule { display: block; height: 0; border-top: 1px solid var(--text); }
|
|
358
|
-
.elevation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); padding: var(--space-6); border-radius: var(--radius-
|
|
359
|
-
.elevation > div { display: grid; gap: var(--space-1); padding: var(--space-4); border-radius: var(--radius-
|
|
360
|
-
.elevation .floating { border: 1px solid transparent; box-shadow: var(--shadow-
|
|
359
|
+
.nav-current-sample { display: inline-flex; align-items: center; min-height: var(--row); padding: 0 var(--space-3); border-radius: var(--radius-inline); font-size: var(--text-sm); }
|
|
360
|
+
.header-rule { display: block; height: 0; border-top: 1px solid var(--color-text); }
|
|
361
|
+
.elevation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); padding: var(--space-6); border-radius: var(--radius-panel); background: var(--color-bg); }
|
|
362
|
+
.elevation > div { display: grid; gap: var(--space-1); padding: var(--space-4); border-radius: var(--radius-panel); background: var(--color-surface-raised); font-size: var(--text-sm); }
|
|
363
|
+
.elevation .floating { border: 1px solid transparent; box-shadow: var(--shadow-dialog); }
|
|
361
364
|
.elevation > .btn { justify-self: start; }
|
|
362
365
|
.elevation .panel-sample { border: 1px solid transparent; box-shadow: var(--shadow-surface); }
|
|
363
|
-
.elevation .well-sample { border: 1px solid transparent; background: var(--
|
|
364
|
-
.elevation .field-sample { border: 1px solid var(--field-edge); border-radius: var(--radius-field); background: var(--field-bg); box-shadow: var(--field
|
|
365
|
-
.elevation .focus-sample { border-color: var(--accent); box-shadow: var(--field-
|
|
366
|
-
.elevation .focus-invalid-sample { border-color: var(--
|
|
366
|
+
.elevation .well-sample { border: 1px solid transparent; background: var(--color-well); box-shadow: var(--shadow-sink); }
|
|
367
|
+
.elevation .field-sample { border: 1px solid var(--color-field-edge); border-radius: var(--radius-field); background: var(--color-field-bg); box-shadow: var(--shadow-field); }
|
|
368
|
+
.elevation .focus-sample { border-color: var(--color-accent); box-shadow: var(--shadow-field-focus); }
|
|
369
|
+
.elevation .focus-invalid-sample { border-color: var(--color-error); box-shadow: var(--shadow-field-focus-invalid); }
|
|
367
370
|
|
|
368
371
|
|
|
369
372
|
.mobile-only { display: none; }
|
|
@@ -379,7 +382,7 @@
|
|
|
379
382
|
.search { height: var(--control-lg); }
|
|
380
383
|
.shell { grid-template-columns: minmax(0, 1fr); height: auto; }
|
|
381
384
|
main { overflow: visible; }
|
|
382
|
-
.sidebar { flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; border-bottom: 1px solid var(--border-subtle); padding: var(--space-2) var(--space-6); gap: var(--space-2); }
|
|
385
|
+
.sidebar { flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; border-bottom: 1px solid var(--color-border-subtle); padding: var(--space-2) var(--space-6); gap: var(--space-2); }
|
|
383
386
|
/* Both navigation lists become native scrolling strips below the workspace and theme rows, as the
|
|
384
387
|
catalogue's contents do (components.html#navigation-list, horizontal strip). */
|
|
385
388
|
.sidebar-foot { display: contents; }
|
|
@@ -427,7 +430,7 @@
|
|
|
427
430
|
<aside class="sidebar" aria-label="Workspace">
|
|
428
431
|
<div class="workspace"><span class="mark" aria-hidden="true">A</span>Analytics</div>
|
|
429
432
|
<nav class="navlist" aria-label="Main"><span class="group-label">Workspace</span>
|
|
430
|
-
<a href="
|
|
433
|
+
<a href="reference.html" aria-current="page"><svg class="icon"><use href="#i-list"/></svg>Monitors<span class="count">6</span></a>
|
|
431
434
|
<a href="components.html"><svg class="icon"><use href="#i-chart"/></svg>Components</a>
|
|
432
435
|
<a href="#foundations"><svg class="icon"><use href="#i-doc"/></svg>Foundations</a>
|
|
433
436
|
</nav>
|
|
@@ -498,7 +501,7 @@
|
|
|
498
501
|
<h4>Families</h4>
|
|
499
502
|
<ul class="specs">
|
|
500
503
|
<li class="spec" data-token="--font-mono"><div class="spec-meta"><code>--font-mono</code><span class="value"></span><span class="use">Identity, documentation and product page titles and section headings, navigation rails, metadata, captions, code, identifiers, and keys</span></div><p class="spec-sample" style="font-family:var(--font-mono);font-size:var(--text-xl)">~/filip-stack 0123456789</p></li>
|
|
501
|
-
<li class="spec" data-token="--font-
|
|
504
|
+
<li class="spec" data-token="--font-ui"><div class="spec-meta"><code>--font-ui</code><span class="value"></span><span class="use">Prose, h3 and below, application section headings, labels, and controls</span></div><p class="spec-sample" style="font-family:var(--font-ui);font-size:var(--text-xl)">Quiet surfaces, clear hierarchy</p></li>
|
|
502
505
|
</ul>
|
|
503
506
|
|
|
504
507
|
<h4>Size scale</h4>
|
|
@@ -529,15 +532,15 @@
|
|
|
529
532
|
<h4>Roles</h4>
|
|
530
533
|
<ul class="specs">
|
|
531
534
|
<li class="spec"><div class="spec-meta"><span>Documentation title</span><code>--font-mono --text-3xl</code></div><p class="spec-sample t-doc-title">Design language</p></li>
|
|
532
|
-
<li class="spec"><div class="spec-meta"><span>Section heading</span><code>--font-mono --text-xl</code><span class="use">Documentation, CLI tool, article, and product pages: a <code>##</code> mark in <code>--accent</code> and a <code>--border-subtle</code> rule above</span></div><p class="spec-sample t-section">Typography</p></li>
|
|
533
|
-
<li class="spec"><div class="spec-meta"><span>Application title</span><code>--font-
|
|
534
|
-
<li class="spec"><div class="spec-meta"><span>Application section heading</span><code>--font-
|
|
535
|
-
<li class="spec"><div class="spec-meta"><span>Subheading (h3 and below)</span><code>--font-
|
|
535
|
+
<li class="spec"><div class="spec-meta"><span>Section heading</span><code>--font-mono --text-xl</code><span class="use">Documentation, CLI tool, article, and product pages: a <code>##</code> mark in <code>--color-accent</code> and a <code>--color-border-subtle</code> rule above</span></div><p class="spec-sample t-section">Typography</p></li>
|
|
536
|
+
<li class="spec"><div class="spec-meta"><span>Application title</span><code>--font-ui --text-2xl</code><span class="use">Or smaller; the toolbar title on this page uses <code>--text-md</code></span></div><p class="spec-sample t-app-title">Monitors</p></li>
|
|
537
|
+
<li class="spec"><div class="spec-meta"><span>Application section heading</span><code>--font-ui --text-lg</code><span class="use">Up to <code>--text-xl</code>, or smaller in a dense panel. No mark and no rule</span></div><p class="spec-sample t-sub">Alerting monitors</p></li>
|
|
538
|
+
<li class="spec"><div class="spec-meta"><span>Subheading (h3 and below)</span><code>--font-ui --text-lg</code></div><p class="spec-sample t-sub">Install the command line tool</p></li>
|
|
536
539
|
<li class="spec"><div class="spec-meta"><span>Reading text and links</span><code>--text-reading --leading --measure</code><span class="use">Underline links in prose</span></div><p class="spec-sample t-reading">A shared language for personal products and tools. The <a href="docs.html">documentation example</a> shows it in a full page.</p></li>
|
|
537
|
-
<li class="spec"><div class="spec-meta"><span>Secondary text</span><code>--text-sm --
|
|
540
|
+
<li class="spec"><div class="spec-meta"><span>Secondary text</span><code>--text-sm --color-muted</code></div><p class="spec-sample t-secondary">Updated 4 minutes ago by the nightly sync.</p></li>
|
|
538
541
|
<li class="spec"><div class="spec-meta"><span>Inline code</span><code>--font-mono --text-code</code></div><p class="spec-sample">Set <code class="t-code">--measure</code> on reading text.</p></li>
|
|
539
|
-
<li class="spec"><div class="spec-meta"><span>Shell command</span><code>--command-bg --project-dark</code><span class="use">A command plate tinted with the hue, with the <code>$</code> prompt drawn by CSS</span></div><div class="code command compact spec-sample"><pre tabindex="0" role="region" aria-label="Sample install command"><code><span class="line"><span>pnpm install --frozen-lockfile</span></span></code></pre></div></li>
|
|
540
|
-
<li class="spec"><div class="spec-meta"><span>Source code</span><code>--code
|
|
542
|
+
<li class="spec"><div class="spec-meta"><span>Shell command</span><code>--color-command-bg --color-project-dark</code><span class="use">A command plate tinted with the hue, with the <code>$</code> prompt drawn by CSS</span></div><div class="code command compact spec-sample"><pre tabindex="0" role="region" aria-label="Sample install command"><code><span class="line"><span>pnpm install --frozen-lockfile</span></span></code></pre></div></li>
|
|
543
|
+
<li class="spec"><div class="spec-meta"><span>Source code</span><code>--color-code --color-syntax-*</code><span class="use">A theme-matched well with syntax colors and no prompt</span></div><div class="code spec-sample"><pre tabindex="0" role="region" aria-label="Sample monitor"><code><span class="line"><span><span class="c">// Sample monitor</span></span></span><span class="line"><span>{</span></span><span class="line"><span> <span class="k">"metric"</span>: <span class="s">"latency_p95"</span>,</span></span><span class="line"><span> <span class="k">"threshold"</span>: <span class="n">300</span></span></span><span class="line"><span>}</span></span></code></pre></div></li>
|
|
541
544
|
</ul>
|
|
542
545
|
</section>
|
|
543
546
|
|
|
@@ -547,73 +550,73 @@
|
|
|
547
550
|
|
|
548
551
|
<h4>Surfaces</h4>
|
|
549
552
|
<ul class="swatches">
|
|
550
|
-
<li class="swatch" data-token="--bg"><i class="chip" aria-hidden="true"></i><code>--bg</code><span class="value"></span><span class="use">Page canvas</span></li>
|
|
551
|
-
<li class="swatch" data-token="--surface"><i class="chip" aria-hidden="true"></i><code>--surface</code><span class="value"></span><span class="use">Wells: code, screenshots, figures</span></li>
|
|
552
|
-
<li class="swatch" data-token="--surface-raised"><i class="chip" aria-hidden="true"></i><code>--surface-raised</code><span class="value"></span><span class="use">Panels and floating layers</span></li>
|
|
553
|
-
<li class="swatch" data-token="--surface-
|
|
554
|
-
<li class="swatch" data-token="--
|
|
555
|
-
<li class="swatch" data-token="--field-bg"><i class="chip" aria-hidden="true"></i><code>--field-bg</code><span class="value"></span><span class="use">Field fill: <code>--surface-raised</code> in light, the sunk <code>--
|
|
556
|
-
<li class="swatch" data-token="--field-edge"><i class="chip" aria-hidden="true"></i><code>--field-edge</code><span class="value"></span><span class="use">Field border at rest: <code>--border-subtle</code> in both themes. Focus turns it <code>--accent</code></span></li>
|
|
557
|
-
<li class="swatch" data-token="--control-thumb"><i class="chip" aria-hidden="true"></i><code>--control-thumb</code><span class="value"></span><span class="use">Secondary buttons and segmented thumbs</span></li>
|
|
558
|
-
<li class="swatch" data-token="--nav-current"><i class="chip" aria-hidden="true"></i><code>--nav-current</code><span class="value"></span><span class="use">Current navigation row and selected tab, with <code>--shadow-nav-current</code></span></li>
|
|
559
|
-
<li class="swatch" data-token="--nav-current-text"><i class="chip" aria-hidden="true"></i><code>--nav-current-text</code><span class="value"></span><span class="use">Text on the current row and selected tab: the first of <code>--accent</code>, <code>--text</code>, black, and white that reaches 4.5:1 on the tinted fill</span></li>
|
|
560
|
-
<li class="swatch" data-token="--segmented-current-text"><i class="chip" aria-hidden="true"></i><code>--segmented-current-text</code><span class="value"></span><span class="use">The selected segmented label: the first of <code>--accent</code>, <code>--text</code>, black, and white that reaches 4.5:1 on the thumb (3:1 for an icon)</span></li>
|
|
561
|
-
<li class="swatch" data-token="--row-hover"><i class="chip" aria-hidden="true"></i><code>--row-hover</code><span class="value"></span><span class="use">Hover on navigation rows, tabs, ghost buttons, and listbox options</span></li>
|
|
562
|
-
<li class="swatch" data-token="--row-selected"><i class="chip" aria-hidden="true"></i><code>--row-selected</code><span class="value"></span><span class="use">Checked option in a select picker</span></li>
|
|
563
|
-
<li class="swatch" data-token="--overlay"><i class="chip" aria-hidden="true"></i><code>--overlay</code><span class="value"></span><span class="use">Backdrop behind dialogs and drawers</span></li>
|
|
553
|
+
<li class="swatch" data-token="--color-bg"><i class="chip" aria-hidden="true"></i><code>--color-bg</code><span class="value"></span><span class="use">Page canvas</span></li>
|
|
554
|
+
<li class="swatch" data-token="--color-surface"><i class="chip" aria-hidden="true"></i><code>--color-surface</code><span class="value"></span><span class="use">Wells: code, screenshots, figures</span></li>
|
|
555
|
+
<li class="swatch" data-token="--color-surface-raised"><i class="chip" aria-hidden="true"></i><code>--color-surface-raised</code><span class="value"></span><span class="use">Panels and floating layers</span></li>
|
|
556
|
+
<li class="swatch" data-token="--color-surface-muted"><i class="chip" aria-hidden="true"></i><code>--color-surface-muted</code><span class="value"></span><span class="use">Neutral badges, slider and progress tracks, and radio card hover</span></li>
|
|
557
|
+
<li class="swatch" data-token="--color-well"><i class="chip" aria-hidden="true"></i><code>--color-well</code><span class="value"></span><span class="use">The well: segmented and switch tracks, pressed buttons, selected radio cards, and disabled fields</span></li>
|
|
558
|
+
<li class="swatch" data-token="--color-field-bg"><i class="chip" aria-hidden="true"></i><code>--color-field-bg</code><span class="value"></span><span class="use">Field fill: <code>--color-surface-raised</code> in light, the sunk <code>--color-well</code> well in dark. It stays the same on focus</span></li>
|
|
559
|
+
<li class="swatch" data-token="--color-field-edge"><i class="chip" aria-hidden="true"></i><code>--color-field-edge</code><span class="value"></span><span class="use">Field border at rest: <code>--color-border-subtle</code> in both themes. Focus turns it <code>--color-accent</code></span></li>
|
|
560
|
+
<li class="swatch" data-token="--color-control-thumb"><i class="chip" aria-hidden="true"></i><code>--color-control-thumb</code><span class="value"></span><span class="use">Secondary buttons and segmented thumbs</span></li>
|
|
561
|
+
<li class="swatch" data-token="--color-nav-current"><i class="chip" aria-hidden="true"></i><code>--color-nav-current</code><span class="value"></span><span class="use">Current navigation row and selected tab, with <code>--shadow-nav-current</code></span></li>
|
|
562
|
+
<li class="swatch" data-token="--color-nav-current-text"><i class="chip" aria-hidden="true"></i><code>--color-nav-current-text</code><span class="value"></span><span class="use">Text on the current row and selected tab: the first of <code>--color-accent</code>, <code>--color-text</code>, black, and white that reaches 4.5:1 on the tinted fill</span></li>
|
|
563
|
+
<li class="swatch" data-token="--color-segmented-current-text"><i class="chip" aria-hidden="true"></i><code>--color-segmented-current-text</code><span class="value"></span><span class="use">The selected segmented label: the first of <code>--color-accent</code>, <code>--color-text</code>, black, and white that reaches 4.5:1 on the thumb (3:1 for an icon)</span></li>
|
|
564
|
+
<li class="swatch" data-token="--color-row-hover"><i class="chip" aria-hidden="true"></i><code>--color-row-hover</code><span class="value"></span><span class="use">Hover on navigation rows, tabs, ghost buttons, and listbox options</span></li>
|
|
565
|
+
<li class="swatch" data-token="--color-row-selected"><i class="chip" aria-hidden="true"></i><code>--color-row-selected</code><span class="value"></span><span class="use">Checked option in a select picker</span></li>
|
|
566
|
+
<li class="swatch" data-token="--color-overlay"><i class="chip" aria-hidden="true"></i><code>--color-overlay</code><span class="value"></span><span class="use">Backdrop behind dialogs and drawers</span></li>
|
|
564
567
|
</ul>
|
|
565
568
|
|
|
566
569
|
<h4>Text and lines</h4>
|
|
567
570
|
<ul class="swatches">
|
|
568
|
-
<li class="swatch" data-token="--text" data-on="--bg --surface-raised" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--text</code><span class="value"></span><span class="ratio"></span><span class="use">Essential labels and instructions</span></li>
|
|
569
|
-
<li class="swatch" data-token="--
|
|
570
|
-
<li class="swatch" data-token="--border-subtle"><i class="chip" aria-hidden="true"></i><code>--border-subtle</code><span class="value"></span><span class="use">Figures and dividers</span></li>
|
|
571
|
-
<li class="swatch" data-token="--border" data-on="--bg --surface-
|
|
571
|
+
<li class="swatch" data-token="--color-text" data-on="--color-bg --color-surface-raised" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-text</code><span class="value"></span><span class="ratio"></span><span class="use">Essential labels and instructions</span></li>
|
|
572
|
+
<li class="swatch" data-token="--color-muted" data-on="--color-bg --color-surface" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-muted</code><span class="value"></span><span class="ratio"></span><span class="use">Secondary information and metadata</span></li>
|
|
573
|
+
<li class="swatch" data-token="--color-border-subtle"><i class="chip" aria-hidden="true"></i><code>--color-border-subtle</code><span class="value"></span><span class="use">Figures and dividers</span></li>
|
|
574
|
+
<li class="swatch" data-token="--color-border" data-on="--color-bg --color-surface-muted" data-min="3"><i class="chip" aria-hidden="true"></i><code>--color-border</code><span class="value"></span><span class="ratio"></span><span class="use">Unchecked checkbox and radio edges; the off switch track mixes it into <code>--color-well</code></span></li>
|
|
572
575
|
</ul>
|
|
573
576
|
|
|
574
577
|
<h4>Identity, links, and focus</h4>
|
|
575
578
|
<ul class="swatches">
|
|
576
|
-
<li class="swatch" data-token="--project" data-on="--bg" data-min="3"><i class="chip" aria-hidden="true"></i><code>--project</code><span class="value"></span><span class="ratio"></span><span class="use">The project hue; <code>--accent</code> follows it</span></li>
|
|
577
|
-
<li class="swatch" data-token="--project-dark" data-on="--terminal" data-min="3"><i class="chip" aria-hidden="true"></i><code>--project-dark</code><span class="value"></span><span class="ratio"></span><span class="use">The hue on the terminal plate</span></li>
|
|
578
|
-
<li class="swatch" data-token="--accent" data-on="--bg --surface-raised" data-min="3"><i class="chip" aria-hidden="true"></i><code>--accent</code><span class="value"></span><span class="ratio"></span><span class="use">Primary action fill, marks, current items, checked controls; 4.5:1 where it colors text</span></li>
|
|
579
|
-
<li class="swatch" data-token="--accent-text" data-on="--accent --button-hover" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--accent-text</code><span class="value"></span><span class="ratio"></span><span class="use">Primary button label</span></li>
|
|
580
|
-
<li class="swatch" data-token="--button-hover" data-fg="var(--accent-text)" data-on="--button-hover" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--button-hover</code><span class="value"></span><span class="ratio"></span><span class="use">Primary button hover</span></li>
|
|
581
|
-
<li class="swatch" data-token="--accent-hover"><i class="chip" aria-hidden="true"></i><code>--accent-hover</code><span class="value"></span><span class="use">No core component reads it; it mirrors <code>--color-accent-hover</code> in <code>@filipgutica/ui</code></span></li>
|
|
582
|
-
<li class="swatch" data-token="--link" data-on="--bg --surface-raised" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--link</code><span class="value"></span><span class="ratio"></span><span class="use">Links</span></li>
|
|
583
|
-
<li class="swatch" data-token="--focus" data-on="--bg --surface --surface-raised" data-min="3"><i class="chip" aria-hidden="true"></i><code>--focus</code><span class="value"></span><span class="ratio"></span><span class="use">The one focus ring on every role but fields: the accent</span></li>
|
|
579
|
+
<li class="swatch" data-token="--color-project" data-on="--color-bg" data-min="3"><i class="chip" aria-hidden="true"></i><code>--color-project</code><span class="value"></span><span class="ratio"></span><span class="use">The project hue; <code>--color-accent</code> follows it</span></li>
|
|
580
|
+
<li class="swatch" data-token="--color-project-dark" data-on="--color-terminal" data-min="3"><i class="chip" aria-hidden="true"></i><code>--color-project-dark</code><span class="value"></span><span class="ratio"></span><span class="use">The hue on the terminal plate</span></li>
|
|
581
|
+
<li class="swatch" data-token="--color-accent" data-on="--color-bg --color-surface-raised" data-min="3"><i class="chip" aria-hidden="true"></i><code>--color-accent</code><span class="value"></span><span class="ratio"></span><span class="use">Primary action fill, marks, current items, checked controls; 4.5:1 where it colors text</span></li>
|
|
582
|
+
<li class="swatch" data-token="--color-accent-text" data-on="--color-accent --color-button-hover" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-accent-text</code><span class="value"></span><span class="ratio"></span><span class="use">Primary button label</span></li>
|
|
583
|
+
<li class="swatch" data-token="--color-button-hover" data-fg="var(--color-accent-text)" data-on="--color-button-hover" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-button-hover</code><span class="value"></span><span class="ratio"></span><span class="use">Primary button hover</span></li>
|
|
584
|
+
<li class="swatch" data-token="--color-accent-hover"><i class="chip" aria-hidden="true"></i><code>--color-accent-hover</code><span class="value"></span><span class="use">No core component reads it; it mirrors <code>--color-accent-hover</code> in <code>@filipgutica/ui</code></span></li>
|
|
585
|
+
<li class="swatch" data-token="--color-link" data-on="--color-bg --color-surface-raised" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-link</code><span class="value"></span><span class="ratio"></span><span class="use">Links</span></li>
|
|
586
|
+
<li class="swatch" data-token="--color-focus" data-on="--color-bg --color-surface --color-surface-raised" data-min="3"><i class="chip" aria-hidden="true"></i><code>--color-focus</code><span class="value"></span><span class="ratio"></span><span class="use">The one focus ring on every role but fields: the accent</span></li>
|
|
584
587
|
</ul>
|
|
585
588
|
|
|
586
589
|
<h4>Status</h4>
|
|
587
590
|
<p class="note">Status colors mean state and go on icons beside a text label. Alerts use the soft-tint tokens. Badges mix 22% tone over the raised surface and 75% tone with text in light, 85% in dark.</p>
|
|
588
591
|
<div class="cluster"><span class="badge success">Healthy</span><span class="badge warning">Warning</span><span class="badge danger">Alerting</span><span class="badge info">Running</span><span class="badge">No data</span></div>
|
|
589
592
|
<ul class="swatches">
|
|
590
|
-
<li class="swatch" data-token="--success" data-on="--bg" data-min="3"><i class="chip" aria-hidden="true"></i><code>--success</code><span class="value"></span><span class="ratio"></span></li>
|
|
591
|
-
<li class="swatch" data-token="--success-
|
|
592
|
-
<li class="swatch" data-token="--warning" data-on="--bg" data-min="3"><i class="chip" aria-hidden="true"></i><code>--warning</code><span class="value"></span><span class="ratio"></span></li>
|
|
593
|
-
<li class="swatch" data-token="--warning-
|
|
594
|
-
<li class="swatch" data-token="--
|
|
595
|
-
<li class="swatch" data-token="--
|
|
596
|
-
<li class="swatch" data-token="--info" data-on="--bg" data-min="3"><i class="chip" aria-hidden="true"></i><code>--info</code><span class="value"></span><span class="ratio"></span></li>
|
|
597
|
-
<li class="swatch" data-token="--info-
|
|
593
|
+
<li class="swatch" data-token="--color-success" data-on="--color-bg" data-min="3"><i class="chip" aria-hidden="true"></i><code>--color-success</code><span class="value"></span><span class="ratio"></span></li>
|
|
594
|
+
<li class="swatch" data-token="--color-success-surface" data-fg="var(--color-text)" data-on="--color-success-surface" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-success-surface</code><span class="value"></span><span class="ratio"></span><span class="use">Alert text on its tint</span></li>
|
|
595
|
+
<li class="swatch" data-token="--color-warning" data-on="--color-bg" data-min="3"><i class="chip" aria-hidden="true"></i><code>--color-warning</code><span class="value"></span><span class="ratio"></span></li>
|
|
596
|
+
<li class="swatch" data-token="--color-warning-surface" data-fg="var(--color-text)" data-on="--color-warning-surface" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-warning-surface</code><span class="value"></span><span class="ratio"></span><span class="use">Alert text on its tint</span></li>
|
|
597
|
+
<li class="swatch" data-token="--color-error" data-on="--color-bg" data-min="3"><i class="chip" aria-hidden="true"></i><code>--color-error</code><span class="value"></span><span class="ratio"></span></li>
|
|
598
|
+
<li class="swatch" data-token="--color-error-surface" data-fg="var(--color-text)" data-on="--color-error-surface" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-error-surface</code><span class="value"></span><span class="ratio"></span><span class="use">Alert text on its tint</span></li>
|
|
599
|
+
<li class="swatch" data-token="--color-info" data-on="--color-bg" data-min="3"><i class="chip" aria-hidden="true"></i><code>--color-info</code><span class="value"></span><span class="ratio"></span></li>
|
|
600
|
+
<li class="swatch" data-token="--color-info-surface" data-fg="var(--color-text)" data-on="--color-info-surface" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-info-surface</code><span class="value"></span><span class="ratio"></span><span class="use">Alert text on its tint</span></li>
|
|
598
601
|
</ul>
|
|
599
602
|
|
|
600
603
|
<h4>Code and terminal</h4>
|
|
601
604
|
<ul class="swatches">
|
|
602
|
-
<li class="swatch" data-token="--code
|
|
603
|
-
<li class="swatch" data-token="--code-text" data-on="--code
|
|
604
|
-
<li class="swatch" data-token="--
|
|
605
|
-
<li class="swatch" data-token="--
|
|
606
|
-
<li class="swatch" data-token="--
|
|
607
|
-
<li class="swatch" data-token="--
|
|
608
|
-
<li class="swatch" data-token="--command-bg"><i class="chip" aria-hidden="true"></i><code>--command-bg</code><span class="value"></span><span class="use">Command plate, tinted with the hue, in both themes</span></li>
|
|
609
|
-
<li class="swatch" data-token="--command-border"><i class="chip" aria-hidden="true"></i><code>--command-border</code><span class="value"></span><span class="use">Command plate edge; transparent in light</span></li>
|
|
610
|
-
<li class="swatch" data-token="--terminal-text" data-fg="var(--terminal-text)" data-on="--command-bg" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--terminal-text</code><span class="value"></span><span class="ratio"></span><span class="use">Command text</span></li>
|
|
611
|
-
<li class="swatch" data-token="--project-dark" data-fg="var(--project-dark)" data-on="--command-bg" data-min="3"><i class="chip" aria-hidden="true"></i><code>--project-dark</code><span class="value"></span><span class="ratio"></span><span class="use">The <code>$</code> prompt on the command plate</span></li>
|
|
612
|
-
<li class="swatch" data-token="--terminal"><i class="chip" aria-hidden="true"></i><code>--terminal</code><span class="value"></span><span class="use">Terminal capture plate, in both themes</span></li>
|
|
613
|
-
<li class="swatch" data-token="--terminal-text" data-on="--terminal" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--terminal-text</code><span class="value"></span><span class="ratio"></span></li>
|
|
614
|
-
<li class="swatch" data-token="--terminal-border"><i class="chip" aria-hidden="true"></i><code>--terminal-border</code><span class="value"></span><span class="use">Terminal plate edge</span></li>
|
|
615
|
-
<li class="swatch" data-token="--terminal-caption"><i class="chip" aria-hidden="true"></i><code>--terminal-caption</code><span class="value"></span><span class="use">Status-line caption under a terminal capture</span></li>
|
|
616
|
-
<li class="swatch" data-token="--terminal-caption-text" data-on="--terminal-caption" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--terminal-caption-text</code><span class="value"></span><span class="ratio"></span></li>
|
|
605
|
+
<li class="swatch" data-token="--color-code"><i class="chip" aria-hidden="true"></i><code>--color-code</code><span class="value"></span><span class="use">Source code well</span></li>
|
|
606
|
+
<li class="swatch" data-token="--color-code-text" data-on="--color-code" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-code-text</code><span class="value"></span><span class="ratio"></span></li>
|
|
607
|
+
<li class="swatch" data-token="--color-syntax-keyword" data-on="--color-code" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-syntax-keyword</code><span class="value"></span><span class="ratio"></span></li>
|
|
608
|
+
<li class="swatch" data-token="--color-syntax-string" data-on="--color-code" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-syntax-string</code><span class="value"></span><span class="ratio"></span></li>
|
|
609
|
+
<li class="swatch" data-token="--color-syntax-number" data-on="--color-code" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-syntax-number</code><span class="value"></span><span class="ratio"></span></li>
|
|
610
|
+
<li class="swatch" data-token="--color-syntax-comment" data-on="--color-code" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-syntax-comment</code><span class="value"></span><span class="ratio"></span></li>
|
|
611
|
+
<li class="swatch" data-token="--color-command-bg"><i class="chip" aria-hidden="true"></i><code>--color-command-bg</code><span class="value"></span><span class="use">Command plate, tinted with the hue, in both themes</span></li>
|
|
612
|
+
<li class="swatch" data-token="--color-command-border"><i class="chip" aria-hidden="true"></i><code>--color-command-border</code><span class="value"></span><span class="use">Command plate edge; transparent in light</span></li>
|
|
613
|
+
<li class="swatch" data-token="--color-terminal-text" data-fg="var(--color-terminal-text)" data-on="--color-command-bg" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-terminal-text</code><span class="value"></span><span class="ratio"></span><span class="use">Command text</span></li>
|
|
614
|
+
<li class="swatch" data-token="--color-project-dark" data-fg="var(--color-project-dark)" data-on="--color-command-bg" data-min="3"><i class="chip" aria-hidden="true"></i><code>--color-project-dark</code><span class="value"></span><span class="ratio"></span><span class="use">The <code>$</code> prompt on the command plate</span></li>
|
|
615
|
+
<li class="swatch" data-token="--color-terminal"><i class="chip" aria-hidden="true"></i><code>--color-terminal</code><span class="value"></span><span class="use">Terminal capture plate, in both themes</span></li>
|
|
616
|
+
<li class="swatch" data-token="--color-terminal-text" data-on="--color-terminal" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-terminal-text</code><span class="value"></span><span class="ratio"></span></li>
|
|
617
|
+
<li class="swatch" data-token="--color-terminal-border"><i class="chip" aria-hidden="true"></i><code>--color-terminal-border</code><span class="value"></span><span class="use">Terminal plate edge</span></li>
|
|
618
|
+
<li class="swatch" data-token="--color-terminal-caption"><i class="chip" aria-hidden="true"></i><code>--color-terminal-caption</code><span class="value"></span><span class="use">Status-line caption under a terminal capture</span></li>
|
|
619
|
+
<li class="swatch" data-token="--color-terminal-caption-text" data-on="--color-terminal-caption" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-terminal-caption-text</code><span class="value"></span><span class="ratio"></span></li>
|
|
617
620
|
</ul>
|
|
618
621
|
</section>
|
|
619
622
|
|
|
@@ -655,10 +658,10 @@
|
|
|
655
658
|
<h3 id="shape-title">Shape</h3>
|
|
656
659
|
<p class="note">Pill buttons, rounded fields and toggle cards, large-radius panels, and inline corners. Cards never take a pill.</p>
|
|
657
660
|
<ul class="specs">
|
|
658
|
-
<li class="spec" data-token="--radius-
|
|
659
|
-
<li class="spec" data-token="--radius-field"><div class="spec-meta"><code>--radius-field</code><span class="value"></span><span class="use">Inputs, selects, textareas,
|
|
660
|
-
<li class="spec" data-token="--radius-
|
|
661
|
-
<li class="spec" data-token="--radius-
|
|
661
|
+
<li class="spec" data-token="--radius-inline"><div class="spec-meta"><code>--radius-inline</code><span class="value"></span><span class="use">Inline elements, checkboxes, navigation rows, list-selection rows, and tabs</span></div><i class="shape-box" style="border-radius:var(--radius-inline)"></i></li>
|
|
662
|
+
<li class="spec" data-token="--radius-field"><div class="spec-meta"><code>--radius-field</code><span class="value"></span><span class="use">Inputs, selects, textareas, toggle cards, and pager links</span></div><i class="shape-box" style="border-radius:var(--radius-field)"></i></li>
|
|
663
|
+
<li class="spec" data-token="--radius-control"><div class="spec-meta"><code>--radius-control</code><span class="value"></span><span class="use">Buttons, quiet actions, segmented controls, and their thumbs</span></div><i class="shape-box" style="border-radius:var(--radius-control)"></i></li>
|
|
664
|
+
<li class="spec" data-token="--radius-panel"><div class="spec-meta"><code>--radius-panel</code><span class="value"></span><span class="use">Wells, plates, panels, radio cards, alerts, and floating layers</span></div><i class="shape-box" style="border-radius:var(--radius-panel)"></i></li>
|
|
662
665
|
<li class="spec" data-token="--radius-pill"><div class="spec-meta"><code>--radius-pill</code><span class="value"></span><span class="use">Status badges and switch tracks</span></div><i class="shape-box" style="border-radius:var(--radius-pill)"></i></li>
|
|
663
666
|
</ul>
|
|
664
667
|
</section>
|
|
@@ -667,11 +670,11 @@
|
|
|
667
670
|
<h3 id="borders-title">Borders and dividers</h3>
|
|
668
671
|
<p class="note">Borders are 1px; bars that mark the current item are 2px. Neither width has a token.</p>
|
|
669
672
|
<ul class="specs">
|
|
670
|
-
<li class="spec"><div class="spec-meta"><code>1px --border-subtle</code><span class="use">Figures, dividers, and the rule above a section heading</span></div><i class="line-subtle"></i></li>
|
|
671
|
-
<li class="spec"><div class="spec-meta"><code>1px --border</code><span class="use">Unchecked checkbox and radio edges</span></div><div class="cluster" inert><label class="check"><input type="checkbox">Unchecked</label><label class="check"><input type="radio" name="border-radio">Radio</label></div></li>
|
|
672
|
-
<li class="spec"><div class="spec-meta"><code>1px --text</code><span class="use">Solid rule below the shared site header</span></div><i class="header-rule"></i></li>
|
|
673
|
-
<li class="spec"><div class="spec-meta"><code>--nav-current, --shadow-nav-current</code><span class="use">Current page, selected tab, and selected list row: a lifted fill with a faint accent tint, <code>--nav-current-text</code>, and no border or underline</span></div><div inert><div class="tablist" role="tablist" aria-label="Selected tab sample"><button class="tab" type="button" role="tab" aria-selected="true">Overview</button><button class="tab" type="button" role="tab" aria-selected="false">Settings</button></div></div></li>
|
|
674
|
-
<li class="spec"><div class="spec-meta"><code>3×14 --accent pip</code><span class="use">Current location in
|
|
673
|
+
<li class="spec"><div class="spec-meta"><code>1px --color-border-subtle</code><span class="use">Figures, dividers, and the rule above a section heading</span></div><i class="line-subtle"></i></li>
|
|
674
|
+
<li class="spec"><div class="spec-meta"><code>1px --color-border</code><span class="use">Unchecked checkbox and radio edges</span></div><div class="cluster" inert><label class="check"><input type="checkbox">Unchecked</label><label class="check"><input type="radio" name="border-radio">Radio</label></div></li>
|
|
675
|
+
<li class="spec"><div class="spec-meta"><code>1px --color-text</code><span class="use">Solid rule below the shared site header</span></div><i class="header-rule"></i></li>
|
|
676
|
+
<li class="spec"><div class="spec-meta"><code>--color-nav-current, --shadow-nav-current</code><span class="use">Current page, a section rail's current section, selected tab, and selected list row: a lifted fill with a faint accent tint, <code>--color-nav-current-text</code>, and no border or underline</span></div><div inert><div class="tablist" role="tablist" aria-label="Selected tab sample"><button class="tab" type="button" role="tab" aria-selected="true">Overview</button><button class="tab" type="button" role="tab" aria-selected="false">Settings</button></div></div></li>
|
|
677
|
+
<li class="spec"><div class="spec-meta"><code>3×14 --color-accent pip</code><span class="use">Current location in a strip or contents list, with medium weight and no fill</span></div><span class="pip-sample">Thresholds</span></li>
|
|
675
678
|
<li class="spec"><div class="spec-meta"><code>1px transparent</code><span class="use">Borderless controls retain a border for forced colors; pressed segmented thumbs raise without a ring</span></div><div inert><div class="segmented" role="group" aria-label="Raised thumb sample"><button type="button" aria-pressed="true">List</button><button type="button" aria-pressed="false">Board</button></div></div></li>
|
|
676
679
|
<li class="spec"><div class="spec-meta"><code>tint without a visible border</code><span class="use">Alerts keep a transparent 1px border for forced colors</span></div><div class="alert warning"><svg class="icon" aria-hidden="true"><use href="#i-alert"/></svg><p>No data for 42 minutes.</p></div></li>
|
|
677
680
|
</ul>
|
|
@@ -683,22 +686,22 @@
|
|
|
683
686
|
<ul class="specs">
|
|
684
687
|
<li class="spec" data-token="--shadow-raise"><div class="spec-meta"><code>--shadow-raise</code><span class="value"></span><span class="use">Idle controls: buttons, unselected radio cards, switch knobs, and segmented thumbs</span></div><div class="elevation"><button type="button" class="btn secondary">Button</button></div></li>
|
|
685
688
|
<li class="spec" data-token="--shadow-surface"><div class="spec-meta"><code>--shadow-surface</code><span class="value"></span><span class="use">Containers: panels, cards, source code, command plates, and terminal captures</span></div><div class="elevation"><div class="panel-sample"><strong>Panel</strong><span class="muted">Raised surface, transparent border</span></div></div></li>
|
|
686
|
-
<li class="spec" data-token="--shadow-sink"><div class="spec-meta"><code>--shadow-sink</code><span class="value"></span><span class="use">Wells: tracks, pressed buttons, selected radio cards, and dark fields</span></div><div class="elevation"><div class="well-sample"><strong>Well</strong><span class="muted">--
|
|
687
|
-
<li class="spec" data-token="--field
|
|
688
|
-
<li class="spec" data-token="--field-
|
|
689
|
-
<li class="spec" data-token="--field-
|
|
689
|
+
<li class="spec" data-token="--shadow-sink"><div class="spec-meta"><code>--shadow-sink</code><span class="value"></span><span class="use">Wells: tracks, pressed buttons, selected radio cards, and dark fields</span></div><div class="elevation"><div class="well-sample"><strong>Well</strong><span class="muted">--color-well</span></div></div></li>
|
|
690
|
+
<li class="spec" data-token="--shadow-field"><div class="spec-meta"><code>--shadow-field</code><span class="value"></span><span class="use">Fields at rest: none in light, where the white fill and edge carry the shape; <code>--shadow-sink</code> in dark. Disabled fields drop it</span></div><div class="elevation"><div class="field-sample"><strong>Field</strong><span class="muted">--color-field-bg</span></div></div></li>
|
|
691
|
+
<li class="spec" data-token="--shadow-field-focus"><div class="spec-meta"><code>--shadow-field-focus</code><span class="value"></span><span class="use">A focused field's 2px inset line: the accent at 18%, inside its <code>--color-accent</code> edge</span></div><div class="elevation"><div class="field-sample focus-sample"><strong>Focused field</strong><span class="muted">--color-accent edge</span></div></div></li>
|
|
692
|
+
<li class="spec" data-token="--shadow-field-focus-invalid"><div class="spec-meta"><code>--shadow-field-focus-invalid</code><span class="value"></span><span class="use">A focused invalid field's inset line: <code>--color-error</code> at 18%, inside its <code>--color-error</code> edge</span></div><div class="elevation"><div class="field-sample focus-invalid-sample"><strong>Focused invalid field</strong><span class="muted">--color-error edge</span></div></div></li>
|
|
690
693
|
<li class="spec" data-token="--shadow-nav-current"><div class="spec-meta"><code>--shadow-nav-current</code><span class="value"></span><span class="use">The lift under the current navigation row and the selected tab</span></div><div class="elevation"><span class="nav-current-sample">Monitors</span></div></li>
|
|
691
|
-
<li class="spec" data-token="--shadow-
|
|
692
|
-
<li class="spec" data-token="--
|
|
694
|
+
<li class="spec" data-token="--shadow-dialog"><div class="spec-meta"><code>--shadow-dialog</code><span class="value"></span><span class="use">Menus, popovers, pickers, and dialogs</span></div><div class="elevation"><div class="floating"><strong>Floating layer</strong><span class="muted">Raised surface, dialog shadow</span></div></div></li>
|
|
695
|
+
<li class="spec" data-token="--shadow-nav-current-dark"><div class="spec-meta"><code>--shadow-nav-current-dark</code><span class="value"></span><span class="use">The selected tab's lift in a terminal capture header, which stays dark in both appearances</span></div></li>
|
|
693
696
|
</ul>
|
|
694
697
|
</section>
|
|
695
698
|
|
|
696
699
|
<section class="foundation" id="focus-motion" aria-labelledby="focus-motion-title">
|
|
697
700
|
<h3 id="focus-motion-title">Focus and motion</h3>
|
|
698
701
|
<ul class="specs">
|
|
699
|
-
<li class="spec" data-token="--focus-width"><div class="spec-meta"><code>--focus-width solid --focus</code><span class="value"></span><span class="use">One ring for every role but fields: buttons, quiet actions, links, tabs, and navigation rows. <code>--focus</code> is the accent, at 3:1 or more on every surface. It has no glow and sits over the control's own raise or sink shadow. Pointer hover never draws focus.</span></div><div inert><button class="btn secondary is-focus" type="button" data-size="sm">Focused</button></div></li>
|
|
702
|
+
<li class="spec" data-token="--focus-width"><div class="spec-meta"><code>--focus-width solid --color-focus</code><span class="value"></span><span class="use">One ring for every role but fields: buttons, quiet actions, links, tabs, and navigation rows. <code>--color-focus</code> is the accent, at 3:1 or more on every surface. It has no glow and sits over the control's own raise or sink shadow. Pointer hover never draws focus.</span></div><div inert><button class="btn secondary is-focus" type="button" data-size="sm">Focused</button></div></li>
|
|
700
703
|
<li class="spec" data-token="--focus-offset"><div class="spec-meta"><code>--focus-offset</code><span class="value"></span><span class="use">The gap between a control and its ring</span></div></li>
|
|
701
|
-
<li class="spec"><div class="spec-meta"><code>1px --accent edge, 2px inset line</code><span class="use">Fields draw no ring. Focus turns the edge <code>--accent</code> with a 2px line of the accent at 18% inside it; the fill stays. An invalid field keeps its <code>--
|
|
704
|
+
<li class="spec"><div class="spec-meta"><code>1px --color-accent edge, 2px inset line</code><span class="use">Fields draw no ring. Focus turns the edge <code>--color-accent</code> with a 2px line of the accent at 18% inside it; the fill stays. An invalid field keeps its <code>--color-error</code> edge and line. In forced colors a <code>Highlight</code> outline replaces the line.</span></div><div inert><label class="search is-focus"><svg class="icon" aria-hidden="true"><use href="#i-search"/></svg><input type="search" value="latency" aria-label="Focused field sample"></label></div></li>
|
|
702
705
|
<li class="spec"><div class="spec-meta"><code>offset -(--focus-width)</code><span class="use">Only inside a scrolling or clipping parent, or a segmented control, with a comment that names the reason</span></div><div inert><div class="tablist" role="tablist" aria-label="Inset focus sample"><button class="tab is-focus" type="button" role="tab" aria-selected="true">Overview</button><button class="tab" type="button" role="tab" aria-selected="false">Settings</button></div></div></li>
|
|
703
706
|
<li class="spec" data-token="--duration-fast"><div class="spec-meta"><code>--duration-fast</code><span class="value"></span></div><span class="use">Hover and press</span></li>
|
|
704
707
|
<li class="spec" data-token="--duration"><div class="spec-meta"><code>--duration</code><span class="value"></span></div><span class="use">Menus, panels, and the switch knob</span></li>
|
|
@@ -956,14 +959,12 @@
|
|
|
956
959
|
// Foundations: resolved token values and contrast.
|
|
957
960
|
const foundations = document.getElementById('foundations');
|
|
958
961
|
|
|
959
|
-
// Main navigation: Monitors
|
|
960
|
-
// Foundations is a location in this page, so it takes the location pip
|
|
961
|
-
const monitorsLink = document.querySelector('.navlist a[href="#monitors"]');
|
|
962
|
+
// Main navigation: Monitors links to this page, so it stays the current page (aria-current="page").
|
|
963
|
+
// Foundations is a location in this page, so it takes the location pip while the reader is there.
|
|
962
964
|
const foundationsLink = document.querySelector('.navlist a[href="#foundations"]');
|
|
963
965
|
const markLocation = () => {
|
|
964
966
|
const target = document.getElementById(location.hash.slice(1));
|
|
965
967
|
const inFoundations = Boolean(target && foundations.contains(target));
|
|
966
|
-
if (inFoundations) monitorsLink.removeAttribute('aria-current'); else monitorsLink.setAttribute('aria-current', 'page');
|
|
967
968
|
if (inFoundations) foundationsLink.setAttribute('aria-current', 'location'); else foundationsLink.removeAttribute('aria-current');
|
|
968
969
|
};
|
|
969
970
|
addEventListener('hashchange', markLocation);
|