@hugocxl/design-system 0.0.0-stage → 0.2.7
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/DESIGN.md +686 -0
- package/LICENSE +21 -0
- package/README.md +38 -2
- package/dist/fonts.css +13 -0
- package/dist/tailwind-preset.cjs +75 -0
- package/dist/tailwind.css +55 -0
- package/dist/tokens.css +89 -0
- package/dist/tokens.d.ts +95 -0
- package/dist/tokens.js +95 -0
- package/dist/tokens.json +93 -0
- package/dist/tokens.scss +50 -0
- package/package.json +63 -4
- package/system/ds.css +282 -0
- package/system/ds.js +12 -0
- package/system/fonts/Geist-LICENSE.txt +92 -0
- package/system/fonts/Geist-Variable.woff2 +0 -0
- package/system/fonts/GeistMono-Variable.woff2 +0 -0
- package/system/images/gray-folds.png +0 -0
- package/system/plan.schema.json +189 -0
- package/system/theme.js +13 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Hugo Corta
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,39 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Design system
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
### My signature, across everything I make.
|
|
4
|
+
|
|
5
|
+
The design system behind all my personal projects. Large reading type, quiet line vectors, rounded icons and a single orange accent, so every site I ship, from a product page to its docs, reads as part of the same body of work.
|
|
6
|
+
|
|
7
|
+
[Read the system](https://hugocxl.github.io/design-system/) · [See the icons and vectors in use](https://hugocxl.github.io/design-system/#stack) · [Visit the website](https://hugocxl.github.io/design-system/)
|
|
8
|
+
|
|
9
|
+
[](https://hugocxl.github.io/design-system/)
|
|
10
|
+
|
|
11
|
+
## Calm by default
|
|
12
|
+
|
|
13
|
+
Reading type carries every page, and nothing is set larger than the title. Vectors explain instead of decorate, and icons only ever label an action. The orange accent appears at most twice, so when it shows up, it means something.
|
|
14
|
+
|
|
15
|
+
## A closed vocabulary
|
|
16
|
+
|
|
17
|
+
Thirteen components and six page recipes cover a home page, articles, docs, changelogs, pricing and contact. Every color, size and space is a token. Figures come only from my vectors and icons only from my icons, so nothing borrowed slips in.
|
|
18
|
+
|
|
19
|
+
## Made to feel at home
|
|
20
|
+
|
|
21
|
+
- **One look, every project.** Start a new site and it already looks like mine.
|
|
22
|
+
- **Fits any stack.** Tailwind, plain CSS, Sass or JavaScript: the same tokens come along wherever I build.
|
|
23
|
+
- **Ready for agents.** One file holds the whole definition, so an agent builds the same page from the same plan, every time.
|
|
24
|
+
- **Light and dark.** Every token has both, and pages follow the reader's preference.
|
|
25
|
+
- **Accessible from the start.** Readable contrast, keyboard-friendly controls and layouts that hold from a phone to a wide screen.
|
|
26
|
+
|
|
27
|
+
## Part of a stack
|
|
28
|
+
|
|
29
|
+
Three libraries, designed to work as one.
|
|
30
|
+
|
|
31
|
+
- **[Icons](https://hugocxl.github.io/icons/)** label what people can do.
|
|
32
|
+
- **[Vectors](https://hugocxl.github.io/vectors/)** illustrate what you mean.
|
|
33
|
+
- **[Design system](https://hugocxl.github.io/design-system/)** gives them the type, color and space to live in.
|
|
34
|
+
|
|
35
|
+
## License
|
|
36
|
+
|
|
37
|
+
The system is [MIT licensed](LICENSE). It ships the [Geist](https://vercel.com/font) typefaces under their [own license](system/fonts/Geist-LICENSE.txt). Its paper, orange and reading scale take after [Superlogical](https://www.superlogical.com/).
|
|
38
|
+
|
|
39
|
+
Made by [Hugo](https://github.com/hugocxl). Ideas and contributions are welcome: [open an issue](https://github.com/hugocxl/design-system/issues).
|
package/dist/fonts.css
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* Generated by scripts/build-exports.mjs from system/ds.css. Do not edit. */
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: "Geist Sans";
|
|
4
|
+
src: url("../system/fonts/Geist-Variable.woff2") format("woff2");
|
|
5
|
+
font-weight: 100 900;
|
|
6
|
+
font-display: swap;
|
|
7
|
+
}
|
|
8
|
+
@font-face {
|
|
9
|
+
font-family: "Geist Mono";
|
|
10
|
+
src: url("../system/fonts/GeistMono-Variable.woff2") format("woff2");
|
|
11
|
+
font-weight: 100 900;
|
|
12
|
+
font-display: swap;
|
|
13
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* Generated by scripts/build-exports.mjs from system/ds.css. Do not edit. */
|
|
2
|
+
module.exports = {
|
|
3
|
+
"darkMode": [
|
|
4
|
+
"selector",
|
|
5
|
+
"[data-theme=\"dark\"]"
|
|
6
|
+
],
|
|
7
|
+
"theme": {
|
|
8
|
+
"extend": {
|
|
9
|
+
"colors": {
|
|
10
|
+
"canvas": "var(--ds-canvas)",
|
|
11
|
+
"ink": "var(--ds-ink)",
|
|
12
|
+
"muted": "var(--ds-muted)",
|
|
13
|
+
"faint": "var(--ds-faint)",
|
|
14
|
+
"rule": "var(--ds-rule)",
|
|
15
|
+
"surface": "var(--ds-surface)",
|
|
16
|
+
"accent": "var(--ds-accent)",
|
|
17
|
+
"accent-text": "var(--ds-accent-text)",
|
|
18
|
+
"red": "var(--ds-red)",
|
|
19
|
+
"orange": "var(--ds-orange)",
|
|
20
|
+
"yellow": "var(--ds-yellow)",
|
|
21
|
+
"green": "var(--ds-green)",
|
|
22
|
+
"teal": "var(--ds-teal)",
|
|
23
|
+
"sky": "var(--ds-sky)",
|
|
24
|
+
"blue": "var(--ds-blue)",
|
|
25
|
+
"violet": "var(--ds-violet)",
|
|
26
|
+
"purple": "var(--ds-purple)",
|
|
27
|
+
"pink": "var(--ds-pink)",
|
|
28
|
+
"brown": "var(--ds-brown)",
|
|
29
|
+
"success": "var(--ds-success)",
|
|
30
|
+
"warning": "var(--ds-warning)",
|
|
31
|
+
"error": "var(--ds-error)",
|
|
32
|
+
"info": "var(--ds-info)",
|
|
33
|
+
"neutral": "var(--ds-neutral)"
|
|
34
|
+
},
|
|
35
|
+
"fontFamily": {
|
|
36
|
+
"sans": [
|
|
37
|
+
"var(--ds-sans)"
|
|
38
|
+
],
|
|
39
|
+
"mono": [
|
|
40
|
+
"var(--ds-mono)"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"fontSize": {
|
|
44
|
+
"reading": "var(--ds-size-reading)",
|
|
45
|
+
"title": "var(--ds-size-title)",
|
|
46
|
+
"small": "var(--ds-size-small)",
|
|
47
|
+
"control": "var(--ds-size-control)",
|
|
48
|
+
"mono": "var(--ds-size-mono)",
|
|
49
|
+
"label": "var(--ds-size-label)"
|
|
50
|
+
},
|
|
51
|
+
"spacing": {
|
|
52
|
+
"space-1": "var(--ds-space-1)",
|
|
53
|
+
"space-2": "var(--ds-space-2)",
|
|
54
|
+
"space-3": "var(--ds-space-3)",
|
|
55
|
+
"space-4": "var(--ds-space-4)",
|
|
56
|
+
"space-5": "var(--ds-space-5)",
|
|
57
|
+
"space-6": "var(--ds-space-6)",
|
|
58
|
+
"space-7": "var(--ds-space-7)",
|
|
59
|
+
"space-8": "var(--ds-space-8)",
|
|
60
|
+
"space-9": "var(--ds-space-9)",
|
|
61
|
+
"space-10": "var(--ds-space-10)",
|
|
62
|
+
"target": "var(--ds-target)"
|
|
63
|
+
},
|
|
64
|
+
"borderRadius": {
|
|
65
|
+
"control": "var(--ds-radius-control)",
|
|
66
|
+
"media": "var(--ds-radius-media)",
|
|
67
|
+
"pill": "var(--ds-radius-pill)"
|
|
68
|
+
},
|
|
69
|
+
"maxWidth": {
|
|
70
|
+
"measure": "var(--ds-measure)",
|
|
71
|
+
"wide": "var(--ds-wide)"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* Generated by scripts/build-exports.mjs from system/ds.css. Do not edit. */
|
|
2
|
+
@import "./fonts.css";
|
|
3
|
+
@import "./tokens.css";
|
|
4
|
+
@custom-variant dark (&:where([data-theme=dark], [data-theme=dark] *));
|
|
5
|
+
|
|
6
|
+
@theme inline {
|
|
7
|
+
--color-canvas: var(--ds-canvas);
|
|
8
|
+
--color-ink: var(--ds-ink);
|
|
9
|
+
--color-muted: var(--ds-muted);
|
|
10
|
+
--color-faint: var(--ds-faint);
|
|
11
|
+
--color-rule: var(--ds-rule);
|
|
12
|
+
--color-surface: var(--ds-surface);
|
|
13
|
+
--color-accent: var(--ds-accent);
|
|
14
|
+
--color-accent-text: var(--ds-accent-text);
|
|
15
|
+
--color-red: var(--ds-red);
|
|
16
|
+
--color-orange: var(--ds-orange);
|
|
17
|
+
--color-yellow: var(--ds-yellow);
|
|
18
|
+
--color-green: var(--ds-green);
|
|
19
|
+
--color-teal: var(--ds-teal);
|
|
20
|
+
--color-sky: var(--ds-sky);
|
|
21
|
+
--color-blue: var(--ds-blue);
|
|
22
|
+
--color-violet: var(--ds-violet);
|
|
23
|
+
--color-purple: var(--ds-purple);
|
|
24
|
+
--color-pink: var(--ds-pink);
|
|
25
|
+
--color-brown: var(--ds-brown);
|
|
26
|
+
--color-success: var(--ds-success);
|
|
27
|
+
--color-warning: var(--ds-warning);
|
|
28
|
+
--color-error: var(--ds-error);
|
|
29
|
+
--color-info: var(--ds-info);
|
|
30
|
+
--color-neutral: var(--ds-neutral);
|
|
31
|
+
--font-sans: var(--ds-sans);
|
|
32
|
+
--font-mono: var(--ds-mono);
|
|
33
|
+
--text-reading: var(--ds-size-reading);
|
|
34
|
+
--text-title: var(--ds-size-title);
|
|
35
|
+
--text-small: var(--ds-size-small);
|
|
36
|
+
--text-control: var(--ds-size-control);
|
|
37
|
+
--text-mono: var(--ds-size-mono);
|
|
38
|
+
--text-label: var(--ds-size-label);
|
|
39
|
+
--spacing-space-1: var(--ds-space-1);
|
|
40
|
+
--spacing-space-2: var(--ds-space-2);
|
|
41
|
+
--spacing-space-3: var(--ds-space-3);
|
|
42
|
+
--spacing-space-4: var(--ds-space-4);
|
|
43
|
+
--spacing-space-5: var(--ds-space-5);
|
|
44
|
+
--spacing-space-6: var(--ds-space-6);
|
|
45
|
+
--spacing-space-7: var(--ds-space-7);
|
|
46
|
+
--spacing-space-8: var(--ds-space-8);
|
|
47
|
+
--spacing-space-9: var(--ds-space-9);
|
|
48
|
+
--spacing-space-10: var(--ds-space-10);
|
|
49
|
+
--radius-control: var(--ds-radius-control);
|
|
50
|
+
--radius-media: var(--ds-radius-media);
|
|
51
|
+
--radius-pill: var(--ds-radius-pill);
|
|
52
|
+
--container-measure: var(--ds-measure);
|
|
53
|
+
--container-wide: var(--ds-wide);
|
|
54
|
+
--spacing-target: var(--ds-target);
|
|
55
|
+
}
|
package/dist/tokens.css
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/* Generated by scripts/build-exports.mjs from system/ds.css. Do not edit. */
|
|
2
|
+
:root {
|
|
3
|
+
--ds-canvas: #f5f5f4;
|
|
4
|
+
--ds-ink: #171717;
|
|
5
|
+
--ds-muted: #6e6e6e;
|
|
6
|
+
--ds-faint: #b3b3b3;
|
|
7
|
+
--ds-rule: #1717171f;
|
|
8
|
+
--ds-surface: #ebebea;
|
|
9
|
+
--ds-accent: #fe9369;
|
|
10
|
+
--ds-accent-text: #ce7755;
|
|
11
|
+
--ds-red: #c43d3d;
|
|
12
|
+
--ds-orange: #bb702f;
|
|
13
|
+
--ds-yellow: #a08005;
|
|
14
|
+
--ds-green: #419445;
|
|
15
|
+
--ds-teal: #378f99;
|
|
16
|
+
--ds-sky: #388cb0;
|
|
17
|
+
--ds-blue: #3f83ce;
|
|
18
|
+
--ds-violet: #633cc7;
|
|
19
|
+
--ds-purple: #993ab8;
|
|
20
|
+
--ds-pink: #c23b62;
|
|
21
|
+
--ds-brown: #8f6d53;
|
|
22
|
+
--ds-success: var(--ds-green);
|
|
23
|
+
--ds-warning: var(--ds-yellow);
|
|
24
|
+
--ds-error: var(--ds-red);
|
|
25
|
+
--ds-info: var(--ds-blue);
|
|
26
|
+
--ds-neutral: var(--ds-muted);
|
|
27
|
+
--ds-sans: "Geist Sans", Helvetica, Arial, sans-serif;
|
|
28
|
+
--ds-mono: "Geist Mono", ui-monospace, Menlo, monospace;
|
|
29
|
+
--ds-size-reading: min(calc(1rem + .36vw), 1.54rem);
|
|
30
|
+
--ds-size-title: calc(var(--ds-size-reading) * 1.4);
|
|
31
|
+
--ds-size-small: calc(var(--ds-size-reading) * .8);
|
|
32
|
+
--ds-size-control: 1rem;
|
|
33
|
+
--ds-size-mono: .9375rem;
|
|
34
|
+
--ds-size-label: .8125rem;
|
|
35
|
+
--ds-space-1: .25rem;
|
|
36
|
+
--ds-space-2: .5rem;
|
|
37
|
+
--ds-space-3: .75rem;
|
|
38
|
+
--ds-space-4: 1rem;
|
|
39
|
+
--ds-space-5: 1.25rem;
|
|
40
|
+
--ds-space-6: 2rem;
|
|
41
|
+
--ds-space-7: 2.5rem;
|
|
42
|
+
--ds-space-8: 3.5rem;
|
|
43
|
+
--ds-space-9: 5rem;
|
|
44
|
+
--ds-space-10: 8rem;
|
|
45
|
+
--ds-radius-control: 6px;
|
|
46
|
+
--ds-radius-media: 12px;
|
|
47
|
+
--ds-radius-pill: 999px;
|
|
48
|
+
--ds-target: 44px;
|
|
49
|
+
--ds-measure: 30em;
|
|
50
|
+
--ds-wide: 80rem;
|
|
51
|
+
--ds-ease: 120ms ease-out;
|
|
52
|
+
color-scheme: light;
|
|
53
|
+
}
|
|
54
|
+
:root[data-theme=dark] {
|
|
55
|
+
--ds-canvas: #111111;
|
|
56
|
+
--ds-ink: #ededed;
|
|
57
|
+
--ds-muted: #7d7d7d;
|
|
58
|
+
--ds-faint: #737373;
|
|
59
|
+
--ds-rule: #ededed24;
|
|
60
|
+
--ds-surface: #1c1c1c;
|
|
61
|
+
--ds-accent-text: #fe9369;
|
|
62
|
+
--ds-orange: #c77b3b;
|
|
63
|
+
--ds-yellow: #ceab3c;
|
|
64
|
+
--ds-green: #4b9d4e;
|
|
65
|
+
--ds-teal: #4da3ad;
|
|
66
|
+
--ds-sky: #4c9fc3;
|
|
67
|
+
--ds-violet: #7350dc;
|
|
68
|
+
--ds-purple: #9e3fbd;
|
|
69
|
+
color-scheme: dark;
|
|
70
|
+
}
|
|
71
|
+
@media (prefers-color-scheme: dark) {
|
|
72
|
+
:root:not([data-theme=light]) {
|
|
73
|
+
--ds-canvas: #111111;
|
|
74
|
+
--ds-ink: #ededed;
|
|
75
|
+
--ds-muted: #7d7d7d;
|
|
76
|
+
--ds-faint: #737373;
|
|
77
|
+
--ds-rule: #ededed24;
|
|
78
|
+
--ds-surface: #1c1c1c;
|
|
79
|
+
--ds-accent-text: #fe9369;
|
|
80
|
+
--ds-orange: #c77b3b;
|
|
81
|
+
--ds-yellow: #ceab3c;
|
|
82
|
+
--ds-green: #4b9d4e;
|
|
83
|
+
--ds-teal: #4da3ad;
|
|
84
|
+
--ds-sky: #4c9fc3;
|
|
85
|
+
--ds-violet: #7350dc;
|
|
86
|
+
--ds-purple: #9e3fbd;
|
|
87
|
+
color-scheme: dark;
|
|
88
|
+
}
|
|
89
|
+
}
|
package/dist/tokens.d.ts
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/* Generated by scripts/build-exports.mjs from system/ds.css. Do not edit. */
|
|
2
|
+
export declare const tokens: {
|
|
3
|
+
"color": {
|
|
4
|
+
"light": {
|
|
5
|
+
"canvas": string,
|
|
6
|
+
"ink": string,
|
|
7
|
+
"muted": string,
|
|
8
|
+
"faint": string,
|
|
9
|
+
"rule": string,
|
|
10
|
+
"surface": string,
|
|
11
|
+
"accent": string,
|
|
12
|
+
"accent-text": string,
|
|
13
|
+
"red": string,
|
|
14
|
+
"orange": string,
|
|
15
|
+
"yellow": string,
|
|
16
|
+
"green": string,
|
|
17
|
+
"teal": string,
|
|
18
|
+
"sky": string,
|
|
19
|
+
"blue": string,
|
|
20
|
+
"violet": string,
|
|
21
|
+
"purple": string,
|
|
22
|
+
"pink": string,
|
|
23
|
+
"brown": string,
|
|
24
|
+
"success": string,
|
|
25
|
+
"warning": string,
|
|
26
|
+
"error": string,
|
|
27
|
+
"info": string,
|
|
28
|
+
"neutral": string
|
|
29
|
+
},
|
|
30
|
+
"dark": {
|
|
31
|
+
"canvas": string,
|
|
32
|
+
"ink": string,
|
|
33
|
+
"muted": string,
|
|
34
|
+
"faint": string,
|
|
35
|
+
"rule": string,
|
|
36
|
+
"surface": string,
|
|
37
|
+
"accent": string,
|
|
38
|
+
"accent-text": string,
|
|
39
|
+
"red": string,
|
|
40
|
+
"orange": string,
|
|
41
|
+
"yellow": string,
|
|
42
|
+
"green": string,
|
|
43
|
+
"teal": string,
|
|
44
|
+
"sky": string,
|
|
45
|
+
"blue": string,
|
|
46
|
+
"violet": string,
|
|
47
|
+
"purple": string,
|
|
48
|
+
"pink": string,
|
|
49
|
+
"brown": string,
|
|
50
|
+
"success": string,
|
|
51
|
+
"warning": string,
|
|
52
|
+
"error": string,
|
|
53
|
+
"info": string,
|
|
54
|
+
"neutral": string
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"font": {
|
|
58
|
+
"sans": stringGeist Sans\", Helvetica, Arial, sans-serif",
|
|
59
|
+
"mono": stringGeist Mono\", ui-monospace, Menlo, monospace"
|
|
60
|
+
},
|
|
61
|
+
"size": {
|
|
62
|
+
"reading": string,
|
|
63
|
+
"title": string,
|
|
64
|
+
"small": string,
|
|
65
|
+
"control": string,
|
|
66
|
+
"mono": string,
|
|
67
|
+
"label": string
|
|
68
|
+
},
|
|
69
|
+
"space": {
|
|
70
|
+
"1": string,
|
|
71
|
+
"2": string,
|
|
72
|
+
"3": string,
|
|
73
|
+
"4": string,
|
|
74
|
+
"5": string,
|
|
75
|
+
"6": string,
|
|
76
|
+
"7": string,
|
|
77
|
+
"8": string,
|
|
78
|
+
"9": string,
|
|
79
|
+
"10": string
|
|
80
|
+
},
|
|
81
|
+
"radius": {
|
|
82
|
+
"control": string,
|
|
83
|
+
"media": string,
|
|
84
|
+
"pill": string
|
|
85
|
+
},
|
|
86
|
+
"layout": {
|
|
87
|
+
"target": string,
|
|
88
|
+
"measure": string,
|
|
89
|
+
"wide": string
|
|
90
|
+
},
|
|
91
|
+
"motion": {
|
|
92
|
+
"ease": string
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
export default tokens;
|
package/dist/tokens.js
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/* Generated by scripts/build-exports.mjs from system/ds.css. Do not edit. */
|
|
2
|
+
export const tokens = {
|
|
3
|
+
"color": {
|
|
4
|
+
"light": {
|
|
5
|
+
"canvas": "#f5f5f4",
|
|
6
|
+
"ink": "#171717",
|
|
7
|
+
"muted": "#6e6e6e",
|
|
8
|
+
"faint": "#b3b3b3",
|
|
9
|
+
"rule": "#1717171f",
|
|
10
|
+
"surface": "#ebebea",
|
|
11
|
+
"accent": "#fe9369",
|
|
12
|
+
"accent-text": "#ce7755",
|
|
13
|
+
"red": "#c43d3d",
|
|
14
|
+
"orange": "#bb702f",
|
|
15
|
+
"yellow": "#a08005",
|
|
16
|
+
"green": "#419445",
|
|
17
|
+
"teal": "#378f99",
|
|
18
|
+
"sky": "#388cb0",
|
|
19
|
+
"blue": "#3f83ce",
|
|
20
|
+
"violet": "#633cc7",
|
|
21
|
+
"purple": "#993ab8",
|
|
22
|
+
"pink": "#c23b62",
|
|
23
|
+
"brown": "#8f6d53",
|
|
24
|
+
"success": "#419445",
|
|
25
|
+
"warning": "#a08005",
|
|
26
|
+
"error": "#c43d3d",
|
|
27
|
+
"info": "#3f83ce",
|
|
28
|
+
"neutral": "#6e6e6e"
|
|
29
|
+
},
|
|
30
|
+
"dark": {
|
|
31
|
+
"canvas": "#111111",
|
|
32
|
+
"ink": "#ededed",
|
|
33
|
+
"muted": "#7d7d7d",
|
|
34
|
+
"faint": "#737373",
|
|
35
|
+
"rule": "#ededed24",
|
|
36
|
+
"surface": "#1c1c1c",
|
|
37
|
+
"accent": "#fe9369",
|
|
38
|
+
"accent-text": "#fe9369",
|
|
39
|
+
"red": "#c43d3d",
|
|
40
|
+
"orange": "#c77b3b",
|
|
41
|
+
"yellow": "#ceab3c",
|
|
42
|
+
"green": "#4b9d4e",
|
|
43
|
+
"teal": "#4da3ad",
|
|
44
|
+
"sky": "#4c9fc3",
|
|
45
|
+
"blue": "#3f83ce",
|
|
46
|
+
"violet": "#7350dc",
|
|
47
|
+
"purple": "#9e3fbd",
|
|
48
|
+
"pink": "#c23b62",
|
|
49
|
+
"brown": "#8f6d53",
|
|
50
|
+
"success": "#4b9d4e",
|
|
51
|
+
"warning": "#ceab3c",
|
|
52
|
+
"error": "#c43d3d",
|
|
53
|
+
"info": "#3f83ce",
|
|
54
|
+
"neutral": "#7d7d7d"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"font": {
|
|
58
|
+
"sans": "\"Geist Sans\", Helvetica, Arial, sans-serif",
|
|
59
|
+
"mono": "\"Geist Mono\", ui-monospace, Menlo, monospace"
|
|
60
|
+
},
|
|
61
|
+
"size": {
|
|
62
|
+
"reading": "min(calc(1rem + .36vw), 1.54rem)",
|
|
63
|
+
"title": "calc(var(--ds-size-reading) * 1.4)",
|
|
64
|
+
"small": "calc(var(--ds-size-reading) * .8)",
|
|
65
|
+
"control": "1rem",
|
|
66
|
+
"mono": ".9375rem",
|
|
67
|
+
"label": ".8125rem"
|
|
68
|
+
},
|
|
69
|
+
"space": {
|
|
70
|
+
"1": ".25rem",
|
|
71
|
+
"2": ".5rem",
|
|
72
|
+
"3": ".75rem",
|
|
73
|
+
"4": "1rem",
|
|
74
|
+
"5": "1.25rem",
|
|
75
|
+
"6": "2rem",
|
|
76
|
+
"7": "2.5rem",
|
|
77
|
+
"8": "3.5rem",
|
|
78
|
+
"9": "5rem",
|
|
79
|
+
"10": "8rem"
|
|
80
|
+
},
|
|
81
|
+
"radius": {
|
|
82
|
+
"control": "6px",
|
|
83
|
+
"media": "12px",
|
|
84
|
+
"pill": "999px"
|
|
85
|
+
},
|
|
86
|
+
"layout": {
|
|
87
|
+
"target": "44px",
|
|
88
|
+
"measure": "30em",
|
|
89
|
+
"wide": "80rem"
|
|
90
|
+
},
|
|
91
|
+
"motion": {
|
|
92
|
+
"ease": "120ms ease-out"
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
export default tokens;
|
package/dist/tokens.json
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"color": {
|
|
3
|
+
"light": {
|
|
4
|
+
"canvas": "#f5f5f4",
|
|
5
|
+
"ink": "#171717",
|
|
6
|
+
"muted": "#6e6e6e",
|
|
7
|
+
"faint": "#b3b3b3",
|
|
8
|
+
"rule": "#1717171f",
|
|
9
|
+
"surface": "#ebebea",
|
|
10
|
+
"accent": "#fe9369",
|
|
11
|
+
"accent-text": "#ce7755",
|
|
12
|
+
"red": "#c43d3d",
|
|
13
|
+
"orange": "#bb702f",
|
|
14
|
+
"yellow": "#a08005",
|
|
15
|
+
"green": "#419445",
|
|
16
|
+
"teal": "#378f99",
|
|
17
|
+
"sky": "#388cb0",
|
|
18
|
+
"blue": "#3f83ce",
|
|
19
|
+
"violet": "#633cc7",
|
|
20
|
+
"purple": "#993ab8",
|
|
21
|
+
"pink": "#c23b62",
|
|
22
|
+
"brown": "#8f6d53",
|
|
23
|
+
"success": "#419445",
|
|
24
|
+
"warning": "#a08005",
|
|
25
|
+
"error": "#c43d3d",
|
|
26
|
+
"info": "#3f83ce",
|
|
27
|
+
"neutral": "#6e6e6e"
|
|
28
|
+
},
|
|
29
|
+
"dark": {
|
|
30
|
+
"canvas": "#111111",
|
|
31
|
+
"ink": "#ededed",
|
|
32
|
+
"muted": "#7d7d7d",
|
|
33
|
+
"faint": "#737373",
|
|
34
|
+
"rule": "#ededed24",
|
|
35
|
+
"surface": "#1c1c1c",
|
|
36
|
+
"accent": "#fe9369",
|
|
37
|
+
"accent-text": "#fe9369",
|
|
38
|
+
"red": "#c43d3d",
|
|
39
|
+
"orange": "#c77b3b",
|
|
40
|
+
"yellow": "#ceab3c",
|
|
41
|
+
"green": "#4b9d4e",
|
|
42
|
+
"teal": "#4da3ad",
|
|
43
|
+
"sky": "#4c9fc3",
|
|
44
|
+
"blue": "#3f83ce",
|
|
45
|
+
"violet": "#7350dc",
|
|
46
|
+
"purple": "#9e3fbd",
|
|
47
|
+
"pink": "#c23b62",
|
|
48
|
+
"brown": "#8f6d53",
|
|
49
|
+
"success": "#4b9d4e",
|
|
50
|
+
"warning": "#ceab3c",
|
|
51
|
+
"error": "#c43d3d",
|
|
52
|
+
"info": "#3f83ce",
|
|
53
|
+
"neutral": "#7d7d7d"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"font": {
|
|
57
|
+
"sans": "\"Geist Sans\", Helvetica, Arial, sans-serif",
|
|
58
|
+
"mono": "\"Geist Mono\", ui-monospace, Menlo, monospace"
|
|
59
|
+
},
|
|
60
|
+
"size": {
|
|
61
|
+
"reading": "min(calc(1rem + .36vw), 1.54rem)",
|
|
62
|
+
"title": "calc(var(--ds-size-reading) * 1.4)",
|
|
63
|
+
"small": "calc(var(--ds-size-reading) * .8)",
|
|
64
|
+
"control": "1rem",
|
|
65
|
+
"mono": ".9375rem",
|
|
66
|
+
"label": ".8125rem"
|
|
67
|
+
},
|
|
68
|
+
"space": {
|
|
69
|
+
"1": ".25rem",
|
|
70
|
+
"2": ".5rem",
|
|
71
|
+
"3": ".75rem",
|
|
72
|
+
"4": "1rem",
|
|
73
|
+
"5": "1.25rem",
|
|
74
|
+
"6": "2rem",
|
|
75
|
+
"7": "2.5rem",
|
|
76
|
+
"8": "3.5rem",
|
|
77
|
+
"9": "5rem",
|
|
78
|
+
"10": "8rem"
|
|
79
|
+
},
|
|
80
|
+
"radius": {
|
|
81
|
+
"control": "6px",
|
|
82
|
+
"media": "12px",
|
|
83
|
+
"pill": "999px"
|
|
84
|
+
},
|
|
85
|
+
"layout": {
|
|
86
|
+
"target": "44px",
|
|
87
|
+
"measure": "30em",
|
|
88
|
+
"wide": "80rem"
|
|
89
|
+
},
|
|
90
|
+
"motion": {
|
|
91
|
+
"ease": "120ms ease-out"
|
|
92
|
+
}
|
|
93
|
+
}
|
package/dist/tokens.scss
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// Generated by scripts/build-exports.mjs from system/ds.css. Do not edit.
|
|
2
|
+
$ds-canvas: var(--ds-canvas);
|
|
3
|
+
$ds-ink: var(--ds-ink);
|
|
4
|
+
$ds-muted: var(--ds-muted);
|
|
5
|
+
$ds-faint: var(--ds-faint);
|
|
6
|
+
$ds-rule: var(--ds-rule);
|
|
7
|
+
$ds-surface: var(--ds-surface);
|
|
8
|
+
$ds-accent: var(--ds-accent);
|
|
9
|
+
$ds-accent-text: var(--ds-accent-text);
|
|
10
|
+
$ds-red: var(--ds-red);
|
|
11
|
+
$ds-orange: var(--ds-orange);
|
|
12
|
+
$ds-yellow: var(--ds-yellow);
|
|
13
|
+
$ds-green: var(--ds-green);
|
|
14
|
+
$ds-teal: var(--ds-teal);
|
|
15
|
+
$ds-sky: var(--ds-sky);
|
|
16
|
+
$ds-blue: var(--ds-blue);
|
|
17
|
+
$ds-violet: var(--ds-violet);
|
|
18
|
+
$ds-purple: var(--ds-purple);
|
|
19
|
+
$ds-pink: var(--ds-pink);
|
|
20
|
+
$ds-brown: var(--ds-brown);
|
|
21
|
+
$ds-success: var(--ds-success);
|
|
22
|
+
$ds-warning: var(--ds-warning);
|
|
23
|
+
$ds-error: var(--ds-error);
|
|
24
|
+
$ds-info: var(--ds-info);
|
|
25
|
+
$ds-neutral: var(--ds-neutral);
|
|
26
|
+
$ds-sans: var(--ds-sans);
|
|
27
|
+
$ds-mono: var(--ds-mono);
|
|
28
|
+
$ds-size-reading: var(--ds-size-reading);
|
|
29
|
+
$ds-size-title: var(--ds-size-title);
|
|
30
|
+
$ds-size-small: var(--ds-size-small);
|
|
31
|
+
$ds-size-control: var(--ds-size-control);
|
|
32
|
+
$ds-size-mono: var(--ds-size-mono);
|
|
33
|
+
$ds-size-label: var(--ds-size-label);
|
|
34
|
+
$ds-space-1: var(--ds-space-1);
|
|
35
|
+
$ds-space-2: var(--ds-space-2);
|
|
36
|
+
$ds-space-3: var(--ds-space-3);
|
|
37
|
+
$ds-space-4: var(--ds-space-4);
|
|
38
|
+
$ds-space-5: var(--ds-space-5);
|
|
39
|
+
$ds-space-6: var(--ds-space-6);
|
|
40
|
+
$ds-space-7: var(--ds-space-7);
|
|
41
|
+
$ds-space-8: var(--ds-space-8);
|
|
42
|
+
$ds-space-9: var(--ds-space-9);
|
|
43
|
+
$ds-space-10: var(--ds-space-10);
|
|
44
|
+
$ds-radius-control: var(--ds-radius-control);
|
|
45
|
+
$ds-radius-media: var(--ds-radius-media);
|
|
46
|
+
$ds-radius-pill: var(--ds-radius-pill);
|
|
47
|
+
$ds-target: var(--ds-target);
|
|
48
|
+
$ds-measure: var(--ds-measure);
|
|
49
|
+
$ds-wide: var(--ds-wide);
|
|
50
|
+
$ds-ease: var(--ds-ease);
|