@filipgutica/design-system 1.0.0 → 2.0.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 +20 -8
- package/dist/class/base.css +188 -0
- package/dist/class/themes/graphite-indigo.css +133 -0
- package/dist/themes/graphite-indigo.css +9 -0
- package/dist/tokens.d.ts +117 -0
- package/dist/tokens.js +222 -0
- package/dist/tokens.json +218 -0
- package/fonts/OFL-IBM-Plex-Mono.txt +93 -0
- package/fonts/OFL-IBM-Plex-Sans.txt +93 -0
- package/fonts/fonts.css +55 -0
- package/fonts/ibm-plex-mono-latin-400-normal.woff2 +0 -0
- package/fonts/ibm-plex-mono-latin-500-normal.woff2 +0 -0
- package/fonts/ibm-plex-mono-latin-600-normal.woff2 +0 -0
- package/fonts/ibm-plex-sans-latin-400-normal.woff2 +0 -0
- package/fonts/ibm-plex-sans-latin-500-normal.woff2 +0 -0
- package/fonts/ibm-plex-sans-latin-600-normal.woff2 +0 -0
- package/language/DESIGN.md +29 -29
- package/language/components.html +189 -189
- package/language/components.md +55 -55
- package/language/decisions.md +96 -18
- package/language/docs.html +20 -20
- package/language/product.html +22 -22
- package/language/reference.html +213 -213
- package/language/tokens.css +142 -143
- package/language/visualizations/build-count-report.mjs +4 -2
- package/language/visualizations/report.css +2 -2
- package/package.json +33 -6
- package/scripts/build-tokens.mjs +0 -236
- package/tokens/graphite-indigo.json +0 -298
- /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-field); color: var(--
|
|
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-field); 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,78 @@
|
|
|
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
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-field); background: transparent; color: var(--
|
|
103
|
-
.tab:is(:hover, .is-hover) { background: var(--row-hover); color: var(--text); }
|
|
102
|
+
.tab { flex: none; min-height: var(--control-md); padding: var(--space-2) var(--space-3); border: 0; border-radius: var(--radius-field); 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), box-shadow var(--duration-fast) var(--ease-out); }
|
|
103
|
+
.tab:is(:hover, .is-hover) { background: var(--color-row-hover); color: var(--color-text); }
|
|
104
104
|
/* The selected tab takes the navigation row's lifted fill and motion: one selected state for both. */
|
|
105
|
-
.tab[aria-selected="true"] { background: var(--nav-current); box-shadow: var(--shadow-nav-current); color: var(--nav-current-text); }
|
|
105
|
+
.tab[aria-selected="true"] { background: var(--color-nav-current); box-shadow: var(--shadow-nav-current); color: var(--color-nav-current-text); }
|
|
106
106
|
/* 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); }
|
|
107
|
+
.tab:is(:focus-visible, .is-focus) { outline: var(--focus-width) solid var(--color-focus); outline-offset: calc(var(--focus-width) * -1); }
|
|
108
108
|
|
|
109
109
|
/* Segmented control: components.html#segmented-control, unchanged. The theme picker and the
|
|
110
110
|
monitor filters use it. */
|
|
111
111
|
/* 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-
|
|
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-control); background: var(--color-well); box-shadow: var(--shadow-sink); isolation: isolate; }
|
|
113
113
|
/* The fill alone marks the track. The transparent border keeps its size, and forced colors draw it. */
|
|
114
114
|
.segmented[data-size="sm"] { --item: var(--control-sm); font-size: var(--text-sm); }
|
|
115
115
|
.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-
|
|
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-control); background: transparent; color: var(--color-muted); font: inherit; cursor: pointer; }
|
|
117
117
|
.segmented[data-icon-only] button { width: var(--item); padding: 0; }
|
|
118
118
|
/* 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); }
|
|
119
|
+
.segmented button::before { content: ""; position: absolute; inset: 2px; z-index: -2; border-radius: var(--radius-control); pointer-events: none; }
|
|
120
|
+
.segmented button:is(:hover, .is-hover):not(:disabled, [aria-pressed="true"]) { color: var(--color-text); }
|
|
121
|
+
.segmented button:is(:hover, .is-hover):not(:disabled, [aria-pressed="true"])::before { background: color-mix(in srgb, var(--color-control-thumb) 45%, transparent); }
|
|
122
|
+
/* The pressed label reads at 4.5:1 on its thumb, and an icon at 3:1 (--color-segmented-current-text). */
|
|
123
|
+
.segmented button[aria-pressed="true"] { color: var(--color-segmented-current-text); }
|
|
124
|
+
.segmented button[aria-pressed="true"]::before { z-index: -1; background: var(--color-control-thumb); box-shadow: var(--shadow-raise); }
|
|
125
125
|
.segmented button:disabled { opacity: 0.58; cursor: not-allowed; }
|
|
126
126
|
/* 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
127
|
@media (prefers-reduced-motion: no-preference) {
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
}
|
|
133
133
|
@keyframes glide-left { from { left: var(--slide-left); } }
|
|
134
134
|
@keyframes glide-right { from { right: var(--slide-right); } }
|
|
135
|
-
.filters .count { color: var(--
|
|
135
|
+
.filters .count { color: var(--color-muted); font-variant-numeric: tabular-nums; }
|
|
136
136
|
/* Layout only: on a narrow screen or at a large text size the status filter and the theme control
|
|
137
137
|
scroll inside their bar, and options keep their width with labels on one line. */
|
|
138
138
|
:is(.toolbar, .sidebar) .segmented { max-width: 100%; overflow-x: auto; white-space: nowrap; }
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
|
|
151
151
|
/* Unchecked choices for the Borders specimen: components.html#checkbox-and-radio, unchanged. */
|
|
152
152
|
.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-
|
|
153
|
+
.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
154
|
.check input[type="radio"] { border-radius: 50%; }
|
|
155
155
|
|
|
156
156
|
/* Control focus is the base ring (tokens.css) and the .is-focus pin above.
|
|
@@ -159,130 +159,130 @@
|
|
|
159
159
|
|
|
160
160
|
/* List */
|
|
161
161
|
.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-
|
|
162
|
+
.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); }
|
|
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-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
164
|
/* List selection: components.html#navigation-list. Dividers are straight lines inset by the row
|
|
165
165
|
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); }
|
|
166
|
+
.row + .row::before { content: ""; position: absolute; inset: 0 var(--space-3) auto; border-top: 1px solid var(--color-border-subtle); }
|
|
167
167
|
.row:is(:hover, [aria-selected="true"])::before,
|
|
168
168
|
.row:is(:hover, [aria-selected="true"]) + .row::before { display: none; }
|
|
169
|
-
.row:hover { background: var(--row-hover); }
|
|
169
|
+
.row:hover { background: var(--color-row-hover); }
|
|
170
170
|
/* 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); }
|
|
171
|
+
.row[aria-selected="true"] { background: var(--color-nav-current); box-shadow: var(--shadow-nav-current); font-weight: var(--weight-medium); }
|
|
172
|
+
.row[aria-selected="true"] .title { color: var(--color-nav-current-text); }
|
|
173
173
|
@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(--
|
|
174
|
+
.row .id { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-muted); }
|
|
175
175
|
.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; }
|
|
176
|
+
.row .meta { display: flex; align-items: center; gap: var(--space-3); color: var(--color-muted); font-size: var(--text-xs); white-space: nowrap; }
|
|
177
|
+
.st-alerting { color: var(--color-error); }
|
|
178
|
+
.st-warning { color: var(--color-warning); }
|
|
179
|
+
.st-ok { color: var(--color-success); }
|
|
180
|
+
.st-nodata { color: var(--color-muted); }
|
|
181
|
+
.row .value { color: var(--color-text); font-size: var(--text-xs); text-align: right; white-space: nowrap; }
|
|
182
182
|
.row .channel { overflow: hidden; text-overflow: ellipsis; }
|
|
183
183
|
|
|
184
184
|
/* Sparkline: one muted series; alerting series uses the status color. */
|
|
185
185
|
.spark { width: 80px; height: 20px; display: block; }
|
|
186
|
-
.spark path { fill: none; stroke: var(--
|
|
187
|
-
.spark path.hot { stroke: var(--
|
|
186
|
+
.spark path { fill: none; stroke: var(--color-muted); stroke-width: 1.25; stroke-linejoin: round; }
|
|
187
|
+
.spark path.hot { stroke: var(--color-error); }
|
|
188
188
|
|
|
189
189
|
/* 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); }
|
|
190
|
+
.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
191
|
.stats div { display: grid; gap: var(--space-1); padding: 0 var(--space-4); min-width: 0; }
|
|
192
192
|
.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(--
|
|
193
|
+
.stats div + div { border-left: 1px solid var(--color-border-subtle); }
|
|
194
|
+
.stats dt { font-size: var(--text-xs); color: var(--color-muted); }
|
|
195
195
|
.stats dd { margin: 0; font-size: var(--text-lg); font-weight: var(--weight-medium); letter-spacing: var(--tracking-tight); }
|
|
196
196
|
/* 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(--
|
|
197
|
+
.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
198
|
.delta .icon { width: 12px; height: 12px; }
|
|
199
|
-
.delta.better .icon { color: var(--success); }
|
|
200
|
-
.delta.worse .icon { color: var(--
|
|
199
|
+
.delta.better .icon { color: var(--color-success); }
|
|
200
|
+
.delta.worse .icon { color: var(--color-error); }
|
|
201
201
|
.stack { display: grid; gap: var(--space-4); min-width: 0; }
|
|
202
202
|
|
|
203
203
|
/* Time-series chart */
|
|
204
204
|
.chart-wrap { margin: 0; display: grid; gap: var(--space-2); }
|
|
205
205
|
.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; }
|
|
206
|
+
.chart text { font: var(--text-xs) var(--font-mono); fill: var(--color-muted); }
|
|
207
|
+
.chart .grid { stroke: var(--color-border-subtle); stroke-width: 1; }
|
|
208
|
+
.chart .threshold { stroke: var(--color-error); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0.7; }
|
|
209
|
+
.chart .line { fill: none; stroke: var(--color-accent); stroke-width: 1.5; stroke-linejoin: round; }
|
|
210
|
+
.chart .area { fill: color-mix(in srgb, var(--color-accent) 10%, transparent); stroke: none; }
|
|
211
211
|
|
|
212
212
|
/* 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))); }
|
|
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(--color-surface-muted); color: var(--color-muted); font: var(--weight-medium) var(--text-xs) / 1.25 var(--font-ui); white-space: nowrap; }
|
|
214
|
+
.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
215
|
.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); }
|
|
216
|
+
.badge.success { --tone: var(--color-success); }
|
|
217
|
+
.badge.warning { --tone: var(--color-warning); }
|
|
218
|
+
.badge.danger { --tone: var(--color-error); }
|
|
219
|
+
.badge.info { --tone: var(--color-info); }
|
|
220
220
|
|
|
221
221
|
/* Panel */
|
|
222
|
-
.panel { background: var(--surface-raised); border: 1px solid transparent; box-shadow: var(--shadow-surface); border-radius: var(--radius-
|
|
222
|
+
.panel { background: var(--color-surface-raised); border: 1px solid transparent; box-shadow: var(--shadow-surface); border-radius: var(--radius-panel); min-width: 0; }
|
|
223
223
|
.detail { position: sticky; top: 4.5rem; display: grid; }
|
|
224
224
|
.detail > * { padding: var(--space-4); }
|
|
225
|
-
.detail > * + * { border-top: 1px solid var(--border-subtle); }
|
|
225
|
+
.detail > * + * { border-top: 1px solid var(--color-border-subtle); }
|
|
226
226
|
.detail h2 { font-size: var(--text-md); }
|
|
227
227
|
/* 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; }
|
|
228
|
+
.detail > .code { padding: 0; border: 0; border-radius: 0; border-top: 1px solid var(--color-border-subtle); box-shadow: none; }
|
|
229
229
|
|
|
230
230
|
/* Properties */
|
|
231
231
|
.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(--
|
|
232
|
+
.props dt { color: var(--color-muted); }
|
|
233
233
|
.props dd { margin: 0; overflow-wrap: anywhere; }
|
|
234
234
|
.props .mono { font-family: var(--font-mono); font-size: var(--text-xs); }
|
|
235
235
|
|
|
236
236
|
/* 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-
|
|
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-panel); background: var(--color-surface); color: var(--color-text); font-size: var(--text-sm); }
|
|
238
|
+
.alert .icon { margin-top: 0.125rem; color: var(--color-muted); }
|
|
239
|
+
.alert.success { background: var(--color-success-surface); } .alert.success .icon { color: var(--color-success); }
|
|
240
|
+
.alert.warning { background: var(--color-warning-surface); } .alert.warning .icon { color: var(--color-warning); }
|
|
241
|
+
.alert.danger { background: var(--color-error-surface); } .alert.danger .icon { color: var(--color-error); }
|
|
242
|
+
.alert.info { background: var(--color-info-surface); } .alert.info .icon { color: var(--color-info); }
|
|
243
243
|
|
|
244
244
|
/* 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); }
|
|
245
|
+
.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%; }
|
|
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(--color-border-subtle); background: var(--color-surface-raised); font-size: var(--text-xs); }
|
|
247
247
|
.code-head b { font-weight: var(--weight-semibold); }
|
|
248
|
-
.code-head .lang { color: var(--
|
|
248
|
+
.code-head .lang { color: var(--color-muted); }
|
|
249
249
|
/* Copy is a quiet action; this sets its size and place. */
|
|
250
250
|
.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
251
|
/* The code block has its own palette, so its Copy keeps the plate's text colour on hover. */
|
|
252
252
|
.code .copy:is(:hover, .is-hover) { color: inherit; }
|
|
253
253
|
/* 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); }
|
|
254
|
+
.code pre:is(:focus-visible, .is-focus) { outline: var(--focus-width) solid var(--color-focus); outline-offset: calc(var(--focus-width) * -1); }
|
|
255
255
|
.code .copy.quiet-action:is(:focus-visible, .is-focus) { outline-offset: calc(var(--focus-width) * -1); }
|
|
256
256
|
.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
257
|
/* Each line is a baseline-aligned row, so a prompt or line number sits on the text's baseline. */
|
|
258
258
|
.code .line { display: flex; align-items: baseline; min-height: 1.65em; }
|
|
259
259
|
.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(--
|
|
260
|
+
.code .ln { min-width: 2.5em; padding-right: 1em; flex: none; text-align: right; color: var(--color-muted); user-select: none; }
|
|
261
|
+
.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
262
|
.code.compact { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
|
|
263
263
|
.code.compact pre { padding: var(--space-2) var(--space-3); }
|
|
264
264
|
.code.compact .copy { margin: var(--space-1); }
|
|
265
265
|
|
|
266
266
|
/* Command plate: components.html#command-plate, unchanged. */
|
|
267
267
|
/* 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); }
|
|
268
|
+
.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); }
|
|
269
|
+
.code.command .code-head { border-color: var(--color-command-border); background: transparent; color: var(--color-terminal-caption-text); }
|
|
270
|
+
.code.command .code-head .lang { color: var(--color-terminal-caption-text); }
|
|
271
271
|
/* 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; }
|
|
272
|
+
.code.command .line::before { content: "$ " / ""; flex: none; white-space: pre; color: var(--color-project-dark); user-select: none; }
|
|
273
273
|
|
|
274
274
|
/* Table */
|
|
275
275
|
.table-wrap { overflow-x: auto; }
|
|
276
276
|
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; }
|
|
277
|
+
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); }
|
|
278
|
+
td { padding: var(--space-2) var(--space-4) var(--space-2) 0; border-bottom: 1px solid var(--color-border-subtle); vertical-align: top; }
|
|
279
279
|
tr:last-child td { border-bottom: 0; }
|
|
280
280
|
td.num, th.num { text-align: right; }
|
|
281
281
|
td code { font-size: var(--text-xs); }
|
|
282
282
|
|
|
283
283
|
/* 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(--
|
|
284
|
+
details.disclosure { border-top: 1px solid var(--color-border-subtle); padding-top: var(--space-3); max-width: var(--measure); }
|
|
285
|
+
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
286
|
details.disclosure summary::-webkit-details-marker { display: none; }
|
|
287
287
|
details.disclosure summary .icon { transition: transform var(--duration-fast) var(--ease-out); }
|
|
288
288
|
details.disclosure[open] summary .icon { transform: rotate(90deg); }
|
|
@@ -293,36 +293,36 @@
|
|
|
293
293
|
.defs { display: grid; gap: var(--space-3); align-content: start; }
|
|
294
294
|
/* Card grid: 2–4 parallel, self-contained items. Raised panel surface, same inner order. */
|
|
295
295
|
.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-
|
|
296
|
+
.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
297
|
/* Content row stretches so rule lines align along the bottom of each row. */
|
|
298
298
|
.defs.card { grid-template-rows: auto 1fr auto; }
|
|
299
299
|
.defs dl { align-content: start; }
|
|
300
300
|
.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(--
|
|
301
|
+
.defs h3 code { font-size: var(--text-xs); color: var(--color-muted); font-weight: var(--weight-regular); }
|
|
302
302
|
.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
303
|
.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-
|
|
304
|
+
.defs dd { margin: 0; color: var(--color-muted); }
|
|
305
|
+
.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); }
|
|
306
|
+
.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
307
|
|
|
308
308
|
/* 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(--
|
|
309
|
+
.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
310
|
|
|
311
311
|
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
|
|
312
312
|
|
|
313
313
|
/* Foundations catalogue. Specimens set their style from tokens; the script prints resolved values. */
|
|
314
314
|
.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); }
|
|
315
|
+
.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
316
|
.foundation h3 { font-size: var(--text-lg); }
|
|
317
|
-
.foundation h4 { font-size: var(--text-sm); color: var(--
|
|
318
|
-
.note { color: var(--
|
|
317
|
+
.foundation h4 { font-size: var(--text-sm); color: var(--color-muted); font-weight: var(--weight-medium); letter-spacing: 0; margin-top: var(--space-2); }
|
|
318
|
+
.note { color: var(--color-muted); font-size: var(--text-sm); max-width: var(--measure); }
|
|
319
319
|
.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); }
|
|
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(--color-border-subtle); }
|
|
321
321
|
.spec:last-child { border-bottom: 0; }
|
|
322
322
|
.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(--
|
|
323
|
+
.spec-meta code { font-size: var(--text-xs); color: var(--color-text); }
|
|
324
|
+
.value { font-family: var(--font-mono); color: var(--color-muted); overflow-wrap: anywhere; }
|
|
325
|
+
.use { color: var(--color-muted); }
|
|
326
326
|
.spec-sample { min-width: 0; overflow-wrap: anywhere; }
|
|
327
327
|
.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
328
|
.t-display { font-size: var(--text-display); }
|
|
@@ -330,40 +330,40 @@
|
|
|
330
330
|
/* Application titles are sans, as the toolbar title is. */
|
|
331
331
|
.t-app-title { font-size: var(--text-2xl); font-weight: var(--weight-semibold); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); }
|
|
332
332
|
/* 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); }
|
|
333
|
+
.t-section { font-size: var(--text-xl); padding-top: var(--space-4); border-top: 1px solid var(--color-border-subtle); }
|
|
334
|
+
.t-section::before { content: "## " / ""; color: var(--color-accent); }
|
|
335
335
|
.t-sub { font-size: var(--text-lg); font-weight: var(--weight-semibold); line-height: var(--leading-tight); }
|
|
336
336
|
.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(--
|
|
337
|
+
.t-secondary { font-size: var(--text-sm); color: var(--color-muted); }
|
|
338
338
|
.t-code { font-size: var(--text-code); }
|
|
339
339
|
|
|
340
340
|
.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
341
|
/* The chip spans every row; the last flexible row takes its extra height so text lines stay packed. */
|
|
342
342
|
.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
343
|
.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); }
|
|
344
|
+
.swatch code { color: var(--color-text); }
|
|
345
|
+
.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; }
|
|
346
|
+
.chip b { width: 16px; height: 16px; border-radius: var(--radius-inline); background: currentColor; }
|
|
347
|
+
.ratio { color: var(--color-muted); }
|
|
348
|
+
|
|
349
|
+
.bar { display: block; height: 12px; background: var(--color-accent); border-radius: var(--radius-inline); }
|
|
350
|
+
.height-bar { display: block; width: 48px; border: 1px solid var(--color-border); border-radius: var(--radius-control); background: var(--color-surface-raised); }
|
|
351
|
+
.shape-box { display: block; width: 96px; height: 56px; border: 1px solid var(--color-border); background: var(--color-surface-raised); }
|
|
352
|
+
.line-subtle { display: block; height: 0; border-top: 1px solid var(--color-border-subtle); }
|
|
353
|
+
.line-border { display: block; height: 0; border-top: 1px solid var(--color-border); }
|
|
354
354
|
/* The pip and current-row samples take their state from the navigation row rules above. */
|
|
355
355
|
.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
356
|
.nav-current-sample { display: inline-flex; align-items: center; min-height: var(--row); padding: 0 var(--space-3); border-radius: var(--radius-field); font-size: var(--text-sm); }
|
|
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-
|
|
357
|
+
.header-rule { display: block; height: 0; border-top: 1px solid var(--color-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-panel); background: var(--color-bg); }
|
|
359
|
+
.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); }
|
|
360
|
+
.elevation .floating { border: 1px solid transparent; box-shadow: var(--shadow-dialog); }
|
|
361
361
|
.elevation > .btn { justify-self: start; }
|
|
362
362
|
.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(--
|
|
363
|
+
.elevation .well-sample { border: 1px solid transparent; background: var(--color-well); box-shadow: var(--shadow-sink); }
|
|
364
|
+
.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); }
|
|
365
|
+
.elevation .focus-sample { border-color: var(--color-accent); box-shadow: var(--shadow-field-focus); }
|
|
366
|
+
.elevation .focus-invalid-sample { border-color: var(--color-error); box-shadow: var(--shadow-field-focus-invalid); }
|
|
367
367
|
|
|
368
368
|
|
|
369
369
|
.mobile-only { display: none; }
|
|
@@ -379,7 +379,7 @@
|
|
|
379
379
|
.search { height: var(--control-lg); }
|
|
380
380
|
.shell { grid-template-columns: minmax(0, 1fr); height: auto; }
|
|
381
381
|
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); }
|
|
382
|
+
.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
383
|
/* Both navigation lists become native scrolling strips below the workspace and theme rows, as the
|
|
384
384
|
catalogue's contents do (components.html#navigation-list, horizontal strip). */
|
|
385
385
|
.sidebar-foot { display: contents; }
|
|
@@ -498,7 +498,7 @@
|
|
|
498
498
|
<h4>Families</h4>
|
|
499
499
|
<ul class="specs">
|
|
500
500
|
<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-
|
|
501
|
+
<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
502
|
</ul>
|
|
503
503
|
|
|
504
504
|
<h4>Size scale</h4>
|
|
@@ -529,15 +529,15 @@
|
|
|
529
529
|
<h4>Roles</h4>
|
|
530
530
|
<ul class="specs">
|
|
531
531
|
<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-
|
|
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>--color-accent</code> and a <code>--color-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-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>
|
|
534
|
+
<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>
|
|
535
|
+
<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
536
|
<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 --
|
|
537
|
+
<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
538
|
<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
|
|
539
|
+
<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>
|
|
540
|
+
<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
541
|
</ul>
|
|
542
542
|
</section>
|
|
543
543
|
|
|
@@ -547,73 +547,73 @@
|
|
|
547
547
|
|
|
548
548
|
<h4>Surfaces</h4>
|
|
549
549
|
<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>
|
|
550
|
+
<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>
|
|
551
|
+
<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>
|
|
552
|
+
<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>
|
|
553
|
+
<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>
|
|
554
|
+
<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>
|
|
555
|
+
<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>
|
|
556
|
+
<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>
|
|
557
|
+
<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>
|
|
558
|
+
<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>
|
|
559
|
+
<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>
|
|
560
|
+
<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>
|
|
561
|
+
<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>
|
|
562
|
+
<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>
|
|
563
|
+
<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
564
|
</ul>
|
|
565
565
|
|
|
566
566
|
<h4>Text and lines</h4>
|
|
567
567
|
<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-
|
|
568
|
+
<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>
|
|
569
|
+
<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>
|
|
570
|
+
<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>
|
|
571
|
+
<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
572
|
</ul>
|
|
573
573
|
|
|
574
574
|
<h4>Identity, links, and focus</h4>
|
|
575
575
|
<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>
|
|
576
|
+
<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>
|
|
577
|
+
<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>
|
|
578
|
+
<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>
|
|
579
|
+
<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>
|
|
580
|
+
<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>
|
|
581
|
+
<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>
|
|
582
|
+
<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>
|
|
583
|
+
<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
584
|
</ul>
|
|
585
585
|
|
|
586
586
|
<h4>Status</h4>
|
|
587
587
|
<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
588
|
<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
589
|
<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-
|
|
590
|
+
<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>
|
|
591
|
+
<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>
|
|
592
|
+
<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>
|
|
593
|
+
<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>
|
|
594
|
+
<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>
|
|
595
|
+
<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>
|
|
596
|
+
<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>
|
|
597
|
+
<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
598
|
</ul>
|
|
599
599
|
|
|
600
600
|
<h4>Code and terminal</h4>
|
|
601
601
|
<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>
|
|
602
|
+
<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>
|
|
603
|
+
<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>
|
|
604
|
+
<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>
|
|
605
|
+
<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>
|
|
606
|
+
<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>
|
|
607
|
+
<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>
|
|
608
|
+
<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>
|
|
609
|
+
<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>
|
|
610
|
+
<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>
|
|
611
|
+
<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>
|
|
612
|
+
<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>
|
|
613
|
+
<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>
|
|
614
|
+
<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>
|
|
615
|
+
<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>
|
|
616
|
+
<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
617
|
</ul>
|
|
618
618
|
</section>
|
|
619
619
|
|
|
@@ -655,10 +655,10 @@
|
|
|
655
655
|
<h3 id="shape-title">Shape</h3>
|
|
656
656
|
<p class="note">Pill buttons, rounded fields and toggle cards, large-radius panels, and inline corners. Cards never take a pill.</p>
|
|
657
657
|
<ul class="specs">
|
|
658
|
-
<li class="spec" data-token="--radius-
|
|
658
|
+
<li class="spec" data-token="--radius-inline"><div class="spec-meta"><code>--radius-inline</code><span class="value"></span><span class="use">Inline elements and checkboxes</span></div><i class="shape-box" style="border-radius:var(--radius-inline)"></i></li>
|
|
659
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, navigation rows, tabs, and toggle cards</span></div><i class="shape-box" style="border-radius:var(--radius-field)"></i></li>
|
|
660
|
-
<li class="spec" data-token="--radius-
|
|
661
|
-
<li class="spec" data-token="--radius-
|
|
660
|
+
<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>
|
|
661
|
+
<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
662
|
<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
663
|
</ul>
|
|
664
664
|
</section>
|
|
@@ -667,11 +667,11 @@
|
|
|
667
667
|
<h3 id="borders-title">Borders and dividers</h3>
|
|
668
668
|
<p class="note">Borders are 1px; bars that mark the current item are 2px. Neither width has a token.</p>
|
|
669
669
|
<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 the page, with medium weight and no fill</span></div><span class="pip-sample">Thresholds</span></li>
|
|
670
|
+
<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>
|
|
671
|
+
<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>
|
|
672
|
+
<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>
|
|
673
|
+
<li class="spec"><div class="spec-meta"><code>--color-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>--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>
|
|
674
|
+
<li class="spec"><div class="spec-meta"><code>3×14 --color-accent pip</code><span class="use">Current location in the page, with medium weight and no fill</span></div><span class="pip-sample">Thresholds</span></li>
|
|
675
675
|
<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
676
|
<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
677
|
</ul>
|
|
@@ -683,22 +683,22 @@
|
|
|
683
683
|
<ul class="specs">
|
|
684
684
|
<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
685
|
<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-
|
|
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">--color-well</span></div></div></li>
|
|
687
|
+
<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>
|
|
688
|
+
<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>
|
|
689
|
+
<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
690
|
<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="--
|
|
691
|
+
<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>
|
|
692
|
+
<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
693
|
</ul>
|
|
694
694
|
</section>
|
|
695
695
|
|
|
696
696
|
<section class="foundation" id="focus-motion" aria-labelledby="focus-motion-title">
|
|
697
697
|
<h3 id="focus-motion-title">Focus and motion</h3>
|
|
698
698
|
<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>
|
|
699
|
+
<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
700
|
<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>--
|
|
701
|
+
<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
702
|
<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
703
|
<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
704
|
<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>
|