@interstellarforge/matter-tokens 0.0.0-stage → 0.2.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.
@@ -0,0 +1,108 @@
1
+ {
2
+ "prefix": "m",
3
+ "themes": [
4
+ "deep-space",
5
+ "professional",
6
+ "pulsar"
7
+ ],
8
+ "modesByTheme": {
9
+ "deep-space": [
10
+ "light",
11
+ "dark"
12
+ ],
13
+ "professional": [
14
+ "light",
15
+ "dark"
16
+ ],
17
+ "pulsar": [
18
+ "light",
19
+ "dark"
20
+ ]
21
+ },
22
+ "densities": [
23
+ "comfortable",
24
+ "compact",
25
+ "touch"
26
+ ],
27
+ "defaultTheme": "deep-space",
28
+ "defaultDensity": "comfortable",
29
+ "tokenNames": [
30
+ "accent",
31
+ "accent-hover",
32
+ "accent-on",
33
+ "accent-soft",
34
+ "accent-soft-on",
35
+ "bg",
36
+ "border",
37
+ "border-strong",
38
+ "control-fs",
39
+ "control-gap",
40
+ "control-h",
41
+ "control-pad-x",
42
+ "control-radius",
43
+ "danger",
44
+ "danger-soft",
45
+ "duration-base",
46
+ "duration-fast",
47
+ "duration-slow",
48
+ "ease",
49
+ "focus",
50
+ "focus-halo",
51
+ "font-mono",
52
+ "font-sans",
53
+ "fs-2xl",
54
+ "fs-base",
55
+ "fs-lg",
56
+ "fs-md",
57
+ "fs-sm",
58
+ "fs-xl",
59
+ "fs-xs",
60
+ "fw-bold",
61
+ "fw-medium",
62
+ "fw-regular",
63
+ "fw-semibold",
64
+ "info",
65
+ "info-soft",
66
+ "lh-normal",
67
+ "lh-relaxed",
68
+ "lh-tight",
69
+ "overlay",
70
+ "placeholder",
71
+ "primary",
72
+ "primary-hover",
73
+ "primary-on",
74
+ "radius-lg",
75
+ "radius-md",
76
+ "radius-pill",
77
+ "radius-sm",
78
+ "radius-xl",
79
+ "radius-xs",
80
+ "row-h",
81
+ "shadow-lg",
82
+ "shadow-md",
83
+ "shadow-sm",
84
+ "sidebar",
85
+ "space-0",
86
+ "space-1",
87
+ "space-10",
88
+ "space-12",
89
+ "space-2",
90
+ "space-3",
91
+ "space-4",
92
+ "space-5",
93
+ "space-6",
94
+ "space-8",
95
+ "success",
96
+ "success-soft",
97
+ "surface",
98
+ "surface-disabled",
99
+ "surface-hover",
100
+ "surface-raised",
101
+ "surface-soft",
102
+ "text",
103
+ "text-muted",
104
+ "text-subtle",
105
+ "warning",
106
+ "warning-soft"
107
+ ]
108
+ }
package/package.json CHANGED
@@ -1,6 +1,38 @@
1
1
  {
2
2
  "name": "@interstellarforge/matter-tokens",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.2.0",
4
+ "license": "MIT",
5
+ "description": "Matter design tokens (DTCG source, CSS and TypeScript output). Framework-agnostic.",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/interstellarforge/matter.git",
9
+ "directory": "packages/tokens"
10
+ },
11
+ "type": "module",
12
+ "files": [
13
+ "dist",
14
+ "tokens"
15
+ ],
16
+ "exports": {
17
+ ".": {
18
+ "types": "./dist/index.d.ts",
19
+ "default": "./dist/index.js"
20
+ },
21
+ "./css": "./dist/matter-tokens.css",
22
+ "./index.json": "./dist/tokens.index.json",
23
+ "./tokens/*": "./tokens/*"
24
+ },
25
+ "publishConfig": {
26
+ "registry": "https://registry.npmjs.org/",
27
+ "access": "public",
28
+ "provenance": true
29
+ },
30
+ "devDependencies": {
31
+ "style-dictionary": "5.7.1",
32
+ "vitest": "4.1.6"
33
+ },
34
+ "scripts": {
35
+ "build": "node src/build.ts",
36
+ "test": "vitest run"
37
+ }
6
38
  }
@@ -0,0 +1,210 @@
1
+ {
2
+ "space": {
3
+ "$type": "dimension",
4
+ "0": {
5
+ "$value": {
6
+ "value": 0,
7
+ "unit": "px"
8
+ }
9
+ },
10
+ "1": {
11
+ "$value": {
12
+ "value": 4,
13
+ "unit": "px"
14
+ }
15
+ },
16
+ "2": {
17
+ "$value": {
18
+ "value": 8,
19
+ "unit": "px"
20
+ }
21
+ },
22
+ "3": {
23
+ "$value": {
24
+ "value": 12,
25
+ "unit": "px"
26
+ }
27
+ },
28
+ "4": {
29
+ "$value": {
30
+ "value": 16,
31
+ "unit": "px"
32
+ }
33
+ },
34
+ "5": {
35
+ "$value": {
36
+ "value": 20,
37
+ "unit": "px"
38
+ }
39
+ },
40
+ "6": {
41
+ "$value": {
42
+ "value": 24,
43
+ "unit": "px"
44
+ }
45
+ },
46
+ "8": {
47
+ "$value": {
48
+ "value": 32,
49
+ "unit": "px"
50
+ }
51
+ },
52
+ "10": {
53
+ "$value": {
54
+ "value": 40,
55
+ "unit": "px"
56
+ }
57
+ },
58
+ "12": {
59
+ "$value": {
60
+ "value": 48,
61
+ "unit": "px"
62
+ }
63
+ }
64
+ },
65
+ "radius": {
66
+ "$type": "dimension",
67
+ "xs": {
68
+ "$value": {
69
+ "value": 5,
70
+ "unit": "px"
71
+ }
72
+ },
73
+ "sm": {
74
+ "$value": {
75
+ "value": 8,
76
+ "unit": "px"
77
+ }
78
+ },
79
+ "md": {
80
+ "$value": {
81
+ "value": 12,
82
+ "unit": "px"
83
+ }
84
+ },
85
+ "lg": {
86
+ "$value": {
87
+ "value": 16,
88
+ "unit": "px"
89
+ }
90
+ },
91
+ "xl": {
92
+ "$value": {
93
+ "value": 22,
94
+ "unit": "px"
95
+ }
96
+ },
97
+ "pill": {
98
+ "$value": {
99
+ "value": 9999,
100
+ "unit": "px"
101
+ }
102
+ }
103
+ },
104
+ "fs": {
105
+ "$type": "dimension",
106
+ "xs": {
107
+ "$value": {
108
+ "value": 11,
109
+ "unit": "px"
110
+ }
111
+ },
112
+ "sm": {
113
+ "$value": {
114
+ "value": 12,
115
+ "unit": "px"
116
+ }
117
+ },
118
+ "md": {
119
+ "$value": {
120
+ "value": 14,
121
+ "unit": "px"
122
+ }
123
+ },
124
+ "base": {
125
+ "$value": {
126
+ "value": 15,
127
+ "unit": "px"
128
+ }
129
+ },
130
+ "lg": {
131
+ "$value": {
132
+ "value": 17,
133
+ "unit": "px"
134
+ }
135
+ },
136
+ "xl": {
137
+ "$value": {
138
+ "value": 22,
139
+ "unit": "px"
140
+ }
141
+ },
142
+ "2xl": {
143
+ "$value": {
144
+ "value": 28,
145
+ "unit": "px"
146
+ }
147
+ }
148
+ },
149
+ "fw": {
150
+ "$type": "fontWeight",
151
+ "regular": {
152
+ "$value": 400
153
+ },
154
+ "medium": {
155
+ "$value": 500
156
+ },
157
+ "semibold": {
158
+ "$value": 600
159
+ },
160
+ "bold": {
161
+ "$value": 700
162
+ }
163
+ },
164
+ "lh": {
165
+ "$type": "number",
166
+ "tight": {
167
+ "$value": 1.2
168
+ },
169
+ "normal": {
170
+ "$value": 1.45
171
+ },
172
+ "relaxed": {
173
+ "$value": 1.6
174
+ }
175
+ },
176
+ "font": {
177
+ "$type": "fontFamily",
178
+ "sans": {
179
+ "$value": "system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif"
180
+ },
181
+ "mono": {
182
+ "$value": "ui-monospace, \"SFMono-Regular\", Consolas, monospace"
183
+ }
184
+ },
185
+ "ease": {
186
+ "$type": "cubicBezier",
187
+ "$value": [0.2, 0.7, 0.25, 1]
188
+ },
189
+ "duration": {
190
+ "$type": "duration",
191
+ "fast": {
192
+ "$value": {
193
+ "value": 120,
194
+ "unit": "ms"
195
+ }
196
+ },
197
+ "base": {
198
+ "$value": {
199
+ "value": 150,
200
+ "unit": "ms"
201
+ }
202
+ },
203
+ "slow": {
204
+ "$value": {
205
+ "value": 220,
206
+ "unit": "ms"
207
+ }
208
+ }
209
+ }
210
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "control-h": {
3
+ "$type": "dimension",
4
+ "$value": {
5
+ "value": 36,
6
+ "unit": "px"
7
+ }
8
+ },
9
+ "control-pad-x": {
10
+ "$type": "dimension",
11
+ "$value": {
12
+ "value": 14,
13
+ "unit": "px"
14
+ }
15
+ },
16
+ "control-gap": {
17
+ "$type": "dimension",
18
+ "$value": {
19
+ "value": 12,
20
+ "unit": "px"
21
+ }
22
+ },
23
+ "control-fs": {
24
+ "$type": "dimension",
25
+ "$value": "{fs.md}"
26
+ },
27
+ "row-h": {
28
+ "$type": "dimension",
29
+ "$value": {
30
+ "value": 48,
31
+ "unit": "px"
32
+ }
33
+ }
34
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "control-h": {
3
+ "$type": "dimension",
4
+ "$value": {
5
+ "value": 28,
6
+ "unit": "px"
7
+ }
8
+ },
9
+ "control-pad-x": {
10
+ "$type": "dimension",
11
+ "$value": {
12
+ "value": 10,
13
+ "unit": "px"
14
+ }
15
+ },
16
+ "control-gap": {
17
+ "$type": "dimension",
18
+ "$value": {
19
+ "value": 8,
20
+ "unit": "px"
21
+ }
22
+ },
23
+ "control-fs": {
24
+ "$type": "dimension",
25
+ "$value": "{fs.sm}"
26
+ },
27
+ "row-h": {
28
+ "$type": "dimension",
29
+ "$value": {
30
+ "value": 36,
31
+ "unit": "px"
32
+ }
33
+ }
34
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "control-h": {
3
+ "$type": "dimension",
4
+ "$value": {
5
+ "value": 48,
6
+ "unit": "px"
7
+ }
8
+ },
9
+ "control-pad-x": {
10
+ "$type": "dimension",
11
+ "$value": {
12
+ "value": 20,
13
+ "unit": "px"
14
+ }
15
+ },
16
+ "control-gap": {
17
+ "$type": "dimension",
18
+ "$value": {
19
+ "value": 16,
20
+ "unit": "px"
21
+ }
22
+ },
23
+ "control-fs": {
24
+ "$type": "dimension",
25
+ "$value": "{fs.lg}"
26
+ },
27
+ "row-h": {
28
+ "$type": "dimension",
29
+ "$value": {
30
+ "value": 64,
31
+ "unit": "px"
32
+ }
33
+ }
34
+ }