@tenphi/tasty 0.10.1 → 0.12.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.
@@ -1,237 +0,0 @@
1
- //#region src/tokens/typography.ts
2
- /**
3
- * Typography presets for headings, text, and special styles.
4
- *
5
- * Naming conventions:
6
- * - `h1`-`h6`: Headings (bold by default)
7
- * - `t1`-`t4`: Text styles (regular weight)
8
- * - `t1m`-`t4m`: Text styles medium weight
9
- * - `m1`-`m3`: Markdown/prose styles (larger line-height)
10
- * - `p1`-`p4`: Paragraph styles
11
- * - `c1`-`c2`: Caption/uppercase styles
12
- * - `tag`: Tag/badge typography
13
- * - `strong`, `em`: Inline semantic styles
14
- * - `default`: Base text style
15
- */
16
- const TYPOGRAPHY_PRESETS = {
17
- text: {
18
- fontSize: "14px",
19
- lineHeight: "20px",
20
- letterSpacing: "0",
21
- fontWeight: "400"
22
- },
23
- h1: {
24
- fontSize: "36px",
25
- lineHeight: "44px",
26
- letterSpacing: "-0.01em",
27
- fontWeight: "600",
28
- boldFontWeight: "700",
29
- iconSize: "40px"
30
- },
31
- h2: {
32
- fontSize: "24px",
33
- lineHeight: "32px",
34
- letterSpacing: "0em",
35
- fontWeight: "600",
36
- boldFontWeight: "700",
37
- iconSize: "28px"
38
- },
39
- h3: {
40
- fontSize: "20px",
41
- lineHeight: "28px",
42
- letterSpacing: "0em",
43
- fontWeight: "600",
44
- boldFontWeight: "700",
45
- iconSize: "24px"
46
- },
47
- h4: {
48
- fontSize: "18px",
49
- lineHeight: "24px",
50
- letterSpacing: "0",
51
- fontWeight: "600",
52
- boldFontWeight: "700",
53
- iconSize: "22px"
54
- },
55
- h5: {
56
- fontSize: "16px",
57
- lineHeight: "22px",
58
- letterSpacing: "0",
59
- fontWeight: "600",
60
- boldFontWeight: "700",
61
- iconSize: "20px"
62
- },
63
- h6: {
64
- fontSize: "14px",
65
- lineHeight: "20px",
66
- letterSpacing: "0.01em",
67
- fontWeight: "600",
68
- boldFontWeight: "700",
69
- iconSize: "20px"
70
- },
71
- t1: {
72
- fontSize: "18px",
73
- lineHeight: "24px",
74
- letterSpacing: "0",
75
- fontWeight: "400",
76
- boldFontWeight: "600",
77
- iconSize: "20px"
78
- },
79
- t2: {
80
- fontSize: "16px",
81
- lineHeight: "22px",
82
- letterSpacing: "0",
83
- fontWeight: "400",
84
- boldFontWeight: "600",
85
- iconSize: "20px"
86
- },
87
- t2m: {
88
- fontSize: "16px",
89
- lineHeight: "22px",
90
- letterSpacing: "0",
91
- fontWeight: "500",
92
- boldFontWeight: "600",
93
- iconSize: "20px"
94
- },
95
- t3: {
96
- fontSize: "14px",
97
- lineHeight: "20px",
98
- letterSpacing: "0",
99
- fontWeight: "400",
100
- boldFontWeight: "600",
101
- iconSize: "18px"
102
- },
103
- t3m: {
104
- fontSize: "14px",
105
- lineHeight: "20px",
106
- letterSpacing: "0",
107
- fontWeight: "500",
108
- boldFontWeight: "600",
109
- iconSize: "18px"
110
- },
111
- t4: {
112
- fontSize: "12px",
113
- lineHeight: "18px",
114
- letterSpacing: "0",
115
- fontWeight: "500",
116
- boldFontWeight: "600",
117
- iconSize: "16px"
118
- },
119
- t4m: {
120
- fontSize: "12px",
121
- lineHeight: "18px",
122
- letterSpacing: "0",
123
- fontWeight: "600",
124
- boldFontWeight: "700",
125
- iconSize: "16px"
126
- },
127
- m1: {
128
- fontSize: "18px",
129
- lineHeight: "32px",
130
- letterSpacing: "0",
131
- fontWeight: "400",
132
- boldFontWeight: "600",
133
- iconSize: "22px"
134
- },
135
- m2: {
136
- fontSize: "16px",
137
- lineHeight: "28px",
138
- letterSpacing: "0",
139
- fontWeight: "400",
140
- boldFontWeight: "600",
141
- iconSize: "20px"
142
- },
143
- m3: {
144
- fontSize: "14px",
145
- lineHeight: "24px",
146
- letterSpacing: "0",
147
- fontWeight: "400",
148
- boldFontWeight: "600",
149
- iconSize: "20px"
150
- },
151
- p1: {
152
- fontSize: "18px",
153
- lineHeight: "28px",
154
- letterSpacing: "0",
155
- fontWeight: "400",
156
- boldFontWeight: "600",
157
- iconSize: "22px"
158
- },
159
- p2: {
160
- fontSize: "16px",
161
- lineHeight: "24px",
162
- letterSpacing: "0",
163
- fontWeight: "400",
164
- boldFontWeight: "600",
165
- iconSize: "20px"
166
- },
167
- p3: {
168
- fontSize: "14px",
169
- lineHeight: "22px",
170
- letterSpacing: "0",
171
- fontWeight: "400",
172
- boldFontWeight: "600",
173
- iconSize: "18px"
174
- },
175
- p4: {
176
- fontSize: "12px",
177
- lineHeight: "20px",
178
- letterSpacing: "0",
179
- fontWeight: "500",
180
- boldFontWeight: "600",
181
- iconSize: "16px"
182
- },
183
- c1: {
184
- fontSize: "14px",
185
- lineHeight: "20px",
186
- letterSpacing: "0",
187
- fontWeight: "600",
188
- boldFontWeight: "700",
189
- textTransform: "uppercase",
190
- iconSize: "18px"
191
- },
192
- c2: {
193
- fontSize: "12px",
194
- lineHeight: "18px",
195
- letterSpacing: "0.01em",
196
- fontWeight: "600",
197
- boldFontWeight: "700",
198
- textTransform: "uppercase",
199
- iconSize: "16px"
200
- },
201
- tag: {
202
- fontSize: "12px",
203
- lineHeight: "18px",
204
- letterSpacing: "0.01em",
205
- fontWeight: "600",
206
- boldFontWeight: "700",
207
- iconSize: "16px"
208
- },
209
- strong: {
210
- fontSize: "inherit",
211
- lineHeight: "inherit",
212
- letterSpacing: "inherit",
213
- fontFamily: "inherit",
214
- fontStyle: "inherit",
215
- fontWeight: "var(--bold-font-weight, var(--default-bold-font-weight, 600))"
216
- },
217
- em: {
218
- fontSize: "inherit",
219
- lineHeight: "inherit",
220
- letterSpacing: "inherit",
221
- fontFamily: "inherit",
222
- fontStyle: "italic",
223
- fontWeight: "inherit"
224
- },
225
- default: {
226
- fontSize: "var(--t3-font-size)",
227
- lineHeight: "var(--t3-line-height)",
228
- letterSpacing: "var(--t3-letter-spacing)",
229
- fontWeight: "var(--t3-font-weight)",
230
- boldFontWeight: "600",
231
- iconSize: "inherit"
232
- }
233
- };
234
-
235
- //#endregion
236
- export { TYPOGRAPHY_PRESETS };
237
- //# sourceMappingURL=typography.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"typography.js","names":[],"sources":["../../src/tokens/typography.ts"],"sourcesContent":["/**\n * Typography preset configuration.\n * Each preset defines font properties that get expanded into CSS custom properties.\n */\nexport interface TypographyPreset {\n fontSize: string;\n lineHeight: string;\n letterSpacing?: string;\n fontWeight: string | number;\n boldFontWeight?: string | number;\n iconSize?: string;\n textTransform?: string;\n fontFamily?: string;\n fontStyle?: string;\n}\n\n/**\n * Typography presets for headings, text, and special styles.\n *\n * Naming conventions:\n * - `h1`-`h6`: Headings (bold by default)\n * - `t1`-`t4`: Text styles (regular weight)\n * - `t1m`-`t4m`: Text styles medium weight\n * - `m1`-`m3`: Markdown/prose styles (larger line-height)\n * - `p1`-`p4`: Paragraph styles\n * - `c1`-`c2`: Caption/uppercase styles\n * - `tag`: Tag/badge typography\n * - `strong`, `em`: Inline semantic styles\n * - `default`: Base text style\n */\nexport const TYPOGRAPHY_PRESETS: Record<string, TypographyPreset> = {\n // Text (basic)\n text: {\n fontSize: '14px',\n lineHeight: '20px',\n letterSpacing: '0',\n fontWeight: '400',\n },\n\n // Headings (h1-h6)\n h1: {\n fontSize: '36px',\n lineHeight: '44px',\n letterSpacing: '-0.01em',\n fontWeight: '600',\n boldFontWeight: '700',\n iconSize: '40px',\n },\n h2: {\n fontSize: '24px',\n lineHeight: '32px',\n letterSpacing: '0em',\n fontWeight: '600',\n boldFontWeight: '700',\n iconSize: '28px',\n },\n h3: {\n fontSize: '20px',\n lineHeight: '28px',\n letterSpacing: '0em',\n fontWeight: '600',\n boldFontWeight: '700',\n iconSize: '24px',\n },\n h4: {\n fontSize: '18px',\n lineHeight: '24px',\n letterSpacing: '0',\n fontWeight: '600',\n boldFontWeight: '700',\n iconSize: '22px',\n },\n h5: {\n fontSize: '16px',\n lineHeight: '22px',\n letterSpacing: '0',\n fontWeight: '600',\n boldFontWeight: '700',\n iconSize: '20px',\n },\n h6: {\n fontSize: '14px',\n lineHeight: '20px',\n letterSpacing: '0.01em',\n fontWeight: '600',\n boldFontWeight: '700',\n iconSize: '20px',\n },\n\n // Text styles (t1-t4)\n t1: {\n fontSize: '18px',\n lineHeight: '24px',\n letterSpacing: '0',\n fontWeight: '400',\n boldFontWeight: '600',\n iconSize: '20px',\n },\n t2: {\n fontSize: '16px',\n lineHeight: '22px',\n letterSpacing: '0',\n fontWeight: '400',\n boldFontWeight: '600',\n iconSize: '20px',\n },\n t2m: {\n fontSize: '16px',\n lineHeight: '22px',\n letterSpacing: '0',\n fontWeight: '500',\n boldFontWeight: '600',\n iconSize: '20px',\n },\n t3: {\n fontSize: '14px',\n lineHeight: '20px',\n letterSpacing: '0',\n fontWeight: '400',\n boldFontWeight: '600',\n iconSize: '18px',\n },\n t3m: {\n fontSize: '14px',\n lineHeight: '20px',\n letterSpacing: '0',\n fontWeight: '500',\n boldFontWeight: '600',\n iconSize: '18px',\n },\n t4: {\n fontSize: '12px',\n lineHeight: '18px',\n letterSpacing: '0',\n fontWeight: '500',\n boldFontWeight: '600',\n iconSize: '16px',\n },\n t4m: {\n fontSize: '12px',\n lineHeight: '18px',\n letterSpacing: '0',\n fontWeight: '600',\n boldFontWeight: '700',\n iconSize: '16px',\n },\n\n // Markdown/prose styles (m1-m3)\n m1: {\n fontSize: '18px',\n lineHeight: '32px',\n letterSpacing: '0',\n fontWeight: '400',\n boldFontWeight: '600',\n iconSize: '22px',\n },\n m2: {\n fontSize: '16px',\n lineHeight: '28px',\n letterSpacing: '0',\n fontWeight: '400',\n boldFontWeight: '600',\n iconSize: '20px',\n },\n m3: {\n fontSize: '14px',\n lineHeight: '24px',\n letterSpacing: '0',\n fontWeight: '400',\n boldFontWeight: '600',\n iconSize: '20px',\n },\n\n // Paragraph styles (p1-p4)\n p1: {\n fontSize: '18px',\n lineHeight: '28px',\n letterSpacing: '0',\n fontWeight: '400',\n boldFontWeight: '600',\n iconSize: '22px',\n },\n p2: {\n fontSize: '16px',\n lineHeight: '24px',\n letterSpacing: '0',\n fontWeight: '400',\n boldFontWeight: '600',\n iconSize: '20px',\n },\n p3: {\n fontSize: '14px',\n lineHeight: '22px',\n letterSpacing: '0',\n fontWeight: '400',\n boldFontWeight: '600',\n iconSize: '18px',\n },\n p4: {\n fontSize: '12px',\n lineHeight: '20px',\n letterSpacing: '0',\n fontWeight: '500',\n boldFontWeight: '600',\n iconSize: '16px',\n },\n\n // Caption/uppercase styles (c1-c2)\n c1: {\n fontSize: '14px',\n lineHeight: '20px',\n letterSpacing: '0',\n fontWeight: '600',\n boldFontWeight: '700',\n textTransform: 'uppercase',\n iconSize: '18px',\n },\n c2: {\n fontSize: '12px',\n lineHeight: '18px',\n letterSpacing: '0.01em',\n fontWeight: '600',\n boldFontWeight: '700',\n textTransform: 'uppercase',\n iconSize: '16px',\n },\n\n // Tag typography\n tag: {\n fontSize: '12px',\n lineHeight: '18px',\n letterSpacing: '0.01em',\n fontWeight: '600',\n boldFontWeight: '700',\n iconSize: '16px',\n },\n\n // Inline semantic styles\n strong: {\n fontSize: 'inherit',\n lineHeight: 'inherit',\n letterSpacing: 'inherit',\n fontFamily: 'inherit',\n fontStyle: 'inherit',\n fontWeight: 'var(--bold-font-weight, var(--default-bold-font-weight, 600))',\n },\n em: {\n fontSize: 'inherit',\n lineHeight: 'inherit',\n letterSpacing: 'inherit',\n fontFamily: 'inherit',\n fontStyle: 'italic',\n fontWeight: 'inherit',\n },\n\n // Default text style (references t3)\n default: {\n fontSize: 'var(--t3-font-size)',\n lineHeight: 'var(--t3-line-height)',\n letterSpacing: 'var(--t3-letter-spacing)',\n fontWeight: 'var(--t3-font-weight)',\n boldFontWeight: '600',\n iconSize: 'inherit',\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;AA8BA,MAAa,qBAAuD;CAElE,MAAM;EACJ,UAAU;EACV,YAAY;EACZ,eAAe;EACf,YAAY;EACb;CAGD,IAAI;EACF,UAAU;EACV,YAAY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