@adam-milo/tokens 1.0.1
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 +158 -0
- package/dist/chunk-7VTNCMPG.mjs +62 -0
- package/dist/chunk-JMMDK5QW.mjs +57 -0
- package/dist/chunk-NFXHCTG6.mjs +94 -0
- package/dist/chunk-ZREVCOAD.mjs +69 -0
- package/dist/colors.d.mts +94 -0
- package/dist/colors.d.ts +94 -0
- package/dist/colors.js +120 -0
- package/dist/colors.mjs +10 -0
- package/dist/index.d.mts +248 -0
- package/dist/index.d.ts +248 -0
- package/dist/index.js +256 -0
- package/dist/index.mjs +36 -0
- package/dist/spacing.d.mts +37 -0
- package/dist/spacing.d.ts +37 -0
- package/dist/spacing.js +82 -0
- package/dist/spacing.mjs +8 -0
- package/dist/tokens.css +90 -0
- package/dist/typography.d.mts +127 -0
- package/dist/typography.d.ts +127 -0
- package/dist/typography.js +87 -0
- package/dist/typography.mjs +8 -0
- package/package.json +68 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
borderRadius: () => borderRadius,
|
|
24
|
+
colors: () => colors,
|
|
25
|
+
default: () => index_default,
|
|
26
|
+
fontFamily: () => fontFamily,
|
|
27
|
+
fontSize: () => fontSize,
|
|
28
|
+
gradients: () => gradients,
|
|
29
|
+
legacyColors: () => legacyColors,
|
|
30
|
+
spacing: () => spacing,
|
|
31
|
+
tokens: () => tokens
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(index_exports);
|
|
34
|
+
|
|
35
|
+
// src/colors.ts
|
|
36
|
+
var colors = {
|
|
37
|
+
// Main Colors
|
|
38
|
+
text: "#191A39",
|
|
39
|
+
action: "#272643",
|
|
40
|
+
clickable: "#2F9DB2",
|
|
41
|
+
popup: "#ED6726",
|
|
42
|
+
error: "#FF6868",
|
|
43
|
+
toggle: "#4B497C",
|
|
44
|
+
secondary: "#1D56EC",
|
|
45
|
+
card: "#FFFFFF",
|
|
46
|
+
// Main Greys
|
|
47
|
+
bg: "#FAFAFA",
|
|
48
|
+
bgSecondary: "#F3F3F5",
|
|
49
|
+
border: "#E5E5EA",
|
|
50
|
+
iconSecondary: "#C9C9CF",
|
|
51
|
+
systemText: "#8C8C9C"
|
|
52
|
+
};
|
|
53
|
+
var legacyColors = {
|
|
54
|
+
primary: {
|
|
55
|
+
50: "#eff6ff",
|
|
56
|
+
100: "#dbeafe",
|
|
57
|
+
200: "#bfdbfe",
|
|
58
|
+
300: "#93c5fd",
|
|
59
|
+
400: "#60a5fa",
|
|
60
|
+
500: "#3b82f6",
|
|
61
|
+
600: "#2563eb",
|
|
62
|
+
700: "#1d4ed8",
|
|
63
|
+
800: "#1e40af",
|
|
64
|
+
900: "#1e3a8a",
|
|
65
|
+
950: "#172554"
|
|
66
|
+
},
|
|
67
|
+
secondary: {
|
|
68
|
+
50: "#faf5ff",
|
|
69
|
+
100: "#f3e8ff",
|
|
70
|
+
200: "#e9d5ff",
|
|
71
|
+
300: "#d8b4fe",
|
|
72
|
+
400: "#c084fc",
|
|
73
|
+
500: "#a855f7",
|
|
74
|
+
600: "#9333ea",
|
|
75
|
+
700: "#7e22ce",
|
|
76
|
+
800: "#6b21a8",
|
|
77
|
+
900: "#581c87",
|
|
78
|
+
950: "#3b0764"
|
|
79
|
+
},
|
|
80
|
+
neutral: {
|
|
81
|
+
50: "#f9fafb",
|
|
82
|
+
100: "#f3f4f6",
|
|
83
|
+
200: "#e5e7eb",
|
|
84
|
+
300: "#d1d5db",
|
|
85
|
+
400: "#9ca3af",
|
|
86
|
+
500: "#6b7280",
|
|
87
|
+
600: "#4b5563",
|
|
88
|
+
700: "#374151",
|
|
89
|
+
800: "#1f2937",
|
|
90
|
+
900: "#111827",
|
|
91
|
+
950: "#030712"
|
|
92
|
+
},
|
|
93
|
+
success: {
|
|
94
|
+
50: "#f0fdf4",
|
|
95
|
+
100: "#dcfce7",
|
|
96
|
+
200: "#bbf7d0",
|
|
97
|
+
300: "#86efac",
|
|
98
|
+
400: "#4ade80",
|
|
99
|
+
500: "#22c55e",
|
|
100
|
+
600: "#16a34a",
|
|
101
|
+
700: "#15803d",
|
|
102
|
+
800: "#166534",
|
|
103
|
+
900: "#14532d",
|
|
104
|
+
950: "#052e16"
|
|
105
|
+
},
|
|
106
|
+
danger: {
|
|
107
|
+
50: "#fef2f2",
|
|
108
|
+
100: "#fee2e2",
|
|
109
|
+
200: "#fecaca",
|
|
110
|
+
300: "#fca5a5",
|
|
111
|
+
400: "#f87171",
|
|
112
|
+
500: "#ef4444",
|
|
113
|
+
600: "#dc2626",
|
|
114
|
+
700: "#b91c1c",
|
|
115
|
+
800: "#991b1b",
|
|
116
|
+
900: "#7f1d1d",
|
|
117
|
+
950: "#450a0a"
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
var gradients = {
|
|
121
|
+
primary: "linear-gradient(236deg, #eee -19.33%, #41c2c4 28.51%, #3ea6b0 49.57%, #3c91a0 91.6%)"
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
// src/spacing.ts
|
|
125
|
+
var spacing = {
|
|
126
|
+
0: "0",
|
|
127
|
+
0.5: "0.125rem",
|
|
128
|
+
// 2px
|
|
129
|
+
1: "0.25rem",
|
|
130
|
+
// 4px
|
|
131
|
+
1.5: "0.375rem",
|
|
132
|
+
// 6px
|
|
133
|
+
2: "0.5rem",
|
|
134
|
+
// 8px
|
|
135
|
+
3: "0.75rem",
|
|
136
|
+
// 12px
|
|
137
|
+
4: "1rem",
|
|
138
|
+
// 16px
|
|
139
|
+
5: "1.25rem",
|
|
140
|
+
// 20px
|
|
141
|
+
6: "1.5rem",
|
|
142
|
+
// 24px
|
|
143
|
+
7: "1.75rem",
|
|
144
|
+
// 28px
|
|
145
|
+
8: "2rem",
|
|
146
|
+
// 32px
|
|
147
|
+
10: "2.5rem",
|
|
148
|
+
// 40px
|
|
149
|
+
12: "3rem",
|
|
150
|
+
// 48px
|
|
151
|
+
14: "3.5rem",
|
|
152
|
+
// 56px
|
|
153
|
+
16: "4rem"
|
|
154
|
+
// 64px
|
|
155
|
+
};
|
|
156
|
+
var borderRadius = {
|
|
157
|
+
none: "0",
|
|
158
|
+
sm: "0.125rem",
|
|
159
|
+
// 2px
|
|
160
|
+
default: "0.25rem",
|
|
161
|
+
// 4px
|
|
162
|
+
md: "0.5rem",
|
|
163
|
+
// 8px
|
|
164
|
+
lg: "0.75rem",
|
|
165
|
+
// 12px
|
|
166
|
+
xl: "1rem",
|
|
167
|
+
// 16px
|
|
168
|
+
"2xl": "1.25rem",
|
|
169
|
+
// 20px
|
|
170
|
+
"3xl": "1.5rem",
|
|
171
|
+
// 24px
|
|
172
|
+
"4xl": "2rem",
|
|
173
|
+
// 32px
|
|
174
|
+
full: "9999px"
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
// src/typography.ts
|
|
178
|
+
var fontSize = {
|
|
179
|
+
// Title and Text pairs (Smart V2)
|
|
180
|
+
"title-1": ["3rem", { lineHeight: "1.2", fontWeight: "700" }],
|
|
181
|
+
// 48px - Bold
|
|
182
|
+
"text-1": ["3rem", { lineHeight: "1.2", fontWeight: "400" }],
|
|
183
|
+
// 48px - Regular
|
|
184
|
+
"title-2": ["2.5rem", { lineHeight: "1.2", fontWeight: "700" }],
|
|
185
|
+
// 40px - Bold
|
|
186
|
+
"text-2": ["2.5rem", { lineHeight: "1.2", fontWeight: "400" }],
|
|
187
|
+
// 40px - Regular
|
|
188
|
+
"title-3": ["2rem", { lineHeight: "1.2", fontWeight: "700" }],
|
|
189
|
+
// 32px - Bold
|
|
190
|
+
"text-3": ["2rem", { lineHeight: "1.2", fontWeight: "400" }],
|
|
191
|
+
// 32px - Regular
|
|
192
|
+
"title-4": ["1.75rem", { lineHeight: "1.2", fontWeight: "700" }],
|
|
193
|
+
// 28px - Bold
|
|
194
|
+
"text-4": ["1.75rem", { lineHeight: "1.2", fontWeight: "400" }],
|
|
195
|
+
// 28px - Regular
|
|
196
|
+
"title-5": ["1.5rem", { lineHeight: "1.2", fontWeight: "700" }],
|
|
197
|
+
// 24px - Bold
|
|
198
|
+
"text-5": ["1.5rem", { lineHeight: "1.2", fontWeight: "400" }],
|
|
199
|
+
// 24px - Regular
|
|
200
|
+
"title-6": ["1.25rem", { lineHeight: "1.2", fontWeight: "700" }],
|
|
201
|
+
// 20px - Bold
|
|
202
|
+
"text-6": ["1.25rem", { lineHeight: "1.2", fontWeight: "400" }],
|
|
203
|
+
// 20px - Regular
|
|
204
|
+
"title-7": ["1.125rem", { lineHeight: "1.2", fontWeight: "700" }],
|
|
205
|
+
// 18px - Bold (Main)
|
|
206
|
+
"text-7": ["1.125rem", { lineHeight: "1.2", fontWeight: "400" }],
|
|
207
|
+
// 18px - Regular
|
|
208
|
+
"title-8": ["1rem", { lineHeight: "1.2", fontWeight: "700" }],
|
|
209
|
+
// 16px - Bold
|
|
210
|
+
"text-8": ["1rem", { lineHeight: "1.2", fontWeight: "400" }],
|
|
211
|
+
// 16px - Regular (Main)
|
|
212
|
+
"title-9": ["0.875rem", { lineHeight: "1.2", fontWeight: "700" }],
|
|
213
|
+
// 14px - Bold
|
|
214
|
+
"text-9": ["0.875rem", { lineHeight: "1.2", fontWeight: "400" }],
|
|
215
|
+
// 14px - Regular
|
|
216
|
+
"title-10": ["0.75rem", { lineHeight: "1.2", fontWeight: "700" }],
|
|
217
|
+
// 12px - Bold
|
|
218
|
+
"text-10": ["0.75rem", { lineHeight: "1.2", fontWeight: "400" }],
|
|
219
|
+
// 12px - Regular
|
|
220
|
+
// Legacy names (keeping for backward compatibility)
|
|
221
|
+
h1: ["2.5rem", { lineHeight: "3rem", fontWeight: "700" }],
|
|
222
|
+
h2: ["2rem", { lineHeight: "2.5rem", fontWeight: "700" }],
|
|
223
|
+
h3: ["1.5rem", { lineHeight: "2rem", fontWeight: "600" }],
|
|
224
|
+
h4: ["1.25rem", { lineHeight: "1.75rem", fontWeight: "600" }],
|
|
225
|
+
"body-lg": ["1.125rem", { lineHeight: "1.75rem", fontWeight: "400" }],
|
|
226
|
+
body: ["1rem", { lineHeight: "1.5rem", fontWeight: "400" }],
|
|
227
|
+
"body-sm": ["0.875rem", { lineHeight: "1.25rem", fontWeight: "400" }],
|
|
228
|
+
caption: ["0.75rem", { lineHeight: "1rem", fontWeight: "400" }]
|
|
229
|
+
};
|
|
230
|
+
var fontFamily = {
|
|
231
|
+
almoni: ["Almoni DL AAA", "sans-serif"],
|
|
232
|
+
sans: ["Almoni DL AAA", "ui-sans-serif", "system-ui", "sans-serif"]
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
// src/index.ts
|
|
236
|
+
var tokens = {
|
|
237
|
+
colors,
|
|
238
|
+
legacyColors,
|
|
239
|
+
gradients,
|
|
240
|
+
spacing,
|
|
241
|
+
borderRadius,
|
|
242
|
+
fontSize,
|
|
243
|
+
fontFamily
|
|
244
|
+
};
|
|
245
|
+
var index_default = tokens;
|
|
246
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
247
|
+
0 && (module.exports = {
|
|
248
|
+
borderRadius,
|
|
249
|
+
colors,
|
|
250
|
+
fontFamily,
|
|
251
|
+
fontSize,
|
|
252
|
+
gradients,
|
|
253
|
+
legacyColors,
|
|
254
|
+
spacing,
|
|
255
|
+
tokens
|
|
256
|
+
});
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import {
|
|
2
|
+
colors,
|
|
3
|
+
gradients,
|
|
4
|
+
legacyColors
|
|
5
|
+
} from "./chunk-NFXHCTG6.mjs";
|
|
6
|
+
import {
|
|
7
|
+
borderRadius,
|
|
8
|
+
spacing
|
|
9
|
+
} from "./chunk-JMMDK5QW.mjs";
|
|
10
|
+
import {
|
|
11
|
+
fontFamily,
|
|
12
|
+
fontSize
|
|
13
|
+
} from "./chunk-7VTNCMPG.mjs";
|
|
14
|
+
|
|
15
|
+
// src/index.ts
|
|
16
|
+
var tokens = {
|
|
17
|
+
colors,
|
|
18
|
+
legacyColors,
|
|
19
|
+
gradients,
|
|
20
|
+
spacing,
|
|
21
|
+
borderRadius,
|
|
22
|
+
fontSize,
|
|
23
|
+
fontFamily
|
|
24
|
+
};
|
|
25
|
+
var index_default = tokens;
|
|
26
|
+
export {
|
|
27
|
+
borderRadius,
|
|
28
|
+
colors,
|
|
29
|
+
index_default as default,
|
|
30
|
+
fontFamily,
|
|
31
|
+
fontSize,
|
|
32
|
+
gradients,
|
|
33
|
+
legacyColors,
|
|
34
|
+
spacing,
|
|
35
|
+
tokens
|
|
36
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Smart V2 Design System - Spacing Tokens
|
|
3
|
+
* @package @adam-milo/tokens
|
|
4
|
+
*/
|
|
5
|
+
declare const spacing: {
|
|
6
|
+
readonly 0: "0";
|
|
7
|
+
readonly 0.5: "0.125rem";
|
|
8
|
+
readonly 1: "0.25rem";
|
|
9
|
+
readonly 1.5: "0.375rem";
|
|
10
|
+
readonly 2: "0.5rem";
|
|
11
|
+
readonly 3: "0.75rem";
|
|
12
|
+
readonly 4: "1rem";
|
|
13
|
+
readonly 5: "1.25rem";
|
|
14
|
+
readonly 6: "1.5rem";
|
|
15
|
+
readonly 7: "1.75rem";
|
|
16
|
+
readonly 8: "2rem";
|
|
17
|
+
readonly 10: "2.5rem";
|
|
18
|
+
readonly 12: "3rem";
|
|
19
|
+
readonly 14: "3.5rem";
|
|
20
|
+
readonly 16: "4rem";
|
|
21
|
+
};
|
|
22
|
+
declare const borderRadius: {
|
|
23
|
+
readonly none: "0";
|
|
24
|
+
readonly sm: "0.125rem";
|
|
25
|
+
readonly default: "0.25rem";
|
|
26
|
+
readonly md: "0.5rem";
|
|
27
|
+
readonly lg: "0.75rem";
|
|
28
|
+
readonly xl: "1rem";
|
|
29
|
+
readonly '2xl': "1.25rem";
|
|
30
|
+
readonly '3xl': "1.5rem";
|
|
31
|
+
readonly '4xl': "2rem";
|
|
32
|
+
readonly full: "9999px";
|
|
33
|
+
};
|
|
34
|
+
type Spacing = typeof spacing;
|
|
35
|
+
type BorderRadius = typeof borderRadius;
|
|
36
|
+
|
|
37
|
+
export { type BorderRadius, type Spacing, borderRadius, spacing };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Smart V2 Design System - Spacing Tokens
|
|
3
|
+
* @package @adam-milo/tokens
|
|
4
|
+
*/
|
|
5
|
+
declare const spacing: {
|
|
6
|
+
readonly 0: "0";
|
|
7
|
+
readonly 0.5: "0.125rem";
|
|
8
|
+
readonly 1: "0.25rem";
|
|
9
|
+
readonly 1.5: "0.375rem";
|
|
10
|
+
readonly 2: "0.5rem";
|
|
11
|
+
readonly 3: "0.75rem";
|
|
12
|
+
readonly 4: "1rem";
|
|
13
|
+
readonly 5: "1.25rem";
|
|
14
|
+
readonly 6: "1.5rem";
|
|
15
|
+
readonly 7: "1.75rem";
|
|
16
|
+
readonly 8: "2rem";
|
|
17
|
+
readonly 10: "2.5rem";
|
|
18
|
+
readonly 12: "3rem";
|
|
19
|
+
readonly 14: "3.5rem";
|
|
20
|
+
readonly 16: "4rem";
|
|
21
|
+
};
|
|
22
|
+
declare const borderRadius: {
|
|
23
|
+
readonly none: "0";
|
|
24
|
+
readonly sm: "0.125rem";
|
|
25
|
+
readonly default: "0.25rem";
|
|
26
|
+
readonly md: "0.5rem";
|
|
27
|
+
readonly lg: "0.75rem";
|
|
28
|
+
readonly xl: "1rem";
|
|
29
|
+
readonly '2xl': "1.25rem";
|
|
30
|
+
readonly '3xl': "1.5rem";
|
|
31
|
+
readonly '4xl': "2rem";
|
|
32
|
+
readonly full: "9999px";
|
|
33
|
+
};
|
|
34
|
+
type Spacing = typeof spacing;
|
|
35
|
+
type BorderRadius = typeof borderRadius;
|
|
36
|
+
|
|
37
|
+
export { type BorderRadius, type Spacing, borderRadius, spacing };
|
package/dist/spacing.js
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/spacing.ts
|
|
21
|
+
var spacing_exports = {};
|
|
22
|
+
__export(spacing_exports, {
|
|
23
|
+
borderRadius: () => borderRadius,
|
|
24
|
+
spacing: () => spacing
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(spacing_exports);
|
|
27
|
+
var spacing = {
|
|
28
|
+
0: "0",
|
|
29
|
+
0.5: "0.125rem",
|
|
30
|
+
// 2px
|
|
31
|
+
1: "0.25rem",
|
|
32
|
+
// 4px
|
|
33
|
+
1.5: "0.375rem",
|
|
34
|
+
// 6px
|
|
35
|
+
2: "0.5rem",
|
|
36
|
+
// 8px
|
|
37
|
+
3: "0.75rem",
|
|
38
|
+
// 12px
|
|
39
|
+
4: "1rem",
|
|
40
|
+
// 16px
|
|
41
|
+
5: "1.25rem",
|
|
42
|
+
// 20px
|
|
43
|
+
6: "1.5rem",
|
|
44
|
+
// 24px
|
|
45
|
+
7: "1.75rem",
|
|
46
|
+
// 28px
|
|
47
|
+
8: "2rem",
|
|
48
|
+
// 32px
|
|
49
|
+
10: "2.5rem",
|
|
50
|
+
// 40px
|
|
51
|
+
12: "3rem",
|
|
52
|
+
// 48px
|
|
53
|
+
14: "3.5rem",
|
|
54
|
+
// 56px
|
|
55
|
+
16: "4rem"
|
|
56
|
+
// 64px
|
|
57
|
+
};
|
|
58
|
+
var borderRadius = {
|
|
59
|
+
none: "0",
|
|
60
|
+
sm: "0.125rem",
|
|
61
|
+
// 2px
|
|
62
|
+
default: "0.25rem",
|
|
63
|
+
// 4px
|
|
64
|
+
md: "0.5rem",
|
|
65
|
+
// 8px
|
|
66
|
+
lg: "0.75rem",
|
|
67
|
+
// 12px
|
|
68
|
+
xl: "1rem",
|
|
69
|
+
// 16px
|
|
70
|
+
"2xl": "1.25rem",
|
|
71
|
+
// 20px
|
|
72
|
+
"3xl": "1.5rem",
|
|
73
|
+
// 24px
|
|
74
|
+
"4xl": "2rem",
|
|
75
|
+
// 32px
|
|
76
|
+
full: "9999px"
|
|
77
|
+
};
|
|
78
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
79
|
+
0 && (module.exports = {
|
|
80
|
+
borderRadius,
|
|
81
|
+
spacing
|
|
82
|
+
});
|
package/dist/spacing.mjs
ADDED
package/dist/tokens.css
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Smart V2 Design System - CSS Token Variables
|
|
3
|
+
* @package @adam-milo/tokens
|
|
4
|
+
*
|
|
5
|
+
* This file contains pure design token values as CSS custom properties.
|
|
6
|
+
* These tokens can be used in any CSS framework or vanilla CSS project.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
:root {
|
|
10
|
+
/* ========================================================================
|
|
11
|
+
* Colors - Main
|
|
12
|
+
* ======================================================================== */
|
|
13
|
+
--color-text: #191a39;
|
|
14
|
+
--color-action: #272643;
|
|
15
|
+
--color-clickable: #2f9db2;
|
|
16
|
+
--color-popup: #ed6726;
|
|
17
|
+
--color-error: #ff6868;
|
|
18
|
+
--color-toggle: #4b497c;
|
|
19
|
+
--color-secondary: #1d56ec;
|
|
20
|
+
--color-card: #ffffff;
|
|
21
|
+
|
|
22
|
+
/* ========================================================================
|
|
23
|
+
* Colors - Greys
|
|
24
|
+
* ======================================================================== */
|
|
25
|
+
--color-bg: #fafafa;
|
|
26
|
+
--color-bg-secondary: #f3f3f5;
|
|
27
|
+
--color-border: #e5e5ea;
|
|
28
|
+
--color-icon-secondary: #c9c9cf;
|
|
29
|
+
--color-system-text: #8c8c9c;
|
|
30
|
+
--color-grey-07: #656573; /* Figma Grey/Grey 07 - for labels */
|
|
31
|
+
|
|
32
|
+
/* ========================================================================
|
|
33
|
+
* Spacing Scale (rem)
|
|
34
|
+
* ======================================================================== */
|
|
35
|
+
--spacing-0-5: 0.125rem; /* 2px */
|
|
36
|
+
--spacing-1: 0.25rem; /* 4px */
|
|
37
|
+
--spacing-1-5: 0.375rem; /* 6px */
|
|
38
|
+
--spacing-2: 0.5rem; /* 8px */
|
|
39
|
+
--spacing-2-5: 0.625rem; /* 10px */
|
|
40
|
+
--spacing-3: 0.75rem; /* 12px */
|
|
41
|
+
--spacing-3-5: 0.875rem; /* 14px */
|
|
42
|
+
--spacing-4: 1rem; /* 16px */
|
|
43
|
+
--spacing-5: 1.25rem; /* 20px */
|
|
44
|
+
--spacing-6: 1.5rem; /* 24px */
|
|
45
|
+
--spacing-7: 1.75rem; /* 28px */
|
|
46
|
+
--spacing-8: 2rem; /* 32px */
|
|
47
|
+
--spacing-10: 2.5rem; /* 40px */
|
|
48
|
+
--spacing-11: 2.75rem; /* 44px */
|
|
49
|
+
--spacing-12: 3rem; /* 48px */
|
|
50
|
+
--spacing-14: 3.5rem; /* 56px */
|
|
51
|
+
--spacing-16: 4rem; /* 64px */
|
|
52
|
+
|
|
53
|
+
/* ========================================================================
|
|
54
|
+
* Border Radius (rem)
|
|
55
|
+
* ======================================================================== */
|
|
56
|
+
--radius-sm: 0.125rem; /* 2px */
|
|
57
|
+
--radius-default: 0.25rem; /* 4px */
|
|
58
|
+
--radius-5px: 0.3125rem; /* 5px - Figma input spec */
|
|
59
|
+
--radius-md: 0.5rem; /* 8px */
|
|
60
|
+
--radius-lg: 0.75rem; /* 12px */
|
|
61
|
+
--radius-xl: 1rem; /* 16px */
|
|
62
|
+
--radius-2xl: 1.25rem; /* 20px */
|
|
63
|
+
--radius-3xl: 1.5rem; /* 24px */
|
|
64
|
+
--radius-4xl: 2rem; /* 32px */
|
|
65
|
+
|
|
66
|
+
/* ========================================================================
|
|
67
|
+
* Typography Scale (rem)
|
|
68
|
+
* ======================================================================== */
|
|
69
|
+
--font-size-1: 3rem; /* 48px */
|
|
70
|
+
--font-size-2: 2.5rem; /* 40px */
|
|
71
|
+
--font-size-3: 2rem; /* 32px */
|
|
72
|
+
--font-size-4: 1.75rem; /* 28px */
|
|
73
|
+
--font-size-5: 1.5rem; /* 24px */
|
|
74
|
+
--font-size-6: 1.25rem; /* 20px */
|
|
75
|
+
--font-size-7: 1.125rem; /* 18px */
|
|
76
|
+
--font-size-8: 1rem; /* 16px */
|
|
77
|
+
--font-size-9: 0.875rem; /* 14px */
|
|
78
|
+
--font-size-10: 0.75rem; /* 12px */
|
|
79
|
+
|
|
80
|
+
/* ========================================================================
|
|
81
|
+
* Gradients
|
|
82
|
+
* ======================================================================== */
|
|
83
|
+
--gradient-primary: linear-gradient(
|
|
84
|
+
236deg,
|
|
85
|
+
#eee -19.33%,
|
|
86
|
+
#41c2c4 28.51%,
|
|
87
|
+
#3ea6b0 49.57%,
|
|
88
|
+
#3c91a0 91.6%
|
|
89
|
+
);
|
|
90
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Smart V2 Design System - Typography Tokens
|
|
3
|
+
* Almoni DL AAA Font Family
|
|
4
|
+
* @package @adam-milo/tokens
|
|
5
|
+
*/
|
|
6
|
+
declare const fontSize: {
|
|
7
|
+
readonly 'title-1': readonly ["3rem", {
|
|
8
|
+
readonly lineHeight: "1.2";
|
|
9
|
+
readonly fontWeight: "700";
|
|
10
|
+
}];
|
|
11
|
+
readonly 'text-1': readonly ["3rem", {
|
|
12
|
+
readonly lineHeight: "1.2";
|
|
13
|
+
readonly fontWeight: "400";
|
|
14
|
+
}];
|
|
15
|
+
readonly 'title-2': readonly ["2.5rem", {
|
|
16
|
+
readonly lineHeight: "1.2";
|
|
17
|
+
readonly fontWeight: "700";
|
|
18
|
+
}];
|
|
19
|
+
readonly 'text-2': readonly ["2.5rem", {
|
|
20
|
+
readonly lineHeight: "1.2";
|
|
21
|
+
readonly fontWeight: "400";
|
|
22
|
+
}];
|
|
23
|
+
readonly 'title-3': readonly ["2rem", {
|
|
24
|
+
readonly lineHeight: "1.2";
|
|
25
|
+
readonly fontWeight: "700";
|
|
26
|
+
}];
|
|
27
|
+
readonly 'text-3': readonly ["2rem", {
|
|
28
|
+
readonly lineHeight: "1.2";
|
|
29
|
+
readonly fontWeight: "400";
|
|
30
|
+
}];
|
|
31
|
+
readonly 'title-4': readonly ["1.75rem", {
|
|
32
|
+
readonly lineHeight: "1.2";
|
|
33
|
+
readonly fontWeight: "700";
|
|
34
|
+
}];
|
|
35
|
+
readonly 'text-4': readonly ["1.75rem", {
|
|
36
|
+
readonly lineHeight: "1.2";
|
|
37
|
+
readonly fontWeight: "400";
|
|
38
|
+
}];
|
|
39
|
+
readonly 'title-5': readonly ["1.5rem", {
|
|
40
|
+
readonly lineHeight: "1.2";
|
|
41
|
+
readonly fontWeight: "700";
|
|
42
|
+
}];
|
|
43
|
+
readonly 'text-5': readonly ["1.5rem", {
|
|
44
|
+
readonly lineHeight: "1.2";
|
|
45
|
+
readonly fontWeight: "400";
|
|
46
|
+
}];
|
|
47
|
+
readonly 'title-6': readonly ["1.25rem", {
|
|
48
|
+
readonly lineHeight: "1.2";
|
|
49
|
+
readonly fontWeight: "700";
|
|
50
|
+
}];
|
|
51
|
+
readonly 'text-6': readonly ["1.25rem", {
|
|
52
|
+
readonly lineHeight: "1.2";
|
|
53
|
+
readonly fontWeight: "400";
|
|
54
|
+
}];
|
|
55
|
+
readonly 'title-7': readonly ["1.125rem", {
|
|
56
|
+
readonly lineHeight: "1.2";
|
|
57
|
+
readonly fontWeight: "700";
|
|
58
|
+
}];
|
|
59
|
+
readonly 'text-7': readonly ["1.125rem", {
|
|
60
|
+
readonly lineHeight: "1.2";
|
|
61
|
+
readonly fontWeight: "400";
|
|
62
|
+
}];
|
|
63
|
+
readonly 'title-8': readonly ["1rem", {
|
|
64
|
+
readonly lineHeight: "1.2";
|
|
65
|
+
readonly fontWeight: "700";
|
|
66
|
+
}];
|
|
67
|
+
readonly 'text-8': readonly ["1rem", {
|
|
68
|
+
readonly lineHeight: "1.2";
|
|
69
|
+
readonly fontWeight: "400";
|
|
70
|
+
}];
|
|
71
|
+
readonly 'title-9': readonly ["0.875rem", {
|
|
72
|
+
readonly lineHeight: "1.2";
|
|
73
|
+
readonly fontWeight: "700";
|
|
74
|
+
}];
|
|
75
|
+
readonly 'text-9': readonly ["0.875rem", {
|
|
76
|
+
readonly lineHeight: "1.2";
|
|
77
|
+
readonly fontWeight: "400";
|
|
78
|
+
}];
|
|
79
|
+
readonly 'title-10': readonly ["0.75rem", {
|
|
80
|
+
readonly lineHeight: "1.2";
|
|
81
|
+
readonly fontWeight: "700";
|
|
82
|
+
}];
|
|
83
|
+
readonly 'text-10': readonly ["0.75rem", {
|
|
84
|
+
readonly lineHeight: "1.2";
|
|
85
|
+
readonly fontWeight: "400";
|
|
86
|
+
}];
|
|
87
|
+
readonly h1: readonly ["2.5rem", {
|
|
88
|
+
readonly lineHeight: "3rem";
|
|
89
|
+
readonly fontWeight: "700";
|
|
90
|
+
}];
|
|
91
|
+
readonly h2: readonly ["2rem", {
|
|
92
|
+
readonly lineHeight: "2.5rem";
|
|
93
|
+
readonly fontWeight: "700";
|
|
94
|
+
}];
|
|
95
|
+
readonly h3: readonly ["1.5rem", {
|
|
96
|
+
readonly lineHeight: "2rem";
|
|
97
|
+
readonly fontWeight: "600";
|
|
98
|
+
}];
|
|
99
|
+
readonly h4: readonly ["1.25rem", {
|
|
100
|
+
readonly lineHeight: "1.75rem";
|
|
101
|
+
readonly fontWeight: "600";
|
|
102
|
+
}];
|
|
103
|
+
readonly 'body-lg': readonly ["1.125rem", {
|
|
104
|
+
readonly lineHeight: "1.75rem";
|
|
105
|
+
readonly fontWeight: "400";
|
|
106
|
+
}];
|
|
107
|
+
readonly body: readonly ["1rem", {
|
|
108
|
+
readonly lineHeight: "1.5rem";
|
|
109
|
+
readonly fontWeight: "400";
|
|
110
|
+
}];
|
|
111
|
+
readonly 'body-sm': readonly ["0.875rem", {
|
|
112
|
+
readonly lineHeight: "1.25rem";
|
|
113
|
+
readonly fontWeight: "400";
|
|
114
|
+
}];
|
|
115
|
+
readonly caption: readonly ["0.75rem", {
|
|
116
|
+
readonly lineHeight: "1rem";
|
|
117
|
+
readonly fontWeight: "400";
|
|
118
|
+
}];
|
|
119
|
+
};
|
|
120
|
+
declare const fontFamily: {
|
|
121
|
+
readonly almoni: readonly ["Almoni DL AAA", "sans-serif"];
|
|
122
|
+
readonly sans: readonly ["Almoni DL AAA", "ui-sans-serif", "system-ui", "sans-serif"];
|
|
123
|
+
};
|
|
124
|
+
type FontSize = typeof fontSize;
|
|
125
|
+
type FontFamily = typeof fontFamily;
|
|
126
|
+
|
|
127
|
+
export { type FontFamily, type FontSize, fontFamily, fontSize };
|