@archetypeai/ds-lib-tokens 0.3.26 → 0.3.27

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 (3) hide show
  1. package/README.md +2 -2
  2. package/fonts.css +123 -0
  3. package/package.json +5 -3
package/README.md CHANGED
@@ -17,7 +17,7 @@ npm install @archetypeai/ds-lib-tokens tailwindcss
17
17
  Import the theme before Tailwind in your global CSS:
18
18
 
19
19
  ```css
20
- @import '@archetypeai/ds-lib-fonts-internal'; /* optional → PP Neue Montreal */
20
+ @import '@archetypeai/ds-lib-tokens/fonts.css'; /* optional → PP Neue Montreal (requires font files in static/fonts/) */
21
21
  @import '@archetypeai/ds-lib-tokens/theme.css';
22
22
  @import 'tailwindcss';
23
23
  ```
@@ -46,4 +46,4 @@ Brand tokens are defined in `tokens.css` and loaded automatically via `theme.css
46
46
 
47
47
  ## Fonts
48
48
 
49
- `@archetypeai/ds-lib-fonts-internal` is not yet published. Without it, the theme falls back to system fonts. Install it separately for PP Neue Montreal.
49
+ `fonts.css` is included in this package with `@font-face` declarations pointing to `/fonts/`. The CLI (`ds create` / `ds init`) copies the actual font files to `static/fonts/`. Without fonts, the theme falls back to system fonts (`system-ui`, `Courier New`).
package/fonts.css ADDED
@@ -0,0 +1,123 @@
1
+ /* PP Neue Montreal Sans*/
2
+
3
+ @font-face {
4
+ font-family: 'PP Neue Montreal';
5
+ src: url('/fonts/PPNeueMontreal-Thin.ttf') format('truetype');
6
+ font-weight: 100;
7
+ font-style: normal;
8
+ font-display: swap;
9
+ }
10
+
11
+ @font-face {
12
+ font-family: 'PP Neue Montreal';
13
+ src: url('/fonts/PPNeueMontreal-ThinItalic.ttf') format('truetype');
14
+ font-weight: 100;
15
+ font-style: italic;
16
+ font-display: swap;
17
+ }
18
+
19
+ @font-face {
20
+ font-family: 'PP Neue Montreal';
21
+ src: url('/fonts/PPNeueMontreal-Light.ttf') format('truetype');
22
+ font-weight: 300;
23
+ font-style: normal;
24
+ font-display: swap;
25
+ }
26
+
27
+ @font-face {
28
+ font-family: 'PP Neue Montreal';
29
+ src: url('/fonts/PPNeueMontreal-Regular.ttf') format('truetype');
30
+ font-weight: 400;
31
+ font-style: normal;
32
+ font-display: swap;
33
+ }
34
+
35
+ @font-face {
36
+ font-family: 'PP Neue Montreal';
37
+ src: url('/fonts/PPNeueMontreal-Italic.ttf') format('truetype');
38
+ font-weight: 400;
39
+ font-style: italic;
40
+ font-display: swap;
41
+ }
42
+
43
+ @font-face {
44
+ font-family: 'PP Neue Montreal';
45
+ src: url('/fonts/PPNeueMontreal-Book.ttf') format('truetype');
46
+ font-weight: 400;
47
+ font-style: normal;
48
+ font-display: swap;
49
+ }
50
+
51
+ @font-face {
52
+ font-family: 'PP Neue Montreal';
53
+ src: url('/fonts/PPNeueMontreal-Medium.ttf') format('truetype');
54
+ font-weight: 500;
55
+ font-style: normal;
56
+ font-display: swap;
57
+ }
58
+
59
+ @font-face {
60
+ font-family: 'PP Neue Montreal';
61
+ src: url('/fonts/PPNeueMontreal-Bold.ttf') format('truetype');
62
+ font-weight: 700;
63
+ font-style: normal;
64
+ font-display: swap;
65
+ }
66
+
67
+ @font-face {
68
+ font-family: 'PP Neue Montreal';
69
+ src: url('/fonts/PPNeueMontreal-BoldItalic.ttf') format('truetype');
70
+ font-weight: 700;
71
+ font-style: italic;
72
+ font-display: swap;
73
+ }
74
+
75
+ /* PP Neue Montreal Mono */
76
+
77
+ @font-face {
78
+ font-family: 'PP Neue Montreal Mono';
79
+ src: url('/fonts/PPNeueMontrealMono-Thin.otf') format('opentype');
80
+ font-weight: 100;
81
+ font-style: normal;
82
+ font-display: swap;
83
+ }
84
+
85
+ @font-face {
86
+ font-family: 'PP Neue Montreal Mono';
87
+ src: url('/fonts/PPNeueMontrealMono-Regular.otf') format('opentype');
88
+ font-weight: 400;
89
+ font-style: normal;
90
+ font-display: swap;
91
+ }
92
+
93
+ @font-face {
94
+ font-family: 'PP Neue Montreal Mono';
95
+ src: url('/fonts/PPNeueMontrealMono-RegularItalic.otf') format('opentype');
96
+ font-weight: 400;
97
+ font-style: italic;
98
+ font-display: swap;
99
+ }
100
+
101
+ @font-face {
102
+ font-family: 'PP Neue Montreal Mono';
103
+ src: url('/fonts/PPNeueMontrealMono-Book.otf') format('opentype');
104
+ font-weight: 400;
105
+ font-style: normal;
106
+ font-display: swap;
107
+ }
108
+
109
+ @font-face {
110
+ font-family: 'PP Neue Montreal Mono';
111
+ src: url('/fonts/PPNeueMontrealMono-Medium.otf') format('opentype');
112
+ font-weight: 500;
113
+ font-style: normal;
114
+ font-display: swap;
115
+ }
116
+
117
+ @font-face {
118
+ font-family: 'PP Neue Montreal Mono';
119
+ src: url('/fonts/PPNeueMontrealMono-Bold.otf') format('opentype');
120
+ font-weight: 700;
121
+ font-style: normal;
122
+ font-display: swap;
123
+ }
package/package.json CHANGED
@@ -1,21 +1,23 @@
1
1
  {
2
2
  "name": "@archetypeai/ds-lib-tokens",
3
- "version": "0.3.26",
3
+ "version": "0.3.27",
4
4
  "description": "Archetype AI Design System Tokens",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": "./theme.css",
8
8
  "./theme.css": "./theme.css",
9
- "./tokens.css": "./tokens.css"
9
+ "./tokens.css": "./tokens.css",
10
+ "./fonts.css": "./fonts.css"
10
11
  },
11
12
  "files": [
12
13
  "theme.css",
13
14
  "tokens.css",
15
+ "fonts.css",
14
16
  "LICENSE",
15
17
  "README.md"
16
18
  ],
17
19
  "scripts": {
18
- "build": "rm -rf dist && mkdir -p dist && cp theme.css tokens.css package.json LICENSE dist/ && cp ../docs/DS-LIB-TOKENS.md dist/README.md"
20
+ "build": "rm -rf dist && mkdir -p dist && cp theme.css tokens.css fonts.css package.json LICENSE dist/ && cp ../docs/DS-LIB-TOKENS.md dist/README.md"
19
21
  },
20
22
  "repository": {
21
23
  "type": "git",