@duro-app/tokens 0.1.1 → 0.3.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/dist/index.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  export { colors } from './tokens/colors.css';
2
2
  export { spacing, radii } from './tokens/spacing.css';
3
- export { typography } from './tokens/typography.css';
3
+ export { layoutSpacing } from './tokens/layout-spacing.css';
4
+ export { typography, typeScale } from './tokens/typography.css';
5
+ export { typePresets } from './tokens/type-presets.css';
4
6
  export { shadows } from './tokens/shadows.css';
5
7
  export { lightTheme, lightShadows } from './themes/light.css';
6
8
  export { highContrastTheme, highContrastShadows } from './themes/high-contrast.css';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,MAAM,EAAC,MAAM,qBAAqB,CAAA;AAC1C,OAAO,EAAC,OAAO,EAAE,KAAK,EAAC,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAC,UAAU,EAAC,MAAM,yBAAyB,CAAA;AAClD,OAAO,EAAC,OAAO,EAAC,MAAM,sBAAsB,CAAA;AAG5C,OAAO,EAAC,UAAU,EAAE,YAAY,EAAC,MAAM,oBAAoB,CAAA;AAC3D,OAAO,EAAC,iBAAiB,EAAE,mBAAmB,EAAC,MAAM,4BAA4B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,MAAM,EAAC,MAAM,qBAAqB,CAAA;AAC1C,OAAO,EAAC,OAAO,EAAE,KAAK,EAAC,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAC,aAAa,EAAC,MAAM,6BAA6B,CAAA;AACzD,OAAO,EAAC,UAAU,EAAE,SAAS,EAAC,MAAM,yBAAyB,CAAA;AAC7D,OAAO,EAAC,WAAW,EAAC,MAAM,2BAA2B,CAAA;AACrD,OAAO,EAAC,OAAO,EAAC,MAAM,sBAAsB,CAAA;AAG5C,OAAO,EAAC,UAAU,EAAE,YAAY,EAAC,MAAM,oBAAoB,CAAA;AAC3D,OAAO,EAAC,iBAAiB,EAAE,mBAAmB,EAAC,MAAM,4BAA4B,CAAA"}
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- const r = {
1
+ const e = {
2
2
  bg: "var(--bg-xqkwqtp)",
3
3
  bgCard: "var(--bgCard-xj2l5r)",
4
4
  bgCardHover: "var(--bgCardHover-xlxk7vw)",
@@ -26,22 +26,39 @@ const r = {
26
26
  infoBorder: "var(--infoBorder-xnevk3x)",
27
27
  infoText: "var(--infoText-x19pseus)",
28
28
  __varGroupHash__: "xjvd03b"
29
- }, a = {
29
+ }, t = {
30
30
  xs: "var(--xs-xxfyjsd)",
31
31
  sm: "var(--sm-xbh8y7f)",
32
+ ms: "var(--ms-x13y09zs)",
32
33
  md: "var(--md-x3pkb85)",
33
34
  lg: "var(--lg-x34mutn)",
34
35
  xl: "var(--xl-xttpygj)",
35
36
  xxl: "var(--xxl-xbe9eha)",
37
+ xxxl: "var(--xxxl-xroalp5)",
36
38
  __varGroupHash__: "x6uc9q"
37
- }, e = {
39
+ }, n = {
38
40
  sm: "var(--sm-x1bhtfs5)",
39
41
  md: "var(--md-xx2g89g)",
40
42
  lg: "var(--lg-xwd56yl)",
41
43
  full: "var(--full-x9vxdtd)",
42
44
  __varGroupHash__: "xw3ffwm"
43
- }, t = {
45
+ }, i = {
46
+ stackXs: "var(--stackXs-x1qfrfo2)",
47
+ stackSm: "var(--stackSm-x2rk1ut)",
48
+ stackMd: "var(--stackMd-xhblkt4)",
49
+ stackLg: "var(--stackLg-xeue779)",
50
+ stackXl: "var(--stackXl-x7sbbgu)",
51
+ inlineXs: "var(--inlineXs-xq4tp4f)",
52
+ inlineSm: "var(--inlineSm-x2o8bbf)",
53
+ inlineMd: "var(--inlineMd-x1oalkxi)",
54
+ inlineLg: "var(--inlineLg-xz69o43)",
55
+ containerSm: "var(--containerSm-x3nosus)",
56
+ containerMd: "var(--containerMd-x170dvin)",
57
+ containerLg: "var(--containerLg-x1n6aasq)",
58
+ __varGroupHash__: "x16nfoyr"
59
+ }, r = {
44
60
  fontFamily: "var(--fontFamily-xvrmnat)",
61
+ fontFamilyMono: "var(--fontFamilyMono-x1bzqfky)",
45
62
  fontSizeXs: "var(--fontSizeXs-x1w5m325)",
46
63
  fontSizeSm: "var(--fontSizeSm-x1bjjs4u)",
47
64
  fontSizeMd: "var(--fontSizeMd-xq8d99q)",
@@ -54,33 +71,176 @@ const r = {
54
71
  fontWeightBold: "var(--fontWeightBold-x1pjkvwg)",
55
72
  lineHeight: "var(--lineHeight-x1gubzd5)",
56
73
  __varGroupHash__: "xs62swl"
57
- }, x = {
74
+ }, a = {
75
+ fontSize1: "var(--fontSize1-xx27tux)",
76
+ fontSize2: "var(--fontSize2-x5hag8h)",
77
+ fontSize3: "var(--fontSize3-x1mf6j39)",
78
+ fontSize4: "var(--fontSize4-xh0hch2)",
79
+ fontSize5: "var(--fontSize5-xcllv62)",
80
+ fontSize6: "var(--fontSize6-xo5veds)",
81
+ fontSize7: "var(--fontSize7-x1j85tz8)",
82
+ fontSize8: "var(--fontSize8-x17zhits)",
83
+ fontSize9: "var(--fontSize9-xveysf7)",
84
+ lineHeight1: "var(--lineHeight1-x17o1wol)",
85
+ lineHeight2: "var(--lineHeight2-xinpx5n)",
86
+ lineHeight3: "var(--lineHeight3-x1163vpm)",
87
+ lineHeight4: "var(--lineHeight4-x1y0jdbp)",
88
+ lineHeight5: "var(--lineHeight5-xjln4cz)",
89
+ lineHeight6: "var(--lineHeight6-x1h1b5wo)",
90
+ lineHeight7: "var(--lineHeight7-xx3gx0p)",
91
+ lineHeight8: "var(--lineHeight8-xk1f09j)",
92
+ lineHeight9: "var(--lineHeight9-xshcxhh)",
93
+ displaySm: "var(--displaySm-x5inqzv)",
94
+ displayMd: "var(--displayMd-x1oektom)",
95
+ displayLg: "var(--displayLg-x6qsr1u)",
96
+ letterSpacingTight: "var(--letterSpacingTight-xmavxfk)",
97
+ letterSpacingNormal: "var(--letterSpacingNormal-x1ih41v1)",
98
+ letterSpacingWide: "var(--letterSpacingWide-xt8z9rj)",
99
+ __varGroupHash__: "x4cj49w"
100
+ }, o = {
101
+ bodySm: {
102
+ "fontFamily-kMv6JI": "fontFamily-xce2pww",
103
+ "fontSize-kGuDYH": "fontSize-x1hn3ytp",
104
+ "lineHeight-kLWn49": "lineHeight-xzs5d81",
105
+ "fontWeight-k63SB2": "fontWeight-xrec02b",
106
+ "letterSpacing-kb6lSQ": "letterSpacing-x2e73ve",
107
+ $$css: "tokens/type-presets.css.ts:6"
108
+ },
109
+ bodyMd: {
110
+ "fontFamily-kMv6JI": "fontFamily-xce2pww",
111
+ "fontSize-kGuDYH": "fontSize-xfzcsg9",
112
+ "lineHeight-kLWn49": "lineHeight-x80sjjd",
113
+ "fontWeight-k63SB2": "fontWeight-xrec02b",
114
+ "letterSpacing-kb6lSQ": "letterSpacing-x2e73ve",
115
+ $$css: "tokens/type-presets.css.ts:13"
116
+ },
117
+ bodyLg: {
118
+ "fontFamily-kMv6JI": "fontFamily-xce2pww",
119
+ "fontSize-kGuDYH": "fontSize-x1kws70c",
120
+ "lineHeight-kLWn49": "lineHeight-x1487en2",
121
+ "fontWeight-k63SB2": "fontWeight-xrec02b",
122
+ "letterSpacing-kb6lSQ": "letterSpacing-x2e73ve",
123
+ $$css: "tokens/type-presets.css.ts:20"
124
+ },
125
+ caption: {
126
+ "fontFamily-kMv6JI": "fontFamily-xce2pww",
127
+ "fontSize-kGuDYH": "fontSize-x19zw8p8",
128
+ "lineHeight-kLWn49": "lineHeight-xsnwo96",
129
+ "fontWeight-k63SB2": "fontWeight-xrec02b",
130
+ "letterSpacing-kb6lSQ": "letterSpacing-x121swot",
131
+ $$css: "tokens/type-presets.css.ts:29"
132
+ },
133
+ label: {
134
+ "fontFamily-kMv6JI": "fontFamily-xce2pww",
135
+ "fontSize-kGuDYH": "fontSize-x1hn3ytp",
136
+ "lineHeight-kLWn49": "lineHeight-xzs5d81",
137
+ "fontWeight-k63SB2": "fontWeight-x120ksxs",
138
+ "letterSpacing-kb6lSQ": "letterSpacing-x2e73ve",
139
+ $$css: "tokens/type-presets.css.ts:36"
140
+ },
141
+ code: {
142
+ "fontFamily-kMv6JI": "fontFamily-x1kygxdj",
143
+ "fontSize-kGuDYH": "fontSize-x1hn3ytp",
144
+ "lineHeight-kLWn49": "lineHeight-xzs5d81",
145
+ "fontWeight-k63SB2": "fontWeight-xrec02b",
146
+ "letterSpacing-kb6lSQ": "letterSpacing-x2e73ve",
147
+ $$css: "tokens/type-presets.css.ts:43"
148
+ },
149
+ overline: {
150
+ "fontFamily-kMv6JI": "fontFamily-xce2pww",
151
+ "fontSize-kGuDYH": "fontSize-x19zw8p8",
152
+ "lineHeight-kLWn49": "lineHeight-xsnwo96",
153
+ "fontWeight-k63SB2": "fontWeight-x1x12jc5",
154
+ "letterSpacing-kb6lSQ": "letterSpacing-x121swot",
155
+ "textTransform-kP9fke": "textTransform-xtvhhri",
156
+ $$css: "tokens/type-presets.css.ts:50"
157
+ },
158
+ headingSm: {
159
+ "fontFamily-kMv6JI": "fontFamily-xce2pww",
160
+ "fontSize-kGuDYH": "fontSize-xtv95mj",
161
+ "lineHeight-kLWn49": "lineHeight-xyb71hx",
162
+ "fontWeight-k63SB2": "fontWeight-x1x12jc5",
163
+ "letterSpacing-kb6lSQ": "letterSpacing-xql2p2a",
164
+ $$css: "tokens/type-presets.css.ts:60"
165
+ },
166
+ headingMd: {
167
+ "fontFamily-kMv6JI": "fontFamily-xce2pww",
168
+ "fontSize-kGuDYH": "fontSize-x1qndi8g",
169
+ "lineHeight-kLWn49": "lineHeight-x17ovj3u",
170
+ "fontWeight-k63SB2": "fontWeight-x1x12jc5",
171
+ "letterSpacing-kb6lSQ": "letterSpacing-xql2p2a",
172
+ $$css: "tokens/type-presets.css.ts:67"
173
+ },
174
+ headingLg: {
175
+ "fontFamily-kMv6JI": "fontFamily-xce2pww",
176
+ "fontSize-kGuDYH": "fontSize-xo0rcgw",
177
+ "lineHeight-kLWn49": "lineHeight-x18micsl",
178
+ "fontWeight-k63SB2": "fontWeight-xhkckuk",
179
+ "letterSpacing-kb6lSQ": "letterSpacing-xql2p2a",
180
+ $$css: "tokens/type-presets.css.ts:74"
181
+ },
182
+ headingXl: {
183
+ "fontFamily-kMv6JI": "fontFamily-xce2pww",
184
+ "fontSize-kGuDYH": "fontSize-x6ugw34",
185
+ "lineHeight-kLWn49": "lineHeight-x1f79cfb",
186
+ "fontWeight-k63SB2": "fontWeight-xhkckuk",
187
+ "letterSpacing-kb6lSQ": "letterSpacing-xql2p2a",
188
+ $$css: "tokens/type-presets.css.ts:81"
189
+ },
190
+ displaySm: {
191
+ "fontFamily-kMv6JI": "fontFamily-xce2pww",
192
+ "fontSize-kGuDYH": "fontSize-x1lwaixd",
193
+ "lineHeight-kLWn49": "lineHeight-x1u7k74",
194
+ "fontWeight-k63SB2": "fontWeight-xhkckuk",
195
+ "letterSpacing-kb6lSQ": "letterSpacing-xql2p2a",
196
+ $$css: "tokens/type-presets.css.ts:90"
197
+ },
198
+ displayMd: {
199
+ "fontFamily-kMv6JI": "fontFamily-xce2pww",
200
+ "fontSize-kGuDYH": "fontSize-xrqn33v",
201
+ "lineHeight-kLWn49": "lineHeight-x1uo3zyz",
202
+ "fontWeight-k63SB2": "fontWeight-xhkckuk",
203
+ "letterSpacing-kb6lSQ": "letterSpacing-xql2p2a",
204
+ $$css: "tokens/type-presets.css.ts:97"
205
+ },
206
+ displayLg: {
207
+ "fontFamily-kMv6JI": "fontFamily-xce2pww",
208
+ "fontSize-kGuDYH": "fontSize-x1s08cw3",
209
+ "lineHeight-kLWn49": "lineHeight-x1159mfc",
210
+ "fontWeight-k63SB2": "fontWeight-xhkckuk",
211
+ "letterSpacing-kb6lSQ": "letterSpacing-xql2p2a",
212
+ $$css: "tokens/type-presets.css.ts:104"
213
+ }
214
+ }, s = {
58
215
  sm: "var(--sm-x17hhtln)",
59
216
  md: "var(--md-x1oyt0aw)",
60
217
  lg: "var(--lg-x1mxd62i)",
61
218
  __varGroupHash__: "x13v825q"
62
- }, o = {
219
+ }, x = {
63
220
  xjvd03b: "x18itf25 xjvd03b",
64
221
  $$css: !0
65
- }, v = {
222
+ }, l = {
66
223
  x13v825q: "xv9ibj0 x13v825q",
67
224
  $$css: !0
68
- }, n = {
225
+ }, g = {
69
226
  xjvd03b: "x1qgt5a2 xjvd03b",
70
227
  $$css: !0
71
- }, s = {
228
+ }, c = {
72
229
  x13v825q: "x15e39jv x13v825q",
73
230
  $$css: !0
74
231
  };
75
232
  export {
76
- r as colors,
77
- s as highContrastShadows,
78
- n as highContrastTheme,
79
- v as lightShadows,
80
- o as lightTheme,
81
- e as radii,
82
- x as shadows,
83
- a as spacing,
84
- t as typography
233
+ e as colors,
234
+ c as highContrastShadows,
235
+ g as highContrastTheme,
236
+ i as layoutSpacing,
237
+ l as lightShadows,
238
+ x as lightTheme,
239
+ n as radii,
240
+ s as shadows,
241
+ t as spacing,
242
+ o as typePresets,
243
+ a as typeScale,
244
+ r as typography
85
245
  };
86
246
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/tokens/colors.css.ts","../src/tokens/spacing.css.ts","../src/tokens/typography.css.ts","../src/tokens/shadows.css.ts","../src/themes/light.css.ts","../src/themes/high-contrast.css.ts"],"sourcesContent":["import {css} from 'react-strict-dom'\n\nexport const colors = css.defineVars({\n // Backgrounds\n bg: '#0f0f0f',\n bgCard: '#1a1a1a',\n bgCardHover: '#242424',\n\n // Text\n text: '#e5e5e5',\n textMuted: '#b0b0b0',\n\n // Accent\n accent: '#6aaffc',\n accentHover: '#93c5fd',\n accentContrast: '#000000',\n\n // Border\n border: '#333333',\n\n // Semantic — Error\n error: '#f87171',\n errorHover: '#fca5a5',\n errorBg: 'rgba(248, 113, 113, 0.1)',\n errorBorder: 'rgba(248, 113, 113, 0.3)',\n errorText: '#fca5a5',\n errorContrast: '#000000',\n\n // Semantic — Success\n success: '#22c55e',\n successBg: 'rgba(34, 197, 94, 0.1)',\n successBorder: 'rgba(34, 197, 94, 0.3)',\n successText: '#86efac',\n\n // Semantic — Warning\n warning: '#fbbf24',\n warningBg: 'rgba(251, 191, 36, 0.1)',\n warningBorder: 'rgba(251, 191, 36, 0.3)',\n warningText: '#fde68a',\n\n // Semantic — Info (uses accent)\n infoBg: 'rgba(106, 175, 252, 0.1)',\n infoBorder: 'rgba(106, 175, 252, 0.3)',\n infoText: '#93c5fd',\n})\n","import {css} from 'react-strict-dom'\n\nexport const spacing = css.defineVars({\n xs: '4px',\n sm: '8px',\n md: '16px',\n lg: '24px',\n xl: '32px',\n xxl: '48px',\n})\n\nexport const radii = css.defineVars({\n sm: '8px',\n md: '12px',\n lg: '16px',\n full: '9999px',\n})\n","import {css} from 'react-strict-dom'\n\nexport const typography = css.defineVars({\n fontFamily:\n '-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif',\n fontSizeXs: '0.75rem',\n fontSizeSm: '0.875rem',\n fontSizeMd: '1rem',\n fontSizeLg: '1.1rem',\n fontSizeXl: '1.25rem',\n fontSizeHeading: '1.5rem',\n fontWeightNormal: '400',\n fontWeightMedium: '500',\n fontWeightSemibold: '600',\n fontWeightBold: '700',\n lineHeight: '1.5',\n})\n","import {css} from 'react-strict-dom'\n\nexport const shadows = css.defineVars({\n sm: '0 2px 4px rgba(0, 0, 0, 0.3)',\n md: '0 4px 12px rgba(0, 0, 0, 0.4)',\n lg: '0 8px 24px rgba(0, 0, 0, 0.5)',\n})\n","import {css} from 'react-strict-dom'\nimport {colors} from '../tokens/colors.css'\nimport {shadows} from '../tokens/shadows.css'\n\nexport const lightTheme = css.createTheme(colors, {\n bg: '#ffffff',\n bgCard: '#f5f5f5',\n bgCardHover: '#ebebeb',\n text: '#1a1a1a',\n textMuted: '#4a4a4a',\n accent: '#1e40af',\n accentHover: '#1a3799',\n accentContrast: '#ffffff',\n border: '#d4d4d4',\n error: '#991b1b',\n errorHover: '#7f1d1d',\n errorBg: 'rgba(153, 27, 27, 0.08)',\n errorBorder: 'rgba(153, 27, 27, 0.3)',\n errorText: '#7f1d1d',\n errorContrast: '#ffffff',\n success: '#166534',\n successBg: 'rgba(22, 101, 52, 0.08)',\n successBorder: 'rgba(22, 101, 52, 0.3)',\n successText: '#14532d',\n warning: '#92400e',\n warningBg: 'rgba(146, 64, 14, 0.08)',\n warningBorder: 'rgba(146, 64, 14, 0.3)',\n warningText: '#78350f',\n infoBg: 'rgba(30, 64, 175, 0.08)',\n infoBorder: 'rgba(30, 64, 175, 0.3)',\n infoText: '#1e40af',\n})\n\nexport const lightShadows = css.createTheme(shadows, {\n sm: '0 2px 4px rgba(0, 0, 0, 0.08)',\n md: '0 4px 12px rgba(0, 0, 0, 0.12)',\n lg: '0 8px 24px rgba(0, 0, 0, 0.16)',\n})\n","import {css} from 'react-strict-dom'\nimport {colors} from '../tokens/colors.css'\nimport {shadows} from '../tokens/shadows.css'\n\nexport const highContrastTheme = css.createTheme(colors, {\n bg: '#000000',\n bgCard: '#111111',\n bgCardHover: '#1a1a1a',\n text: '#ffffff',\n textMuted: '#b0b0b0',\n accent: '#60a5fa',\n accentHover: '#93c5fd',\n accentContrast: '#000000',\n border: '#555555',\n error: '#f87171',\n errorHover: '#fca5a5',\n errorBg: 'rgba(248, 113, 113, 0.15)',\n errorBorder: 'rgba(248, 113, 113, 0.5)',\n errorText: '#fca5a5',\n errorContrast: '#000000',\n success: '#4ade80',\n successBg: 'rgba(74, 222, 128, 0.15)',\n successBorder: 'rgba(74, 222, 128, 0.5)',\n successText: '#86efac',\n warning: '#fcd34d',\n warningBg: 'rgba(252, 211, 77, 0.15)',\n warningBorder: 'rgba(252, 211, 77, 0.5)',\n warningText: '#fef08a',\n infoBg: 'rgba(96, 165, 250, 0.15)',\n infoBorder: 'rgba(96, 165, 250, 0.5)',\n infoText: '#bfdbfe',\n})\n\nexport const highContrastShadows = css.createTheme(shadows, {\n sm: '0 2px 4px rgba(0, 0, 0, 0.6)',\n md: '0 4px 12px rgba(0, 0, 0, 0.7)',\n lg: '0 8px 24px rgba(0, 0, 0, 0.8)',\n})\n"],"names":["colors","spacing","radii","typography","shadows","lightTheme","lightShadows","highContrastTheme","highContrastShadows"],"mappings":"AAEO,MAAMA,IAAS;AAAA,EACpB,IAAI;AAAA,EACJ,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,MAAM;AAAA,EACN,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,gBAAgB;AAAA,EAChB,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,aAAa;AAAA,EACb,WAAW;AAAA,EACX,eAAe;AAAA,EACf,SAAS;AAAA,EACT,WAAW;AAAA,EACX,eAAe;AAAA,EACf,aAAa;AAAA,EACb,SAAS;AAAA,EACT,WAAW;AAAA,EACX,eAAe;AAAA,EACf,aAAa;AAAA,EACb,QAAQ;AAAA,EACR,YAAY;AAAA,EACZ,UAAU;AAAA,EACV,kBAAkB;AACpB,GC5BaC,IAAU;AAAA,EACrB,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,KAAK;AAAA,EACL,kBAAkB;AACpB,GACaC,IAAQ;AAAA,EACnB,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,kBAAkB;AACpB,GCfaC,IAAa;AAAA,EACxB,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,iBAAiB;AAAA,EACjB,kBAAkB;AAAA,EAClB,kBAAkB;AAAA,EAClB,oBAAoB;AAAA,EACpB,gBAAgB;AAAA,EAChB,YAAY;AAAA,EACZ,kBAAkB;AACpB,GCdaC,IAAU;AAAA,EACrB,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,kBAAkB;AACpB,GCHaC,IAAa;AAAA,EACxB,SAAS;AAAA,EACT,OAAO;AACT,GACaC,IAAe;AAAA,EAC1B,UAAU;AAAA,EACV,OAAO;AACT,GCPaC,IAAoB;AAAA,EAC/B,SAAS;AAAA,EACT,OAAO;AACT,GACaC,IAAsB;AAAA,EACjC,UAAU;AAAA,EACV,OAAO;AACT;"}
1
+ {"version":3,"file":"index.js","sources":["../src/tokens/colors.css.ts","../src/tokens/spacing.css.ts","../src/tokens/layout-spacing.css.ts","../src/tokens/typography.css.ts","../src/tokens/type-presets.css.ts","../src/tokens/shadows.css.ts","../src/themes/light.css.ts","../src/themes/high-contrast.css.ts"],"sourcesContent":["import {css} from 'react-strict-dom'\n\nexport const colors = css.defineVars({\n // Backgrounds\n bg: '#0f0f0f',\n bgCard: '#1a1a1a',\n bgCardHover: '#242424',\n\n // Text\n text: '#e5e5e5',\n textMuted: '#b0b0b0',\n\n // Accent\n accent: '#6aaffc',\n accentHover: '#93c5fd',\n accentContrast: '#000000',\n\n // Border\n border: '#333333',\n\n // Semantic — Error\n error: '#f87171',\n errorHover: '#fca5a5',\n errorBg: 'rgba(248, 113, 113, 0.1)',\n errorBorder: 'rgba(248, 113, 113, 0.3)',\n errorText: '#fca5a5',\n errorContrast: '#000000',\n\n // Semantic — Success\n success: '#22c55e',\n successBg: 'rgba(34, 197, 94, 0.1)',\n successBorder: 'rgba(34, 197, 94, 0.3)',\n successText: '#86efac',\n\n // Semantic — Warning\n warning: '#fbbf24',\n warningBg: 'rgba(251, 191, 36, 0.1)',\n warningBorder: 'rgba(251, 191, 36, 0.3)',\n warningText: '#fde68a',\n\n // Semantic — Info (uses accent)\n infoBg: 'rgba(106, 175, 252, 0.1)',\n infoBorder: 'rgba(106, 175, 252, 0.3)',\n infoText: '#93c5fd',\n})\n","import {css} from 'react-strict-dom'\n\nexport const spacing = css.defineVars({\n xs: '4px',\n sm: '8px',\n ms: '12px',\n md: '16px',\n lg: '24px',\n xl: '32px',\n xxl: '48px',\n xxxl: '64px',\n})\n\nexport const radii = css.defineVars({\n sm: '8px',\n md: '12px',\n lg: '16px',\n full: '9999px',\n})\n","import {css} from 'react-strict-dom'\n\nexport const layoutSpacing = css.defineVars({\n // Vertical rhythm (stack gaps)\n stackXs: '4px',\n stackSm: '8px',\n stackMd: '16px',\n stackLg: '24px',\n stackXl: '48px',\n\n // Horizontal rhythm (inline gaps)\n inlineXs: '4px',\n inlineSm: '8px',\n inlineMd: '16px',\n inlineLg: '24px',\n\n // Container insets\n containerSm: '16px',\n containerMd: '24px',\n containerLg: '32px',\n})\n","import {css} from 'react-strict-dom'\n\nexport const typography = css.defineVars({\n fontFamily:\n '-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif',\n fontFamilyMono:\n '\"SF Mono\", \"Fira Code\", \"Fira Mono\", \"Roboto Mono\", \"Courier New\", monospace',\n fontSizeXs: '0.75rem',\n fontSizeSm: '0.875rem',\n fontSizeMd: '1rem',\n fontSizeLg: '1.125rem',\n fontSizeXl: '1.25rem',\n fontSizeHeading: '1.5rem',\n fontWeightNormal: '400',\n fontWeightMedium: '500',\n fontWeightSemibold: '600',\n fontWeightBold: '700',\n lineHeight: '1.5',\n})\n\nexport const typeScale = css.defineVars({\n // 9-step font size scale\n fontSize1: '0.75rem', // 12px — captions, badges\n fontSize2: '0.8125rem', // 13px — small UI\n fontSize3: '0.875rem', // 14px — default UI (buttons, inputs)\n fontSize4: '1rem', // 16px — body text\n fontSize5: '1.125rem', // 18px — body-lg\n fontSize6: '1.25rem', // 20px — subheading\n fontSize7: '1.5rem', // 24px — heading-sm\n fontSize8: '1.875rem', // 30px — heading-md\n fontSize9: '2.25rem', // 36px — heading-lg\n\n // Matched line-heights\n lineHeight1: '1rem', // 16px\n lineHeight2: '1.25rem', // 20px\n lineHeight3: '1.25rem', // 20px\n lineHeight4: '1.5rem', // 24px\n lineHeight5: '1.5rem', // 24px\n lineHeight6: '1.75rem', // 28px\n lineHeight7: '2rem', // 32px\n lineHeight8: '2.25rem', // 36px\n lineHeight9: '2.75rem', // 44px\n\n // Fluid display sizes\n displaySm: 'clamp(2.25rem, 1.5rem + 2vw, 3rem)', // 36–48px\n displayMd: 'clamp(2.75rem, 1.75rem + 2.5vw, 3.75rem)', // 44–60px\n displayLg: 'clamp(3.5rem, 2rem + 3.5vw, 4.5rem)', // 56–72px\n\n // Letter-spacing\n letterSpacingTight: '-0.02em',\n letterSpacingNormal: '0',\n letterSpacingWide: '0.04em',\n})\n","import {css} from 'react-strict-dom'\nimport {typography, typeScale} from './typography.css'\n\nexport const typePresets = css.create({\n // Body\n bodySm: {\n fontFamily: typography.fontFamily,\n fontSize: typeScale.fontSize3,\n lineHeight: typeScale.lineHeight3,\n fontWeight: typography.fontWeightNormal,\n letterSpacing: typeScale.letterSpacingNormal,\n },\n bodyMd: {\n fontFamily: typography.fontFamily,\n fontSize: typeScale.fontSize4,\n lineHeight: typeScale.lineHeight4,\n fontWeight: typography.fontWeightNormal,\n letterSpacing: typeScale.letterSpacingNormal,\n },\n bodyLg: {\n fontFamily: typography.fontFamily,\n fontSize: typeScale.fontSize5,\n lineHeight: typeScale.lineHeight5,\n fontWeight: typography.fontWeightNormal,\n letterSpacing: typeScale.letterSpacingNormal,\n },\n\n // UI\n caption: {\n fontFamily: typography.fontFamily,\n fontSize: typeScale.fontSize1,\n lineHeight: typeScale.lineHeight1,\n fontWeight: typography.fontWeightNormal,\n letterSpacing: typeScale.letterSpacingWide,\n },\n label: {\n fontFamily: typography.fontFamily,\n fontSize: typeScale.fontSize3,\n lineHeight: typeScale.lineHeight3,\n fontWeight: typography.fontWeightMedium,\n letterSpacing: typeScale.letterSpacingNormal,\n },\n code: {\n fontFamily: typography.fontFamilyMono,\n fontSize: typeScale.fontSize3,\n lineHeight: typeScale.lineHeight3,\n fontWeight: typography.fontWeightNormal,\n letterSpacing: typeScale.letterSpacingNormal,\n },\n overline: {\n fontFamily: typography.fontFamily,\n fontSize: typeScale.fontSize1,\n lineHeight: typeScale.lineHeight1,\n fontWeight: typography.fontWeightSemibold,\n letterSpacing: typeScale.letterSpacingWide,\n textTransform: 'uppercase' as const,\n },\n\n // Heading\n headingSm: {\n fontFamily: typography.fontFamily,\n fontSize: typeScale.fontSize6,\n lineHeight: typeScale.lineHeight6,\n fontWeight: typography.fontWeightSemibold,\n letterSpacing: typeScale.letterSpacingTight,\n },\n headingMd: {\n fontFamily: typography.fontFamily,\n fontSize: typeScale.fontSize7,\n lineHeight: typeScale.lineHeight7,\n fontWeight: typography.fontWeightSemibold,\n letterSpacing: typeScale.letterSpacingTight,\n },\n headingLg: {\n fontFamily: typography.fontFamily,\n fontSize: typeScale.fontSize8,\n lineHeight: typeScale.lineHeight8,\n fontWeight: typography.fontWeightBold,\n letterSpacing: typeScale.letterSpacingTight,\n },\n headingXl: {\n fontFamily: typography.fontFamily,\n fontSize: typeScale.fontSize9,\n lineHeight: typeScale.lineHeight9,\n fontWeight: typography.fontWeightBold,\n letterSpacing: typeScale.letterSpacingTight,\n },\n\n // Display (fluid)\n displaySm: {\n fontFamily: typography.fontFamily,\n fontSize: typeScale.displaySm,\n lineHeight: 1.2,\n fontWeight: typography.fontWeightBold,\n letterSpacing: typeScale.letterSpacingTight,\n },\n displayMd: {\n fontFamily: typography.fontFamily,\n fontSize: typeScale.displayMd,\n lineHeight: 1.15,\n fontWeight: typography.fontWeightBold,\n letterSpacing: typeScale.letterSpacingTight,\n },\n displayLg: {\n fontFamily: typography.fontFamily,\n fontSize: typeScale.displayLg,\n lineHeight: 1.1,\n fontWeight: typography.fontWeightBold,\n letterSpacing: typeScale.letterSpacingTight,\n },\n})\n","import {css} from 'react-strict-dom'\n\nexport const shadows = css.defineVars({\n sm: '0 2px 4px rgba(0, 0, 0, 0.3)',\n md: '0 4px 12px rgba(0, 0, 0, 0.4)',\n lg: '0 8px 24px rgba(0, 0, 0, 0.5)',\n})\n","import {css} from 'react-strict-dom'\nimport {colors} from '../tokens/colors.css'\nimport {shadows} from '../tokens/shadows.css'\n\nexport const lightTheme = css.createTheme(colors, {\n bg: '#ffffff',\n bgCard: '#f5f5f5',\n bgCardHover: '#ebebeb',\n text: '#1a1a1a',\n textMuted: '#4a4a4a',\n accent: '#1e40af',\n accentHover: '#1a3799',\n accentContrast: '#ffffff',\n border: '#d4d4d4',\n error: '#991b1b',\n errorHover: '#7f1d1d',\n errorBg: 'rgba(153, 27, 27, 0.08)',\n errorBorder: 'rgba(153, 27, 27, 0.3)',\n errorText: '#7f1d1d',\n errorContrast: '#ffffff',\n success: '#166534',\n successBg: 'rgba(22, 101, 52, 0.08)',\n successBorder: 'rgba(22, 101, 52, 0.3)',\n successText: '#14532d',\n warning: '#92400e',\n warningBg: 'rgba(146, 64, 14, 0.08)',\n warningBorder: 'rgba(146, 64, 14, 0.3)',\n warningText: '#78350f',\n infoBg: 'rgba(30, 64, 175, 0.08)',\n infoBorder: 'rgba(30, 64, 175, 0.3)',\n infoText: '#1e40af',\n})\n\nexport const lightShadows = css.createTheme(shadows, {\n sm: '0 2px 4px rgba(0, 0, 0, 0.08)',\n md: '0 4px 12px rgba(0, 0, 0, 0.12)',\n lg: '0 8px 24px rgba(0, 0, 0, 0.16)',\n})\n","import {css} from 'react-strict-dom'\nimport {colors} from '../tokens/colors.css'\nimport {shadows} from '../tokens/shadows.css'\n\nexport const highContrastTheme = css.createTheme(colors, {\n bg: '#000000',\n bgCard: '#111111',\n bgCardHover: '#1a1a1a',\n text: '#ffffff',\n textMuted: '#b0b0b0',\n accent: '#60a5fa',\n accentHover: '#93c5fd',\n accentContrast: '#000000',\n border: '#555555',\n error: '#f87171',\n errorHover: '#fca5a5',\n errorBg: 'rgba(248, 113, 113, 0.15)',\n errorBorder: 'rgba(248, 113, 113, 0.5)',\n errorText: '#fca5a5',\n errorContrast: '#000000',\n success: '#4ade80',\n successBg: 'rgba(74, 222, 128, 0.15)',\n successBorder: 'rgba(74, 222, 128, 0.5)',\n successText: '#86efac',\n warning: '#fcd34d',\n warningBg: 'rgba(252, 211, 77, 0.15)',\n warningBorder: 'rgba(252, 211, 77, 0.5)',\n warningText: '#fef08a',\n infoBg: 'rgba(96, 165, 250, 0.15)',\n infoBorder: 'rgba(96, 165, 250, 0.5)',\n infoText: '#bfdbfe',\n})\n\nexport const highContrastShadows = css.createTheme(shadows, {\n sm: '0 2px 4px rgba(0, 0, 0, 0.6)',\n md: '0 4px 12px rgba(0, 0, 0, 0.7)',\n lg: '0 8px 24px rgba(0, 0, 0, 0.8)',\n})\n"],"names":["colors","spacing","radii","layoutSpacing","typography","typeScale","typePresets","shadows","lightTheme","lightShadows","highContrastTheme","highContrastShadows"],"mappings":"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"}
@@ -0,0 +1,16 @@
1
+ import { css } from 'react-strict-dom';
2
+ export declare const layoutSpacing: css.VarGroup<Readonly<{
3
+ stackXs: string;
4
+ stackSm: string;
5
+ stackMd: string;
6
+ stackLg: string;
7
+ stackXl: string;
8
+ inlineXs: string;
9
+ inlineSm: string;
10
+ inlineMd: string;
11
+ inlineLg: string;
12
+ containerSm: string;
13
+ containerMd: string;
14
+ containerLg: string;
15
+ }>, symbol>;
16
+ //# sourceMappingURL=layout-spacing.css.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout-spacing.css.d.ts","sourceRoot":"","sources":["../../src/tokens/layout-spacing.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAEpC,eAAO,MAAM,aAAa;;;;;;;;;;;;;WAkBxB,CAAA"}
@@ -2,10 +2,12 @@ import { css } from 'react-strict-dom';
2
2
  export declare const spacing: css.VarGroup<Readonly<{
3
3
  xs: string;
4
4
  sm: string;
5
+ ms: string;
5
6
  md: string;
6
7
  lg: string;
7
8
  xl: string;
8
9
  xxl: string;
10
+ xxxl: string;
9
11
  }>, symbol>;
10
12
  export declare const radii: css.VarGroup<Readonly<{
11
13
  sm: string;
@@ -1 +1 @@
1
- {"version":3,"file":"spacing.css.d.ts","sourceRoot":"","sources":["../../src/tokens/spacing.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAEpC,eAAO,MAAM,OAAO;;;;;;;WAOlB,CAAA;AAEF,eAAO,MAAM,KAAK;;;;;WAKhB,CAAA"}
1
+ {"version":3,"file":"spacing.css.d.ts","sourceRoot":"","sources":["../../src/tokens/spacing.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAEpC,eAAO,MAAM,OAAO;;;;;;;;;WASlB,CAAA;AAEF,eAAO,MAAM,KAAK;;;;;WAKhB,CAAA"}
@@ -0,0 +1,103 @@
1
+ import { css } from 'react-strict-dom';
2
+ export declare const typePresets: Readonly<{
3
+ readonly bodySm: Readonly<{
4
+ readonly fontFamily: css.StyleXClassNameFor<"fontFamily", string>;
5
+ readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
6
+ readonly lineHeight: css.StyleXClassNameFor<"lineHeight", string>;
7
+ readonly fontWeight: css.StyleXClassNameFor<"fontWeight", string>;
8
+ readonly letterSpacing: css.StyleXClassNameFor<"letterSpacing", string>;
9
+ }>;
10
+ readonly bodyMd: Readonly<{
11
+ readonly fontFamily: css.StyleXClassNameFor<"fontFamily", string>;
12
+ readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
13
+ readonly lineHeight: css.StyleXClassNameFor<"lineHeight", string>;
14
+ readonly fontWeight: css.StyleXClassNameFor<"fontWeight", string>;
15
+ readonly letterSpacing: css.StyleXClassNameFor<"letterSpacing", string>;
16
+ }>;
17
+ readonly bodyLg: Readonly<{
18
+ readonly fontFamily: css.StyleXClassNameFor<"fontFamily", string>;
19
+ readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
20
+ readonly lineHeight: css.StyleXClassNameFor<"lineHeight", string>;
21
+ readonly fontWeight: css.StyleXClassNameFor<"fontWeight", string>;
22
+ readonly letterSpacing: css.StyleXClassNameFor<"letterSpacing", string>;
23
+ }>;
24
+ readonly caption: Readonly<{
25
+ readonly fontFamily: css.StyleXClassNameFor<"fontFamily", string>;
26
+ readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
27
+ readonly lineHeight: css.StyleXClassNameFor<"lineHeight", string>;
28
+ readonly fontWeight: css.StyleXClassNameFor<"fontWeight", string>;
29
+ readonly letterSpacing: css.StyleXClassNameFor<"letterSpacing", string>;
30
+ }>;
31
+ readonly label: Readonly<{
32
+ readonly fontFamily: css.StyleXClassNameFor<"fontFamily", string>;
33
+ readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
34
+ readonly lineHeight: css.StyleXClassNameFor<"lineHeight", string>;
35
+ readonly fontWeight: css.StyleXClassNameFor<"fontWeight", string>;
36
+ readonly letterSpacing: css.StyleXClassNameFor<"letterSpacing", string>;
37
+ }>;
38
+ readonly code: Readonly<{
39
+ readonly fontFamily: css.StyleXClassNameFor<"fontFamily", string>;
40
+ readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
41
+ readonly lineHeight: css.StyleXClassNameFor<"lineHeight", string>;
42
+ readonly fontWeight: css.StyleXClassNameFor<"fontWeight", string>;
43
+ readonly letterSpacing: css.StyleXClassNameFor<"letterSpacing", string>;
44
+ }>;
45
+ readonly overline: Readonly<{
46
+ readonly fontFamily: css.StyleXClassNameFor<"fontFamily", string>;
47
+ readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
48
+ readonly lineHeight: css.StyleXClassNameFor<"lineHeight", string>;
49
+ readonly fontWeight: css.StyleXClassNameFor<"fontWeight", string>;
50
+ readonly letterSpacing: css.StyleXClassNameFor<"letterSpacing", string>;
51
+ readonly textTransform: css.StyleXClassNameFor<"textTransform", "uppercase">;
52
+ }>;
53
+ readonly headingSm: Readonly<{
54
+ readonly fontFamily: css.StyleXClassNameFor<"fontFamily", string>;
55
+ readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
56
+ readonly lineHeight: css.StyleXClassNameFor<"lineHeight", string>;
57
+ readonly fontWeight: css.StyleXClassNameFor<"fontWeight", string>;
58
+ readonly letterSpacing: css.StyleXClassNameFor<"letterSpacing", string>;
59
+ }>;
60
+ readonly headingMd: Readonly<{
61
+ readonly fontFamily: css.StyleXClassNameFor<"fontFamily", string>;
62
+ readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
63
+ readonly lineHeight: css.StyleXClassNameFor<"lineHeight", string>;
64
+ readonly fontWeight: css.StyleXClassNameFor<"fontWeight", string>;
65
+ readonly letterSpacing: css.StyleXClassNameFor<"letterSpacing", string>;
66
+ }>;
67
+ readonly headingLg: Readonly<{
68
+ readonly fontFamily: css.StyleXClassNameFor<"fontFamily", string>;
69
+ readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
70
+ readonly lineHeight: css.StyleXClassNameFor<"lineHeight", string>;
71
+ readonly fontWeight: css.StyleXClassNameFor<"fontWeight", string>;
72
+ readonly letterSpacing: css.StyleXClassNameFor<"letterSpacing", string>;
73
+ }>;
74
+ readonly headingXl: Readonly<{
75
+ readonly fontFamily: css.StyleXClassNameFor<"fontFamily", string>;
76
+ readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
77
+ readonly lineHeight: css.StyleXClassNameFor<"lineHeight", string>;
78
+ readonly fontWeight: css.StyleXClassNameFor<"fontWeight", string>;
79
+ readonly letterSpacing: css.StyleXClassNameFor<"letterSpacing", string>;
80
+ }>;
81
+ readonly displaySm: Readonly<{
82
+ readonly fontFamily: css.StyleXClassNameFor<"fontFamily", string>;
83
+ readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
84
+ readonly lineHeight: css.StyleXClassNameFor<"lineHeight", 1.2>;
85
+ readonly fontWeight: css.StyleXClassNameFor<"fontWeight", string>;
86
+ readonly letterSpacing: css.StyleXClassNameFor<"letterSpacing", string>;
87
+ }>;
88
+ readonly displayMd: Readonly<{
89
+ readonly fontFamily: css.StyleXClassNameFor<"fontFamily", string>;
90
+ readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
91
+ readonly lineHeight: css.StyleXClassNameFor<"lineHeight", 1.15>;
92
+ readonly fontWeight: css.StyleXClassNameFor<"fontWeight", string>;
93
+ readonly letterSpacing: css.StyleXClassNameFor<"letterSpacing", string>;
94
+ }>;
95
+ readonly displayLg: Readonly<{
96
+ readonly fontFamily: css.StyleXClassNameFor<"fontFamily", string>;
97
+ readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
98
+ readonly lineHeight: css.StyleXClassNameFor<"lineHeight", 1.1>;
99
+ readonly fontWeight: css.StyleXClassNameFor<"fontWeight", string>;
100
+ readonly letterSpacing: css.StyleXClassNameFor<"letterSpacing", string>;
101
+ }>;
102
+ }>;
103
+ //# sourceMappingURL=type-presets.css.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type-presets.css.d.ts","sourceRoot":"","sources":["../../src/tokens/type-presets.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAGpC,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2GtB,CAAA"}
@@ -1,6 +1,7 @@
1
1
  import { css } from 'react-strict-dom';
2
2
  export declare const typography: css.VarGroup<Readonly<{
3
3
  fontFamily: string;
4
+ fontFamilyMono: string;
4
5
  fontSizeXs: string;
5
6
  fontSizeSm: string;
6
7
  fontSizeMd: string;
@@ -13,4 +14,30 @@ export declare const typography: css.VarGroup<Readonly<{
13
14
  fontWeightBold: string;
14
15
  lineHeight: string;
15
16
  }>, symbol>;
17
+ export declare const typeScale: css.VarGroup<Readonly<{
18
+ fontSize1: string;
19
+ fontSize2: string;
20
+ fontSize3: string;
21
+ fontSize4: string;
22
+ fontSize5: string;
23
+ fontSize6: string;
24
+ fontSize7: string;
25
+ fontSize8: string;
26
+ fontSize9: string;
27
+ lineHeight1: string;
28
+ lineHeight2: string;
29
+ lineHeight3: string;
30
+ lineHeight4: string;
31
+ lineHeight5: string;
32
+ lineHeight6: string;
33
+ lineHeight7: string;
34
+ lineHeight8: string;
35
+ lineHeight9: string;
36
+ displaySm: string;
37
+ displayMd: string;
38
+ displayLg: string;
39
+ letterSpacingTight: string;
40
+ letterSpacingNormal: string;
41
+ letterSpacingWide: string;
42
+ }>, symbol>;
16
43
  //# sourceMappingURL=typography.css.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typography.css.d.ts","sourceRoot":"","sources":["../../src/tokens/typography.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAEpC,eAAO,MAAM,UAAU;;;;;;;;;;;;;WAcrB,CAAA"}
1
+ {"version":3,"file":"typography.css.d.ts","sourceRoot":"","sources":["../../src/tokens/typography.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAEpC,eAAO,MAAM,UAAU;;;;;;;;;;;;;;WAgBrB,CAAA;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;WAgCpB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duro-app/tokens",
3
- "version": "0.1.1",
3
+ "version": "0.3.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -26,7 +26,15 @@
26
26
  "import": "./dist/index.js",
27
27
  "types": "./dist/index.d.ts",
28
28
  "default": "./dist/index.js"
29
- }
29
+ },
30
+ "./tokens/colors.css": "./src/tokens/colors.css.ts",
31
+ "./tokens/spacing.css": "./src/tokens/spacing.css.ts",
32
+ "./tokens/typography.css": "./src/tokens/typography.css.ts",
33
+ "./tokens/layout-spacing.css": "./src/tokens/layout-spacing.css.ts",
34
+ "./tokens/shadows.css": "./src/tokens/shadows.css.ts",
35
+ "./tokens/type-presets.css": "./src/tokens/type-presets.css.ts",
36
+ "./themes/light.css": "./src/themes/light.css.ts",
37
+ "./themes/high-contrast.css": "./src/themes/high-contrast.css.ts"
30
38
  },
31
39
  "peerDependencies": {
32
40
  "react-strict-dom": "^0.0.55"