@manjunathhk/design-tokens 1.0.0-rc.2
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/LICENSE +24 -0
- package/README.md +274 -0
- package/dist/LICENSES/IBM-Plex-Mono-OFL-1.1.txt +93 -0
- package/dist/LICENSES/IBM-Plex-Sans-Condensed-OFL-1.1.txt +93 -0
- package/dist/LICENSES/IBM-Plex-Sans-OFL-1.1.txt +93 -0
- package/dist/_tokens.scss +96 -0
- package/dist/base.css +91 -0
- package/dist/fonts/IBMPlexMono-Medium-Latin1.woff2 +0 -0
- package/dist/fonts/IBMPlexMono-Regular-Latin1.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-Italic-Latin1.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-Medium-Latin1.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-Regular-Latin1.woff2 +0 -0
- package/dist/fonts/IBMPlexSans-SemiBold-Latin1.woff2 +0 -0
- package/dist/fonts/IBMPlexSansCondensed-Bold-Latin1.woff2 +0 -0
- package/dist/fonts/IBMPlexSansCondensed-Medium-Latin1.woff2 +0 -0
- package/dist/fonts/IBMPlexSansCondensed-SemiBold-Latin1.woff2 +0 -0
- package/dist/fonts.css +81 -0
- package/dist/index.css +290 -0
- package/dist/tokens.css +119 -0
- package/dist/tokens.d.ts +89 -0
- package/dist/tokens.json +103 -0
- package/dist/tokens.mjs +102 -0
- package/package.json +71 -0
package/dist/base.css
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/*! @manjunathhk/design-tokens v1.0.0-rc.2 */
|
|
2
|
+
/*
|
|
3
|
+
* Opt-in base built only on the tokens. Selectors sit inside :where() so they
|
|
4
|
+
* carry zero specificity and any site rule overrides them.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/* Reset */
|
|
8
|
+
:where(*, *::before, *::after) {
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:where(body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd) {
|
|
13
|
+
margin: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:where(img, picture, video, canvas, svg) {
|
|
17
|
+
display: block;
|
|
18
|
+
max-width: 100%;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:where(input, button, textarea, select) {
|
|
22
|
+
font: inherit;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:where(h1, h2, h3, h4, h5, h6, p) {
|
|
26
|
+
overflow-wrap: break-word;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* Body */
|
|
30
|
+
:where(html) {
|
|
31
|
+
text-size-adjust: 100%;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:where(body) {
|
|
35
|
+
min-height: 100vh;
|
|
36
|
+
background-color: var(--mk-color-bg);
|
|
37
|
+
color: var(--mk-color-text);
|
|
38
|
+
font-family: var(--mk-font-family-sans);
|
|
39
|
+
font-size: var(--mk-font-size-base);
|
|
40
|
+
font-weight: var(--mk-font-weight-regular);
|
|
41
|
+
line-height: var(--mk-font-line-height-normal);
|
|
42
|
+
-webkit-font-smoothing: antialiased;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
:where(h1, h2, h3, h4, h5, h6) {
|
|
46
|
+
font-family: var(--mk-font-family-display);
|
|
47
|
+
font-weight: var(--mk-font-weight-semibold);
|
|
48
|
+
line-height: var(--mk-font-line-height-snug);
|
|
49
|
+
letter-spacing: var(--mk-font-letter-spacing-heading);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:where(code, kbd, samp, pre) {
|
|
53
|
+
font-family: var(--mk-font-family-mono);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* Links */
|
|
57
|
+
:where(a) {
|
|
58
|
+
color: var(--mk-color-accent);
|
|
59
|
+
text-decoration-thickness: from-font;
|
|
60
|
+
text-underline-offset: 0.15em;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* Selection */
|
|
64
|
+
::selection {
|
|
65
|
+
background-color: var(--mk-color-accent);
|
|
66
|
+
color: var(--mk-color-on-accent);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* Focus ring */
|
|
70
|
+
:where(:focus-visible) {
|
|
71
|
+
outline: 2px solid var(--mk-color-focus-ring);
|
|
72
|
+
outline-offset: 2px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* Reduced motion */
|
|
76
|
+
@media (prefers-reduced-motion: reduce) {
|
|
77
|
+
:where(*, *::before, *::after) {
|
|
78
|
+
animation-duration: 0.01ms !important;
|
|
79
|
+
animation-iteration-count: 1 !important;
|
|
80
|
+
scroll-behavior: auto !important;
|
|
81
|
+
transition-duration: 0.01ms !important;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* Drafting grid: the one helper class. */
|
|
86
|
+
.mk-grid-bg {
|
|
87
|
+
background-image:
|
|
88
|
+
linear-gradient(var(--mk-color-grid-line) 1px, transparent 1px),
|
|
89
|
+
linear-gradient(90deg, var(--mk-color-grid-line) 1px, transparent 1px);
|
|
90
|
+
background-size: var(--mk-layout-grid-size) var(--mk-layout-grid-size);
|
|
91
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/fonts.css
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/*! @manjunathhk/design-tokens v1.0.0-rc.2 */
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: "IBM Plex Sans";
|
|
4
|
+
font-style: normal;
|
|
5
|
+
font-weight: 400;
|
|
6
|
+
font-display: swap;
|
|
7
|
+
src: local("IBM Plex Sans"), local("IBMPlexSans"), url("fonts/IBMPlexSans-Regular-Latin1.woff2") format("woff2");
|
|
8
|
+
unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@font-face {
|
|
12
|
+
font-family: "IBM Plex Sans";
|
|
13
|
+
font-style: normal;
|
|
14
|
+
font-weight: 500;
|
|
15
|
+
font-display: swap;
|
|
16
|
+
src: local("IBM Plex Sans Medium"), local("IBMPlexSans-Medium"), url("fonts/IBMPlexSans-Medium-Latin1.woff2") format("woff2");
|
|
17
|
+
unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@font-face {
|
|
21
|
+
font-family: "IBM Plex Sans";
|
|
22
|
+
font-style: normal;
|
|
23
|
+
font-weight: 600;
|
|
24
|
+
font-display: swap;
|
|
25
|
+
src: local("IBM Plex Sans SemiBold"), local("IBMPlexSans-SemiBold"), url("fonts/IBMPlexSans-SemiBold-Latin1.woff2") format("woff2");
|
|
26
|
+
unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@font-face {
|
|
30
|
+
font-family: "IBM Plex Sans";
|
|
31
|
+
font-style: italic;
|
|
32
|
+
font-weight: 400;
|
|
33
|
+
font-display: swap;
|
|
34
|
+
src: local("IBM Plex Sans Italic"), local("IBMPlexSans-Italic"), url("fonts/IBMPlexSans-Italic-Latin1.woff2") format("woff2");
|
|
35
|
+
unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@font-face {
|
|
39
|
+
font-family: "IBM Plex Sans Condensed";
|
|
40
|
+
font-style: normal;
|
|
41
|
+
font-weight: 500;
|
|
42
|
+
font-display: swap;
|
|
43
|
+
src: local("IBM Plex Sans Cond Medium"), local("IBMPlexSansCond-Medium"), url("fonts/IBMPlexSansCondensed-Medium-Latin1.woff2") format("woff2");
|
|
44
|
+
unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@font-face {
|
|
48
|
+
font-family: "IBM Plex Sans Condensed";
|
|
49
|
+
font-style: normal;
|
|
50
|
+
font-weight: 600;
|
|
51
|
+
font-display: swap;
|
|
52
|
+
src: local("IBM Plex Sans Cond SemiBold"), local("IBMPlexSansCond-SemiBold"), url("fonts/IBMPlexSansCondensed-SemiBold-Latin1.woff2") format("woff2");
|
|
53
|
+
unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@font-face {
|
|
57
|
+
font-family: "IBM Plex Sans Condensed";
|
|
58
|
+
font-style: normal;
|
|
59
|
+
font-weight: 700;
|
|
60
|
+
font-display: swap;
|
|
61
|
+
src: local("IBM Plex Sans Cond Bold"), local("IBMPlexSansCond-Bold"), url("fonts/IBMPlexSansCondensed-Bold-Latin1.woff2") format("woff2");
|
|
62
|
+
unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@font-face {
|
|
66
|
+
font-family: "IBM Plex Mono";
|
|
67
|
+
font-style: normal;
|
|
68
|
+
font-weight: 400;
|
|
69
|
+
font-display: swap;
|
|
70
|
+
src: local("IBM Plex Mono"), local("IBMPlexMono"), url("fonts/IBMPlexMono-Regular-Latin1.woff2") format("woff2");
|
|
71
|
+
unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@font-face {
|
|
75
|
+
font-family: "IBM Plex Mono";
|
|
76
|
+
font-style: normal;
|
|
77
|
+
font-weight: 500;
|
|
78
|
+
font-display: swap;
|
|
79
|
+
src: local("IBM Plex Mono Medium"), local("IBMPlexMono-Medium"), url("fonts/IBMPlexMono-Medium-Latin1.woff2") format("woff2");
|
|
80
|
+
unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
|
|
81
|
+
}
|
package/dist/index.css
ADDED
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
/*! @manjunathhk/design-tokens v1.0.0-rc.2 */
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: "IBM Plex Sans";
|
|
4
|
+
font-style: normal;
|
|
5
|
+
font-weight: 400;
|
|
6
|
+
font-display: swap;
|
|
7
|
+
src: local("IBM Plex Sans"), local("IBMPlexSans"), url("fonts/IBMPlexSans-Regular-Latin1.woff2") format("woff2");
|
|
8
|
+
unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@font-face {
|
|
12
|
+
font-family: "IBM Plex Sans";
|
|
13
|
+
font-style: normal;
|
|
14
|
+
font-weight: 500;
|
|
15
|
+
font-display: swap;
|
|
16
|
+
src: local("IBM Plex Sans Medium"), local("IBMPlexSans-Medium"), url("fonts/IBMPlexSans-Medium-Latin1.woff2") format("woff2");
|
|
17
|
+
unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@font-face {
|
|
21
|
+
font-family: "IBM Plex Sans";
|
|
22
|
+
font-style: normal;
|
|
23
|
+
font-weight: 600;
|
|
24
|
+
font-display: swap;
|
|
25
|
+
src: local("IBM Plex Sans SemiBold"), local("IBMPlexSans-SemiBold"), url("fonts/IBMPlexSans-SemiBold-Latin1.woff2") format("woff2");
|
|
26
|
+
unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@font-face {
|
|
30
|
+
font-family: "IBM Plex Sans";
|
|
31
|
+
font-style: italic;
|
|
32
|
+
font-weight: 400;
|
|
33
|
+
font-display: swap;
|
|
34
|
+
src: local("IBM Plex Sans Italic"), local("IBMPlexSans-Italic"), url("fonts/IBMPlexSans-Italic-Latin1.woff2") format("woff2");
|
|
35
|
+
unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@font-face {
|
|
39
|
+
font-family: "IBM Plex Sans Condensed";
|
|
40
|
+
font-style: normal;
|
|
41
|
+
font-weight: 500;
|
|
42
|
+
font-display: swap;
|
|
43
|
+
src: local("IBM Plex Sans Cond Medium"), local("IBMPlexSansCond-Medium"), url("fonts/IBMPlexSansCondensed-Medium-Latin1.woff2") format("woff2");
|
|
44
|
+
unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@font-face {
|
|
48
|
+
font-family: "IBM Plex Sans Condensed";
|
|
49
|
+
font-style: normal;
|
|
50
|
+
font-weight: 600;
|
|
51
|
+
font-display: swap;
|
|
52
|
+
src: local("IBM Plex Sans Cond SemiBold"), local("IBMPlexSansCond-SemiBold"), url("fonts/IBMPlexSansCondensed-SemiBold-Latin1.woff2") format("woff2");
|
|
53
|
+
unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@font-face {
|
|
57
|
+
font-family: "IBM Plex Sans Condensed";
|
|
58
|
+
font-style: normal;
|
|
59
|
+
font-weight: 700;
|
|
60
|
+
font-display: swap;
|
|
61
|
+
src: local("IBM Plex Sans Cond Bold"), local("IBMPlexSansCond-Bold"), url("fonts/IBMPlexSansCondensed-Bold-Latin1.woff2") format("woff2");
|
|
62
|
+
unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@font-face {
|
|
66
|
+
font-family: "IBM Plex Mono";
|
|
67
|
+
font-style: normal;
|
|
68
|
+
font-weight: 400;
|
|
69
|
+
font-display: swap;
|
|
70
|
+
src: local("IBM Plex Mono"), local("IBMPlexMono"), url("fonts/IBMPlexMono-Regular-Latin1.woff2") format("woff2");
|
|
71
|
+
unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@font-face {
|
|
75
|
+
font-family: "IBM Plex Mono";
|
|
76
|
+
font-style: normal;
|
|
77
|
+
font-weight: 500;
|
|
78
|
+
font-display: swap;
|
|
79
|
+
src: local("IBM Plex Mono Medium"), local("IBMPlexMono-Medium"), url("fonts/IBMPlexMono-Medium-Latin1.woff2") format("woff2");
|
|
80
|
+
unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
|
|
81
|
+
}
|
|
82
|
+
:root {
|
|
83
|
+
--mk-color-accent: #2A5AA8;
|
|
84
|
+
--mk-color-accent-subtle: rgba(42, 90, 168, 0.13);
|
|
85
|
+
--mk-color-bg: #F2F0EB;
|
|
86
|
+
--mk-color-bg-subtle: #E8E5DE;
|
|
87
|
+
--mk-color-border: #D8D4CB;
|
|
88
|
+
--mk-color-border-control: #87816F;
|
|
89
|
+
--mk-color-border-strong: #BFBAAF;
|
|
90
|
+
--mk-color-danger: #B42318;
|
|
91
|
+
--mk-color-focus-ring: #2A5AA8;
|
|
92
|
+
--mk-color-grid-line: rgba(22, 32, 46, 0.05);
|
|
93
|
+
--mk-color-on-accent: #FFFFFF;
|
|
94
|
+
--mk-color-success: #1F6B45;
|
|
95
|
+
--mk-color-surface: #FBFAF7;
|
|
96
|
+
--mk-color-text: #16202E;
|
|
97
|
+
--mk-color-text-muted: #5C6576;
|
|
98
|
+
--mk-color-text-secondary: #3A4556;
|
|
99
|
+
--mk-color-warning: #8C5300;
|
|
100
|
+
--mk-font-family-display: 'IBM Plex Sans Condensed', 'IBM Plex Sans', 'Arial Narrow', sans-serif;
|
|
101
|
+
--mk-font-family-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
102
|
+
--mk-font-family-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
|
|
103
|
+
--mk-font-letter-spacing-display: -0.028em;
|
|
104
|
+
--mk-font-letter-spacing-heading: -0.022em;
|
|
105
|
+
--mk-font-letter-spacing-label: 0.07em;
|
|
106
|
+
--mk-font-letter-spacing-normal: 0;
|
|
107
|
+
--mk-font-line-height-normal: 1.5;
|
|
108
|
+
--mk-font-line-height-relaxed: 1.6;
|
|
109
|
+
--mk-font-line-height-snug: 1.15;
|
|
110
|
+
--mk-font-line-height-tight: 0.9;
|
|
111
|
+
--mk-font-size-2xl: clamp(34px, 4vw, 64px);
|
|
112
|
+
--mk-font-size-3xl: clamp(42px, 5.6vw, 98px);
|
|
113
|
+
--mk-font-size-base: 17px;
|
|
114
|
+
--mk-font-size-display: clamp(50px, 8.1vw, 148px);
|
|
115
|
+
--mk-font-size-lg: 21px;
|
|
116
|
+
--mk-font-size-md: 18px;
|
|
117
|
+
--mk-font-size-sm: 14px;
|
|
118
|
+
--mk-font-size-xl: clamp(28px, 3vw, 40px);
|
|
119
|
+
--mk-font-size-xs: 12px;
|
|
120
|
+
--mk-font-weight-bold: 700;
|
|
121
|
+
--mk-font-weight-medium: 500;
|
|
122
|
+
--mk-font-weight-regular: 400;
|
|
123
|
+
--mk-font-weight-semibold: 600;
|
|
124
|
+
--mk-layout-container-max: 1440px;
|
|
125
|
+
--mk-layout-grid-size: 56px;
|
|
126
|
+
--mk-layout-gutter: clamp(16px, 4vw, 56px);
|
|
127
|
+
--mk-motion-duration-base: 300ms;
|
|
128
|
+
--mk-motion-duration-fast: 150ms;
|
|
129
|
+
--mk-motion-duration-slow: 500ms;
|
|
130
|
+
--mk-motion-duration-slower: 900ms;
|
|
131
|
+
--mk-motion-ease: cubic-bezier(0.2, 0.7, 0.1, 1);
|
|
132
|
+
--mk-radius-lg: 12px;
|
|
133
|
+
--mk-radius-md: 6px;
|
|
134
|
+
--mk-radius-pill: 999px;
|
|
135
|
+
--mk-radius-sm: 4px;
|
|
136
|
+
--mk-radius-xl: 16px;
|
|
137
|
+
--mk-shadow-raised: 0 16px 40px -20px #00000066;
|
|
138
|
+
--mk-spacing-1: 4px;
|
|
139
|
+
--mk-spacing-2: 8px;
|
|
140
|
+
--mk-spacing-3: 12px;
|
|
141
|
+
--mk-spacing-4: 16px;
|
|
142
|
+
--mk-spacing-5: 20px;
|
|
143
|
+
--mk-spacing-6: 24px;
|
|
144
|
+
--mk-spacing-8: 32px;
|
|
145
|
+
--mk-spacing-10: 40px;
|
|
146
|
+
--mk-spacing-12: 48px;
|
|
147
|
+
--mk-spacing-16: 64px;
|
|
148
|
+
--mk-spacing-20: 80px;
|
|
149
|
+
--mk-spacing-24: 96px;
|
|
150
|
+
--mk-spacing-32: 128px;
|
|
151
|
+
--mk-z-index-nav: 50;
|
|
152
|
+
--mk-z-index-overlay: 80;
|
|
153
|
+
--mk-z-index-toast: 90;
|
|
154
|
+
color-scheme: light;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@media (prefers-color-scheme: dark) {
|
|
158
|
+
:root:not([data-theme="light"]) {
|
|
159
|
+
--mk-color-accent: #8DB2F2;
|
|
160
|
+
--mk-color-accent-subtle: rgba(141, 178, 242, 0.13);
|
|
161
|
+
--mk-color-bg: #0F141B;
|
|
162
|
+
--mk-color-bg-subtle: #141A23;
|
|
163
|
+
--mk-color-border: #242D3A;
|
|
164
|
+
--mk-color-border-control: #5E6D83;
|
|
165
|
+
--mk-color-border-strong: #334052;
|
|
166
|
+
--mk-color-danger: #FF8A7A;
|
|
167
|
+
--mk-color-focus-ring: #8DB2F2;
|
|
168
|
+
--mk-color-grid-line: rgba(255, 255, 255, 0.04);
|
|
169
|
+
--mk-color-on-accent: #0B1422;
|
|
170
|
+
--mk-color-success: #86C99A;
|
|
171
|
+
--mk-color-surface: #18202B;
|
|
172
|
+
--mk-color-text: #E7EBF1;
|
|
173
|
+
--mk-color-text-muted: #8792A2;
|
|
174
|
+
--mk-color-text-secondary: #B3BCC9;
|
|
175
|
+
--mk-color-warning: #F0B860;
|
|
176
|
+
color-scheme: dark;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
:root[data-theme="dark"] {
|
|
181
|
+
--mk-color-accent: #8DB2F2;
|
|
182
|
+
--mk-color-accent-subtle: rgba(141, 178, 242, 0.13);
|
|
183
|
+
--mk-color-bg: #0F141B;
|
|
184
|
+
--mk-color-bg-subtle: #141A23;
|
|
185
|
+
--mk-color-border: #242D3A;
|
|
186
|
+
--mk-color-border-control: #5E6D83;
|
|
187
|
+
--mk-color-border-strong: #334052;
|
|
188
|
+
--mk-color-danger: #FF8A7A;
|
|
189
|
+
--mk-color-focus-ring: #8DB2F2;
|
|
190
|
+
--mk-color-grid-line: rgba(255, 255, 255, 0.04);
|
|
191
|
+
--mk-color-on-accent: #0B1422;
|
|
192
|
+
--mk-color-success: #86C99A;
|
|
193
|
+
--mk-color-surface: #18202B;
|
|
194
|
+
--mk-color-text: #E7EBF1;
|
|
195
|
+
--mk-color-text-muted: #8792A2;
|
|
196
|
+
--mk-color-text-secondary: #B3BCC9;
|
|
197
|
+
--mk-color-warning: #F0B860;
|
|
198
|
+
color-scheme: dark;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/*
|
|
202
|
+
* Opt-in base built only on the tokens. Selectors sit inside :where() so they
|
|
203
|
+
* carry zero specificity and any site rule overrides them.
|
|
204
|
+
*/
|
|
205
|
+
|
|
206
|
+
/* Reset */
|
|
207
|
+
:where(*, *::before, *::after) {
|
|
208
|
+
box-sizing: border-box;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
:where(body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd) {
|
|
212
|
+
margin: 0;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
:where(img, picture, video, canvas, svg) {
|
|
216
|
+
display: block;
|
|
217
|
+
max-width: 100%;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
:where(input, button, textarea, select) {
|
|
221
|
+
font: inherit;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
:where(h1, h2, h3, h4, h5, h6, p) {
|
|
225
|
+
overflow-wrap: break-word;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/* Body */
|
|
229
|
+
:where(html) {
|
|
230
|
+
text-size-adjust: 100%;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
:where(body) {
|
|
234
|
+
min-height: 100vh;
|
|
235
|
+
background-color: var(--mk-color-bg);
|
|
236
|
+
color: var(--mk-color-text);
|
|
237
|
+
font-family: var(--mk-font-family-sans);
|
|
238
|
+
font-size: var(--mk-font-size-base);
|
|
239
|
+
font-weight: var(--mk-font-weight-regular);
|
|
240
|
+
line-height: var(--mk-font-line-height-normal);
|
|
241
|
+
-webkit-font-smoothing: antialiased;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
:where(h1, h2, h3, h4, h5, h6) {
|
|
245
|
+
font-family: var(--mk-font-family-display);
|
|
246
|
+
font-weight: var(--mk-font-weight-semibold);
|
|
247
|
+
line-height: var(--mk-font-line-height-snug);
|
|
248
|
+
letter-spacing: var(--mk-font-letter-spacing-heading);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
:where(code, kbd, samp, pre) {
|
|
252
|
+
font-family: var(--mk-font-family-mono);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/* Links */
|
|
256
|
+
:where(a) {
|
|
257
|
+
color: var(--mk-color-accent);
|
|
258
|
+
text-decoration-thickness: from-font;
|
|
259
|
+
text-underline-offset: 0.15em;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/* Selection */
|
|
263
|
+
::selection {
|
|
264
|
+
background-color: var(--mk-color-accent);
|
|
265
|
+
color: var(--mk-color-on-accent);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/* Focus ring */
|
|
269
|
+
:where(:focus-visible) {
|
|
270
|
+
outline: 2px solid var(--mk-color-focus-ring);
|
|
271
|
+
outline-offset: 2px;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/* Reduced motion */
|
|
275
|
+
@media (prefers-reduced-motion: reduce) {
|
|
276
|
+
:where(*, *::before, *::after) {
|
|
277
|
+
animation-duration: 0.01ms !important;
|
|
278
|
+
animation-iteration-count: 1 !important;
|
|
279
|
+
scroll-behavior: auto !important;
|
|
280
|
+
transition-duration: 0.01ms !important;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/* Drafting grid: the one helper class. */
|
|
285
|
+
.mk-grid-bg {
|
|
286
|
+
background-image:
|
|
287
|
+
linear-gradient(var(--mk-color-grid-line) 1px, transparent 1px),
|
|
288
|
+
linear-gradient(90deg, var(--mk-color-grid-line) 1px, transparent 1px);
|
|
289
|
+
background-size: var(--mk-layout-grid-size) var(--mk-layout-grid-size);
|
|
290
|
+
}
|
package/dist/tokens.css
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/*! @manjunathhk/design-tokens v1.0.0-rc.2 */
|
|
2
|
+
:root {
|
|
3
|
+
--mk-color-accent: #2A5AA8;
|
|
4
|
+
--mk-color-accent-subtle: rgba(42, 90, 168, 0.13);
|
|
5
|
+
--mk-color-bg: #F2F0EB;
|
|
6
|
+
--mk-color-bg-subtle: #E8E5DE;
|
|
7
|
+
--mk-color-border: #D8D4CB;
|
|
8
|
+
--mk-color-border-control: #87816F;
|
|
9
|
+
--mk-color-border-strong: #BFBAAF;
|
|
10
|
+
--mk-color-danger: #B42318;
|
|
11
|
+
--mk-color-focus-ring: #2A5AA8;
|
|
12
|
+
--mk-color-grid-line: rgba(22, 32, 46, 0.05);
|
|
13
|
+
--mk-color-on-accent: #FFFFFF;
|
|
14
|
+
--mk-color-success: #1F6B45;
|
|
15
|
+
--mk-color-surface: #FBFAF7;
|
|
16
|
+
--mk-color-text: #16202E;
|
|
17
|
+
--mk-color-text-muted: #5C6576;
|
|
18
|
+
--mk-color-text-secondary: #3A4556;
|
|
19
|
+
--mk-color-warning: #8C5300;
|
|
20
|
+
--mk-font-family-display: 'IBM Plex Sans Condensed', 'IBM Plex Sans', 'Arial Narrow', sans-serif;
|
|
21
|
+
--mk-font-family-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
22
|
+
--mk-font-family-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
|
|
23
|
+
--mk-font-letter-spacing-display: -0.028em;
|
|
24
|
+
--mk-font-letter-spacing-heading: -0.022em;
|
|
25
|
+
--mk-font-letter-spacing-label: 0.07em;
|
|
26
|
+
--mk-font-letter-spacing-normal: 0;
|
|
27
|
+
--mk-font-line-height-normal: 1.5;
|
|
28
|
+
--mk-font-line-height-relaxed: 1.6;
|
|
29
|
+
--mk-font-line-height-snug: 1.15;
|
|
30
|
+
--mk-font-line-height-tight: 0.9;
|
|
31
|
+
--mk-font-size-2xl: clamp(34px, 4vw, 64px);
|
|
32
|
+
--mk-font-size-3xl: clamp(42px, 5.6vw, 98px);
|
|
33
|
+
--mk-font-size-base: 17px;
|
|
34
|
+
--mk-font-size-display: clamp(50px, 8.1vw, 148px);
|
|
35
|
+
--mk-font-size-lg: 21px;
|
|
36
|
+
--mk-font-size-md: 18px;
|
|
37
|
+
--mk-font-size-sm: 14px;
|
|
38
|
+
--mk-font-size-xl: clamp(28px, 3vw, 40px);
|
|
39
|
+
--mk-font-size-xs: 12px;
|
|
40
|
+
--mk-font-weight-bold: 700;
|
|
41
|
+
--mk-font-weight-medium: 500;
|
|
42
|
+
--mk-font-weight-regular: 400;
|
|
43
|
+
--mk-font-weight-semibold: 600;
|
|
44
|
+
--mk-layout-container-max: 1440px;
|
|
45
|
+
--mk-layout-grid-size: 56px;
|
|
46
|
+
--mk-layout-gutter: clamp(16px, 4vw, 56px);
|
|
47
|
+
--mk-motion-duration-base: 300ms;
|
|
48
|
+
--mk-motion-duration-fast: 150ms;
|
|
49
|
+
--mk-motion-duration-slow: 500ms;
|
|
50
|
+
--mk-motion-duration-slower: 900ms;
|
|
51
|
+
--mk-motion-ease: cubic-bezier(0.2, 0.7, 0.1, 1);
|
|
52
|
+
--mk-radius-lg: 12px;
|
|
53
|
+
--mk-radius-md: 6px;
|
|
54
|
+
--mk-radius-pill: 999px;
|
|
55
|
+
--mk-radius-sm: 4px;
|
|
56
|
+
--mk-radius-xl: 16px;
|
|
57
|
+
--mk-shadow-raised: 0 16px 40px -20px #00000066;
|
|
58
|
+
--mk-spacing-1: 4px;
|
|
59
|
+
--mk-spacing-2: 8px;
|
|
60
|
+
--mk-spacing-3: 12px;
|
|
61
|
+
--mk-spacing-4: 16px;
|
|
62
|
+
--mk-spacing-5: 20px;
|
|
63
|
+
--mk-spacing-6: 24px;
|
|
64
|
+
--mk-spacing-8: 32px;
|
|
65
|
+
--mk-spacing-10: 40px;
|
|
66
|
+
--mk-spacing-12: 48px;
|
|
67
|
+
--mk-spacing-16: 64px;
|
|
68
|
+
--mk-spacing-20: 80px;
|
|
69
|
+
--mk-spacing-24: 96px;
|
|
70
|
+
--mk-spacing-32: 128px;
|
|
71
|
+
--mk-z-index-nav: 50;
|
|
72
|
+
--mk-z-index-overlay: 80;
|
|
73
|
+
--mk-z-index-toast: 90;
|
|
74
|
+
color-scheme: light;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@media (prefers-color-scheme: dark) {
|
|
78
|
+
:root:not([data-theme="light"]) {
|
|
79
|
+
--mk-color-accent: #8DB2F2;
|
|
80
|
+
--mk-color-accent-subtle: rgba(141, 178, 242, 0.13);
|
|
81
|
+
--mk-color-bg: #0F141B;
|
|
82
|
+
--mk-color-bg-subtle: #141A23;
|
|
83
|
+
--mk-color-border: #242D3A;
|
|
84
|
+
--mk-color-border-control: #5E6D83;
|
|
85
|
+
--mk-color-border-strong: #334052;
|
|
86
|
+
--mk-color-danger: #FF8A7A;
|
|
87
|
+
--mk-color-focus-ring: #8DB2F2;
|
|
88
|
+
--mk-color-grid-line: rgba(255, 255, 255, 0.04);
|
|
89
|
+
--mk-color-on-accent: #0B1422;
|
|
90
|
+
--mk-color-success: #86C99A;
|
|
91
|
+
--mk-color-surface: #18202B;
|
|
92
|
+
--mk-color-text: #E7EBF1;
|
|
93
|
+
--mk-color-text-muted: #8792A2;
|
|
94
|
+
--mk-color-text-secondary: #B3BCC9;
|
|
95
|
+
--mk-color-warning: #F0B860;
|
|
96
|
+
color-scheme: dark;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
:root[data-theme="dark"] {
|
|
101
|
+
--mk-color-accent: #8DB2F2;
|
|
102
|
+
--mk-color-accent-subtle: rgba(141, 178, 242, 0.13);
|
|
103
|
+
--mk-color-bg: #0F141B;
|
|
104
|
+
--mk-color-bg-subtle: #141A23;
|
|
105
|
+
--mk-color-border: #242D3A;
|
|
106
|
+
--mk-color-border-control: #5E6D83;
|
|
107
|
+
--mk-color-border-strong: #334052;
|
|
108
|
+
--mk-color-danger: #FF8A7A;
|
|
109
|
+
--mk-color-focus-ring: #8DB2F2;
|
|
110
|
+
--mk-color-grid-line: rgba(255, 255, 255, 0.04);
|
|
111
|
+
--mk-color-on-accent: #0B1422;
|
|
112
|
+
--mk-color-success: #86C99A;
|
|
113
|
+
--mk-color-surface: #18202B;
|
|
114
|
+
--mk-color-text: #E7EBF1;
|
|
115
|
+
--mk-color-text-muted: #8792A2;
|
|
116
|
+
--mk-color-text-secondary: #B3BCC9;
|
|
117
|
+
--mk-color-warning: #F0B860;
|
|
118
|
+
color-scheme: dark;
|
|
119
|
+
}
|
package/dist/tokens.d.ts
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/*! @manjunathhk/design-tokens v1.0.0-rc.2 */
|
|
2
|
+
/** Colour tokens; light and dark share these keys. */
|
|
3
|
+
export interface ColorTokens {
|
|
4
|
+
readonly "color.accent": string;
|
|
5
|
+
readonly "color.accent-subtle": string;
|
|
6
|
+
readonly "color.bg": string;
|
|
7
|
+
readonly "color.bg-subtle": string;
|
|
8
|
+
readonly "color.border": string;
|
|
9
|
+
readonly "color.border-control": string;
|
|
10
|
+
readonly "color.border-strong": string;
|
|
11
|
+
readonly "color.danger": string;
|
|
12
|
+
readonly "color.focus-ring": string;
|
|
13
|
+
readonly "color.grid-line": string;
|
|
14
|
+
readonly "color.on-accent": string;
|
|
15
|
+
readonly "color.success": string;
|
|
16
|
+
readonly "color.surface": string;
|
|
17
|
+
readonly "color.text": string;
|
|
18
|
+
readonly "color.text-muted": string;
|
|
19
|
+
readonly "color.text-secondary": string;
|
|
20
|
+
readonly "color.warning": string;
|
|
21
|
+
}
|
|
22
|
+
export interface SharedTokens {
|
|
23
|
+
readonly "font.family.display": string;
|
|
24
|
+
readonly "font.family.mono": string;
|
|
25
|
+
readonly "font.family.sans": string;
|
|
26
|
+
readonly "font.letter-spacing.display": string;
|
|
27
|
+
readonly "font.letter-spacing.heading": string;
|
|
28
|
+
readonly "font.letter-spacing.label": string;
|
|
29
|
+
readonly "font.letter-spacing.normal": string;
|
|
30
|
+
readonly "font.line-height.normal": number;
|
|
31
|
+
readonly "font.line-height.relaxed": number;
|
|
32
|
+
readonly "font.line-height.snug": number;
|
|
33
|
+
readonly "font.line-height.tight": number;
|
|
34
|
+
readonly "font.size.2xl": string;
|
|
35
|
+
readonly "font.size.3xl": string;
|
|
36
|
+
readonly "font.size.base": string;
|
|
37
|
+
readonly "font.size.display": string;
|
|
38
|
+
readonly "font.size.lg": string;
|
|
39
|
+
readonly "font.size.md": string;
|
|
40
|
+
readonly "font.size.sm": string;
|
|
41
|
+
readonly "font.size.xl": string;
|
|
42
|
+
readonly "font.size.xs": string;
|
|
43
|
+
readonly "font.weight.bold": number;
|
|
44
|
+
readonly "font.weight.medium": number;
|
|
45
|
+
readonly "font.weight.regular": number;
|
|
46
|
+
readonly "font.weight.semibold": number;
|
|
47
|
+
readonly "layout.container-max": string;
|
|
48
|
+
readonly "layout.grid-size": string;
|
|
49
|
+
readonly "layout.gutter": string;
|
|
50
|
+
readonly "motion.duration.base": string;
|
|
51
|
+
readonly "motion.duration.fast": string;
|
|
52
|
+
readonly "motion.duration.slow": string;
|
|
53
|
+
readonly "motion.duration.slower": string;
|
|
54
|
+
readonly "motion.ease": string;
|
|
55
|
+
readonly "radius.lg": string;
|
|
56
|
+
readonly "radius.md": string;
|
|
57
|
+
readonly "radius.pill": string;
|
|
58
|
+
readonly "radius.sm": string;
|
|
59
|
+
readonly "radius.xl": string;
|
|
60
|
+
readonly "shadow.raised": string;
|
|
61
|
+
readonly "spacing.1": string;
|
|
62
|
+
readonly "spacing.2": string;
|
|
63
|
+
readonly "spacing.3": string;
|
|
64
|
+
readonly "spacing.4": string;
|
|
65
|
+
readonly "spacing.5": string;
|
|
66
|
+
readonly "spacing.6": string;
|
|
67
|
+
readonly "spacing.8": string;
|
|
68
|
+
readonly "spacing.10": string;
|
|
69
|
+
readonly "spacing.12": string;
|
|
70
|
+
readonly "spacing.16": string;
|
|
71
|
+
readonly "spacing.20": string;
|
|
72
|
+
readonly "spacing.24": string;
|
|
73
|
+
readonly "spacing.32": string;
|
|
74
|
+
readonly "z-index.nav": number;
|
|
75
|
+
readonly "z-index.overlay": number;
|
|
76
|
+
readonly "z-index.toast": number;
|
|
77
|
+
}
|
|
78
|
+
export interface Breakpoints {
|
|
79
|
+
readonly "breakpoint.lg": string;
|
|
80
|
+
readonly "breakpoint.md": string;
|
|
81
|
+
readonly "breakpoint.sm": string;
|
|
82
|
+
readonly "breakpoint.xl": string;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export declare const version: string;
|
|
86
|
+
export declare const light: ColorTokens;
|
|
87
|
+
export declare const dark: ColorTokens;
|
|
88
|
+
export declare const shared: SharedTokens;
|
|
89
|
+
export declare const breakpoints: Breakpoints;
|