@simple-base/tokens 0.1.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.
- package/LICENSE +21 -0
- package/README.md +32 -0
- package/dist/tailwind.css +121 -0
- package/dist/tokens.css +2365 -0
- package/dist/tokens.d.ts +279 -0
- package/dist/tokens.js +2207 -0
- package/package.json +38 -0
package/dist/tokens.d.ts
ADDED
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
/** ------------------------------------------
|
|
2
|
+
* Autogenerated by ⛋ Terrazzo. DO NOT EDIT!
|
|
3
|
+
* ------------------------------------------- */
|
|
4
|
+
import type {
|
|
5
|
+
TokenNormalizedSet,
|
|
6
|
+
DimensionTokenNormalized,
|
|
7
|
+
ColorTokenNormalized,
|
|
8
|
+
DurationTokenNormalized,
|
|
9
|
+
CubicBezierTokenNormalized,
|
|
10
|
+
FontFamilyTokenNormalized,
|
|
11
|
+
FontWeightTokenNormalized,
|
|
12
|
+
NumberTokenNormalized,
|
|
13
|
+
ShadowTokenNormalized,
|
|
14
|
+
} from "@terrazzo/token-types";
|
|
15
|
+
|
|
16
|
+
export const PERMUTATIONS: Record<string, TokenNormalizedSet>;
|
|
17
|
+
|
|
18
|
+
type InputType = {
|
|
19
|
+
"theme": "simple-base-dark" | "simple-base-light" | "catppuccin-latte" | "catppuccin-frappe" | "catppuccin-macchiato" | "catppuccin-mocha" | "dracula" | "tokyo-night" | "nord";
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export type Dimension = Pick<DimensionTokenNormalized, "$type" | "$value" | "$description" | "$extensions" | "$deprecated">;
|
|
23
|
+
export type Color = Pick<ColorTokenNormalized, "$type" | "$value" | "$description" | "$extensions" | "$deprecated">;
|
|
24
|
+
export type Duration = Pick<DurationTokenNormalized, "$type" | "$value" | "$description" | "$extensions" | "$deprecated">;
|
|
25
|
+
export type CubicBezier = Pick<CubicBezierTokenNormalized, "$type" | "$value" | "$description" | "$extensions" | "$deprecated">;
|
|
26
|
+
export type FontFamily = Pick<FontFamilyTokenNormalized, "$type" | "$value" | "$description" | "$extensions" | "$deprecated">;
|
|
27
|
+
export type FontWeight = Pick<FontWeightTokenNormalized, "$type" | "$value" | "$description" | "$extensions" | "$deprecated">;
|
|
28
|
+
export type Number = Pick<NumberTokenNormalized, "$type" | "$value" | "$description" | "$extensions" | "$deprecated">;
|
|
29
|
+
export type Shadow = Pick<ShadowTokenNormalized, "$type" | "$value" | "$description" | "$extensions" | "$deprecated">;
|
|
30
|
+
|
|
31
|
+
export interface Tokens {
|
|
32
|
+
"primitive.border-width.hairline": Dimension;
|
|
33
|
+
"primitive.border-width.none": Dimension;
|
|
34
|
+
"primitive.border-width.strong": Dimension;
|
|
35
|
+
"primitive.breakpoint.2xl": Dimension;
|
|
36
|
+
"primitive.breakpoint.lg": Dimension;
|
|
37
|
+
"primitive.breakpoint.md": Dimension;
|
|
38
|
+
"primitive.breakpoint.sm": Dimension;
|
|
39
|
+
"primitive.breakpoint.xl": Dimension;
|
|
40
|
+
"primitive.color.accent": Color;
|
|
41
|
+
"primitive.color.accent-readable": Color;
|
|
42
|
+
"primitive.color.accent-soft": Color;
|
|
43
|
+
"primitive.color.bg-subtle": Color;
|
|
44
|
+
"primitive.color.border": Color;
|
|
45
|
+
"primitive.color.border-strong": Color;
|
|
46
|
+
"primitive.color.border-subtle": Color;
|
|
47
|
+
"primitive.color.canvas": Color;
|
|
48
|
+
"primitive.color.danger": Color;
|
|
49
|
+
"primitive.color.danger-on": Color;
|
|
50
|
+
"primitive.color.danger-soft": Color;
|
|
51
|
+
"primitive.color.danger-surface": Color;
|
|
52
|
+
"primitive.color.danger-text": Color;
|
|
53
|
+
"primitive.color.fg": Color;
|
|
54
|
+
"primitive.color.fg-subtle": Color;
|
|
55
|
+
"primitive.color.info": Color;
|
|
56
|
+
"primitive.color.info-on": Color;
|
|
57
|
+
"primitive.color.info-soft": Color;
|
|
58
|
+
"primitive.color.info-surface": Color;
|
|
59
|
+
"primitive.color.info-text": Color;
|
|
60
|
+
"primitive.color.inverse": Color;
|
|
61
|
+
"primitive.color.muted": Color;
|
|
62
|
+
"primitive.color.overlay": Color;
|
|
63
|
+
"primitive.color.raised": Color;
|
|
64
|
+
"primitive.color.scrim": Color;
|
|
65
|
+
"primitive.color.secondary": Color;
|
|
66
|
+
"primitive.color.success": Color;
|
|
67
|
+
"primitive.color.success-on": Color;
|
|
68
|
+
"primitive.color.success-soft": Color;
|
|
69
|
+
"primitive.color.success-surface": Color;
|
|
70
|
+
"primitive.color.success-text": Color;
|
|
71
|
+
"primitive.color.surface": Color;
|
|
72
|
+
"primitive.color.warning": Color;
|
|
73
|
+
"primitive.color.warning-on": Color;
|
|
74
|
+
"primitive.color.warning-soft": Color;
|
|
75
|
+
"primitive.color.warning-surface": Color;
|
|
76
|
+
"primitive.color.warning-text": Color;
|
|
77
|
+
"primitive.duration.fast": Duration;
|
|
78
|
+
"primitive.duration.normal": Duration;
|
|
79
|
+
"primitive.duration.slow": Duration;
|
|
80
|
+
"primitive.duration.spinner": Duration;
|
|
81
|
+
"primitive.easing.out": CubicBezier;
|
|
82
|
+
"primitive.easing.standard": CubicBezier;
|
|
83
|
+
"primitive.font-family.display": FontFamily;
|
|
84
|
+
"primitive.font-family.mono": FontFamily;
|
|
85
|
+
"primitive.font-family.sans": FontFamily;
|
|
86
|
+
"primitive.font-size.2xl": Dimension;
|
|
87
|
+
"primitive.font-size.3xl": Dimension;
|
|
88
|
+
"primitive.font-size.4xl": Dimension;
|
|
89
|
+
"primitive.font-size.5xl": Dimension;
|
|
90
|
+
"primitive.font-size.display": Dimension;
|
|
91
|
+
"primitive.font-size.lg": Dimension;
|
|
92
|
+
"primitive.font-size.md": Dimension;
|
|
93
|
+
"primitive.font-size.sm": Dimension;
|
|
94
|
+
"primitive.font-size.xl": Dimension;
|
|
95
|
+
"primitive.font-size.xs": Dimension;
|
|
96
|
+
"primitive.font-weight.bold": FontWeight;
|
|
97
|
+
"primitive.font-weight.medium": FontWeight;
|
|
98
|
+
"primitive.font-weight.regular": FontWeight;
|
|
99
|
+
"primitive.font-weight.semibold": FontWeight;
|
|
100
|
+
"primitive.letter-spacing.normal": Number;
|
|
101
|
+
"primitive.letter-spacing.snug": Number;
|
|
102
|
+
"primitive.letter-spacing.tight": Number;
|
|
103
|
+
"primitive.letter-spacing.wide": Number;
|
|
104
|
+
"primitive.letter-spacing.wider": Number;
|
|
105
|
+
"primitive.line-height.none": Number;
|
|
106
|
+
"primitive.line-height.normal": Number;
|
|
107
|
+
"primitive.line-height.relaxed": Number;
|
|
108
|
+
"primitive.line-height.snug": Number;
|
|
109
|
+
"primitive.line-height.tight": Number;
|
|
110
|
+
"primitive.opacity.disabled": Number;
|
|
111
|
+
"primitive.opacity.invisible": Number;
|
|
112
|
+
"primitive.opacity.opaque": Number;
|
|
113
|
+
"primitive.opacity.subtle": Number;
|
|
114
|
+
"primitive.radius.full": Dimension;
|
|
115
|
+
"primitive.radius.lg": Dimension;
|
|
116
|
+
"primitive.radius.md": Dimension;
|
|
117
|
+
"primitive.radius.none": Dimension;
|
|
118
|
+
"primitive.radius.sm": Dimension;
|
|
119
|
+
"primitive.radius.xl": Dimension;
|
|
120
|
+
"primitive.shadow.card": Shadow;
|
|
121
|
+
"primitive.shadow.overlay": Shadow;
|
|
122
|
+
"primitive.size.container.content": Dimension;
|
|
123
|
+
"primitive.size.control.lg": Dimension;
|
|
124
|
+
"primitive.size.control.md": Dimension;
|
|
125
|
+
"primitive.size.control.sm": Dimension;
|
|
126
|
+
"primitive.size.control.xl": Dimension;
|
|
127
|
+
"primitive.size.control.xs": Dimension;
|
|
128
|
+
"primitive.size.icon.lg": Dimension;
|
|
129
|
+
"primitive.size.icon.md": Dimension;
|
|
130
|
+
"primitive.size.icon.sm": Dimension;
|
|
131
|
+
"primitive.size.target.minimum": Dimension;
|
|
132
|
+
"primitive.space.0": Dimension;
|
|
133
|
+
"primitive.space.1": Dimension;
|
|
134
|
+
"primitive.space.2": Dimension;
|
|
135
|
+
"primitive.space.3": Dimension;
|
|
136
|
+
"primitive.space.4": Dimension;
|
|
137
|
+
"primitive.space.5": Dimension;
|
|
138
|
+
"primitive.space.6": Dimension;
|
|
139
|
+
"primitive.space.8": Dimension;
|
|
140
|
+
"primitive.space.10": Dimension;
|
|
141
|
+
"primitive.space.12": Dimension;
|
|
142
|
+
"primitive.space.16": Dimension;
|
|
143
|
+
"primitive.space.20": Dimension;
|
|
144
|
+
"primitive.z-index.base": Number;
|
|
145
|
+
"primitive.z-index.dropdown": Number;
|
|
146
|
+
"primitive.z-index.modal": Number;
|
|
147
|
+
"primitive.z-index.overlay": Number;
|
|
148
|
+
"primitive.z-index.sticky": Number;
|
|
149
|
+
"primitive.z-index.toast": Number;
|
|
150
|
+
"semantic.border-width.hairline": Dimension;
|
|
151
|
+
"semantic.border-width.none": Dimension;
|
|
152
|
+
"semantic.border-width.strong": Dimension;
|
|
153
|
+
"semantic.breakpoint.2xl": Dimension;
|
|
154
|
+
"semantic.breakpoint.lg": Dimension;
|
|
155
|
+
"semantic.breakpoint.md": Dimension;
|
|
156
|
+
"semantic.breakpoint.sm": Dimension;
|
|
157
|
+
"semantic.breakpoint.xl": Dimension;
|
|
158
|
+
"semantic.color.accent.on-surface": Color;
|
|
159
|
+
"semantic.color.accent.soft": Color;
|
|
160
|
+
"semantic.color.accent.surface": Color;
|
|
161
|
+
"semantic.color.accent.text": Color;
|
|
162
|
+
"semantic.color.background.canvas": Color;
|
|
163
|
+
"semantic.color.background.overlay": Color;
|
|
164
|
+
"semantic.color.background.raised": Color;
|
|
165
|
+
"semantic.color.background.subtle": Color;
|
|
166
|
+
"semantic.color.background.surface": Color;
|
|
167
|
+
"semantic.color.border.default": Color;
|
|
168
|
+
"semantic.color.border.strong": Color;
|
|
169
|
+
"semantic.color.border.subtle": Color;
|
|
170
|
+
"semantic.color.focus.danger-ring": Color;
|
|
171
|
+
"semantic.color.focus.ring": Color;
|
|
172
|
+
"semantic.color.foreground.inverse": Color;
|
|
173
|
+
"semantic.color.foreground.muted": Color;
|
|
174
|
+
"semantic.color.foreground.primary": Color;
|
|
175
|
+
"semantic.color.foreground.secondary": Color;
|
|
176
|
+
"semantic.color.foreground.subtle": Color;
|
|
177
|
+
"semantic.color.overlay.scrim": Color;
|
|
178
|
+
"semantic.color.selection.background": Color;
|
|
179
|
+
"semantic.color.selection.foreground": Color;
|
|
180
|
+
"semantic.color.status.danger.base": Color;
|
|
181
|
+
"semantic.color.status.danger.on-surface": Color;
|
|
182
|
+
"semantic.color.status.danger.soft": Color;
|
|
183
|
+
"semantic.color.status.danger.surface": Color;
|
|
184
|
+
"semantic.color.status.danger.text": Color;
|
|
185
|
+
"semantic.color.status.info.base": Color;
|
|
186
|
+
"semantic.color.status.info.on-surface": Color;
|
|
187
|
+
"semantic.color.status.info.soft": Color;
|
|
188
|
+
"semantic.color.status.info.surface": Color;
|
|
189
|
+
"semantic.color.status.info.text": Color;
|
|
190
|
+
"semantic.color.status.success.base": Color;
|
|
191
|
+
"semantic.color.status.success.on-surface": Color;
|
|
192
|
+
"semantic.color.status.success.soft": Color;
|
|
193
|
+
"semantic.color.status.success.surface": Color;
|
|
194
|
+
"semantic.color.status.success.text": Color;
|
|
195
|
+
"semantic.color.status.warning.base": Color;
|
|
196
|
+
"semantic.color.status.warning.on-surface": Color;
|
|
197
|
+
"semantic.color.status.warning.soft": Color;
|
|
198
|
+
"semantic.color.status.warning.surface": Color;
|
|
199
|
+
"semantic.color.status.warning.text": Color;
|
|
200
|
+
"semantic.layer.base": Number;
|
|
201
|
+
"semantic.layer.dropdown": Number;
|
|
202
|
+
"semantic.layer.modal": Number;
|
|
203
|
+
"semantic.layer.overlay": Number;
|
|
204
|
+
"semantic.layer.sticky": Number;
|
|
205
|
+
"semantic.layer.toast": Number;
|
|
206
|
+
"semantic.motion.duration.fast": Duration;
|
|
207
|
+
"semantic.motion.duration.normal": Duration;
|
|
208
|
+
"semantic.motion.duration.slow": Duration;
|
|
209
|
+
"semantic.motion.duration.spinner": Duration;
|
|
210
|
+
"semantic.motion.easing.out": CubicBezier;
|
|
211
|
+
"semantic.motion.easing.standard": CubicBezier;
|
|
212
|
+
"semantic.opacity.disabled": Number;
|
|
213
|
+
"semantic.opacity.invisible": Number;
|
|
214
|
+
"semantic.opacity.opaque": Number;
|
|
215
|
+
"semantic.opacity.subtle": Number;
|
|
216
|
+
"semantic.radius.full": Dimension;
|
|
217
|
+
"semantic.radius.lg": Dimension;
|
|
218
|
+
"semantic.radius.md": Dimension;
|
|
219
|
+
"semantic.radius.none": Dimension;
|
|
220
|
+
"semantic.radius.sm": Dimension;
|
|
221
|
+
"semantic.radius.xl": Dimension;
|
|
222
|
+
"semantic.shadow.card": Shadow;
|
|
223
|
+
"semantic.shadow.overlay": Shadow;
|
|
224
|
+
"semantic.size.container.content": Dimension;
|
|
225
|
+
"semantic.size.control.lg": Dimension;
|
|
226
|
+
"semantic.size.control.md": Dimension;
|
|
227
|
+
"semantic.size.control.sm": Dimension;
|
|
228
|
+
"semantic.size.control.xl": Dimension;
|
|
229
|
+
"semantic.size.control.xs": Dimension;
|
|
230
|
+
"semantic.size.icon.lg": Dimension;
|
|
231
|
+
"semantic.size.icon.md": Dimension;
|
|
232
|
+
"semantic.size.icon.sm": Dimension;
|
|
233
|
+
"semantic.size.target.minimum": Dimension;
|
|
234
|
+
"semantic.space.0": Dimension;
|
|
235
|
+
"semantic.space.1": Dimension;
|
|
236
|
+
"semantic.space.2": Dimension;
|
|
237
|
+
"semantic.space.3": Dimension;
|
|
238
|
+
"semantic.space.4": Dimension;
|
|
239
|
+
"semantic.space.5": Dimension;
|
|
240
|
+
"semantic.space.6": Dimension;
|
|
241
|
+
"semantic.space.8": Dimension;
|
|
242
|
+
"semantic.space.10": Dimension;
|
|
243
|
+
"semantic.space.12": Dimension;
|
|
244
|
+
"semantic.space.16": Dimension;
|
|
245
|
+
"semantic.space.20": Dimension;
|
|
246
|
+
"semantic.typography.family.body": FontFamily;
|
|
247
|
+
"semantic.typography.family.code": FontFamily;
|
|
248
|
+
"semantic.typography.family.display": FontFamily;
|
|
249
|
+
"semantic.typography.letter-spacing.normal": Number;
|
|
250
|
+
"semantic.typography.letter-spacing.snug": Number;
|
|
251
|
+
"semantic.typography.letter-spacing.tight": Number;
|
|
252
|
+
"semantic.typography.letter-spacing.wide": Number;
|
|
253
|
+
"semantic.typography.letter-spacing.wider": Number;
|
|
254
|
+
"semantic.typography.line-height.none": Number;
|
|
255
|
+
"semantic.typography.line-height.normal": Number;
|
|
256
|
+
"semantic.typography.line-height.relaxed": Number;
|
|
257
|
+
"semantic.typography.line-height.snug": Number;
|
|
258
|
+
"semantic.typography.line-height.tight": Number;
|
|
259
|
+
"semantic.typography.size.2xl": Dimension;
|
|
260
|
+
"semantic.typography.size.3xl": Dimension;
|
|
261
|
+
"semantic.typography.size.4xl": Dimension;
|
|
262
|
+
"semantic.typography.size.5xl": Dimension;
|
|
263
|
+
"semantic.typography.size.display": Dimension;
|
|
264
|
+
"semantic.typography.size.lg": Dimension;
|
|
265
|
+
"semantic.typography.size.md": Dimension;
|
|
266
|
+
"semantic.typography.size.sm": Dimension;
|
|
267
|
+
"semantic.typography.size.xl": Dimension;
|
|
268
|
+
"semantic.typography.size.xs": Dimension;
|
|
269
|
+
"semantic.typography.weight.bold": FontWeight;
|
|
270
|
+
"semantic.typography.weight.medium": FontWeight;
|
|
271
|
+
"semantic.typography.weight.regular": FontWeight;
|
|
272
|
+
"semantic.typography.weight.semibold": FontWeight;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/** Produce a token set from a given input. */
|
|
276
|
+
export const resolver: {
|
|
277
|
+
apply(input: InputType): Tokens;
|
|
278
|
+
listPermutations(): InputType[];
|
|
279
|
+
};
|