@createnew/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/README.md +64 -0
- package/dist/fonts/RebondGrotesque-Bold.woff2 +0 -0
- package/dist/fonts/RebondGrotesque-BoldItalic.woff2 +0 -0
- package/dist/fonts/RebondGrotesque-Extrabold.woff2 +0 -0
- package/dist/fonts/RebondGrotesque-ExtraboldItalic.woff2 +0 -0
- package/dist/fonts/RebondGrotesque-Extralight.woff2 +0 -0
- package/dist/fonts/RebondGrotesque-ExtralightItalic.woff2 +0 -0
- package/dist/fonts/RebondGrotesque-Hairline.woff2 +0 -0
- package/dist/fonts/RebondGrotesque-HairlineItalic.woff2 +0 -0
- package/dist/fonts/RebondGrotesque-Light.woff2 +0 -0
- package/dist/fonts/RebondGrotesque-LightItalic.woff2 +0 -0
- package/dist/fonts/RebondGrotesque-Medium.woff2 +0 -0
- package/dist/fonts/RebondGrotesque-MediumItalic.woff2 +0 -0
- package/dist/fonts/RebondGrotesque-Regular.woff2 +0 -0
- package/dist/fonts/RebondGrotesque-RegularItalic.woff2 +0 -0
- package/dist/fonts/RebondGrotesque-Semibold.woff2 +0 -0
- package/dist/fonts/RebondGrotesque-SemiboldItalic.woff2 +0 -0
- package/dist/fonts/RebondGrotesque-Thin.woff2 +0 -0
- package/dist/fonts/RebondGrotesque-ThinItalic.woff2 +0 -0
- package/dist/tokens.css +306 -0
- package/dist/tokens.d.ts +611 -0
- package/dist/tokens.d.ts.map +1 -0
- package/dist/tokens.js +333 -0
- package/dist/tokens.js.map +1 -0
- package/package.json +32 -0
package/dist/tokens.js
ADDED
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CreateNew Design System Tokens
|
|
3
|
+
*
|
|
4
|
+
* This is the single source of truth for all design tokens.
|
|
5
|
+
* Tokens will be exported as:
|
|
6
|
+
* - tokens.css (CSS custom properties)
|
|
7
|
+
* - tokens.ts (TypeScript objects)
|
|
8
|
+
*/
|
|
9
|
+
// Core Tokens - Raw values
|
|
10
|
+
// Extracted from Figma design file
|
|
11
|
+
export const coreTokens = {
|
|
12
|
+
color: {
|
|
13
|
+
// Neutral grays - extracted from Figma
|
|
14
|
+
gray: {
|
|
15
|
+
// Warm grey scale
|
|
16
|
+
warm: {
|
|
17
|
+
0: "#ffffff",
|
|
18
|
+
25: "#fbfaf9",
|
|
19
|
+
50: "#f7f4f1",
|
|
20
|
+
100: "#f3efec",
|
|
21
|
+
},
|
|
22
|
+
// Cool grey scale (primary)
|
|
23
|
+
0: "#ffffff",
|
|
24
|
+
25: "#f1f4f7",
|
|
25
|
+
50: "#eceff3",
|
|
26
|
+
100: "#dfe1e7",
|
|
27
|
+
200: "#666d80",
|
|
28
|
+
300: "#36384a",
|
|
29
|
+
301: "#272735",
|
|
30
|
+
302: "#0d0d12",
|
|
31
|
+
},
|
|
32
|
+
// Brand colors from Figma
|
|
33
|
+
green: {
|
|
34
|
+
0: "#fcfef3",
|
|
35
|
+
25: "#f4fadc",
|
|
36
|
+
50: "#e9f3b8",
|
|
37
|
+
100: "#91ba00",
|
|
38
|
+
200: "#607a05",
|
|
39
|
+
300: "#3b4309",
|
|
40
|
+
301: "#282d06",
|
|
41
|
+
},
|
|
42
|
+
violet: {
|
|
43
|
+
0: "#fcfafe",
|
|
44
|
+
25: "#f5edfc",
|
|
45
|
+
50: "#ead6f7",
|
|
46
|
+
100: "#c083e2",
|
|
47
|
+
200: "#985dba",
|
|
48
|
+
300: "#5a3667",
|
|
49
|
+
301: "#382140",
|
|
50
|
+
},
|
|
51
|
+
purple: {
|
|
52
|
+
0: "#faf9fe",
|
|
53
|
+
25: "#efe7fc",
|
|
54
|
+
50: "#ddcdf8",
|
|
55
|
+
100: "#8a5ae0",
|
|
56
|
+
200: "#643fa4",
|
|
57
|
+
300: "#3b2763",
|
|
58
|
+
301: "#140033",
|
|
59
|
+
},
|
|
60
|
+
gold: {
|
|
61
|
+
0: "#fffef5",
|
|
62
|
+
25: "#fff9dd",
|
|
63
|
+
50: "#fff0b8",
|
|
64
|
+
100: "#ffc400",
|
|
65
|
+
200: "#947100",
|
|
66
|
+
300: "#664f00",
|
|
67
|
+
301: "#2e1700",
|
|
68
|
+
},
|
|
69
|
+
orange: {
|
|
70
|
+
0: "#fffaf7",
|
|
71
|
+
25: "#ffece0",
|
|
72
|
+
50: "#ffd3b8",
|
|
73
|
+
100: "#ff6200",
|
|
74
|
+
200: "#cb4e00",
|
|
75
|
+
300: "#662700",
|
|
76
|
+
301: "#331400",
|
|
77
|
+
},
|
|
78
|
+
blue: {
|
|
79
|
+
0: "#f6fbff",
|
|
80
|
+
25: "#e4f2ff",
|
|
81
|
+
50: "#c1e0ff",
|
|
82
|
+
100: "#0085ff",
|
|
83
|
+
200: "#0075e0",
|
|
84
|
+
300: "#003566",
|
|
85
|
+
301: "#001d38",
|
|
86
|
+
},
|
|
87
|
+
teal: {
|
|
88
|
+
0: "#f4fdf9",
|
|
89
|
+
25: "#d8f7eb",
|
|
90
|
+
50: "#b1ecd7",
|
|
91
|
+
100: "#00cc74",
|
|
92
|
+
200: "#008852",
|
|
93
|
+
300: "#004d2d",
|
|
94
|
+
301: "#002918",
|
|
95
|
+
},
|
|
96
|
+
cyan: {
|
|
97
|
+
0: "#f5feff",
|
|
98
|
+
25: "#e1f9fd",
|
|
99
|
+
50: "#bff0fa",
|
|
100
|
+
100: "#33d7f2",
|
|
101
|
+
200: "#128194",
|
|
102
|
+
300: "#15545e",
|
|
103
|
+
301: "#0a292e",
|
|
104
|
+
},
|
|
105
|
+
// Black/white
|
|
106
|
+
black: "#000000",
|
|
107
|
+
white: "#ffffff",
|
|
108
|
+
},
|
|
109
|
+
spacing: {
|
|
110
|
+
xs: "4px",
|
|
111
|
+
s: "8px",
|
|
112
|
+
m: "12px",
|
|
113
|
+
l: "16px",
|
|
114
|
+
xl: "24px",
|
|
115
|
+
"2xl": "32px",
|
|
116
|
+
"3xl": "48px",
|
|
117
|
+
"4xl": "56px",
|
|
118
|
+
"5xl": "80px",
|
|
119
|
+
"6xl": "104px",
|
|
120
|
+
},
|
|
121
|
+
radius: {
|
|
122
|
+
xs: "4px",
|
|
123
|
+
s: "6px",
|
|
124
|
+
m: "8px",
|
|
125
|
+
l: "12px",
|
|
126
|
+
xl: "16px",
|
|
127
|
+
full: "9999px",
|
|
128
|
+
},
|
|
129
|
+
shadow: {
|
|
130
|
+
sm: "0 1px 2px 0 rgb(0 0 0 / 0.05)",
|
|
131
|
+
m: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",
|
|
132
|
+
l: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",
|
|
133
|
+
xl: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
|
|
134
|
+
},
|
|
135
|
+
fontFamily: {
|
|
136
|
+
// Font families used on CreateNew.co
|
|
137
|
+
// Rebond Grotesque is used primarily for headings
|
|
138
|
+
heading: "'Rebond Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
|
|
139
|
+
// Geist is used for body text
|
|
140
|
+
sans: "'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
|
|
141
|
+
mono: "ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace",
|
|
142
|
+
},
|
|
143
|
+
fontSize: {
|
|
144
|
+
xs: "12px",
|
|
145
|
+
sm: "13px",
|
|
146
|
+
base: "14px",
|
|
147
|
+
md: "15px",
|
|
148
|
+
lg: "16px",
|
|
149
|
+
xl: "18px",
|
|
150
|
+
"2xl": "20px",
|
|
151
|
+
"3xl": "24px",
|
|
152
|
+
"4xl": "30px",
|
|
153
|
+
"5xl": "32px",
|
|
154
|
+
"6xl": "36px",
|
|
155
|
+
"7xl": "40px",
|
|
156
|
+
"8xl": "48px",
|
|
157
|
+
"9xl": "56px",
|
|
158
|
+
"10xl": "64px",
|
|
159
|
+
},
|
|
160
|
+
lineHeight: {
|
|
161
|
+
none: "1",
|
|
162
|
+
tight: "1.2",
|
|
163
|
+
snug: "1.3",
|
|
164
|
+
normal: "1.5",
|
|
165
|
+
relaxed: "1.6",
|
|
166
|
+
loose: "1.75",
|
|
167
|
+
compact: "1.143", // 16px / 14px
|
|
168
|
+
"tight-fixed": "1.067", // 16px / 15px
|
|
169
|
+
medium: "1.538", // 20px / 13px
|
|
170
|
+
},
|
|
171
|
+
fontWeight: {
|
|
172
|
+
normal: "400",
|
|
173
|
+
medium: "500",
|
|
174
|
+
semibold: "600",
|
|
175
|
+
bold: "700",
|
|
176
|
+
},
|
|
177
|
+
breakpoint: {
|
|
178
|
+
mobile: "810px",
|
|
179
|
+
tablet: "1199px",
|
|
180
|
+
desktop: "1200px",
|
|
181
|
+
containerMax: "1440px",
|
|
182
|
+
smallMobile: "390px",
|
|
183
|
+
},
|
|
184
|
+
};
|
|
185
|
+
// Semantic Tokens - Component-agnostic semantic values
|
|
186
|
+
// Based on Figma design system
|
|
187
|
+
export const semanticTokens = {
|
|
188
|
+
color: {
|
|
189
|
+
surface: {
|
|
190
|
+
default: coreTokens.color.white, // White background
|
|
191
|
+
raised: coreTokens.color.gray[50], // #eceff3 - Raised surface for hover states
|
|
192
|
+
sunken: coreTokens.color.gray[25], // #f1f4f7
|
|
193
|
+
},
|
|
194
|
+
text: {
|
|
195
|
+
default: coreTokens.color.gray[302], // #0d0d12 - Dark text
|
|
196
|
+
muted: coreTokens.color.gray[200], // #666d80
|
|
197
|
+
inverted: coreTokens.color.white,
|
|
198
|
+
},
|
|
199
|
+
brand: {
|
|
200
|
+
// Primary brand color from Figma
|
|
201
|
+
primary: coreTokens.color.green[100], // #91ba00 - Primary green
|
|
202
|
+
accent: coreTokens.color.green[200], // #607a05
|
|
203
|
+
// Accent colors for graphics
|
|
204
|
+
violet: coreTokens.color.violet[100], // #c083e2
|
|
205
|
+
purple: coreTokens.color.purple[100], // #8a5ae0
|
|
206
|
+
gold: coreTokens.color.gold[100], // #ffc400
|
|
207
|
+
orange: coreTokens.color.orange[100], // #ff6200
|
|
208
|
+
blue: coreTokens.color.blue[100], // #0085ff
|
|
209
|
+
teal: coreTokens.color.teal[100], // #00cc74
|
|
210
|
+
cyan: coreTokens.color.cyan[100], // #33d7f2
|
|
211
|
+
},
|
|
212
|
+
border: {
|
|
213
|
+
subtle: coreTokens.color.gray[100], // #dfe1e7
|
|
214
|
+
strong: coreTokens.color.gray[200], // #666d80
|
|
215
|
+
},
|
|
216
|
+
overlay: "rgba(0, 0, 0, 0.5)",
|
|
217
|
+
// Status colors
|
|
218
|
+
status: {
|
|
219
|
+
error: "#ef4444", // Red for error states
|
|
220
|
+
},
|
|
221
|
+
// Button colors from Figma
|
|
222
|
+
button: {
|
|
223
|
+
primary: {
|
|
224
|
+
background: coreTokens.color.gray[302], // #0d0d12 - Dark/black primary buttons
|
|
225
|
+
text: coreTokens.color.white,
|
|
226
|
+
hover: {
|
|
227
|
+
background: coreTokens.color.gray[301], // #272735
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
secondary: {
|
|
231
|
+
background: coreTokens.color.gray[25], // #f1f4f7 - Light grey secondary buttons
|
|
232
|
+
text: coreTokens.color.gray[302], // #0d0d12
|
|
233
|
+
hover: {
|
|
234
|
+
background: coreTokens.color.gray[50], // #eceff3
|
|
235
|
+
},
|
|
236
|
+
},
|
|
237
|
+
outline: {
|
|
238
|
+
background: "transparent",
|
|
239
|
+
text: coreTokens.color.gray[302], // #0d0d12
|
|
240
|
+
border: coreTokens.color.gray[100], // #dfe1e7
|
|
241
|
+
hover: {
|
|
242
|
+
background: coreTokens.color.gray[25], // #f1f4f7
|
|
243
|
+
border: coreTokens.color.gray[200], // #666d80
|
|
244
|
+
},
|
|
245
|
+
},
|
|
246
|
+
text: {
|
|
247
|
+
background: "transparent",
|
|
248
|
+
text: coreTokens.color.gray[302], // #0d0d12
|
|
249
|
+
hover: {
|
|
250
|
+
background: coreTokens.color.gray[25], // #f1f4f7
|
|
251
|
+
},
|
|
252
|
+
},
|
|
253
|
+
ghost: {
|
|
254
|
+
background: "transparent",
|
|
255
|
+
text: coreTokens.color.gray[302], // #0d0d12
|
|
256
|
+
hover: {
|
|
257
|
+
background: coreTokens.color.gray[25], // #f1f4f7
|
|
258
|
+
},
|
|
259
|
+
},
|
|
260
|
+
},
|
|
261
|
+
},
|
|
262
|
+
};
|
|
263
|
+
// Composite Text Styles
|
|
264
|
+
// Based on Framer text styles - Framer is leading
|
|
265
|
+
export const textStyles = {
|
|
266
|
+
display: {
|
|
267
|
+
fontSize: coreTokens.fontSize["10xl"], // 64px - Heading 1
|
|
268
|
+
lineHeight: coreTokens.lineHeight.none, // 1em / 100%
|
|
269
|
+
fontWeight: coreTokens.fontWeight.semibold, // 600
|
|
270
|
+
fontFamily: coreTokens.fontFamily.heading, // Rebond Grotesque
|
|
271
|
+
},
|
|
272
|
+
"heading-2": {
|
|
273
|
+
fontSize: coreTokens.fontSize["9xl"], // 56px - Heading 2
|
|
274
|
+
lineHeight: coreTokens.lineHeight.none, // 100%
|
|
275
|
+
fontWeight: coreTokens.fontWeight.semibold, // 600
|
|
276
|
+
fontFamily: coreTokens.fontFamily.heading, // Rebond Grotesque
|
|
277
|
+
},
|
|
278
|
+
"heading-3": {
|
|
279
|
+
fontSize: coreTokens.fontSize["5xl"], // 32px - Heading 3
|
|
280
|
+
lineHeight: coreTokens.lineHeight.tight, // 120%
|
|
281
|
+
fontWeight: coreTokens.fontWeight.medium, // 500
|
|
282
|
+
fontFamily: coreTokens.fontFamily.sans, // Geist
|
|
283
|
+
},
|
|
284
|
+
title: {
|
|
285
|
+
fontSize: coreTokens.fontSize["2xl"], // 20px - Heading 4
|
|
286
|
+
lineHeight: coreTokens.lineHeight.snug, // 130%
|
|
287
|
+
fontWeight: coreTokens.fontWeight.medium, // 500
|
|
288
|
+
fontFamily: coreTokens.fontFamily.sans, // Geist
|
|
289
|
+
},
|
|
290
|
+
body: {
|
|
291
|
+
fontSize: coreTokens.fontSize.lg, // 16px - Body
|
|
292
|
+
lineHeight: coreTokens.lineHeight.relaxed, // 1.6em
|
|
293
|
+
fontWeight: coreTokens.fontWeight.normal, // 400
|
|
294
|
+
fontFamily: coreTokens.fontFamily.sans, // Geist
|
|
295
|
+
},
|
|
296
|
+
"body-strong": {
|
|
297
|
+
fontSize: coreTokens.fontSize.lg, // 16px
|
|
298
|
+
lineHeight: coreTokens.lineHeight.relaxed, // 1.6em
|
|
299
|
+
fontWeight: coreTokens.fontWeight.medium, // 500
|
|
300
|
+
fontFamily: coreTokens.fontFamily.sans, // Geist
|
|
301
|
+
},
|
|
302
|
+
"nav-label": {
|
|
303
|
+
fontSize: coreTokens.fontSize.md, // 15px - Nav Label
|
|
304
|
+
lineHeight: coreTokens.lineHeight["tight-fixed"], // 1.067 (16px / 15px)
|
|
305
|
+
fontWeight: coreTokens.fontWeight.medium, // 500
|
|
306
|
+
fontFamily: coreTokens.fontFamily.sans, // Geist
|
|
307
|
+
},
|
|
308
|
+
label: {
|
|
309
|
+
fontSize: coreTokens.fontSize.base, // 14px - Label Special
|
|
310
|
+
lineHeight: coreTokens.lineHeight.compact, // 1.143 (16px / 14px)
|
|
311
|
+
fontWeight: coreTokens.fontWeight.medium, // 500
|
|
312
|
+
fontFamily: coreTokens.fontFamily.sans, // Geist
|
|
313
|
+
},
|
|
314
|
+
caption: {
|
|
315
|
+
fontSize: coreTokens.fontSize.base, // 14px - Label Special Small
|
|
316
|
+
lineHeight: coreTokens.lineHeight.compact, // 1.143 (16px / 14px)
|
|
317
|
+
fontWeight: coreTokens.fontWeight.normal, // 400
|
|
318
|
+
fontFamily: coreTokens.fontFamily.sans, // Geist
|
|
319
|
+
},
|
|
320
|
+
"link-small": {
|
|
321
|
+
fontSize: coreTokens.fontSize.sm, // 13px - Link Small
|
|
322
|
+
lineHeight: coreTokens.lineHeight.medium, // 1.538 (20px / 13px)
|
|
323
|
+
fontWeight: coreTokens.fontWeight.normal, // 400
|
|
324
|
+
fontFamily: coreTokens.fontFamily.sans, // Geist
|
|
325
|
+
},
|
|
326
|
+
};
|
|
327
|
+
// Export all tokens
|
|
328
|
+
export const tokens = {
|
|
329
|
+
core: coreTokens,
|
|
330
|
+
semantic: semanticTokens,
|
|
331
|
+
text: textStyles,
|
|
332
|
+
};
|
|
333
|
+
//# sourceMappingURL=tokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,2BAA2B;AAC3B,mCAAmC;AACnC,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,KAAK,EAAE;QACL,uCAAuC;QACvC,IAAI,EAAE;YACJ,kBAAkB;YAClB,IAAI,EAAE;gBACJ,CAAC,EAAE,SAAS;gBACZ,EAAE,EAAE,SAAS;gBACb,EAAE,EAAE,SAAS;gBACb,GAAG,EAAE,SAAS;aACf;YACD,4BAA4B;YAC5B,CAAC,EAAE,SAAS;YACZ,EAAE,EAAE,SAAS;YACb,EAAE,EAAE,SAAS;YACb,GAAG,EAAE,SAAS;YACd,GAAG,EAAE,SAAS;YACd,GAAG,EAAE,SAAS;YACd,GAAG,EAAE,SAAS;YACd,GAAG,EAAE,SAAS;SACf;QACD,0BAA0B;QAC1B,KAAK,EAAE;YACL,CAAC,EAAE,SAAS;YACZ,EAAE,EAAE,SAAS;YACb,EAAE,EAAE,SAAS;YACb,GAAG,EAAE,SAAS;YACd,GAAG,EAAE,SAAS;YACd,GAAG,EAAE,SAAS;YACd,GAAG,EAAE,SAAS;SACf;QACD,MAAM,EAAE;YACN,CAAC,EAAE,SAAS;YACZ,EAAE,EAAE,SAAS;YACb,EAAE,EAAE,SAAS;YACb,GAAG,EAAE,SAAS;YACd,GAAG,EAAE,SAAS;YACd,GAAG,EAAE,SAAS;YAC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,IAAI,EAAE,QAAQ;KACjD;CACO,CAAC;AAEX,oBAAoB;AACpB,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,cAAc;IACxB,IAAI,EAAE,UAAU;CACR,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@createnew/tokens",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "CreateNew Design System - Design Tokens",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/tokens.js",
|
|
7
|
+
"types": "./dist/tokens.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/tokens.d.ts",
|
|
11
|
+
"import": "./dist/tokens.js"
|
|
12
|
+
},
|
|
13
|
+
"./tokens.css": "./dist/tokens.css"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"engines": {
|
|
19
|
+
"node": ">=20.18.0"
|
|
20
|
+
},
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "tsc && npm run build:sd && node build.cjs",
|
|
23
|
+
"build:sd": "style-dictionary build --config ./config.json",
|
|
24
|
+
"dev": "tsc --watch",
|
|
25
|
+
"clean": "rm -rf dist",
|
|
26
|
+
"prepack": "npm run build"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"style-dictionary": "^4.0.0",
|
|
30
|
+
"typescript": "^5.3.3"
|
|
31
|
+
}
|
|
32
|
+
}
|