@autonomys/design-tokens 1.4.18

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,307 @@
1
+ /**
2
+ * Auto Design Color Tokens
3
+ *
4
+ * These color tokens are derived from the application's design system
5
+ * and match the Tailwind configuration.
6
+ */
7
+ export declare const colors: {
8
+ primary: string;
9
+ primaryHover: string;
10
+ accent: string;
11
+ lighterAccent: string;
12
+ background: string;
13
+ foreground: string;
14
+ backgroundLight: string;
15
+ backgroundDark: string;
16
+ backgroundDarker: string;
17
+ backgroundDarkest: string;
18
+ lightDanger: string;
19
+ grayButton: string;
20
+ lightGray: string;
21
+ whiteOpaque: string;
22
+ darkWhite: string;
23
+ darkWhiteHover: string;
24
+ darkBlack: string;
25
+ darkBlackHover: string;
26
+ darkPrimary: string;
27
+ darkPrimaryHover: string;
28
+ darkAccent: string;
29
+ darkAccentHover: string;
30
+ white: string;
31
+ black: string;
32
+ gray: {
33
+ 50: string;
34
+ 100: string;
35
+ 200: string;
36
+ 300: string;
37
+ 400: string;
38
+ 500: string;
39
+ 600: string;
40
+ 700: string;
41
+ 800: string;
42
+ 900: string;
43
+ };
44
+ success: string;
45
+ error: string;
46
+ warning: string;
47
+ info: string;
48
+ };
49
+ export declare const semanticColors: {
50
+ textPrimary: string;
51
+ textSecondary: string;
52
+ textTertiary: string;
53
+ textDisabled: string;
54
+ textInverse: string;
55
+ textError: string;
56
+ textSuccess: string;
57
+ textWarning: string;
58
+ textInfo: string;
59
+ textAccent: string;
60
+ backgroundPrimary: string;
61
+ backgroundSecondary: string;
62
+ backgroundTertiary: string;
63
+ backgroundError: string;
64
+ backgroundSuccess: string;
65
+ backgroundWarning: string;
66
+ backgroundInfo: string;
67
+ backgroundAccent: string;
68
+ borderPrimary: string;
69
+ borderSecondary: string;
70
+ borderFocus: string;
71
+ borderError: string;
72
+ buttonPrimary: string;
73
+ buttonPrimaryHover: string;
74
+ buttonSecondary: string;
75
+ buttonSecondaryHover: string;
76
+ buttonAccent: string;
77
+ buttonAccentHover: string;
78
+ buttonDanger: string;
79
+ buttonDangerHover: string;
80
+ buttonDisabled: string;
81
+ };
82
+ export declare const darkSemanticColors: {
83
+ textPrimary: string;
84
+ textSecondary: string;
85
+ backgroundPrimary: string;
86
+ backgroundSecondary: string;
87
+ buttonPrimary: string;
88
+ buttonPrimaryHover: string;
89
+ buttonAccent: string;
90
+ buttonAccentHover: string;
91
+ };
92
+ export declare const explorerColors: {
93
+ grayDark: string;
94
+ grayDarker: string;
95
+ grayLight: string;
96
+ gradientFrom: string;
97
+ gradientVia: string;
98
+ gradientTo: string;
99
+ gradientToSecondary: string;
100
+ white: string;
101
+ whiteTransparent: string;
102
+ whiteOpaque: string;
103
+ pastelPurple: string;
104
+ pastelBlue: string;
105
+ pastelPink: string;
106
+ pastelGreen: string;
107
+ greenBright: string;
108
+ primaryAccent: string;
109
+ blueAccent: string;
110
+ blueDarkAccent: string;
111
+ blueLight: string;
112
+ blueShade: string;
113
+ blueUndertone: string;
114
+ backgroundLight: string;
115
+ backgroundDark: string;
116
+ backgroundDarker: string;
117
+ backgroundDarkest: string;
118
+ boxLight: string;
119
+ boxDark: string;
120
+ buttonLightFrom: string;
121
+ buttonLightTo: string;
122
+ buttonDarkFrom: string;
123
+ buttonDarkTo: string;
124
+ headerLight: string;
125
+ headerDark: string;
126
+ footerLight: string;
127
+ footerDark: string;
128
+ };
129
+ export declare const gradients: {
130
+ background: {
131
+ dark: string;
132
+ light: string;
133
+ };
134
+ button: {
135
+ light: string;
136
+ dark: string;
137
+ hover: {
138
+ light: string;
139
+ dark: string;
140
+ };
141
+ };
142
+ card: {
143
+ primary: string;
144
+ secondary: string;
145
+ };
146
+ headerOverlay: {
147
+ light: string;
148
+ dark: string;
149
+ };
150
+ accent: {
151
+ blue: string;
152
+ purple: string;
153
+ green: string;
154
+ };
155
+ };
156
+ declare const _default: {
157
+ colors: {
158
+ primary: string;
159
+ primaryHover: string;
160
+ accent: string;
161
+ lighterAccent: string;
162
+ background: string;
163
+ foreground: string;
164
+ backgroundLight: string;
165
+ backgroundDark: string;
166
+ backgroundDarker: string;
167
+ backgroundDarkest: string;
168
+ lightDanger: string;
169
+ grayButton: string;
170
+ lightGray: string;
171
+ whiteOpaque: string;
172
+ darkWhite: string;
173
+ darkWhiteHover: string;
174
+ darkBlack: string;
175
+ darkBlackHover: string;
176
+ darkPrimary: string;
177
+ darkPrimaryHover: string;
178
+ darkAccent: string;
179
+ darkAccentHover: string;
180
+ white: string;
181
+ black: string;
182
+ gray: {
183
+ 50: string;
184
+ 100: string;
185
+ 200: string;
186
+ 300: string;
187
+ 400: string;
188
+ 500: string;
189
+ 600: string;
190
+ 700: string;
191
+ 800: string;
192
+ 900: string;
193
+ };
194
+ success: string;
195
+ error: string;
196
+ warning: string;
197
+ info: string;
198
+ };
199
+ semanticColors: {
200
+ textPrimary: string;
201
+ textSecondary: string;
202
+ textTertiary: string;
203
+ textDisabled: string;
204
+ textInverse: string;
205
+ textError: string;
206
+ textSuccess: string;
207
+ textWarning: string;
208
+ textInfo: string;
209
+ textAccent: string;
210
+ backgroundPrimary: string;
211
+ backgroundSecondary: string;
212
+ backgroundTertiary: string;
213
+ backgroundError: string;
214
+ backgroundSuccess: string;
215
+ backgroundWarning: string;
216
+ backgroundInfo: string;
217
+ backgroundAccent: string;
218
+ borderPrimary: string;
219
+ borderSecondary: string;
220
+ borderFocus: string;
221
+ borderError: string;
222
+ buttonPrimary: string;
223
+ buttonPrimaryHover: string;
224
+ buttonSecondary: string;
225
+ buttonSecondaryHover: string;
226
+ buttonAccent: string;
227
+ buttonAccentHover: string;
228
+ buttonDanger: string;
229
+ buttonDangerHover: string;
230
+ buttonDisabled: string;
231
+ };
232
+ darkSemanticColors: {
233
+ textPrimary: string;
234
+ textSecondary: string;
235
+ backgroundPrimary: string;
236
+ backgroundSecondary: string;
237
+ buttonPrimary: string;
238
+ buttonPrimaryHover: string;
239
+ buttonAccent: string;
240
+ buttonAccentHover: string;
241
+ };
242
+ explorerColors: {
243
+ grayDark: string;
244
+ grayDarker: string;
245
+ grayLight: string;
246
+ gradientFrom: string;
247
+ gradientVia: string;
248
+ gradientTo: string;
249
+ gradientToSecondary: string;
250
+ white: string;
251
+ whiteTransparent: string;
252
+ whiteOpaque: string;
253
+ pastelPurple: string;
254
+ pastelBlue: string;
255
+ pastelPink: string;
256
+ pastelGreen: string;
257
+ greenBright: string;
258
+ primaryAccent: string;
259
+ blueAccent: string;
260
+ blueDarkAccent: string;
261
+ blueLight: string;
262
+ blueShade: string;
263
+ blueUndertone: string;
264
+ backgroundLight: string;
265
+ backgroundDark: string;
266
+ backgroundDarker: string;
267
+ backgroundDarkest: string;
268
+ boxLight: string;
269
+ boxDark: string;
270
+ buttonLightFrom: string;
271
+ buttonLightTo: string;
272
+ buttonDarkFrom: string;
273
+ buttonDarkTo: string;
274
+ headerLight: string;
275
+ headerDark: string;
276
+ footerLight: string;
277
+ footerDark: string;
278
+ };
279
+ gradients: {
280
+ background: {
281
+ dark: string;
282
+ light: string;
283
+ };
284
+ button: {
285
+ light: string;
286
+ dark: string;
287
+ hover: {
288
+ light: string;
289
+ dark: string;
290
+ };
291
+ };
292
+ card: {
293
+ primary: string;
294
+ secondary: string;
295
+ };
296
+ headerOverlay: {
297
+ light: string;
298
+ dark: string;
299
+ };
300
+ accent: {
301
+ blue: string;
302
+ purple: string;
303
+ green: string;
304
+ };
305
+ };
306
+ };
307
+ export default _default;
@@ -0,0 +1,192 @@
1
+ /**
2
+ * Auto Design Color Tokens
3
+ *
4
+ * These color tokens are derived from the application's design system
5
+ * and match the Tailwind configuration.
6
+ */
7
+ // Base color palette
8
+ export const colors = {
9
+ // Brand colors
10
+ primary: "#000000",
11
+ primaryHover: "#101010",
12
+ accent: "#0A8DD0",
13
+ lighterAccent: "#90C2E7",
14
+ // Background colors
15
+ background: "var(--background)",
16
+ foreground: "var(--foreground)",
17
+ backgroundLight: "#EBEFFC",
18
+ backgroundDark: "#3654A6",
19
+ backgroundDarker: "#27355D",
20
+ backgroundDarkest: "#050D26",
21
+ // UI colors
22
+ lightDanger: "#ffcdd2",
23
+ grayButton: "#9EA49F",
24
+ lightGray: "#4E4F54",
25
+ whiteOpaque: "#ffffffb3",
26
+ // Dark mode colors
27
+ darkWhite: "#252525",
28
+ darkWhiteHover: "#353535",
29
+ darkBlack: "#ffffff",
30
+ darkBlackHover: "#808080",
31
+ darkPrimary: "#3654A6",
32
+ darkPrimaryHover: "#4664B6",
33
+ darkAccent: "#0A8DD0",
34
+ darkAccentHover: "#109DD0",
35
+ // Grayscale
36
+ white: "#FFFFFF",
37
+ black: "#000000",
38
+ gray: {
39
+ 50: "#F9FAFB",
40
+ 100: "#F3F4F6",
41
+ 200: "#E5E7EB",
42
+ 300: "#D1D5DB",
43
+ 400: "#9CA3AF",
44
+ 500: "#6B7280",
45
+ 600: "#4B5563",
46
+ 700: "#374151",
47
+ 800: "#1F2937",
48
+ 900: "#111827",
49
+ },
50
+ // Semantic colors
51
+ success: "#10B981", // green-500
52
+ error: "#EF4444", // red-500
53
+ warning: "#F59E0B", // amber-500
54
+ info: "#3B82F6", // blue-500
55
+ };
56
+ // Semantic color mapping
57
+ export const semanticColors = {
58
+ // Text colors
59
+ textPrimary: colors.primary,
60
+ textSecondary: colors.gray[600],
61
+ textTertiary: colors.gray[400],
62
+ textDisabled: colors.gray[300],
63
+ textInverse: colors.white,
64
+ textError: colors.error,
65
+ textSuccess: colors.success,
66
+ textWarning: colors.warning,
67
+ textInfo: colors.info,
68
+ textAccent: colors.accent,
69
+ // Background colors
70
+ backgroundPrimary: colors.white,
71
+ backgroundSecondary: colors.gray[50],
72
+ backgroundTertiary: colors.gray[100],
73
+ backgroundError: colors.lightDanger,
74
+ backgroundSuccess: "#ECFDF5", // green-50
75
+ backgroundWarning: "#FFFBEB", // amber-50
76
+ backgroundInfo: "#EFF6FF", // blue-50
77
+ backgroundAccent: "#E0F2FE", // accent light
78
+ // Border colors
79
+ borderPrimary: colors.gray[200],
80
+ borderSecondary: colors.gray[300],
81
+ borderFocus: colors.accent,
82
+ borderError: colors.error,
83
+ // Button colors
84
+ buttonPrimary: colors.primary,
85
+ buttonPrimaryHover: colors.primaryHover,
86
+ buttonSecondary: colors.gray[200],
87
+ buttonSecondaryHover: colors.gray[300],
88
+ buttonAccent: colors.accent,
89
+ buttonAccentHover: colors.lighterAccent,
90
+ buttonDanger: colors.error,
91
+ buttonDangerHover: "#B91C1C", // red-700
92
+ buttonDisabled: colors.gray[300],
93
+ };
94
+ // Dark mode semantic colors
95
+ export const darkSemanticColors = {
96
+ textPrimary: colors.darkBlack,
97
+ textSecondary: colors.darkBlackHover,
98
+ backgroundPrimary: colors.darkWhite,
99
+ backgroundSecondary: colors.darkWhiteHover,
100
+ buttonPrimary: colors.darkPrimary,
101
+ buttonPrimaryHover: colors.darkPrimaryHover,
102
+ buttonAccent: colors.darkAccent,
103
+ buttonAccentHover: colors.darkAccentHover,
104
+ };
105
+ export const explorerColors = {
106
+ // Grays and Blacks
107
+ grayDark: "#2A2C38",
108
+ grayDarker: "#27355D",
109
+ grayLight: "#EBEFFC",
110
+ // Gradients
111
+ gradientFrom: "#032372",
112
+ gradientVia: "#1949D2",
113
+ gradientTo: "#5373C4",
114
+ gradientToSecondary: "#0C1C43",
115
+ // Whites
116
+ white: "#FFFFFF",
117
+ whiteTransparent: "#ffffff1a",
118
+ whiteOpaque: "#ffffffb3",
119
+ // Pastels
120
+ pastelPurple: "#C2B0EE",
121
+ pastelBlue: "#ABCFEF",
122
+ pastelPink: "#E6ADDC",
123
+ pastelGreen: "#91D3A0",
124
+ // Greens
125
+ greenBright: "#37D058",
126
+ // Primary
127
+ primaryAccent: "#1949D2",
128
+ // Blues
129
+ blueAccent: "#1E254E",
130
+ blueDarkAccent: "#2A345E",
131
+ blueLight: "#EBEFFC",
132
+ blueShade: "#3654A6",
133
+ blueUndertone: "#27355D",
134
+ // Background
135
+ backgroundLight: "#EBEFFC",
136
+ backgroundDark: "#3654A6",
137
+ backgroundDarker: "#27355D",
138
+ backgroundDarkest: "#050D26",
139
+ // Box
140
+ boxLight: "#FFFFFF",
141
+ boxDark: "#2A2C38",
142
+ // Button
143
+ buttonLightFrom: "#032372",
144
+ buttonLightTo: "#5373C4",
145
+ buttonDarkFrom: "#1949D2",
146
+ buttonDarkTo: "#0C1C43",
147
+ // Header
148
+ headerLight: "#FFFFFF",
149
+ headerDark: "#2A2C38",
150
+ // Footer
151
+ footerLight: "#032372",
152
+ footerDark: "#08183E",
153
+ };
154
+ export const gradients = {
155
+ // Background gradients
156
+ background: {
157
+ dark: `linear-gradient(180deg, ${explorerColors.backgroundDarkest} 0%, ${explorerColors.backgroundDarker} 100%)`,
158
+ light: `linear-gradient(180deg, ${explorerColors.blueLight} 0%, ${explorerColors.blueShade} 100%)`,
159
+ },
160
+ // Button gradients
161
+ button: {
162
+ light: `linear-gradient(90deg, ${explorerColors.buttonLightFrom} 0%, ${explorerColors.buttonLightTo} 100%)`,
163
+ dark: `linear-gradient(90deg, ${explorerColors.buttonDarkFrom} 0%, ${explorerColors.buttonDarkTo} 100%)`,
164
+ hover: {
165
+ light: `linear-gradient(90deg, ${explorerColors.buttonLightFrom} 0%, ${explorerColors.buttonLightTo} 90%)`,
166
+ dark: `linear-gradient(90deg, ${explorerColors.buttonDarkFrom} 0%, ${explorerColors.buttonDarkTo} 90%)`,
167
+ },
168
+ },
169
+ // Card gradients
170
+ card: {
171
+ primary: `linear-gradient(135deg, ${explorerColors.gradientFrom} 0%, ${explorerColors.gradientVia} 50%, ${explorerColors.gradientTo} 100%)`,
172
+ secondary: `linear-gradient(135deg, ${explorerColors.gradientFrom} 0%, ${explorerColors.gradientVia} 50%, ${explorerColors.gradientToSecondary} 100%)`,
173
+ },
174
+ // Header overlay gradients
175
+ headerOverlay: {
176
+ light: "linear-gradient(180deg, rgba(235, 239, 252, 0.9) 0%, rgba(235, 239, 252, 0.8) 100%)",
177
+ dark: "linear-gradient(180deg, rgba(5, 13, 38, 0.9) 0%, rgba(39, 53, 93, 0.8) 100%)",
178
+ },
179
+ // Accent gradients
180
+ accent: {
181
+ blue: `linear-gradient(90deg, ${explorerColors.blueAccent} 0%, ${explorerColors.blueDarkAccent} 100%)`,
182
+ purple: `linear-gradient(90deg, ${explorerColors.pastelPurple} 0%, ${explorerColors.pastelPink} 100%)`,
183
+ green: `linear-gradient(90deg, ${explorerColors.pastelGreen} 30%, ${explorerColors.pastelBlue} 100%)`,
184
+ },
185
+ };
186
+ export default {
187
+ colors,
188
+ semanticColors,
189
+ darkSemanticColors,
190
+ explorerColors,
191
+ gradients,
192
+ };
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Shadow tokens for the Autonomys explorer application
3
+ */
4
+ export declare const shadows: {
5
+ sm: string;
6
+ DEFAULT: string;
7
+ md: string;
8
+ lg: string;
9
+ xl: string;
10
+ "2xl": string;
11
+ inner: string;
12
+ none: string;
13
+ darkSm: string;
14
+ darkDefault: string;
15
+ darkMd: string;
16
+ darkLg: string;
17
+ darkXl: string;
18
+ dark2xl: string;
19
+ };
20
+ export declare const componentShadows: {
21
+ button: string;
22
+ card: string;
23
+ modal: string;
24
+ dropdown: string;
25
+ header: string;
26
+ tooltip: string;
27
+ buttonDark: string;
28
+ cardDark: string;
29
+ modalDark: string;
30
+ dropdownDark: string;
31
+ headerDark: string;
32
+ tooltipDark: string;
33
+ };
34
+ declare const _default: {
35
+ shadows: {
36
+ sm: string;
37
+ DEFAULT: string;
38
+ md: string;
39
+ lg: string;
40
+ xl: string;
41
+ "2xl": string;
42
+ inner: string;
43
+ none: string;
44
+ darkSm: string;
45
+ darkDefault: string;
46
+ darkMd: string;
47
+ darkLg: string;
48
+ darkXl: string;
49
+ dark2xl: string;
50
+ };
51
+ componentShadows: {
52
+ button: string;
53
+ card: string;
54
+ modal: string;
55
+ dropdown: string;
56
+ header: string;
57
+ tooltip: string;
58
+ buttonDark: string;
59
+ cardDark: string;
60
+ modalDark: string;
61
+ dropdownDark: string;
62
+ headerDark: string;
63
+ tooltipDark: string;
64
+ };
65
+ };
66
+ export default _default;
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Shadow tokens for the Autonomys explorer application
3
+ */
4
+ export const shadows = {
5
+ sm: "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
6
+ DEFAULT: "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",
7
+ md: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",
8
+ lg: "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",
9
+ xl: "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)",
10
+ "2xl": "0 25px 50px -12px rgba(0, 0, 0, 0.25)",
11
+ inner: "inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)",
12
+ none: "none",
13
+ // Dark mode variants
14
+ darkSm: "0 1px 2px 0 rgba(0, 0, 0, 0.2)",
15
+ darkDefault: "0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2)",
16
+ darkMd: "0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2)",
17
+ darkLg: "0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2)",
18
+ darkXl: "0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2)",
19
+ dark2xl: "0 25px 50px -12px rgba(0, 0, 0, 0.4)",
20
+ };
21
+ // Common component shadow patterns
22
+ export const componentShadows = {
23
+ button: shadows.md,
24
+ card: shadows.lg,
25
+ modal: shadows.xl,
26
+ dropdown: shadows.lg,
27
+ header: shadows.md,
28
+ tooltip: shadows.lg,
29
+ // Dark mode
30
+ buttonDark: shadows.darkMd,
31
+ cardDark: shadows.darkLg,
32
+ modalDark: shadows.darkXl,
33
+ dropdownDark: shadows.darkLg,
34
+ headerDark: shadows.darkMd,
35
+ tooltipDark: shadows.darkLg,
36
+ };
37
+ export default {
38
+ shadows,
39
+ componentShadows,
40
+ };