@esds-sangam/tokens 0.1.5
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 +18 -0
- package/colors.json +72 -0
- package/dist/index.d.ts +744 -0
- package/dist/index.js +480 -0
- package/elevation.json +95 -0
- package/iconSize.json +8 -0
- package/package.json +36 -0
- package/radius.json +11 -0
- package/semantic-colors.json +142 -0
- package/shadows.json +6 -0
- package/spacing.json +15 -0
- package/strokeWidth.json +9 -0
- package/tsconfig.json +10 -0
- package/typography.json +58 -0
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
{
|
|
2
|
+
"background": {
|
|
3
|
+
"neutral": {
|
|
4
|
+
"primary": "neutral.50",
|
|
5
|
+
"secondary": "neutral.100",
|
|
6
|
+
"tertiary": "neutral.200",
|
|
7
|
+
"disabled": "neutral.200"
|
|
8
|
+
},
|
|
9
|
+
"neutralInverse": {
|
|
10
|
+
"primary": "neutral.1100",
|
|
11
|
+
"secondary": "neutral.800",
|
|
12
|
+
"tertiary": "neutral.400"
|
|
13
|
+
},
|
|
14
|
+
"semantic": {
|
|
15
|
+
"success": {
|
|
16
|
+
"subtle": "green.200",
|
|
17
|
+
"default": "green.800",
|
|
18
|
+
"hover": "green.900"
|
|
19
|
+
},
|
|
20
|
+
"warning": {
|
|
21
|
+
"subtle": "orange.200",
|
|
22
|
+
"default": "orange.600",
|
|
23
|
+
"hover": "orange.700"
|
|
24
|
+
},
|
|
25
|
+
"error": {
|
|
26
|
+
"subtle": "red.200",
|
|
27
|
+
"default": "red.800",
|
|
28
|
+
"hover": "red.900"
|
|
29
|
+
},
|
|
30
|
+
"info": {
|
|
31
|
+
"subtle": "blue.200",
|
|
32
|
+
"default": "blue.600",
|
|
33
|
+
"hover": "blue.800"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"text": {
|
|
38
|
+
"neutral": {
|
|
39
|
+
"primary": "neutral.1100",
|
|
40
|
+
"secondary": "neutral.800",
|
|
41
|
+
"tertiary": "neutral.600",
|
|
42
|
+
"disabled": "neutral.500"
|
|
43
|
+
},
|
|
44
|
+
"neutralInverse": {
|
|
45
|
+
"primary": "neutral.50",
|
|
46
|
+
"secondary": "neutral.50",
|
|
47
|
+
"tertiary": "neutral.1100"
|
|
48
|
+
},
|
|
49
|
+
"semantic": {
|
|
50
|
+
"success": {
|
|
51
|
+
"subtle": "green.800",
|
|
52
|
+
"default": "neutral.50",
|
|
53
|
+
"hover": "neutral.50"
|
|
54
|
+
},
|
|
55
|
+
"warning": {
|
|
56
|
+
"subtle": "orange.800",
|
|
57
|
+
"default": "neutral.1100",
|
|
58
|
+
"hover": "neutral.1100"
|
|
59
|
+
},
|
|
60
|
+
"error": {
|
|
61
|
+
"subtle": "red.800",
|
|
62
|
+
"default": "neutral.50",
|
|
63
|
+
"hover": "neutral.50"
|
|
64
|
+
},
|
|
65
|
+
"info": {
|
|
66
|
+
"subtle": "blue.600",
|
|
67
|
+
"default": "neutral.50",
|
|
68
|
+
"hover": "neutral.50"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"icon": {
|
|
73
|
+
"neutral": {
|
|
74
|
+
"primary": "neutral.1100",
|
|
75
|
+
"secondary": "neutral.800",
|
|
76
|
+
"tertiary": "neutral.600",
|
|
77
|
+
"disabled": "neutral.500"
|
|
78
|
+
},
|
|
79
|
+
"neutralInverse": {
|
|
80
|
+
"primary": "neutral.50",
|
|
81
|
+
"secondary": "neutral.50",
|
|
82
|
+
"tertiary": "neutral.1100"
|
|
83
|
+
},
|
|
84
|
+
"semantic": {
|
|
85
|
+
"success": {
|
|
86
|
+
"subtle": "green.800",
|
|
87
|
+
"default": "neutral.50",
|
|
88
|
+
"hover": "neutral.50"
|
|
89
|
+
},
|
|
90
|
+
"warning": {
|
|
91
|
+
"subtle": "orange.700",
|
|
92
|
+
"default": "neutral.1100",
|
|
93
|
+
"hover": "neutral.1100"
|
|
94
|
+
},
|
|
95
|
+
"error": {
|
|
96
|
+
"subtle": "red.800",
|
|
97
|
+
"default": "neutral.50",
|
|
98
|
+
"hover": "neutral.50"
|
|
99
|
+
},
|
|
100
|
+
"info": {
|
|
101
|
+
"subtle": "blue.600",
|
|
102
|
+
"default": "neutral.50",
|
|
103
|
+
"hover": "neutral.50"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"border": {
|
|
108
|
+
"neutral": {
|
|
109
|
+
"primary": "neutral.400",
|
|
110
|
+
"secondary": "neutral.300",
|
|
111
|
+
"tertiary": "neutral.200",
|
|
112
|
+
"disabled": "neutral.200"
|
|
113
|
+
},
|
|
114
|
+
"neutralInverse": {
|
|
115
|
+
"primary": "neutral.700",
|
|
116
|
+
"secondary": "neutral.600",
|
|
117
|
+
"tertiary": "neutral.1100"
|
|
118
|
+
},
|
|
119
|
+
"semantic": {
|
|
120
|
+
"success": {
|
|
121
|
+
"subtle": "green.800",
|
|
122
|
+
"default": "green.300",
|
|
123
|
+
"hover": "green.300"
|
|
124
|
+
},
|
|
125
|
+
"warning": {
|
|
126
|
+
"subtle": "orange.700",
|
|
127
|
+
"default": "orange.300",
|
|
128
|
+
"hover": "orange.300"
|
|
129
|
+
},
|
|
130
|
+
"error": {
|
|
131
|
+
"subtle": "red.800",
|
|
132
|
+
"default": "red.300",
|
|
133
|
+
"hover": "red.300"
|
|
134
|
+
},
|
|
135
|
+
"info": {
|
|
136
|
+
"subtle": "blue.600",
|
|
137
|
+
"default": "blue.300",
|
|
138
|
+
"hover": "blue.300"
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
package/shadows.json
ADDED
package/spacing.json
ADDED
package/strokeWidth.json
ADDED
package/tsconfig.json
ADDED
package/typography.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fontFamily": {
|
|
3
|
+
"sans": ["Inter", "system-ui", "-apple-system", "BlinkMacSystemFont", "Segoe UI", "Roboto", "Helvetica Neue", "Arial", "sans-serif"],
|
|
4
|
+
"serif": ["Georgia", "Cambria", "Times New Roman", "Times", "serif"],
|
|
5
|
+
"mono": ["Fira Code", "Consolas", "Monaco", "Courier New", "monospace"]
|
|
6
|
+
},
|
|
7
|
+
"fontSize": {
|
|
8
|
+
"xs": ["0.75rem", { "lineHeight": "1rem", "comment": "12px - B4 (Figma)" }],
|
|
9
|
+
"2xs": ["0.8125rem", { "lineHeight": "1.125rem", "letterSpacing": "-0.01em", "comment": "13px - B3 (Figma) - RESTRICTED: See TYPOGRAPHY_2XS_USAGE.md" }],
|
|
10
|
+
"3xs": ["0.625rem", { "lineHeight": "1rem", "comment": "10px - Avatar small/medium (Figma)" }],
|
|
11
|
+
"sm": ["0.875rem", { "lineHeight": "1.25rem", "comment": "14px - B2 (Figma)" }],
|
|
12
|
+
"base": ["1rem", { "lineHeight": "1.5rem", "comment": "16px - B1 (Figma)" }],
|
|
13
|
+
"lg": ["1.125rem", { "lineHeight": "1.75rem" }],
|
|
14
|
+
"xl": ["1.25rem", { "lineHeight": "1.75rem", "comment": "20px - H2 (Figma)" }],
|
|
15
|
+
"2xl": ["1.5rem", { "lineHeight": "2rem", "comment": "24px - H1 (Figma)" }],
|
|
16
|
+
"3xl": ["1.875rem", { "lineHeight": "2.25rem" }],
|
|
17
|
+
"4xl": ["2.25rem", { "lineHeight": "2.5rem" }],
|
|
18
|
+
"5xl": ["3rem", { "lineHeight": "1" }],
|
|
19
|
+
"6xl": ["3.75rem", { "lineHeight": "1" }],
|
|
20
|
+
"7xl": ["4.5rem", { "lineHeight": "1" }],
|
|
21
|
+
"8xl": ["6rem", { "lineHeight": "1" }],
|
|
22
|
+
"9xl": ["8rem", { "lineHeight": "1" }]
|
|
23
|
+
},
|
|
24
|
+
"fontWeight": {
|
|
25
|
+
"thin": "100",
|
|
26
|
+
"extralight": "200",
|
|
27
|
+
"light": "300",
|
|
28
|
+
"normal": "400",
|
|
29
|
+
"medium": "500",
|
|
30
|
+
"semibold": "600",
|
|
31
|
+
"bold": "700",
|
|
32
|
+
"extrabold": "800",
|
|
33
|
+
"black": "900"
|
|
34
|
+
},
|
|
35
|
+
"letterSpacing": {
|
|
36
|
+
"tighter": "-0.05em",
|
|
37
|
+
"tight": "-0.025em",
|
|
38
|
+
"normal": "0em",
|
|
39
|
+
"wide": "0.025em",
|
|
40
|
+
"wider": "0.05em",
|
|
41
|
+
"widest": "0.1em"
|
|
42
|
+
},
|
|
43
|
+
"lineHeight": {
|
|
44
|
+
"none": "1",
|
|
45
|
+
"tight": "1.25",
|
|
46
|
+
"snug": "1.375",
|
|
47
|
+
"normal": "1.5",
|
|
48
|
+
"relaxed": "1.625",
|
|
49
|
+
"loose": "2",
|
|
50
|
+
"2xs": "1rem",
|
|
51
|
+
"xs": "1.125rem",
|
|
52
|
+
"s": "1.25rem",
|
|
53
|
+
"m": "1.5rem",
|
|
54
|
+
"lg": "1.75rem",
|
|
55
|
+
"xl": "2rem"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|