@happyvertical/smrt-ui 0.36.4 → 0.36.6

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/AGENTS.md +3 -1
  2. package/dist/components/forms/__tests__/Form.test.js +1 -1
  3. package/dist/components/forms/__tests__/FormGroup.test.js +1 -1
  4. package/dist/components/forms/__tests__/Select.test.js +1 -1
  5. package/dist/components/forms/__tests__/Textarea.test.js +1 -1
  6. package/dist/components/forms/__tests__/Toggle.test.js +1 -1
  7. package/dist/components/forms/index.d.ts +1 -1
  8. package/dist/components/forms/index.d.ts.map +1 -1
  9. package/dist/components/forms/index.js +1 -1
  10. package/dist/themes/README.md +41 -2
  11. package/dist/themes/__tests__/token-aliases.test.js +1 -0
  12. package/dist/themes/components/ThemeSwitcher.svelte +1 -0
  13. package/dist/themes/components/ThemeSwitcher.svelte.d.ts.map +1 -1
  14. package/dist/themes/fonts/LICENSE.md +16 -0
  15. package/dist/themes/fonts/inter-latin-ext.woff2 +0 -0
  16. package/dist/themes/fonts/inter-latin.woff2 +0 -0
  17. package/dist/themes/fonts/jetbrains-mono-latin-ext.woff2 +0 -0
  18. package/dist/themes/fonts/jetbrains-mono-latin.woff2 +0 -0
  19. package/dist/themes/fonts/space-grotesk-latin-ext.woff2 +0 -0
  20. package/dist/themes/fonts/space-grotesk-latin.woff2 +0 -0
  21. package/dist/themes/index.d.ts +2 -1
  22. package/dist/themes/index.d.ts.map +1 -1
  23. package/dist/themes/index.js +2 -1
  24. package/dist/themes/registry.d.ts.map +1 -1
  25. package/dist/themes/registry.js +8 -1
  26. package/dist/themes/smrt/index.d.ts +20 -0
  27. package/dist/themes/smrt/index.d.ts.map +1 -0
  28. package/dist/themes/smrt/index.js +313 -0
  29. package/dist/themes/styles/all.css +6 -2
  30. package/dist/themes/styles/fonts.css +93 -0
  31. package/dist/themes/styles/index.d.ts +3 -0
  32. package/dist/themes/styles/index.d.ts.map +1 -1
  33. package/dist/themes/styles/index.js +3 -0
  34. package/dist/themes/styles/smrt.css +646 -0
  35. package/dist/themes/types.d.ts +2 -2
  36. package/dist/themes/types.d.ts.map +1 -1
  37. package/dist/themes/types.js +1 -1
  38. package/package.json +2 -2
  39. package/LICENSE +0 -7
@@ -1,12 +1,16 @@
1
1
  /**
2
2
  * All Themes CSS
3
3
  *
4
- * Combined CSS file with all themes (Material, Glass, Studio).
4
+ * Combined CSS file with all themes (Material, Glass, Studio, SMRT).
5
5
  * Use this if your app supports runtime theme switching.
6
6
  *
7
- * @usage import '@smrt/svelte/themes/styles/all.css';
7
+ * Note: the SMRT theme's fonts are not imported here (they pull in woff2
8
+ * binaries). Import './fonts.css' explicitly if you want the SMRT type stack.
9
+ *
10
+ * @usage import '@happyvertical/smrt-ui/themes/styles/all.css';
8
11
  */
9
12
 
10
13
  @import './material.css';
11
14
  @import './glass.css';
12
15
  @import './studio.css';
16
+ @import './smrt.css';
@@ -0,0 +1,93 @@
1
+ /**
2
+ * SMRT Theme Fonts
3
+ *
4
+ * Self-hosted @font-face declarations for the SMRT theme's type stack:
5
+ * - Space Grotesk — display / headings
6
+ * - Inter — body / UI
7
+ * - JetBrains Mono — code, technical labels, instrument readouts
8
+ *
9
+ * These are the Google Fonts variable woff2 instances (latin + latin-ext
10
+ * subsets), bundled for privacy-first, CDN-free delivery. All three are
11
+ * licensed under the SIL Open Font License 1.1.
12
+ *
13
+ * Import alongside the theme tokens when you want the full workbench look:
14
+ *
15
+ * import '@happyvertical/smrt-ui/themes/styles/fonts.css';
16
+ * import '@happyvertical/smrt-ui/themes/styles/smrt.css';
17
+ *
18
+ * Font files are resolved relative to this stylesheet (../fonts/*.woff2) by
19
+ * your bundler. If you can't bundle the fonts, the theme falls back to
20
+ * system-ui / ui-monospace stacks automatically.
21
+ */
22
+
23
+ /* Space Grotesk — display (variable weight) */
24
+ @font-face {
25
+ font-family: 'Space Grotesk';
26
+ font-style: normal;
27
+ font-weight: 300 700;
28
+ font-display: swap;
29
+ src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
30
+ unicode-range:
31
+ U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
32
+ U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
33
+ U+2215, U+FEFF, U+FFFD;
34
+ }
35
+ @font-face {
36
+ font-family: 'Space Grotesk';
37
+ font-style: normal;
38
+ font-weight: 300 700;
39
+ font-display: swap;
40
+ src: url('../fonts/space-grotesk-latin-ext.woff2') format('woff2');
41
+ unicode-range:
42
+ U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
43
+ U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
44
+ U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
45
+ }
46
+
47
+ /* Inter — body / UI (variable weight) */
48
+ @font-face {
49
+ font-family: 'Inter';
50
+ font-style: normal;
51
+ font-weight: 100 900;
52
+ font-display: swap;
53
+ src: url('../fonts/inter-latin.woff2') format('woff2');
54
+ unicode-range:
55
+ U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
56
+ U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
57
+ U+2215, U+FEFF, U+FFFD;
58
+ }
59
+ @font-face {
60
+ font-family: 'Inter';
61
+ font-style: normal;
62
+ font-weight: 100 900;
63
+ font-display: swap;
64
+ src: url('../fonts/inter-latin-ext.woff2') format('woff2');
65
+ unicode-range:
66
+ U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
67
+ U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
68
+ U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
69
+ }
70
+
71
+ /* JetBrains Mono — code / technical labels (variable weight) */
72
+ @font-face {
73
+ font-family: 'JetBrains Mono';
74
+ font-style: normal;
75
+ font-weight: 100 800;
76
+ font-display: swap;
77
+ src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
78
+ unicode-range:
79
+ U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
80
+ U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
81
+ U+2215, U+FEFF, U+FFFD;
82
+ }
83
+ @font-face {
84
+ font-family: 'JetBrains Mono';
85
+ font-style: normal;
86
+ font-weight: 100 800;
87
+ font-display: swap;
88
+ src: url('../fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
89
+ unicode-range:
90
+ U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
91
+ U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
92
+ U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
93
+ }
@@ -17,6 +17,9 @@ export declare const themeStyles: {
17
17
  readonly material: "./material.css";
18
18
  readonly glass: "./glass.css";
19
19
  readonly studio: "./studio.css";
20
+ readonly smrt: "./smrt.css";
21
+ /** @font-face declarations for the SMRT theme (Space Grotesk / Inter / JetBrains Mono). */
22
+ readonly fonts: "./fonts.css";
20
23
  readonly all: "./all.css";
21
24
  };
22
25
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/themes/styles/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,eAAO,MAAM,WAAW;;;;;CAKd,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/themes/styles/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,eAAO,MAAM,WAAW;;;;;IAKtB,2FAA2F;;;CAGnF,CAAC"}
@@ -19,5 +19,8 @@ export const themeStyles = {
19
19
  material: './material.css',
20
20
  glass: './glass.css',
21
21
  studio: './studio.css',
22
+ smrt: './smrt.css',
23
+ /** @font-face declarations for the SMRT theme (Space Grotesk / Inter / JetBrains Mono). */
24
+ fonts: './fonts.css',
22
25
  all: './all.css',
23
26
  };