@manjunathhk/design-tokens 1.6.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.
Files changed (39) hide show
  1. package/README.md +19 -4
  2. package/dist/LICENSES/FamiljenGrotesk-OFL.txt +93 -0
  3. package/dist/LICENSES/{Inter-OFL.txt → Figtree-OFL.txt} +1 -1
  4. package/dist/LICENSES/{JetBrainsMono-OFL.txt → SplineSansMono-OFL.txt} +1 -1
  5. package/dist/_tokens.scss +6 -1
  6. package/dist/base.css +1 -1
  7. package/dist/controls.js +1 -1
  8. package/dist/fonts/familjen-grotesk-latin-400-italic.woff2 +0 -0
  9. package/dist/fonts/familjen-grotesk-latin-400-normal.woff2 +0 -0
  10. package/dist/fonts/familjen-grotesk-latin-500-normal.woff2 +0 -0
  11. package/dist/fonts/familjen-grotesk-latin-600-normal.woff2 +0 -0
  12. package/dist/fonts/familjen-grotesk-latin-700-normal.woff2 +0 -0
  13. package/dist/fonts/figtree-latin-400-italic.woff2 +0 -0
  14. package/dist/fonts/figtree-latin-400-normal.woff2 +0 -0
  15. package/dist/fonts/figtree-latin-500-normal.woff2 +0 -0
  16. package/dist/fonts/figtree-latin-600-normal.woff2 +0 -0
  17. package/dist/fonts/figtree-latin-700-normal.woff2 +0 -0
  18. package/dist/fonts/spline-sans-mono-latin-400-italic.woff2 +0 -0
  19. package/dist/fonts/spline-sans-mono-latin-400-normal.woff2 +0 -0
  20. package/dist/fonts/spline-sans-mono-latin-500-normal.woff2 +0 -0
  21. package/dist/fonts/spline-sans-mono-latin-700-normal.woff2 +0 -0
  22. package/dist/fonts.css +64 -19
  23. package/dist/index.css +130 -70
  24. package/dist/stylelint.d.ts +1 -1
  25. package/dist/stylelint.mjs +1 -1
  26. package/dist/tokens.css +67 -52
  27. package/dist/tokens.d.ts +6 -1
  28. package/dist/tokens.json +46 -36
  29. package/dist/tokens.mjs +47 -37
  30. package/package.json +5 -4
  31. package/dist/fonts/inter-latin-400-italic.woff2 +0 -0
  32. package/dist/fonts/inter-latin-400-normal.woff2 +0 -0
  33. package/dist/fonts/inter-latin-500-normal.woff2 +0 -0
  34. package/dist/fonts/inter-latin-600-normal.woff2 +0 -0
  35. package/dist/fonts/inter-latin-700-normal.woff2 +0 -0
  36. package/dist/fonts/jetbrains-mono-latin-400-italic.woff2 +0 -0
  37. package/dist/fonts/jetbrains-mono-latin-400-normal.woff2 +0 -0
  38. package/dist/fonts/jetbrains-mono-latin-500-normal.woff2 +0 -0
  39. package/dist/fonts/jetbrains-mono-latin-700-normal.woff2 +0 -0
package/README.md CHANGED
@@ -12,7 +12,7 @@ This package is tokens and a small opt-in base stylesheet, nothing else:
12
12
  - `base.css`, a small opt-in base (reset, body, links, selection, focus ring,
13
13
  reduced motion, reading defaults, a content-width hook) built only on the
14
14
  tokens;
15
- - self-hosted Inter and JetBrains Mono fonts and `fonts.css`;
15
+ - self-hosted fonts and `fonts.css`, served under the role names `MK Display`, `MK Sans` and `MK Mono`;
16
16
  - `controls.js`, an opt-in script for a light/dark/system theme switch and a
17
17
  Fit/Full width toggle.
18
18
 
@@ -31,7 +31,7 @@ Each file in `dist/` has a subpath export (`@manjunathhk/design-tokens/<file>`).
31
31
  | `index.css` | Fonts, tokens and base in one file (the package `style` entry) |
32
32
  | `tokens.css` | `--mk-*` custom properties, light and dark |
33
33
  | `base.css` | Opt-in reset and base styles, zero specificity, plus `.mk-grid-bg` |
34
- | `fonts.css` | Self-hosted Inter and JetBrains Mono `@font-face` rules |
34
+ | `fonts.css` | Self-hosted `@font-face` rules for `MK Display`, `MK Sans` and `MK Mono` |
35
35
  | `controls.js` | Opt-in theme switch and width toggle ([Site controls](#site-controls)) |
36
36
  | `tokens.json` | `{ version, light, dark, shared, breakpoints }`, flat, keyed by token path |
37
37
  | `tokens.mjs` | The same five groups as typed constants (`tokens.d.ts`); also the package root import |
@@ -419,7 +419,7 @@ for anything a user interacts with.
419
419
 
420
420
  ## Development
421
421
 
422
- Node 24 LTS (`.nvmrc`).
422
+ Node 26 LTS (`.nvmrc`).
423
423
 
424
424
  ```sh
425
425
  npm ci
@@ -430,7 +430,7 @@ npm test
430
430
  ```
431
431
 
432
432
  Linux and Windows are both supported contributor environments (D37). On
433
- Windows, use Node 24 and Git for Windows. Line endings are pinned to LF by
433
+ Windows, use Node 26 and Git for Windows. Line endings are pinned to LF by
434
434
  `.gitattributes`, so no global Git configuration change is needed. Run
435
435
  `npm run build` before `npm test`: the output tests read the generated `dist/`.
436
436
  Browser tests need Chromium: `npx playwright install chromium`, then
@@ -445,3 +445,18 @@ allowed):
445
445
  - `ci` — install, lint, typecheck, build, test, API diff against the
446
446
  published package;
447
447
  - `playwright` — the cross-origin consumption smoke test.
448
+
449
+ ## Upgrading from 1.x to 2.0
450
+
451
+ 2.0.0 changes how every site looks (clay and pine palette, new fonts); no
452
+ token is renamed or removed. `/v1/` and `@1` keep serving amber and Inter, so
453
+ move one site at a time:
454
+
455
+ - Switch the link to `https://design.manjunathhk.in/v2/index.css` or
456
+ `@manjunathhk/design-tokens@2`, and look at the site in light and dark.
457
+ - Search for hardcoded amber (logos, SVGs, inline styles, WordPress
458
+ `theme.json`) and for `font-family: Inter` or `JetBrains Mono`; the faces
459
+ are gone, so use `var(--mk-font-family-sans)` and `-mono`.
460
+ - `--mk-color-success` is now teal; `--mk-color-highlight` and
461
+ `--mk-color-on-highlight` are new and optional.
462
+ - To stay on the old look, pin `/v1.7.0/`.
@@ -0,0 +1,93 @@
1
+ Copyright 2021 The Familjen Grotesk Project Authors (https://github.com/Familjen-Sthlm/Familjen-Grotesk) FamiljenGrotesk-Italic[wght].ttf: Copyright 2021 The Familjen Grotesk Project Authors (https://github.com/Familjen-Sthlm/Familjen-Grotesk)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -1,4 +1,4 @@
1
- Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter) Inter-Italic[opsz,wght].ttf: Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter)
1
+ Copyright 2022 The Figtree Project Authors (https://github.com/erikdkennedy/figtree) Figtree-Italic[wght].ttf: Copyright 2022 The Figtree Project Authors (https://github.com/erikdkennedy/figtree)
2
2
 
3
3
  This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
4
  This license is copied below, and is also available with a FAQ at:
@@ -1,4 +1,4 @@
1
- Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono) JetBrainsMono-Italic[wght].ttf: Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)
1
+ Copyright 2022 The Spline Sans Mono Project Authors (https://github.com/SorkinType/SplineSansMono) SplineSansMono-Italic[wght].ttf: Copyright 2022 The Spline Sans Mono Project Authors (https://github.com/SorkinType/SplineSansMono)
2
2
 
3
3
  This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
4
  This license is copied below, and is also available with a FAQ at:
package/dist/_tokens.scss CHANGED
@@ -1,20 +1,25 @@
1
- /*! @manjunathhk/design-tokens v1.6.0 */
1
+ /*! @manjunathhk/design-tokens v2.0.0 */
2
2
  @use "sass:map";
3
3
 
4
4
  $mk-color-accent: var(--mk-color-accent);
5
5
  $mk-color-accent-hover: var(--mk-color-accent-hover);
6
6
  $mk-color-accent-subtle: var(--mk-color-accent-subtle);
7
+ $mk-color-backdrop: var(--mk-color-backdrop);
7
8
  $mk-color-bg: var(--mk-color-bg);
8
9
  $mk-color-bg-subtle: var(--mk-color-bg-subtle);
9
10
  $mk-color-border: var(--mk-color-border);
10
11
  $mk-color-border-control: var(--mk-color-border-control);
11
12
  $mk-color-border-strong: var(--mk-color-border-strong);
13
+ $mk-color-caption-bar: var(--mk-color-caption-bar);
12
14
  $mk-color-danger: var(--mk-color-danger);
13
15
  $mk-color-focus-ring: var(--mk-color-focus-ring);
14
16
  $mk-color-grid-line: var(--mk-color-grid-line);
17
+ $mk-color-highlight: var(--mk-color-highlight);
15
18
  $mk-color-info: var(--mk-color-info);
16
19
  $mk-color-on-accent: var(--mk-color-on-accent);
17
20
  $mk-color-on-danger: var(--mk-color-on-danger);
21
+ $mk-color-on-highlight: var(--mk-color-on-highlight);
22
+ $mk-color-selected-row: var(--mk-color-selected-row);
18
23
  $mk-color-success: var(--mk-color-success);
19
24
  $mk-color-surface: var(--mk-color-surface);
20
25
  $mk-color-text: var(--mk-color-text);
package/dist/base.css CHANGED
@@ -1,4 +1,4 @@
1
- /*! @manjunathhk/design-tokens v1.6.0 */
1
+ /*! @manjunathhk/design-tokens v2.0.0 */
2
2
  /*
3
3
  * Opt-in base built only on the tokens. Selectors sit inside :where() so they
4
4
  * carry zero specificity and any site rule overrides them.
package/dist/controls.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @manjunathhk/design-tokens v1.6.0 */
1
+ /*! @manjunathhk/design-tokens v2.0.0 */
2
2
  "use strict";
3
3
  /*
4
4
  * Site controls (D54): a three-state theme switch and a Fit/Full width toggle.
package/dist/fonts.css CHANGED
@@ -1,81 +1,126 @@
1
- /*! @manjunathhk/design-tokens v1.6.0 */
1
+ /*! @manjunathhk/design-tokens v2.0.0 */
2
2
  @font-face {
3
- font-family: "Inter";
3
+ font-family: "MK Display";
4
4
  font-style: normal;
5
5
  font-weight: 400;
6
6
  font-display: swap;
7
- src: local("Inter"), local("Inter Regular"), url("fonts/inter-latin-400-normal.woff2") format("woff2");
7
+ src: local("Familjen Grotesk"), local("FamiljenGrotesk-Regular"), url("fonts/familjen-grotesk-latin-400-normal.woff2") format("woff2");
8
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
9
  }
10
10
 
11
11
  @font-face {
12
- font-family: "Inter";
12
+ font-family: "MK Display";
13
13
  font-style: normal;
14
14
  font-weight: 500;
15
15
  font-display: swap;
16
- src: local("Inter Medium"), local("Inter-Medium"), url("fonts/inter-latin-500-normal.woff2") format("woff2");
16
+ src: local("Familjen Grotesk Medium"), local("FamiljenGrotesk-Medium"), url("fonts/familjen-grotesk-latin-500-normal.woff2") format("woff2");
17
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
18
  }
19
19
 
20
20
  @font-face {
21
- font-family: "Inter";
21
+ font-family: "MK Display";
22
22
  font-style: normal;
23
23
  font-weight: 600;
24
24
  font-display: swap;
25
- src: local("Inter SemiBold"), local("Inter-SemiBold"), url("fonts/inter-latin-600-normal.woff2") format("woff2");
25
+ src: local("Familjen Grotesk SemiBold"), local("FamiljenGrotesk-SemiBold"), url("fonts/familjen-grotesk-latin-600-normal.woff2") format("woff2");
26
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
27
  }
28
28
 
29
29
  @font-face {
30
- font-family: "Inter";
30
+ font-family: "MK Display";
31
31
  font-style: normal;
32
32
  font-weight: 700;
33
33
  font-display: swap;
34
- src: local("Inter Bold"), local("Inter-Bold"), url("fonts/inter-latin-700-normal.woff2") format("woff2");
34
+ src: local("Familjen Grotesk Bold"), local("FamiljenGrotesk-Bold"), url("fonts/familjen-grotesk-latin-700-normal.woff2") format("woff2");
35
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
36
  }
37
37
 
38
38
  @font-face {
39
- font-family: "Inter";
39
+ font-family: "MK Display";
40
40
  font-style: italic;
41
41
  font-weight: 400;
42
42
  font-display: swap;
43
- src: local("Inter Italic"), local("Inter-Italic"), url("fonts/inter-latin-400-italic.woff2") format("woff2");
43
+ src: local("Familjen Grotesk Italic"), local("FamiljenGrotesk-Italic"), url("fonts/familjen-grotesk-latin-400-italic.woff2") format("woff2");
44
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
45
  }
46
46
 
47
47
  @font-face {
48
- font-family: "JetBrains Mono";
48
+ font-family: "MK Sans";
49
49
  font-style: normal;
50
50
  font-weight: 400;
51
51
  font-display: swap;
52
- src: local("JetBrains Mono"), local("JetBrainsMono-Regular"), url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
52
+ src: local("Figtree"), local("Figtree-Regular"), url("fonts/figtree-latin-400-normal.woff2") format("woff2");
53
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
54
  }
55
55
 
56
56
  @font-face {
57
- font-family: "JetBrains Mono";
57
+ font-family: "MK Sans";
58
58
  font-style: normal;
59
59
  font-weight: 500;
60
60
  font-display: swap;
61
- src: local("JetBrains Mono Medium"), local("JetBrainsMono-Medium"), url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
61
+ src: local("Figtree Medium"), local("Figtree-Medium"), url("fonts/figtree-latin-500-normal.woff2") format("woff2");
62
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
63
  }
64
64
 
65
65
  @font-face {
66
- font-family: "JetBrains Mono";
66
+ font-family: "MK Sans";
67
+ font-style: normal;
68
+ font-weight: 600;
69
+ font-display: swap;
70
+ src: local("Figtree SemiBold"), local("Figtree-SemiBold"), url("fonts/figtree-latin-600-normal.woff2") format("woff2");
71
+ 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;
72
+ }
73
+
74
+ @font-face {
75
+ font-family: "MK Sans";
76
+ font-style: normal;
77
+ font-weight: 700;
78
+ font-display: swap;
79
+ src: local("Figtree Bold"), local("Figtree-Bold"), url("fonts/figtree-latin-700-normal.woff2") format("woff2");
80
+ 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;
81
+ }
82
+
83
+ @font-face {
84
+ font-family: "MK Sans";
85
+ font-style: italic;
86
+ font-weight: 400;
87
+ font-display: swap;
88
+ src: local("Figtree Italic"), local("Figtree-Italic"), url("fonts/figtree-latin-400-italic.woff2") format("woff2");
89
+ 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;
90
+ }
91
+
92
+ @font-face {
93
+ font-family: "MK Mono";
94
+ font-style: normal;
95
+ font-weight: 400;
96
+ font-display: swap;
97
+ src: local("Spline Sans Mono"), local("SplineSansMono-Regular"), url("fonts/spline-sans-mono-latin-400-normal.woff2") format("woff2");
98
+ 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;
99
+ }
100
+
101
+ @font-face {
102
+ font-family: "MK Mono";
103
+ font-style: normal;
104
+ font-weight: 500;
105
+ font-display: swap;
106
+ src: local("Spline Sans Mono Medium"), local("SplineSansMono-Medium"), url("fonts/spline-sans-mono-latin-500-normal.woff2") format("woff2");
107
+ 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;
108
+ }
109
+
110
+ @font-face {
111
+ font-family: "MK Mono";
67
112
  font-style: normal;
68
113
  font-weight: 700;
69
114
  font-display: swap;
70
- src: local("JetBrains Mono Bold"), local("JetBrainsMono-Bold"), url("fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2");
115
+ src: local("Spline Sans Mono Bold"), local("SplineSansMono-Bold"), url("fonts/spline-sans-mono-latin-700-normal.woff2") format("woff2");
71
116
  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;
72
117
  }
73
118
 
74
119
  @font-face {
75
- font-family: "JetBrains Mono";
120
+ font-family: "MK Mono";
76
121
  font-style: italic;
77
122
  font-weight: 400;
78
123
  font-display: swap;
79
- src: local("JetBrains Mono Italic"), local("JetBrainsMono-Italic"), url("fonts/jetbrains-mono-latin-400-italic.woff2") format("woff2");
124
+ src: local("Spline Sans Mono Italic"), local("SplineSansMono-Italic"), url("fonts/spline-sans-mono-latin-400-italic.woff2") format("woff2");
80
125
  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;
81
126
  }
package/dist/index.css CHANGED
@@ -1,108 +1,158 @@
1
- /*! @manjunathhk/design-tokens v1.6.0 */
1
+ /*! @manjunathhk/design-tokens v2.0.0 */
2
2
  @font-face {
3
- font-family: "Inter";
3
+ font-family: "MK Display";
4
4
  font-style: normal;
5
5
  font-weight: 400;
6
6
  font-display: swap;
7
- src: local("Inter"), local("Inter Regular"), url("fonts/inter-latin-400-normal.woff2") format("woff2");
7
+ src: local("Familjen Grotesk"), local("FamiljenGrotesk-Regular"), url("fonts/familjen-grotesk-latin-400-normal.woff2") format("woff2");
8
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
9
  }
10
10
 
11
11
  @font-face {
12
- font-family: "Inter";
12
+ font-family: "MK Display";
13
13
  font-style: normal;
14
14
  font-weight: 500;
15
15
  font-display: swap;
16
- src: local("Inter Medium"), local("Inter-Medium"), url("fonts/inter-latin-500-normal.woff2") format("woff2");
16
+ src: local("Familjen Grotesk Medium"), local("FamiljenGrotesk-Medium"), url("fonts/familjen-grotesk-latin-500-normal.woff2") format("woff2");
17
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
18
  }
19
19
 
20
20
  @font-face {
21
- font-family: "Inter";
21
+ font-family: "MK Display";
22
22
  font-style: normal;
23
23
  font-weight: 600;
24
24
  font-display: swap;
25
- src: local("Inter SemiBold"), local("Inter-SemiBold"), url("fonts/inter-latin-600-normal.woff2") format("woff2");
25
+ src: local("Familjen Grotesk SemiBold"), local("FamiljenGrotesk-SemiBold"), url("fonts/familjen-grotesk-latin-600-normal.woff2") format("woff2");
26
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
27
  }
28
28
 
29
29
  @font-face {
30
- font-family: "Inter";
30
+ font-family: "MK Display";
31
31
  font-style: normal;
32
32
  font-weight: 700;
33
33
  font-display: swap;
34
- src: local("Inter Bold"), local("Inter-Bold"), url("fonts/inter-latin-700-normal.woff2") format("woff2");
34
+ src: local("Familjen Grotesk Bold"), local("FamiljenGrotesk-Bold"), url("fonts/familjen-grotesk-latin-700-normal.woff2") format("woff2");
35
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
36
  }
37
37
 
38
38
  @font-face {
39
- font-family: "Inter";
39
+ font-family: "MK Display";
40
40
  font-style: italic;
41
41
  font-weight: 400;
42
42
  font-display: swap;
43
- src: local("Inter Italic"), local("Inter-Italic"), url("fonts/inter-latin-400-italic.woff2") format("woff2");
43
+ src: local("Familjen Grotesk Italic"), local("FamiljenGrotesk-Italic"), url("fonts/familjen-grotesk-latin-400-italic.woff2") format("woff2");
44
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
45
  }
46
46
 
47
47
  @font-face {
48
- font-family: "JetBrains Mono";
48
+ font-family: "MK Sans";
49
49
  font-style: normal;
50
50
  font-weight: 400;
51
51
  font-display: swap;
52
- src: local("JetBrains Mono"), local("JetBrainsMono-Regular"), url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
52
+ src: local("Figtree"), local("Figtree-Regular"), url("fonts/figtree-latin-400-normal.woff2") format("woff2");
53
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
54
  }
55
55
 
56
56
  @font-face {
57
- font-family: "JetBrains Mono";
57
+ font-family: "MK Sans";
58
58
  font-style: normal;
59
59
  font-weight: 500;
60
60
  font-display: swap;
61
- src: local("JetBrains Mono Medium"), local("JetBrainsMono-Medium"), url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
61
+ src: local("Figtree Medium"), local("Figtree-Medium"), url("fonts/figtree-latin-500-normal.woff2") format("woff2");
62
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
63
  }
64
64
 
65
65
  @font-face {
66
- font-family: "JetBrains Mono";
66
+ font-family: "MK Sans";
67
+ font-style: normal;
68
+ font-weight: 600;
69
+ font-display: swap;
70
+ src: local("Figtree SemiBold"), local("Figtree-SemiBold"), url("fonts/figtree-latin-600-normal.woff2") format("woff2");
71
+ 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;
72
+ }
73
+
74
+ @font-face {
75
+ font-family: "MK Sans";
76
+ font-style: normal;
77
+ font-weight: 700;
78
+ font-display: swap;
79
+ src: local("Figtree Bold"), local("Figtree-Bold"), url("fonts/figtree-latin-700-normal.woff2") format("woff2");
80
+ 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;
81
+ }
82
+
83
+ @font-face {
84
+ font-family: "MK Sans";
85
+ font-style: italic;
86
+ font-weight: 400;
87
+ font-display: swap;
88
+ src: local("Figtree Italic"), local("Figtree-Italic"), url("fonts/figtree-latin-400-italic.woff2") format("woff2");
89
+ 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;
90
+ }
91
+
92
+ @font-face {
93
+ font-family: "MK Mono";
94
+ font-style: normal;
95
+ font-weight: 400;
96
+ font-display: swap;
97
+ src: local("Spline Sans Mono"), local("SplineSansMono-Regular"), url("fonts/spline-sans-mono-latin-400-normal.woff2") format("woff2");
98
+ 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;
99
+ }
100
+
101
+ @font-face {
102
+ font-family: "MK Mono";
103
+ font-style: normal;
104
+ font-weight: 500;
105
+ font-display: swap;
106
+ src: local("Spline Sans Mono Medium"), local("SplineSansMono-Medium"), url("fonts/spline-sans-mono-latin-500-normal.woff2") format("woff2");
107
+ 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;
108
+ }
109
+
110
+ @font-face {
111
+ font-family: "MK Mono";
67
112
  font-style: normal;
68
113
  font-weight: 700;
69
114
  font-display: swap;
70
- src: local("JetBrains Mono Bold"), local("JetBrainsMono-Bold"), url("fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2");
115
+ src: local("Spline Sans Mono Bold"), local("SplineSansMono-Bold"), url("fonts/spline-sans-mono-latin-700-normal.woff2") format("woff2");
71
116
  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;
72
117
  }
73
118
 
74
119
  @font-face {
75
- font-family: "JetBrains Mono";
120
+ font-family: "MK Mono";
76
121
  font-style: italic;
77
122
  font-weight: 400;
78
123
  font-display: swap;
79
- src: local("JetBrains Mono Italic"), local("JetBrainsMono-Italic"), url("fonts/jetbrains-mono-latin-400-italic.woff2") format("woff2");
124
+ src: local("Spline Sans Mono Italic"), local("SplineSansMono-Italic"), url("fonts/spline-sans-mono-latin-400-italic.woff2") format("woff2");
80
125
  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;
81
126
  }
82
127
  :root {
83
- --mk-color-accent: #B45309;
84
- --mk-color-accent-hover: #92400E;
85
- --mk-color-accent-subtle: rgba(180, 83, 9, 0.14);
86
- --mk-color-bg: #FAFAF9;
87
- --mk-color-bg-subtle: #F5F5F4;
88
- --mk-color-border: #E7E5E4;
89
- --mk-color-border-control: #78716C;
90
- --mk-color-border-strong: #78716C;
128
+ --mk-color-accent: #2E5B44;
129
+ --mk-color-accent-hover: #234733;
130
+ --mk-color-accent-subtle: rgba(46, 91, 68, 0.14);
131
+ --mk-color-backdrop: rgba(34, 38, 31, 0.35);
132
+ --mk-color-bg: #EFE9E0;
133
+ --mk-color-bg-subtle: #E2D9CB;
134
+ --mk-color-border: #D0C6B6;
135
+ --mk-color-border-control: #7A7A6C;
136
+ --mk-color-border-strong: #7A7A6C;
137
+ --mk-color-caption-bar: rgba(239, 233, 224, 0.9);
91
138
  --mk-color-danger: #B91C1C;
92
- --mk-color-focus-ring: #B45309;
93
- --mk-color-grid-line: rgba(28, 25, 23, 0.05);
139
+ --mk-color-focus-ring: #2E5B44;
140
+ --mk-color-grid-line: rgba(34, 38, 31, 0.05);
141
+ --mk-color-highlight: #B8892F;
94
142
  --mk-color-info: #1D4ED8;
95
143
  --mk-color-on-accent: #FFFFFF;
96
144
  --mk-color-on-danger: #FFFFFF;
97
- --mk-color-success: #15803D;
98
- --mk-color-surface: #FFFFFF;
99
- --mk-color-text: #1C1917;
100
- --mk-color-text-muted: #57534E;
101
- --mk-color-text-secondary: #44403C;
102
- --mk-color-warning: #A16207;
103
- --mk-font-family-display: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
104
- --mk-font-family-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
105
- --mk-font-family-sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
145
+ --mk-color-on-highlight: #22261F;
146
+ --mk-color-selected-row: rgba(46, 91, 68, 0.06);
147
+ --mk-color-success: #115E59;
148
+ --mk-color-surface: #FAF7F2;
149
+ --mk-color-text: #22261F;
150
+ --mk-color-text-muted: #575A50;
151
+ --mk-color-text-secondary: #3E4238;
152
+ --mk-color-warning: #854D0E;
153
+ --mk-font-family-display: 'MK Display', system-ui, -apple-system, 'Segoe UI', sans-serif;
154
+ --mk-font-family-mono: 'MK Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
155
+ --mk-font-family-sans: 'MK Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
106
156
  --mk-font-letter-spacing-display: -0.028em;
107
157
  --mk-font-letter-spacing-heading: -0.022em;
108
158
  --mk-font-letter-spacing-label: 0.07em;
@@ -159,50 +209,60 @@
159
209
 
160
210
  @media (prefers-color-scheme: dark) {
161
211
  :root:not([data-theme="light"]) {
162
- --mk-color-accent: #FBBF24;
163
- --mk-color-accent-hover: #FCD34D;
164
- --mk-color-accent-subtle: rgba(251, 191, 36, 0.14);
165
- --mk-color-bg: #0C0A09;
166
- --mk-color-bg-subtle: #1C1917;
167
- --mk-color-border: #44403C;
168
- --mk-color-border-control: #78716C;
169
- --mk-color-border-strong: #78716C;
212
+ --mk-color-accent: #8CC7A0;
213
+ --mk-color-accent-hover: #AFDABD;
214
+ --mk-color-accent-subtle: rgba(140, 199, 160, 0.14);
215
+ --mk-color-backdrop: rgba(17, 21, 15, 0.72);
216
+ --mk-color-bg: #11150F;
217
+ --mk-color-bg-subtle: #1A1F17;
218
+ --mk-color-border: #343B2F;
219
+ --mk-color-border-control: #7C8470;
220
+ --mk-color-border-strong: #7C8470;
221
+ --mk-color-caption-bar: rgba(17, 21, 15, 0.9);
170
222
  --mk-color-danger: #F87171;
171
- --mk-color-focus-ring: #FBBF24;
223
+ --mk-color-focus-ring: #8CC7A0;
172
224
  --mk-color-grid-line: rgba(255, 255, 255, 0.04);
225
+ --mk-color-highlight: #D4AA55;
173
226
  --mk-color-info: #60A5FA;
174
- --mk-color-on-accent: #1C1917;
175
- --mk-color-on-danger: #1C1917;
176
- --mk-color-success: #4ADE80;
177
- --mk-color-surface: #292524;
178
- --mk-color-text: #FAFAF9;
179
- --mk-color-text-muted: #A8A29E;
180
- --mk-color-text-secondary: #D6D3D1;
227
+ --mk-color-on-accent: #11150F;
228
+ --mk-color-on-danger: #11150F;
229
+ --mk-color-on-highlight: #11150F;
230
+ --mk-color-selected-row: rgba(140, 199, 160, 0.06);
231
+ --mk-color-success: #2DD4BF;
232
+ --mk-color-surface: #242B20;
233
+ --mk-color-text: #EEEBE2;
234
+ --mk-color-text-muted: #9A9D8E;
235
+ --mk-color-text-secondary: #CBC9BC;
181
236
  --mk-color-warning: #FB923C;
182
237
  color-scheme: dark;
183
238
  }
184
239
  }
185
240
 
186
241
  :root[data-theme="dark"] {
187
- --mk-color-accent: #FBBF24;
188
- --mk-color-accent-hover: #FCD34D;
189
- --mk-color-accent-subtle: rgba(251, 191, 36, 0.14);
190
- --mk-color-bg: #0C0A09;
191
- --mk-color-bg-subtle: #1C1917;
192
- --mk-color-border: #44403C;
193
- --mk-color-border-control: #78716C;
194
- --mk-color-border-strong: #78716C;
242
+ --mk-color-accent: #8CC7A0;
243
+ --mk-color-accent-hover: #AFDABD;
244
+ --mk-color-accent-subtle: rgba(140, 199, 160, 0.14);
245
+ --mk-color-backdrop: rgba(17, 21, 15, 0.72);
246
+ --mk-color-bg: #11150F;
247
+ --mk-color-bg-subtle: #1A1F17;
248
+ --mk-color-border: #343B2F;
249
+ --mk-color-border-control: #7C8470;
250
+ --mk-color-border-strong: #7C8470;
251
+ --mk-color-caption-bar: rgba(17, 21, 15, 0.9);
195
252
  --mk-color-danger: #F87171;
196
- --mk-color-focus-ring: #FBBF24;
253
+ --mk-color-focus-ring: #8CC7A0;
197
254
  --mk-color-grid-line: rgba(255, 255, 255, 0.04);
255
+ --mk-color-highlight: #D4AA55;
198
256
  --mk-color-info: #60A5FA;
199
- --mk-color-on-accent: #1C1917;
200
- --mk-color-on-danger: #1C1917;
201
- --mk-color-success: #4ADE80;
202
- --mk-color-surface: #292524;
203
- --mk-color-text: #FAFAF9;
204
- --mk-color-text-muted: #A8A29E;
205
- --mk-color-text-secondary: #D6D3D1;
257
+ --mk-color-on-accent: #11150F;
258
+ --mk-color-on-danger: #11150F;
259
+ --mk-color-on-highlight: #11150F;
260
+ --mk-color-selected-row: rgba(140, 199, 160, 0.06);
261
+ --mk-color-success: #2DD4BF;
262
+ --mk-color-surface: #242B20;
263
+ --mk-color-text: #EEEBE2;
264
+ --mk-color-text-muted: #9A9D8E;
265
+ --mk-color-text-secondary: #CBC9BC;
206
266
  --mk-color-warning: #FB923C;
207
267
  color-scheme: dark;
208
268
  }
@@ -1,4 +1,4 @@
1
- /*! @manjunathhk/design-tokens v1.6.0 */
1
+ /*! @manjunathhk/design-tokens v2.0.0 */
2
2
  import type { Config } from "stylelint";
3
3
 
4
4
  declare const config: Config;
@@ -1,4 +1,4 @@
1
- /*! @manjunathhk/design-tokens v1.6.0 */
1
+ /*! @manjunathhk/design-tokens v2.0.0 */
2
2
  export default {
3
3
  rules: {
4
4
  "color-no-hex": true,
package/dist/tokens.css CHANGED
@@ -1,28 +1,33 @@
1
- /*! @manjunathhk/design-tokens v1.6.0 */
1
+ /*! @manjunathhk/design-tokens v2.0.0 */
2
2
  :root {
3
- --mk-color-accent: #B45309;
4
- --mk-color-accent-hover: #92400E;
5
- --mk-color-accent-subtle: rgba(180, 83, 9, 0.14);
6
- --mk-color-bg: #FAFAF9;
7
- --mk-color-bg-subtle: #F5F5F4;
8
- --mk-color-border: #E7E5E4;
9
- --mk-color-border-control: #78716C;
10
- --mk-color-border-strong: #78716C;
3
+ --mk-color-accent: #2E5B44;
4
+ --mk-color-accent-hover: #234733;
5
+ --mk-color-accent-subtle: rgba(46, 91, 68, 0.14);
6
+ --mk-color-backdrop: rgba(34, 38, 31, 0.35);
7
+ --mk-color-bg: #EFE9E0;
8
+ --mk-color-bg-subtle: #E2D9CB;
9
+ --mk-color-border: #D0C6B6;
10
+ --mk-color-border-control: #7A7A6C;
11
+ --mk-color-border-strong: #7A7A6C;
12
+ --mk-color-caption-bar: rgba(239, 233, 224, 0.9);
11
13
  --mk-color-danger: #B91C1C;
12
- --mk-color-focus-ring: #B45309;
13
- --mk-color-grid-line: rgba(28, 25, 23, 0.05);
14
+ --mk-color-focus-ring: #2E5B44;
15
+ --mk-color-grid-line: rgba(34, 38, 31, 0.05);
16
+ --mk-color-highlight: #B8892F;
14
17
  --mk-color-info: #1D4ED8;
15
18
  --mk-color-on-accent: #FFFFFF;
16
19
  --mk-color-on-danger: #FFFFFF;
17
- --mk-color-success: #15803D;
18
- --mk-color-surface: #FFFFFF;
19
- --mk-color-text: #1C1917;
20
- --mk-color-text-muted: #57534E;
21
- --mk-color-text-secondary: #44403C;
22
- --mk-color-warning: #A16207;
23
- --mk-font-family-display: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
24
- --mk-font-family-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
25
- --mk-font-family-sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
20
+ --mk-color-on-highlight: #22261F;
21
+ --mk-color-selected-row: rgba(46, 91, 68, 0.06);
22
+ --mk-color-success: #115E59;
23
+ --mk-color-surface: #FAF7F2;
24
+ --mk-color-text: #22261F;
25
+ --mk-color-text-muted: #575A50;
26
+ --mk-color-text-secondary: #3E4238;
27
+ --mk-color-warning: #854D0E;
28
+ --mk-font-family-display: 'MK Display', system-ui, -apple-system, 'Segoe UI', sans-serif;
29
+ --mk-font-family-mono: 'MK Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
30
+ --mk-font-family-sans: 'MK Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
26
31
  --mk-font-letter-spacing-display: -0.028em;
27
32
  --mk-font-letter-spacing-heading: -0.022em;
28
33
  --mk-font-letter-spacing-label: 0.07em;
@@ -79,50 +84,60 @@
79
84
 
80
85
  @media (prefers-color-scheme: dark) {
81
86
  :root:not([data-theme="light"]) {
82
- --mk-color-accent: #FBBF24;
83
- --mk-color-accent-hover: #FCD34D;
84
- --mk-color-accent-subtle: rgba(251, 191, 36, 0.14);
85
- --mk-color-bg: #0C0A09;
86
- --mk-color-bg-subtle: #1C1917;
87
- --mk-color-border: #44403C;
88
- --mk-color-border-control: #78716C;
89
- --mk-color-border-strong: #78716C;
87
+ --mk-color-accent: #8CC7A0;
88
+ --mk-color-accent-hover: #AFDABD;
89
+ --mk-color-accent-subtle: rgba(140, 199, 160, 0.14);
90
+ --mk-color-backdrop: rgba(17, 21, 15, 0.72);
91
+ --mk-color-bg: #11150F;
92
+ --mk-color-bg-subtle: #1A1F17;
93
+ --mk-color-border: #343B2F;
94
+ --mk-color-border-control: #7C8470;
95
+ --mk-color-border-strong: #7C8470;
96
+ --mk-color-caption-bar: rgba(17, 21, 15, 0.9);
90
97
  --mk-color-danger: #F87171;
91
- --mk-color-focus-ring: #FBBF24;
98
+ --mk-color-focus-ring: #8CC7A0;
92
99
  --mk-color-grid-line: rgba(255, 255, 255, 0.04);
100
+ --mk-color-highlight: #D4AA55;
93
101
  --mk-color-info: #60A5FA;
94
- --mk-color-on-accent: #1C1917;
95
- --mk-color-on-danger: #1C1917;
96
- --mk-color-success: #4ADE80;
97
- --mk-color-surface: #292524;
98
- --mk-color-text: #FAFAF9;
99
- --mk-color-text-muted: #A8A29E;
100
- --mk-color-text-secondary: #D6D3D1;
102
+ --mk-color-on-accent: #11150F;
103
+ --mk-color-on-danger: #11150F;
104
+ --mk-color-on-highlight: #11150F;
105
+ --mk-color-selected-row: rgba(140, 199, 160, 0.06);
106
+ --mk-color-success: #2DD4BF;
107
+ --mk-color-surface: #242B20;
108
+ --mk-color-text: #EEEBE2;
109
+ --mk-color-text-muted: #9A9D8E;
110
+ --mk-color-text-secondary: #CBC9BC;
101
111
  --mk-color-warning: #FB923C;
102
112
  color-scheme: dark;
103
113
  }
104
114
  }
105
115
 
106
116
  :root[data-theme="dark"] {
107
- --mk-color-accent: #FBBF24;
108
- --mk-color-accent-hover: #FCD34D;
109
- --mk-color-accent-subtle: rgba(251, 191, 36, 0.14);
110
- --mk-color-bg: #0C0A09;
111
- --mk-color-bg-subtle: #1C1917;
112
- --mk-color-border: #44403C;
113
- --mk-color-border-control: #78716C;
114
- --mk-color-border-strong: #78716C;
117
+ --mk-color-accent: #8CC7A0;
118
+ --mk-color-accent-hover: #AFDABD;
119
+ --mk-color-accent-subtle: rgba(140, 199, 160, 0.14);
120
+ --mk-color-backdrop: rgba(17, 21, 15, 0.72);
121
+ --mk-color-bg: #11150F;
122
+ --mk-color-bg-subtle: #1A1F17;
123
+ --mk-color-border: #343B2F;
124
+ --mk-color-border-control: #7C8470;
125
+ --mk-color-border-strong: #7C8470;
126
+ --mk-color-caption-bar: rgba(17, 21, 15, 0.9);
115
127
  --mk-color-danger: #F87171;
116
- --mk-color-focus-ring: #FBBF24;
128
+ --mk-color-focus-ring: #8CC7A0;
117
129
  --mk-color-grid-line: rgba(255, 255, 255, 0.04);
130
+ --mk-color-highlight: #D4AA55;
118
131
  --mk-color-info: #60A5FA;
119
- --mk-color-on-accent: #1C1917;
120
- --mk-color-on-danger: #1C1917;
121
- --mk-color-success: #4ADE80;
122
- --mk-color-surface: #292524;
123
- --mk-color-text: #FAFAF9;
124
- --mk-color-text-muted: #A8A29E;
125
- --mk-color-text-secondary: #D6D3D1;
132
+ --mk-color-on-accent: #11150F;
133
+ --mk-color-on-danger: #11150F;
134
+ --mk-color-on-highlight: #11150F;
135
+ --mk-color-selected-row: rgba(140, 199, 160, 0.06);
136
+ --mk-color-success: #2DD4BF;
137
+ --mk-color-surface: #242B20;
138
+ --mk-color-text: #EEEBE2;
139
+ --mk-color-text-muted: #9A9D8E;
140
+ --mk-color-text-secondary: #CBC9BC;
126
141
  --mk-color-warning: #FB923C;
127
142
  color-scheme: dark;
128
143
  }
package/dist/tokens.d.ts CHANGED
@@ -1,20 +1,25 @@
1
- /*! @manjunathhk/design-tokens v1.6.0 */
1
+ /*! @manjunathhk/design-tokens v2.0.0 */
2
2
  /** Colour tokens; light and dark share these keys. */
3
3
  export interface ColorTokens {
4
4
  readonly "color.accent": string;
5
5
  readonly "color.accent-hover": string;
6
6
  readonly "color.accent-subtle": string;
7
+ readonly "color.backdrop": string;
7
8
  readonly "color.bg": string;
8
9
  readonly "color.bg-subtle": string;
9
10
  readonly "color.border": string;
10
11
  readonly "color.border-control": string;
11
12
  readonly "color.border-strong": string;
13
+ readonly "color.caption-bar": string;
12
14
  readonly "color.danger": string;
13
15
  readonly "color.focus-ring": string;
14
16
  readonly "color.grid-line": string;
17
+ readonly "color.highlight": string;
15
18
  readonly "color.info": string;
16
19
  readonly "color.on-accent": string;
17
20
  readonly "color.on-danger": string;
21
+ readonly "color.on-highlight": string;
22
+ readonly "color.selected-row": string;
18
23
  readonly "color.success": string;
19
24
  readonly "color.surface": string;
20
25
  readonly "color.text": string;
package/dist/tokens.json CHANGED
@@ -1,53 +1,63 @@
1
1
  {
2
- "version": "1.6.0",
2
+ "version": "2.0.0",
3
3
  "light": {
4
- "color.accent": "#B45309",
5
- "color.accent-hover": "#92400E",
6
- "color.accent-subtle": "rgba(180, 83, 9, 0.14)",
7
- "color.bg": "#FAFAF9",
8
- "color.bg-subtle": "#F5F5F4",
9
- "color.border": "#E7E5E4",
10
- "color.border-control": "#78716C",
11
- "color.border-strong": "#78716C",
4
+ "color.accent": "#2E5B44",
5
+ "color.accent-hover": "#234733",
6
+ "color.accent-subtle": "rgba(46, 91, 68, 0.14)",
7
+ "color.backdrop": "rgba(34, 38, 31, 0.35)",
8
+ "color.bg": "#EFE9E0",
9
+ "color.bg-subtle": "#E2D9CB",
10
+ "color.border": "#D0C6B6",
11
+ "color.border-control": "#7A7A6C",
12
+ "color.border-strong": "#7A7A6C",
13
+ "color.caption-bar": "rgba(239, 233, 224, 0.9)",
12
14
  "color.danger": "#B91C1C",
13
- "color.focus-ring": "#B45309",
14
- "color.grid-line": "rgba(28, 25, 23, 0.05)",
15
+ "color.focus-ring": "#2E5B44",
16
+ "color.grid-line": "rgba(34, 38, 31, 0.05)",
17
+ "color.highlight": "#B8892F",
15
18
  "color.info": "#1D4ED8",
16
19
  "color.on-accent": "#FFFFFF",
17
20
  "color.on-danger": "#FFFFFF",
18
- "color.success": "#15803D",
19
- "color.surface": "#FFFFFF",
20
- "color.text": "#1C1917",
21
- "color.text-muted": "#57534E",
22
- "color.text-secondary": "#44403C",
23
- "color.warning": "#A16207"
21
+ "color.on-highlight": "#22261F",
22
+ "color.selected-row": "rgba(46, 91, 68, 0.06)",
23
+ "color.success": "#115E59",
24
+ "color.surface": "#FAF7F2",
25
+ "color.text": "#22261F",
26
+ "color.text-muted": "#575A50",
27
+ "color.text-secondary": "#3E4238",
28
+ "color.warning": "#854D0E"
24
29
  },
25
30
  "dark": {
26
- "color.accent": "#FBBF24",
27
- "color.accent-hover": "#FCD34D",
28
- "color.accent-subtle": "rgba(251, 191, 36, 0.14)",
29
- "color.bg": "#0C0A09",
30
- "color.bg-subtle": "#1C1917",
31
- "color.border": "#44403C",
32
- "color.border-control": "#78716C",
33
- "color.border-strong": "#78716C",
31
+ "color.accent": "#8CC7A0",
32
+ "color.accent-hover": "#AFDABD",
33
+ "color.accent-subtle": "rgba(140, 199, 160, 0.14)",
34
+ "color.backdrop": "rgba(17, 21, 15, 0.72)",
35
+ "color.bg": "#11150F",
36
+ "color.bg-subtle": "#1A1F17",
37
+ "color.border": "#343B2F",
38
+ "color.border-control": "#7C8470",
39
+ "color.border-strong": "#7C8470",
40
+ "color.caption-bar": "rgba(17, 21, 15, 0.9)",
34
41
  "color.danger": "#F87171",
35
- "color.focus-ring": "#FBBF24",
42
+ "color.focus-ring": "#8CC7A0",
36
43
  "color.grid-line": "rgba(255, 255, 255, 0.04)",
44
+ "color.highlight": "#D4AA55",
37
45
  "color.info": "#60A5FA",
38
- "color.on-accent": "#1C1917",
39
- "color.on-danger": "#1C1917",
40
- "color.success": "#4ADE80",
41
- "color.surface": "#292524",
42
- "color.text": "#FAFAF9",
43
- "color.text-muted": "#A8A29E",
44
- "color.text-secondary": "#D6D3D1",
46
+ "color.on-accent": "#11150F",
47
+ "color.on-danger": "#11150F",
48
+ "color.on-highlight": "#11150F",
49
+ "color.selected-row": "rgba(140, 199, 160, 0.06)",
50
+ "color.success": "#2DD4BF",
51
+ "color.surface": "#242B20",
52
+ "color.text": "#EEEBE2",
53
+ "color.text-muted": "#9A9D8E",
54
+ "color.text-secondary": "#CBC9BC",
45
55
  "color.warning": "#FB923C"
46
56
  },
47
57
  "shared": {
48
- "font.family.display": "Inter, system-ui, -apple-system, 'Segoe UI', sans-serif",
49
- "font.family.mono": "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace",
50
- "font.family.sans": "Inter, system-ui, -apple-system, 'Segoe UI', sans-serif",
58
+ "font.family.display": "'MK Display', system-ui, -apple-system, 'Segoe UI', sans-serif",
59
+ "font.family.mono": "'MK Mono', ui-monospace, SFMono-Regular, Menlo, monospace",
60
+ "font.family.sans": "'MK Sans', system-ui, -apple-system, 'Segoe UI', sans-serif",
51
61
  "font.letter-spacing.display": "-0.028em",
52
62
  "font.letter-spacing.heading": "-0.022em",
53
63
  "font.letter-spacing.label": "0.07em",
package/dist/tokens.mjs CHANGED
@@ -1,53 +1,63 @@
1
- /*! @manjunathhk/design-tokens v1.6.0 */
2
- export const version = "1.6.0";
1
+ /*! @manjunathhk/design-tokens v2.0.0 */
2
+ export const version = "2.0.0";
3
3
  export const light = {
4
- "color.accent": "#B45309",
5
- "color.accent-hover": "#92400E",
6
- "color.accent-subtle": "rgba(180, 83, 9, 0.14)",
7
- "color.bg": "#FAFAF9",
8
- "color.bg-subtle": "#F5F5F4",
9
- "color.border": "#E7E5E4",
10
- "color.border-control": "#78716C",
11
- "color.border-strong": "#78716C",
4
+ "color.accent": "#2E5B44",
5
+ "color.accent-hover": "#234733",
6
+ "color.accent-subtle": "rgba(46, 91, 68, 0.14)",
7
+ "color.backdrop": "rgba(34, 38, 31, 0.35)",
8
+ "color.bg": "#EFE9E0",
9
+ "color.bg-subtle": "#E2D9CB",
10
+ "color.border": "#D0C6B6",
11
+ "color.border-control": "#7A7A6C",
12
+ "color.border-strong": "#7A7A6C",
13
+ "color.caption-bar": "rgba(239, 233, 224, 0.9)",
12
14
  "color.danger": "#B91C1C",
13
- "color.focus-ring": "#B45309",
14
- "color.grid-line": "rgba(28, 25, 23, 0.05)",
15
+ "color.focus-ring": "#2E5B44",
16
+ "color.grid-line": "rgba(34, 38, 31, 0.05)",
17
+ "color.highlight": "#B8892F",
15
18
  "color.info": "#1D4ED8",
16
19
  "color.on-accent": "#FFFFFF",
17
20
  "color.on-danger": "#FFFFFF",
18
- "color.success": "#15803D",
19
- "color.surface": "#FFFFFF",
20
- "color.text": "#1C1917",
21
- "color.text-muted": "#57534E",
22
- "color.text-secondary": "#44403C",
23
- "color.warning": "#A16207"
21
+ "color.on-highlight": "#22261F",
22
+ "color.selected-row": "rgba(46, 91, 68, 0.06)",
23
+ "color.success": "#115E59",
24
+ "color.surface": "#FAF7F2",
25
+ "color.text": "#22261F",
26
+ "color.text-muted": "#575A50",
27
+ "color.text-secondary": "#3E4238",
28
+ "color.warning": "#854D0E"
24
29
  };
25
30
  export const dark = {
26
- "color.accent": "#FBBF24",
27
- "color.accent-hover": "#FCD34D",
28
- "color.accent-subtle": "rgba(251, 191, 36, 0.14)",
29
- "color.bg": "#0C0A09",
30
- "color.bg-subtle": "#1C1917",
31
- "color.border": "#44403C",
32
- "color.border-control": "#78716C",
33
- "color.border-strong": "#78716C",
31
+ "color.accent": "#8CC7A0",
32
+ "color.accent-hover": "#AFDABD",
33
+ "color.accent-subtle": "rgba(140, 199, 160, 0.14)",
34
+ "color.backdrop": "rgba(17, 21, 15, 0.72)",
35
+ "color.bg": "#11150F",
36
+ "color.bg-subtle": "#1A1F17",
37
+ "color.border": "#343B2F",
38
+ "color.border-control": "#7C8470",
39
+ "color.border-strong": "#7C8470",
40
+ "color.caption-bar": "rgba(17, 21, 15, 0.9)",
34
41
  "color.danger": "#F87171",
35
- "color.focus-ring": "#FBBF24",
42
+ "color.focus-ring": "#8CC7A0",
36
43
  "color.grid-line": "rgba(255, 255, 255, 0.04)",
44
+ "color.highlight": "#D4AA55",
37
45
  "color.info": "#60A5FA",
38
- "color.on-accent": "#1C1917",
39
- "color.on-danger": "#1C1917",
40
- "color.success": "#4ADE80",
41
- "color.surface": "#292524",
42
- "color.text": "#FAFAF9",
43
- "color.text-muted": "#A8A29E",
44
- "color.text-secondary": "#D6D3D1",
46
+ "color.on-accent": "#11150F",
47
+ "color.on-danger": "#11150F",
48
+ "color.on-highlight": "#11150F",
49
+ "color.selected-row": "rgba(140, 199, 160, 0.06)",
50
+ "color.success": "#2DD4BF",
51
+ "color.surface": "#242B20",
52
+ "color.text": "#EEEBE2",
53
+ "color.text-muted": "#9A9D8E",
54
+ "color.text-secondary": "#CBC9BC",
45
55
  "color.warning": "#FB923C"
46
56
  };
47
57
  export const shared = {
48
- "font.family.display": "Inter, system-ui, -apple-system, 'Segoe UI', sans-serif",
49
- "font.family.mono": "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace",
50
- "font.family.sans": "Inter, system-ui, -apple-system, 'Segoe UI', sans-serif",
58
+ "font.family.display": "'MK Display', system-ui, -apple-system, 'Segoe UI', sans-serif",
59
+ "font.family.mono": "'MK Mono', ui-monospace, SFMono-Regular, Menlo, monospace",
60
+ "font.family.sans": "'MK Sans', system-ui, -apple-system, 'Segoe UI', sans-serif",
51
61
  "font.letter-spacing.display": "-0.028em",
52
62
  "font.letter-spacing.heading": "-0.022em",
53
63
  "font.letter-spacing.label": "0.07em",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manjunathhk/design-tokens",
3
- "version": "1.6.0",
3
+ "version": "2.0.0",
4
4
  "description": "Design tokens and a small opt-in base stylesheet shared by Manjunath's websites.",
5
5
  "license": "MIT",
6
6
  "author": "Manjunath Krishnasa",
@@ -65,10 +65,11 @@
65
65
  },
66
66
  "devDependencies": {
67
67
  "@eslint/js": "^10.0.1",
68
- "@fontsource/inter": "5.3.0",
69
- "@fontsource/jetbrains-mono": "5.3.0",
68
+ "@fontsource/familjen-grotesk": "5.3.0",
69
+ "@fontsource/figtree": "5.3.0",
70
+ "@fontsource/spline-sans-mono": "5.3.0",
70
71
  "@playwright/test": "^1.63.0",
71
- "@types/node": "^24.13.6",
72
+ "@types/node": "^26.6.10",
72
73
  "eslint": "^10.11.0",
73
74
  "prettier": "^3.9.9",
74
75
  "sass": "^1.105.0",