@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/docs.html
CHANGED
|
@@ -7,18 +7,18 @@
|
|
|
7
7
|
<link rel="stylesheet" href="tokens.css">
|
|
8
8
|
<style>
|
|
9
9
|
.frame { width: min(calc(var(--page-max) + var(--sidebar)), calc(100% - var(--space-12))); margin-inline: auto; }
|
|
10
|
-
.header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); min-height: var(--space-16); border-bottom: 1px solid var(--border-subtle); }
|
|
11
|
-
.brand { color: var(--text); font-weight: var(--weight-semibold); }
|
|
10
|
+
.header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); min-height: var(--space-16); border-bottom: 1px solid var(--color-border-subtle); }
|
|
11
|
+
.brand { color: var(--color-text); font-weight: var(--weight-semibold); }
|
|
12
12
|
.header nav { display: flex; gap: var(--space-6); }
|
|
13
13
|
.header a { display: inline-flex; align-items: center; min-height: var(--control-lg); font-size: var(--text-sm); }
|
|
14
14
|
.layout { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); gap: var(--space-8); }
|
|
15
15
|
.sidebar { position: sticky; top: var(--space-6); align-self: start; display: grid; gap: var(--space-1); padding-block: var(--space-6); }
|
|
16
16
|
/* Navigation rows: components.html#navigation-list, unchanged. Only the rail's placement and spacing are local. */
|
|
17
|
-
.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(--
|
|
18
|
-
.navlist a:is(:hover, .is-hover) { background: var(--row-hover); color: var(--text); text-decoration: none; }
|
|
19
|
-
.navlist a[aria-current="page"] { background: var(--nav-current); box-shadow: var(--shadow-nav-current); color: var(--nav-current-text); font-weight: var(--weight-medium); }
|
|
20
|
-
.navlist a[aria-current="location"] { color: var(--text); font-weight: var(--weight-medium); }
|
|
21
|
-
.navlist a[aria-current="location"]::before { content: ""; position: absolute; inset-inline-start: var(--space-1); width: 3px; height: 14px; border-radius: var(--radius-pill); background: var(--accent); }
|
|
17
|
+
.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); }
|
|
18
|
+
.navlist a:is(:hover, .is-hover) { background: var(--color-row-hover); color: var(--color-text); text-decoration: none; }
|
|
19
|
+
.navlist a[aria-current="page"] { background: var(--color-nav-current); box-shadow: var(--shadow-nav-current); color: var(--color-nav-current-text); font-weight: var(--weight-medium); }
|
|
20
|
+
.navlist a[aria-current="location"] { color: var(--color-text); font-weight: var(--weight-medium); }
|
|
21
|
+
.navlist a[aria-current="location"]::before { content: ""; position: absolute; inset-inline-start: var(--space-1); width: 3px; height: 14px; border-radius: var(--radius-pill); background: var(--color-accent); }
|
|
22
22
|
/* Fills and shadows drop. The current page takes a system border; the in-page location keeps
|
|
23
23
|
its pip, redrawn in the system highlight, so the two still differ. */
|
|
24
24
|
@media (forced-colors: active) { .navlist a[aria-current="page"] { border-inline-start: 2px solid Highlight; } .navlist a[aria-current="location"]::before { forced-color-adjust: none; background: Highlight; } }
|
|
@@ -28,27 +28,27 @@ h1, h2 { font-family: var(--font-mono); }
|
|
|
28
28
|
h1 { font-size: var(--text-3xl); max-width: 24ch; }
|
|
29
29
|
h2 { font-size: var(--text-xl); }
|
|
30
30
|
/* The ## mark goes on page-level section headings only. It is decorative; the empty alternative text keeps it out of the accessible name. */
|
|
31
|
-
main > section > h2::before { content: "## " / ""; color: var(--accent); }
|
|
31
|
+
main > section > h2::before { content: "## " / ""; color: var(--color-accent); }
|
|
32
32
|
/* The main gap alone separates sections. The rule above each heading belongs to the heading, as in @filipgutica/ui. */
|
|
33
|
-
main > section > h2 { padding-top: var(--space-4); border-top: 1px solid var(--border-subtle); }
|
|
34
|
-
p { max-width: var(--measure); color: var(--
|
|
33
|
+
main > section > h2 { padding-top: var(--space-4); border-top: 1px solid var(--color-border-subtle); }
|
|
34
|
+
p { max-width: var(--measure); color: var(--color-muted); font-size: var(--text-reading); }
|
|
35
35
|
/* Command plate: dark in both themes and tinted with the hue. Text takes the terminal colour and the focus ring the dark-theme accent, so both read on the dark plate. */
|
|
36
|
-
.command { box-shadow: var(--shadow-surface); --focus: var(--project-dark); --text: var(--terminal-text); display: flex; align-items: center; gap: var(--space-3); max-width: var(--measure); padding: var(--space-1) var(--space-3); border: 1px solid var(--command-border); border-radius: var(--radius-
|
|
36
|
+
.command { box-shadow: var(--shadow-surface); --color-focus: var(--color-project-dark); --color-text: var(--color-terminal-text); display: flex; align-items: center; gap: var(--space-3); max-width: var(--measure); padding: var(--space-1) var(--space-3); border: 1px solid var(--color-command-border); border-radius: var(--radius-panel); background: var(--color-command-bg); color: var(--color-terminal-text); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
|
|
37
37
|
/* The prompt is drawn by CSS, so it is not copied and screen readers skip it. */
|
|
38
|
-
.command code::before { content: "$ " / ""; color: var(--project-dark); }
|
|
38
|
+
.command code::before { content: "$ " / ""; color: var(--color-project-dark); }
|
|
39
39
|
.command pre { min-width: 0; flex: 1; margin: 0; overflow-x: auto; font-size: var(--text-sm); }
|
|
40
40
|
/* Copy is a quiet action: components.html#quiet-action, unchanged. The page adds its size and colour only. */
|
|
41
|
-
:where(.quiet-action) { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: var(--radius-
|
|
42
|
-
.quiet-action:is(:hover, .is-hover):where(:not(:disabled)) { color: var(--text); background: color-mix(in srgb, currentColor 12%, transparent); }
|
|
41
|
+
: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); }
|
|
42
|
+
.quiet-action:is(:hover, .is-hover):where(:not(:disabled)) { color: var(--color-text); background: color-mix(in srgb, currentColor 12%, transparent); }
|
|
43
43
|
.quiet-action:is(:active, .is-active):where(:not(:disabled)) { background: color-mix(in srgb, currentColor 18%, transparent); }
|
|
44
44
|
.quiet-action:disabled { opacity: 0.58; cursor: not-allowed; }
|
|
45
|
-
.command button { flex: none; min-width: var(--control-lg); min-height: var(--control-lg); color: var(--terminal-caption-text); }
|
|
46
|
-
.meta, #copy-status { color: var(--
|
|
47
|
-
.definitions { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--space-3) var(--space-6); margin: 0; padding-top: var(--space-4); border-top: 1px solid var(--border-subtle); }
|
|
45
|
+
.command button { flex: none; min-width: var(--control-lg); min-height: var(--control-lg); color: var(--color-terminal-caption-text); }
|
|
46
|
+
.meta, #copy-status { color: var(--color-muted); font-size: var(--text-sm); }
|
|
47
|
+
.definitions { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--space-3) var(--space-6); margin: 0; padding-top: var(--space-4); border-top: 1px solid var(--color-border-subtle); }
|
|
48
48
|
.definitions dt { font-family: var(--font-mono); font-size: var(--text-sm); }
|
|
49
|
-
.definitions dd { margin: 0; color: var(--
|
|
50
|
-
footer { padding-block: var(--space-6); border-top: 1px solid var(--border-subtle); color: var(--
|
|
51
|
-
@media (max-width: 800px) { .navlist a { min-height: var(--control-lg); } .layout { grid-template-columns: minmax(0, 1fr); gap: 0; } .sidebar { position: static; display: flex; flex-wrap: wrap; gap: var(--space-2); padding-block: var(--space-3); border-bottom: 1px solid var(--border-subtle); } .sidebar a { padding-inline: var(--space-2); } main { padding-top: var(--space-6); } .definitions { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); } .definitions dd { margin-bottom: var(--space-3); } }
|
|
49
|
+
.definitions dd { margin: 0; color: var(--color-muted); }
|
|
50
|
+
footer { padding-block: var(--space-6); border-top: 1px solid var(--color-border-subtle); color: var(--color-muted); font-size: var(--text-sm); }
|
|
51
|
+
@media (max-width: 800px) { .navlist a { min-height: var(--control-lg); } .layout { grid-template-columns: minmax(0, 1fr); gap: 0; } .sidebar { position: static; display: flex; flex-wrap: wrap; gap: var(--space-2); padding-block: var(--space-3); border-bottom: 1px solid var(--color-border-subtle); } .sidebar a { padding-inline: var(--space-2); } main { padding-top: var(--space-6); } .definitions { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); } .definitions dd { margin-bottom: var(--space-3); } }
|
|
52
52
|
@media (max-width: 640px) { .frame { width: calc(100% - var(--space-8)); } main { gap: var(--space-8); } }
|
|
53
53
|
</style>
|
|
54
54
|
</head>
|
package/language/product.html
CHANGED
|
@@ -7,54 +7,54 @@
|
|
|
7
7
|
<link rel="stylesheet" href="tokens.css">
|
|
8
8
|
<style>
|
|
9
9
|
.frame { width: min(var(--page-wide), calc(100% - var(--space-12))); margin-inline: auto; }
|
|
10
|
-
.header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); min-height: var(--space-16); border-bottom: 1px solid var(--border-subtle); }
|
|
11
|
-
.brand { color: var(--text); font-weight: var(--weight-semibold); }
|
|
10
|
+
.header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); min-height: var(--space-16); border-bottom: 1px solid var(--color-border-subtle); }
|
|
11
|
+
.brand { color: var(--color-text); font-weight: var(--weight-semibold); }
|
|
12
12
|
.header nav { display: flex; gap: var(--space-6); }
|
|
13
13
|
.header a { display: inline-flex; align-items: center; min-height: var(--control-lg); font-size: var(--text-sm); }
|
|
14
14
|
.hero { display: grid; gap: var(--space-8); padding-block: var(--space-12); }
|
|
15
15
|
.copy { display: grid; justify-items: start; gap: var(--space-4); }
|
|
16
16
|
h1, .workflow > h2 { font-family: var(--font-mono); }
|
|
17
17
|
h1 { max-width: 18ch; font-size: var(--text-display); letter-spacing: var(--tracking-tight); }
|
|
18
|
-
.lead { max-width: 56ch; font-size: var(--text-reading); color: var(--
|
|
18
|
+
.lead { max-width: 56ch; font-size: var(--text-reading); color: var(--color-muted); }
|
|
19
19
|
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-6); }
|
|
20
20
|
/* The one primary action: components.html#button, unchanged. The page adds layout only. */
|
|
21
|
-
.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-
|
|
21
|
+
.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); }
|
|
22
22
|
.btn[data-size="lg"] { min-height: var(--control-lg); padding: 0 var(--space-4); font-size: var(--text-lg); }
|
|
23
|
-
.btn:is(:hover, .is-hover):not(:disabled) { background: var(--button-hover); }
|
|
24
|
-
.btn:not(.secondary, .ghost, .danger, .text):is(:active, [aria-pressed="true"], .is-active):not(:disabled) { background: var(--button-hover); }
|
|
23
|
+
.btn:is(:hover, .is-hover):not(:disabled) { background: var(--color-button-hover); }
|
|
24
|
+
.btn:not(.secondary, .ghost, .danger, .text):is(:active, [aria-pressed="true"], .is-active):not(:disabled) { background: var(--color-button-hover); }
|
|
25
25
|
.btn:not(.text):is(:active, [aria-pressed="true"], .is-active):not(:disabled) { --depth: var(--shadow-sink); transform: translateY(1px); }
|
|
26
26
|
a.btn { text-decoration: none; }
|
|
27
27
|
.actions > a { min-height: var(--control-lg); display: inline-flex; align-items: center; }
|
|
28
28
|
figure { margin: 0; min-width: 0; }
|
|
29
29
|
/* Product evidence sits in a well: one quiet frame, no frame around it. */
|
|
30
|
-
.product-view { background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-
|
|
31
|
-
.view-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--border-subtle); font-size: var(--text-sm); }
|
|
32
|
-
.view-header span { color: var(--
|
|
30
|
+
.product-view { background: var(--color-surface); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-panel); overflow: hidden; }
|
|
31
|
+
.view-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--color-border-subtle); font-size: var(--text-sm); }
|
|
32
|
+
.view-header span { color: var(--color-muted); }
|
|
33
33
|
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); padding: var(--space-6); }
|
|
34
34
|
.board section { min-width: 0; }
|
|
35
|
-
.board h2 { font-size: var(--text-sm); color: var(--
|
|
36
|
-
.task { padding-block: var(--space-4); border-top: 1px solid var(--border-subtle); display: grid; gap: var(--space-2); }
|
|
37
|
-
.task code { font-size: var(--text-xs); color: var(--
|
|
35
|
+
.board h2 { font-size: var(--text-sm); color: var(--color-muted); padding-bottom: var(--space-3); }
|
|
36
|
+
.task { padding-block: var(--space-4); border-top: 1px solid var(--color-border-subtle); display: grid; gap: var(--space-2); }
|
|
37
|
+
.task code { font-size: var(--text-xs); color: var(--color-muted); }
|
|
38
38
|
.task p { font-size: var(--text-sm); }
|
|
39
|
-
figcaption { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--
|
|
40
|
-
.workflow { display: grid; gap: var(--space-6); padding-block: var(--space-12); border-top: 1px solid var(--border-subtle); }
|
|
39
|
+
figcaption { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--color-muted); }
|
|
40
|
+
.workflow { display: grid; gap: var(--space-6); padding-block: var(--space-12); border-top: 1px solid var(--color-border-subtle); }
|
|
41
41
|
.workflow > h2 { max-width: 24ch; font-size: var(--text-3xl); }
|
|
42
42
|
/* Page-level product sections take the decorative ## mark; headings inside the product view do not. */
|
|
43
|
-
.workflow > h2::before { content: "## " / ""; color: var(--accent); }
|
|
44
|
-
.workflow > p { max-width: var(--measure); color: var(--
|
|
43
|
+
.workflow > h2::before { content: "## " / ""; color: var(--color-accent); }
|
|
44
|
+
.workflow > p { max-width: var(--measure); color: var(--color-muted); font-size: var(--text-reading); }
|
|
45
45
|
.evidence { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--space-8); align-items: start; }
|
|
46
46
|
.checks { margin: 0; padding: var(--space-2) var(--space-6); list-style: none; font-size: var(--text-sm); }
|
|
47
47
|
.checks li { display: grid; grid-template-columns: 16px 64px minmax(0, 1fr); align-items: center; gap: var(--space-3); min-height: var(--row); padding-block: var(--space-2); }
|
|
48
|
-
.checks li + li { border-top: 1px solid var(--border-subtle); }
|
|
49
|
-
.checks code { font-size: var(--text-xs); color: var(--
|
|
48
|
+
.checks li + li { border-top: 1px solid var(--color-border-subtle); }
|
|
49
|
+
.checks code { font-size: var(--text-xs); color: var(--color-muted); }
|
|
50
50
|
/* Status color goes on the icon; the text label carries the meaning. */
|
|
51
51
|
.checks svg { width: 16px; height: 16px; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
|
|
52
|
-
.checks .fail svg { stroke: var(--
|
|
53
|
-
.checks .pass svg { stroke: var(--success); }
|
|
52
|
+
.checks .fail svg { stroke: var(--color-error); }
|
|
53
|
+
.checks .pass svg { stroke: var(--color-success); }
|
|
54
54
|
.evidence-copy { display: grid; gap: var(--space-2); }
|
|
55
55
|
.evidence-copy h3 { font-size: var(--text-lg); }
|
|
56
|
-
.evidence-copy p { color: var(--
|
|
57
|
-
footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-6); border-top: 1px solid var(--border-subtle); color: var(--
|
|
56
|
+
.evidence-copy p { color: var(--color-muted); font-size: var(--text-reading); }
|
|
57
|
+
footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-6); border-top: 1px solid var(--color-border-subtle); color: var(--color-muted); font-size: var(--text-sm); }
|
|
58
58
|
@media (max-width: 800px) { h1 { font-size: var(--text-display-sm); } .workflow > h2 { font-size: var(--text-2xl); } .hero { padding-block: var(--space-8); } .board { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); padding: var(--space-4); } .evidence { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); } .checks { padding-inline: var(--space-4); } .workflow { padding-block: var(--space-8); } .view-header { padding: var(--space-4); } }
|
|
59
59
|
@media (max-width: 640px) { .frame { width: calc(100% - var(--space-8)); } }
|
|
60
60
|
</style>
|