@filipgutica/design-system 1.1.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 +2 -2
- package/dist/themes/graphite-indigo.css +3 -3
- package/dist/tokens.d.ts +57 -57
- package/dist/tokens.js +113 -113
- package/dist/tokens.json +112 -112
- package/language/DESIGN.md +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 +138 -137
- package/language/visualizations/build-count-report.mjs +4 -2
- package/language/visualizations/report.css +2 -2
- package/package.json +1 -1
- /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/README.md
CHANGED
|
@@ -35,7 +35,7 @@ npm install @filipgutica/design-system
|
|
|
35
35
|
| `@filipgutica/design-system/tokens.json` | The resolved values as JSON. |
|
|
36
36
|
| `@filipgutica/design-system/language/*` | The spec, catalogue, and example pages. |
|
|
37
37
|
|
|
38
|
-
In a React app, import `tokens.css` and `fonts.css` once in the entry and write `var(--text)` in styles, or `cssVar('text')` in TypeScript. `tests/react-smoke/` is a working example.
|
|
38
|
+
In a React app, import `tokens.css` and `fonts.css` once in the entry and write `var(--color-text)` in styles, or `cssVar('color-text')` in TypeScript. `tests/react-smoke/` is a working example.
|
|
39
39
|
|
|
40
40
|
## Develop
|
|
41
41
|
|
|
@@ -63,4 +63,4 @@ Commits follow Conventional Commits, and CI checks them with commitlint. Do not
|
|
|
63
63
|
|
|
64
64
|
## License
|
|
65
65
|
|
|
66
|
-
MIT. The IBM Plex fonts in `fonts/` are under the SIL Open Font License; see the `OFL-*.txt` files beside them. The editor theme in `language/themes/graphite-indigo/` derives from Visual Studio Code's default themes; see its `LICENSE` and `THIRD_PARTY_NOTICES.md`.
|
|
66
|
+
MIT. The IBM Plex fonts in `fonts/` are under the SIL Open Font License; see the `OFL-*.txt` files beside them. The editor theme in `language/editor-themes/graphite-indigo/` derives from Visual Studio Code's default themes; see its `LICENSE` and `THIRD_PARTY_NOTICES.md`.
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* The graphite-indigo identity inputs for tokens.css. Load after tokens.css. */
|
|
3
3
|
|
|
4
4
|
:root {
|
|
5
|
-
--project: #4b45d1;
|
|
6
|
-
--project-dark: #a5a1ff;
|
|
7
|
-
--font-
|
|
5
|
+
--color-project: #4b45d1;
|
|
6
|
+
--color-project-dark: #a5a1ff;
|
|
7
|
+
--font-ui: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
|
|
8
8
|
--font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
|
|
9
9
|
}
|
package/dist/tokens.d.ts
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
1
|
// Generated from tokens/graphite-indigo.json by scripts/build-tokens.mjs. Do not edit.
|
|
2
2
|
/** A token name: its CSS variable in tokens.css without the leading dashes. */
|
|
3
3
|
export type TokenName =
|
|
4
|
-
| 'project'
|
|
5
|
-
| 'project-dark'
|
|
6
|
-
| 'font-
|
|
4
|
+
| 'color-project'
|
|
5
|
+
| 'color-project-dark'
|
|
6
|
+
| 'font-ui'
|
|
7
7
|
| 'font-mono'
|
|
8
|
-
| 'bg'
|
|
9
|
-
| 'surface'
|
|
10
|
-
| 'surface-raised'
|
|
11
|
-
| 'surface-
|
|
12
|
-
| '
|
|
13
|
-
| 'field-bg'
|
|
14
|
-
| 'field-edge'
|
|
15
|
-
| 'field
|
|
16
|
-
| 'control-thumb'
|
|
17
|
-
| 'nav-current'
|
|
18
|
-
| 'nav-current-text'
|
|
19
|
-
| 'segmented-current-text'
|
|
20
|
-
| 'row-hover'
|
|
21
|
-
| 'row-selected'
|
|
22
|
-
| 'border-subtle'
|
|
23
|
-
| 'border'
|
|
24
|
-
| 'text'
|
|
25
|
-
| '
|
|
26
|
-
| 'overlay'
|
|
27
|
-
| 'accent'
|
|
28
|
-
| 'accent-text'
|
|
29
|
-
| 'accent-hover'
|
|
30
|
-
| 'button-hover'
|
|
31
|
-
| 'link'
|
|
32
|
-
| 'focus'
|
|
8
|
+
| 'color-bg'
|
|
9
|
+
| 'color-surface'
|
|
10
|
+
| 'color-surface-raised'
|
|
11
|
+
| 'color-surface-muted'
|
|
12
|
+
| 'color-well'
|
|
13
|
+
| 'color-field-bg'
|
|
14
|
+
| 'color-field-edge'
|
|
15
|
+
| 'shadow-field'
|
|
16
|
+
| 'color-control-thumb'
|
|
17
|
+
| 'color-nav-current'
|
|
18
|
+
| 'color-nav-current-text'
|
|
19
|
+
| 'color-segmented-current-text'
|
|
20
|
+
| 'color-row-hover'
|
|
21
|
+
| 'color-row-selected'
|
|
22
|
+
| 'color-border-subtle'
|
|
23
|
+
| 'color-border'
|
|
24
|
+
| 'color-text'
|
|
25
|
+
| 'color-muted'
|
|
26
|
+
| 'color-overlay'
|
|
27
|
+
| 'color-accent'
|
|
28
|
+
| 'color-accent-text'
|
|
29
|
+
| 'color-accent-hover'
|
|
30
|
+
| 'color-button-hover'
|
|
31
|
+
| 'color-link'
|
|
32
|
+
| 'color-focus'
|
|
33
33
|
| 'focus-width'
|
|
34
34
|
| 'focus-offset'
|
|
35
|
-
| 'success'
|
|
36
|
-
| 'warning'
|
|
37
|
-
| '
|
|
38
|
-
| 'info'
|
|
39
|
-
| 'success-
|
|
40
|
-
| 'warning-
|
|
41
|
-
| '
|
|
42
|
-
| 'info-
|
|
43
|
-
| 'command-bg'
|
|
44
|
-
| 'command-border'
|
|
45
|
-
| 'terminal'
|
|
46
|
-
| 'terminal-text'
|
|
47
|
-
| 'terminal-border'
|
|
48
|
-
| 'terminal-caption'
|
|
49
|
-
| 'terminal-caption-text'
|
|
50
|
-
| '
|
|
51
|
-
| 'code
|
|
52
|
-
| 'code-text'
|
|
53
|
-
| '
|
|
54
|
-
| '
|
|
55
|
-
| '
|
|
56
|
-
| '
|
|
35
|
+
| 'color-success'
|
|
36
|
+
| 'color-warning'
|
|
37
|
+
| 'color-error'
|
|
38
|
+
| 'color-info'
|
|
39
|
+
| 'color-success-surface'
|
|
40
|
+
| 'color-warning-surface'
|
|
41
|
+
| 'color-error-surface'
|
|
42
|
+
| 'color-info-surface'
|
|
43
|
+
| 'color-command-bg'
|
|
44
|
+
| 'color-command-border'
|
|
45
|
+
| 'color-terminal'
|
|
46
|
+
| 'color-terminal-text'
|
|
47
|
+
| 'color-terminal-border'
|
|
48
|
+
| 'color-terminal-caption'
|
|
49
|
+
| 'color-terminal-caption-text'
|
|
50
|
+
| 'shadow-nav-current-dark'
|
|
51
|
+
| 'color-code'
|
|
52
|
+
| 'color-code-text'
|
|
53
|
+
| 'color-syntax-keyword'
|
|
54
|
+
| 'color-syntax-string'
|
|
55
|
+
| 'color-syntax-number'
|
|
56
|
+
| 'color-syntax-comment'
|
|
57
57
|
| 'text-xs'
|
|
58
58
|
| 'text-sm'
|
|
59
59
|
| 'text-md'
|
|
@@ -90,18 +90,18 @@ export type TokenName =
|
|
|
90
90
|
| 'page-max'
|
|
91
91
|
| 'page-wide'
|
|
92
92
|
| 'sidebar'
|
|
93
|
-
| 'radius-
|
|
94
|
-
| 'radius-
|
|
95
|
-
| 'radius-
|
|
93
|
+
| 'radius-inline'
|
|
94
|
+
| 'radius-control'
|
|
95
|
+
| 'radius-panel'
|
|
96
96
|
| 'radius-field'
|
|
97
97
|
| 'radius-pill'
|
|
98
98
|
| 'shadow-raise'
|
|
99
99
|
| 'shadow-surface'
|
|
100
100
|
| 'shadow-sink'
|
|
101
|
-
| 'shadow-
|
|
101
|
+
| 'shadow-dialog'
|
|
102
102
|
| 'shadow-nav-current'
|
|
103
|
-
| 'field-
|
|
104
|
-
| 'field-
|
|
103
|
+
| 'shadow-field-focus'
|
|
104
|
+
| 'shadow-field-focus-invalid'
|
|
105
105
|
| 'duration-fast'
|
|
106
106
|
| 'duration'
|
|
107
107
|
| 'ease-out'
|
|
@@ -113,5 +113,5 @@ export declare const tokens: {
|
|
|
113
113
|
themes: Record<ThemeName, { light: Record<TokenName, string>, dark: Record<TokenName, string> }>
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
/** The var() reference for a token, such as cssVar('text') for 'var(--text)'. */
|
|
116
|
+
/** The var() reference for a token, such as cssVar('color-text') for 'var(--color-text)'. */
|
|
117
117
|
export declare const cssVar: <Name extends TokenName>(name: Name) => `var(--${Name})`
|
package/dist/tokens.js
CHANGED
|
@@ -3,59 +3,59 @@ export const tokens = {
|
|
|
3
3
|
"themes": {
|
|
4
4
|
"graphite-indigo": {
|
|
5
5
|
"light": {
|
|
6
|
-
"project": "#4b45d1",
|
|
7
|
-
"project-dark": "#a5a1ff",
|
|
8
|
-
"font-
|
|
6
|
+
"color-project": "#4b45d1",
|
|
7
|
+
"color-project-dark": "#a5a1ff",
|
|
8
|
+
"font-ui": "\"IBM Plex Sans\", -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Segoe UI\", system-ui, sans-serif",
|
|
9
9
|
"font-mono": "\"IBM Plex Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, monospace",
|
|
10
|
-
"bg": "#f4f5f6",
|
|
11
|
-
"surface": "#e9ebed",
|
|
12
|
-
"surface-raised": "#fbfbfc",
|
|
13
|
-
"surface-
|
|
14
|
-
"
|
|
15
|
-
"field-bg": "#fbfbfc",
|
|
16
|
-
"field-edge": "#d3d8dd",
|
|
17
|
-
"field
|
|
18
|
-
"control-thumb": "#fbfbfc",
|
|
19
|
-
"nav-current": "color-mix(in srgb, #4b45d1 14%, #fbfbfc)",
|
|
20
|
-
"nav-current-text": "#4b45d1",
|
|
21
|
-
"segmented-current-text": "#4b45d1",
|
|
22
|
-
"row-hover": "#e2e5e8",
|
|
23
|
-
"row-selected": "#fbfbfc",
|
|
24
|
-
"border-subtle": "#d3d8dd",
|
|
25
|
-
"border": "#6d747b",
|
|
26
|
-
"text": "#101315",
|
|
27
|
-
"
|
|
28
|
-
"overlay": "rgb(0 0 0 / 42%)",
|
|
29
|
-
"accent": "#4b45d1",
|
|
30
|
-
"accent-text": "#f4f5f6",
|
|
31
|
-
"accent-hover": "#101315",
|
|
32
|
-
"button-hover": "color-mix(in srgb, #4b45d1 85%, #101315)",
|
|
33
|
-
"link": "#0b5f7c",
|
|
34
|
-
"focus": "#4b45d1",
|
|
10
|
+
"color-bg": "#f4f5f6",
|
|
11
|
+
"color-surface": "#e9ebed",
|
|
12
|
+
"color-surface-raised": "#fbfbfc",
|
|
13
|
+
"color-surface-muted": "#e2e5e8",
|
|
14
|
+
"color-well": "#e2e5e8",
|
|
15
|
+
"color-field-bg": "#fbfbfc",
|
|
16
|
+
"color-field-edge": "#d3d8dd",
|
|
17
|
+
"shadow-field": "none",
|
|
18
|
+
"color-control-thumb": "#fbfbfc",
|
|
19
|
+
"color-nav-current": "color-mix(in srgb, #4b45d1 14%, #fbfbfc)",
|
|
20
|
+
"color-nav-current-text": "#4b45d1",
|
|
21
|
+
"color-segmented-current-text": "#4b45d1",
|
|
22
|
+
"color-row-hover": "#e2e5e8",
|
|
23
|
+
"color-row-selected": "#fbfbfc",
|
|
24
|
+
"color-border-subtle": "#d3d8dd",
|
|
25
|
+
"color-border": "#6d747b",
|
|
26
|
+
"color-text": "#101315",
|
|
27
|
+
"color-muted": "#50575e",
|
|
28
|
+
"color-overlay": "rgb(0 0 0 / 42%)",
|
|
29
|
+
"color-accent": "#4b45d1",
|
|
30
|
+
"color-accent-text": "#f4f5f6",
|
|
31
|
+
"color-accent-hover": "#101315",
|
|
32
|
+
"color-button-hover": "color-mix(in srgb, #4b45d1 85%, #101315)",
|
|
33
|
+
"color-link": "#0b5f7c",
|
|
34
|
+
"color-focus": "#4b45d1",
|
|
35
35
|
"focus-width": "2px",
|
|
36
36
|
"focus-offset": "3px",
|
|
37
|
-
"success": "#157249",
|
|
38
|
-
"warning": "#86532e",
|
|
39
|
-
"
|
|
40
|
-
"info": "#175cd3",
|
|
41
|
-
"success-
|
|
42
|
-
"warning-
|
|
43
|
-
"
|
|
44
|
-
"info-
|
|
45
|
-
"command-bg": "color-mix(in srgb, #4b45d1 25%, #101010)",
|
|
46
|
-
"command-border": "transparent",
|
|
47
|
-
"terminal": "#0a0c0e",
|
|
48
|
-
"terminal-text": "#e6e9eb",
|
|
49
|
-
"terminal-border": "#2a3036",
|
|
50
|
-
"terminal-caption": "#13171a",
|
|
51
|
-
"terminal-caption-text": "#c9d0d6",
|
|
52
|
-
"
|
|
53
|
-
"code
|
|
54
|
-
"code-text": "#101315",
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
37
|
+
"color-success": "#157249",
|
|
38
|
+
"color-warning": "#86532e",
|
|
39
|
+
"color-error": "#bd342b",
|
|
40
|
+
"color-info": "#175cd3",
|
|
41
|
+
"color-success-surface": "#d9e5e1",
|
|
42
|
+
"color-warning-surface": "#e7e2de",
|
|
43
|
+
"color-error-surface": "#efe4e4",
|
|
44
|
+
"color-info-surface": "#d9e3f2",
|
|
45
|
+
"color-command-bg": "color-mix(in srgb, #4b45d1 25%, #101010)",
|
|
46
|
+
"color-command-border": "transparent",
|
|
47
|
+
"color-terminal": "#0a0c0e",
|
|
48
|
+
"color-terminal-text": "#e6e9eb",
|
|
49
|
+
"color-terminal-border": "#2a3036",
|
|
50
|
+
"color-terminal-caption": "#13171a",
|
|
51
|
+
"color-terminal-caption-text": "#c9d0d6",
|
|
52
|
+
"shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
|
|
53
|
+
"color-code": "#e9ebed",
|
|
54
|
+
"color-code-text": "#101315",
|
|
55
|
+
"color-syntax-keyword": "#715b42",
|
|
56
|
+
"color-syntax-string": "#346347",
|
|
57
|
+
"color-syntax-number": "#86532e",
|
|
58
|
+
"color-syntax-comment": "#626772",
|
|
59
59
|
"text-xs": "0.75rem",
|
|
60
60
|
"text-sm": "0.8125rem",
|
|
61
61
|
"text-md": "0.875rem",
|
|
@@ -92,76 +92,76 @@ export const tokens = {
|
|
|
92
92
|
"page-max": "960px",
|
|
93
93
|
"page-wide": "1120px",
|
|
94
94
|
"sidebar": "224px",
|
|
95
|
-
"radius-
|
|
96
|
-
"radius-
|
|
97
|
-
"radius-
|
|
95
|
+
"radius-inline": "6px",
|
|
96
|
+
"radius-control": "999px",
|
|
97
|
+
"radius-panel": "16px",
|
|
98
98
|
"radius-field": "10px",
|
|
99
99
|
"radius-pill": "999px",
|
|
100
100
|
"shadow-raise": "0 1px 2px rgb(16 24 40 / 12%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
101
101
|
"shadow-surface": "0 1px 2px rgb(16 24 40 / 6%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
102
102
|
"shadow-sink": "inset 1.2px 1.2px 3.6px rgb(130 142 158 / 35%), inset -1.2px -1.2px 3.6px rgb(255 255 255 / 80%)",
|
|
103
|
-
"shadow-
|
|
103
|
+
"shadow-dialog": "0 8px 24px rgb(16 16 24 / 12%), 0 0 0 1px #d3d8dd",
|
|
104
104
|
"shadow-nav-current": "0 1px 3px rgb(130 142 158 / 40%)",
|
|
105
|
-
"field-
|
|
106
|
-
"field-
|
|
105
|
+
"shadow-field-focus": "inset 0 0 0 2px color-mix(in srgb, #4b45d1 18%, transparent)",
|
|
106
|
+
"shadow-field-focus-invalid": "inset 0 0 0 2px color-mix(in srgb, #bd342b 18%, transparent)",
|
|
107
107
|
"duration-fast": "120ms",
|
|
108
108
|
"duration": "180ms",
|
|
109
109
|
"ease-out": "cubic-bezier(0.2, 0.8, 0.2, 1)"
|
|
110
110
|
},
|
|
111
111
|
"dark": {
|
|
112
|
-
"project": "#a5a1ff",
|
|
113
|
-
"project-dark": "#a5a1ff",
|
|
114
|
-
"font-
|
|
112
|
+
"color-project": "#a5a1ff",
|
|
113
|
+
"color-project-dark": "#a5a1ff",
|
|
114
|
+
"font-ui": "\"IBM Plex Sans\", -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Segoe UI\", system-ui, sans-serif",
|
|
115
115
|
"font-mono": "\"IBM Plex Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, monospace",
|
|
116
|
-
"bg": "#0d1012",
|
|
117
|
-
"surface": "#13171a",
|
|
118
|
-
"surface-raised": "#181d21",
|
|
119
|
-
"surface-
|
|
120
|
-
"
|
|
121
|
-
"field-bg": "color-mix(in srgb, #0d1012 87.5%, black)",
|
|
122
|
-
"field-edge": "#262d33",
|
|
123
|
-
"field
|
|
124
|
-
"control-thumb": "color-mix(in srgb, #181d21 88%, white)",
|
|
125
|
-
"nav-current": "color-mix(in srgb, #a5a1ff 20%, transparent)",
|
|
126
|
-
"nav-current-text": "#a5a1ff",
|
|
127
|
-
"segmented-current-text": "#a5a1ff",
|
|
128
|
-
"row-hover": "#20262b",
|
|
129
|
-
"row-selected": "#181d21",
|
|
130
|
-
"border-subtle": "#262d33",
|
|
131
|
-
"border": "#78818a",
|
|
132
|
-
"text": "#e6e9eb",
|
|
133
|
-
"
|
|
134
|
-
"overlay": "rgb(0 0 0 / 62%)",
|
|
135
|
-
"accent": "#a5a1ff",
|
|
136
|
-
"accent-text": "#0d1012",
|
|
137
|
-
"accent-hover": "#e6e9eb",
|
|
138
|
-
"button-hover": "color-mix(in srgb, #a5a1ff 85%, #e6e9eb)",
|
|
139
|
-
"link": "#67c1df",
|
|
140
|
-
"focus": "#a5a1ff",
|
|
116
|
+
"color-bg": "#0d1012",
|
|
117
|
+
"color-surface": "#13171a",
|
|
118
|
+
"color-surface-raised": "#181d21",
|
|
119
|
+
"color-surface-muted": "#20262b",
|
|
120
|
+
"color-well": "color-mix(in srgb, #0d1012 87.5%, black)",
|
|
121
|
+
"color-field-bg": "color-mix(in srgb, #0d1012 87.5%, black)",
|
|
122
|
+
"color-field-edge": "#262d33",
|
|
123
|
+
"shadow-field": "inset 1.2px 1.2px 3.6px rgb(0 0 0 / 55%), inset -1.2px -1.2px 3.6px rgb(255 255 255 / 5%)",
|
|
124
|
+
"color-control-thumb": "color-mix(in srgb, #181d21 88%, white)",
|
|
125
|
+
"color-nav-current": "color-mix(in srgb, #a5a1ff 20%, transparent)",
|
|
126
|
+
"color-nav-current-text": "#a5a1ff",
|
|
127
|
+
"color-segmented-current-text": "#a5a1ff",
|
|
128
|
+
"color-row-hover": "#20262b",
|
|
129
|
+
"color-row-selected": "#181d21",
|
|
130
|
+
"color-border-subtle": "#262d33",
|
|
131
|
+
"color-border": "#78818a",
|
|
132
|
+
"color-text": "#e6e9eb",
|
|
133
|
+
"color-muted": "#9aa3ab",
|
|
134
|
+
"color-overlay": "rgb(0 0 0 / 62%)",
|
|
135
|
+
"color-accent": "#a5a1ff",
|
|
136
|
+
"color-accent-text": "#0d1012",
|
|
137
|
+
"color-accent-hover": "#e6e9eb",
|
|
138
|
+
"color-button-hover": "color-mix(in srgb, #a5a1ff 85%, #e6e9eb)",
|
|
139
|
+
"color-link": "#67c1df",
|
|
140
|
+
"color-focus": "#a5a1ff",
|
|
141
141
|
"focus-width": "2px",
|
|
142
142
|
"focus-offset": "3px",
|
|
143
|
-
"success": "#4cc38a",
|
|
144
|
-
"warning": "#e2a54b",
|
|
145
|
-
"
|
|
146
|
-
"info": "#84adff",
|
|
147
|
-
"success-
|
|
148
|
-
"warning-
|
|
149
|
-
"
|
|
150
|
-
"info-
|
|
151
|
-
"command-bg": "color-mix(in srgb, #a5a1ff 16%, black)",
|
|
152
|
-
"command-border": "color-mix(in srgb, #a5a1ff 28%, black)",
|
|
153
|
-
"terminal": "#0a0c0e",
|
|
154
|
-
"terminal-text": "#e6e9eb",
|
|
155
|
-
"terminal-border": "#2a3036",
|
|
156
|
-
"terminal-caption": "#13171a",
|
|
157
|
-
"terminal-caption-text": "#c9d0d6",
|
|
158
|
-
"
|
|
159
|
-
"code
|
|
160
|
-
"code-text": "#e6e9eb",
|
|
161
|
-
"
|
|
162
|
-
"
|
|
163
|
-
"
|
|
164
|
-
"
|
|
143
|
+
"color-success": "#4cc38a",
|
|
144
|
+
"color-warning": "#e2a54b",
|
|
145
|
+
"color-error": "#f0776c",
|
|
146
|
+
"color-info": "#84adff",
|
|
147
|
+
"color-success-surface": "#172d25",
|
|
148
|
+
"color-warning-surface": "#2f281b",
|
|
149
|
+
"color-error-surface": "#312020",
|
|
150
|
+
"color-info-surface": "#202938",
|
|
151
|
+
"color-command-bg": "color-mix(in srgb, #a5a1ff 16%, black)",
|
|
152
|
+
"color-command-border": "color-mix(in srgb, #a5a1ff 28%, black)",
|
|
153
|
+
"color-terminal": "#0a0c0e",
|
|
154
|
+
"color-terminal-text": "#e6e9eb",
|
|
155
|
+
"color-terminal-border": "#2a3036",
|
|
156
|
+
"color-terminal-caption": "#13171a",
|
|
157
|
+
"color-terminal-caption-text": "#c9d0d6",
|
|
158
|
+
"shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
|
|
159
|
+
"color-code": "#13171a",
|
|
160
|
+
"color-code-text": "#e6e9eb",
|
|
161
|
+
"color-syntax-keyword": "#d8c2a5",
|
|
162
|
+
"color-syntax-string": "#a8bd9c",
|
|
163
|
+
"color-syntax-number": "#d5b98c",
|
|
164
|
+
"color-syntax-comment": "#a0a6b1",
|
|
165
165
|
"text-xs": "0.75rem",
|
|
166
166
|
"text-sm": "0.8125rem",
|
|
167
167
|
"text-md": "0.875rem",
|
|
@@ -198,18 +198,18 @@ export const tokens = {
|
|
|
198
198
|
"page-max": "960px",
|
|
199
199
|
"page-wide": "1120px",
|
|
200
200
|
"sidebar": "224px",
|
|
201
|
-
"radius-
|
|
202
|
-
"radius-
|
|
203
|
-
"radius-
|
|
201
|
+
"radius-inline": "6px",
|
|
202
|
+
"radius-control": "999px",
|
|
203
|
+
"radius-panel": "16px",
|
|
204
204
|
"radius-field": "10px",
|
|
205
205
|
"radius-pill": "999px",
|
|
206
206
|
"shadow-raise": "inset 0 1px 0 rgb(255 255 255 / 7%), 0 1px 2px rgb(0 0 0 / 45%)",
|
|
207
207
|
"shadow-surface": "0 0 0 1px rgb(255 255 255 / 6%)",
|
|
208
208
|
"shadow-sink": "inset 1.2px 1.2px 3.6px rgb(0 0 0 / 55%), inset -1.2px -1.2px 3.6px rgb(255 255 255 / 5%)",
|
|
209
|
-
"shadow-
|
|
209
|
+
"shadow-dialog": "0 8px 24px rgb(0 0 0 / 45%), 0 0 0 1px #262d33",
|
|
210
210
|
"shadow-nav-current": "0 1px 2px rgb(0 0 0 / 25%)",
|
|
211
|
-
"field-
|
|
212
|
-
"field-
|
|
211
|
+
"shadow-field-focus": "inset 0 0 0 2px color-mix(in srgb, #a5a1ff 18%, transparent)",
|
|
212
|
+
"shadow-field-focus-invalid": "inset 0 0 0 2px color-mix(in srgb, #f0776c 18%, transparent)",
|
|
213
213
|
"duration-fast": "120ms",
|
|
214
214
|
"duration": "180ms",
|
|
215
215
|
"ease-out": "cubic-bezier(0.2, 0.8, 0.2, 1)"
|
|
@@ -218,5 +218,5 @@ export const tokens = {
|
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
/** The var() reference for a token, such as cssVar('text') for 'var(--text)'. */
|
|
221
|
+
/** The var() reference for a token, such as cssVar('color-text') for 'var(--color-text)'. */
|
|
222
222
|
export const cssVar = (name) => `var(--${name})`
|