@hilum/ui 0.1.3 → 0.1.4

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/dist/fonts.css ADDED
@@ -0,0 +1,74 @@
1
+ /* Hilum UI fonts — generated by scripts/build-fonts.mjs. Do not edit by hand. */
2
+ /* Inter (variable, 100-900) + Instrument Serif (400 + italic), latin + latin-ext subsets. */
3
+
4
+ @font-face {
5
+ font-family: 'Inter';
6
+ font-style: normal;
7
+ font-display: swap;
8
+ font-weight: 100 900;
9
+ src: url('./fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
10
+ unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
11
+ }
12
+
13
+ @font-face {
14
+ font-family: 'Inter';
15
+ font-style: italic;
16
+ font-display: swap;
17
+ font-weight: 100 900;
18
+ src: url('./fonts/inter-latin-wght-italic.woff2') format('woff2-variations');
19
+ unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
20
+ }
21
+
22
+ @font-face {
23
+ font-family: 'Inter';
24
+ font-style: normal;
25
+ font-display: swap;
26
+ font-weight: 100 900;
27
+ src: url('./fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
28
+ unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
29
+ }
30
+
31
+ @font-face {
32
+ font-family: 'Inter';
33
+ font-style: italic;
34
+ font-display: swap;
35
+ font-weight: 100 900;
36
+ src: url('./fonts/inter-latin-ext-wght-italic.woff2') format('woff2-variations');
37
+ unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
38
+ }
39
+
40
+ @font-face {
41
+ font-family: 'Instrument Serif';
42
+ font-style: normal;
43
+ font-display: swap;
44
+ font-weight: 400;
45
+ src: url('./fonts/instrument-serif-latin-400-normal.woff2') format('woff2');
46
+ unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
47
+ }
48
+
49
+ @font-face {
50
+ font-family: 'Instrument Serif';
51
+ font-style: italic;
52
+ font-display: swap;
53
+ font-weight: 400;
54
+ src: url('./fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
55
+ unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
56
+ }
57
+
58
+ @font-face {
59
+ font-family: 'Instrument Serif';
60
+ font-style: normal;
61
+ font-display: swap;
62
+ font-weight: 400;
63
+ src: url('./fonts/instrument-serif-latin-ext-400-normal.woff2') format('woff2');
64
+ unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
65
+ }
66
+
67
+ @font-face {
68
+ font-family: 'Instrument Serif';
69
+ font-style: italic;
70
+ font-display: swap;
71
+ font-weight: 400;
72
+ src: url('./fonts/instrument-serif-latin-ext-400-italic.woff2') format('woff2');
73
+ unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
74
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hilum/ui",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "private": false,
5
5
  "description": "Hilum UI — design system primitives (Button, Input, Dialog, Combobox, …) + tokens + fonts + icons",
6
6
  "license": "MIT",
@@ -30,6 +30,8 @@
30
30
  "types": "./dist/tokens.d.ts"
31
31
  },
32
32
  "./tokens.css": "./dist/tokens.css",
33
+ "./fonts.css": "./dist/fonts.css",
34
+ "./fonts/*": "./dist/fonts/*",
33
35
  "./create-theme": {
34
36
  "import": "./dist/create-theme.js",
35
37
  "types": "./dist/create-theme.d.ts"
@@ -68,6 +70,8 @@
68
70
  "vaul": "^1.1.2"
69
71
  },
70
72
  "devDependencies": {
73
+ "@fontsource-variable/inter": "^5.2.8",
74
+ "@fontsource/instrument-serif": "^5.2.8",
71
75
  "@types/react": "^19.0.0",
72
76
  "@types/react-dom": "^19.0.0",
73
77
  "tailwindcss": "^4.2.0",
@@ -75,7 +79,7 @@
75
79
  "typescript": "^5.7.0"
76
80
  },
77
81
  "scripts": {
78
- "build": "tsup && node ./scripts/build-tokens.mjs",
82
+ "build": "tsup && node ./scripts/build-tokens.mjs && node ./scripts/build-fonts.mjs",
79
83
  "dev": "tsup --watch",
80
84
  "typecheck": "tsc --noEmit",
81
85
  "lint": "eslint src",