@archetypeai/ds-lib-tokens 0.3.25 → 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.
- package/README.md +2 -2
- package/fonts.css +123 -0
- package/package.json +5 -3
- package/theme.css +25 -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
|
|
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
|
-
`@
|
|
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.
|
|
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",
|
package/theme.css
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
/* Semantic Tokens */
|
|
12
12
|
:root {
|
|
13
13
|
/* shadcn-svelte specific semantic tokens*/
|
|
14
|
-
--radius: 0.
|
|
14
|
+
--radius: 0.375rem;
|
|
15
15
|
--background: oklch(1 0 0);
|
|
16
16
|
--foreground: oklch(0.141 0.005 285.823);
|
|
17
17
|
--card: oklch(0.99 0 0);
|
|
@@ -44,10 +44,18 @@
|
|
|
44
44
|
--sidebar-border: oklch(0.92 0.004 286.32);
|
|
45
45
|
--sidebar-ring: oklch(0.705 0.015 286.067);
|
|
46
46
|
/* Archetype AI specific semantic tokens*/
|
|
47
|
+
/* Colors*/
|
|
47
48
|
--atai-neutral: var(--color-atai-baby-blue-300);
|
|
48
49
|
--atai-good: var(--color-atai-screen-green-200);
|
|
49
50
|
--atai-warning: var(--color-atai-sunshine-yellow-50);
|
|
50
51
|
--atai-critical: var(--color-atai-fire-red-500);
|
|
52
|
+
/* Icon Strokes */
|
|
53
|
+
--atai-icon-stroke-default: 1;
|
|
54
|
+
--atai-icon-stroke-interactive: 1.25;
|
|
55
|
+
--atai-icon-stroke-status: 1.5;
|
|
56
|
+
--atai-icon-stroke-emphasis: 2;
|
|
57
|
+
/* Radius */
|
|
58
|
+
--atai-radius-interactive: var(--radius-xs);
|
|
51
59
|
}
|
|
52
60
|
|
|
53
61
|
/* Semantic Tokens Dark Mode Overrides */
|
|
@@ -89,6 +97,13 @@
|
|
|
89
97
|
--atai-good: var(--color-atai-screen-green-200);
|
|
90
98
|
--atai-warning: var(--color-atai-sunshine-yellow-100);
|
|
91
99
|
--atai-critical: var(--color-atai-fire-red-500);
|
|
100
|
+
/* Icon stroke semantic tokens */
|
|
101
|
+
--atai-icon-stroke-default: 1;
|
|
102
|
+
--atai-icon-stroke-interactive: 1.25;
|
|
103
|
+
--atai-icon-stroke-status: 1.5;
|
|
104
|
+
--atai-icon-stroke-emphasis: 2;
|
|
105
|
+
/* Radius */
|
|
106
|
+
--atai-radius-interactive: var(--radius-xs);
|
|
92
107
|
}
|
|
93
108
|
|
|
94
109
|
/* Client Theme Overrides*/
|
|
@@ -103,9 +118,11 @@
|
|
|
103
118
|
@theme {
|
|
104
119
|
--font-sans: 'PP Neue Montreal', system-ui, -apple-system, sans-serif;
|
|
105
120
|
--font-mono: 'PP Neue Montreal Mono', 'Courier New', monospace;
|
|
106
|
-
--radius-
|
|
121
|
+
--radius-xs: 0.125rem;
|
|
122
|
+
--radius-sm: 0.25rem;
|
|
107
123
|
--radius-md: var(--radius);
|
|
108
|
-
--radius-lg:
|
|
124
|
+
--radius-lg: 0.5rem;
|
|
125
|
+
--radius-xl: 0.75rem;
|
|
109
126
|
--radius-full: 9999px;
|
|
110
127
|
--spacing-xs: 0.25rem;
|
|
111
128
|
--spacing-sm: 0.5rem;
|
|
@@ -147,6 +164,11 @@
|
|
|
147
164
|
--color-atai-good: var(--atai-good);
|
|
148
165
|
--color-atai-warning: var(--atai-warning);
|
|
149
166
|
--color-atai-critical: var(--atai-critical);
|
|
167
|
+
--stroke-width-icon-default: var(--atai-icon-stroke-default);
|
|
168
|
+
--stroke-width-icon-interactive: var(--atai-icon-stroke-interactive);
|
|
169
|
+
--stroke-width-icon-status: var(--atai-icon-stroke-status);
|
|
170
|
+
--stroke-width-icon-emphasis: var(--atai-icon-stroke-emphasis);
|
|
171
|
+
--radius-interactive: var(--atai-radius-interactive);
|
|
150
172
|
}
|
|
151
173
|
|
|
152
174
|
/* Base Styles & Semantic HTML Elements */
|