@pcoi/tokens 0.1.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/build/index.d.ts +308 -0
- package/build/index.js +310 -0
- package/build/index.mjs +309 -0
- package/build/tokens.css +473 -0
- package/build/tokens.json +1423 -0
- package/build/tokens.scss +270 -0
- package/package.json +29 -0
- package/src/color/light.json +52 -0
- package/src/color/primitives.json +130 -0
- package/src/color/semantics.json +90 -0
- package/src/effects/primitives.json +122 -0
- package/src/layout/primitives.json +101 -0
- package/src/radius/primitives.json +11 -0
- package/src/radius/semantics.json +31 -0
- package/src/sizing/primitives.json +15 -0
- package/src/sizing/semantics.json +14 -0
- package/src/spacing/primitives.json +29 -0
- package/src/spacing/semantics.json +83 -0
- package/src/typography/primitives.json +69 -0
- package/src/typography/semantics.json +220 -0
package/build/index.mjs
ADDED
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
// @pcoi/tokens — ES Module
|
|
2
|
+
// Generated 2026-03-03
|
|
3
|
+
|
|
4
|
+
const tokens = {
|
|
5
|
+
"colorBg": "#0C0C14",
|
|
6
|
+
"colorBgAlt": "#111120",
|
|
7
|
+
"colorBgCard": "#16162A",
|
|
8
|
+
"colorBgCardHover": "#1C1C38",
|
|
9
|
+
"colorSurface": "#1A1A2E",
|
|
10
|
+
"colorAccent": "#D4A44C",
|
|
11
|
+
"colorAccentHover": "#E0B560",
|
|
12
|
+
"colorTextPrimary": "#E8E8F0",
|
|
13
|
+
"colorTextSecondary": "#9595B0",
|
|
14
|
+
"colorTextMuted": "#8585A0",
|
|
15
|
+
"colorSuccess": "#3DA87A",
|
|
16
|
+
"colorError": "#E05252",
|
|
17
|
+
"colorWarning": "#E8943A",
|
|
18
|
+
"colorInfo": "#5B8BD4",
|
|
19
|
+
"colorWhite": "#FFFFFF",
|
|
20
|
+
"colorBlack": "#000000",
|
|
21
|
+
"colorBorder": "rgba(255, 255, 255, 0.35)",
|
|
22
|
+
"colorBorderHover": "rgba(255, 255, 255, 0.45)",
|
|
23
|
+
"colorBorderSoft": "rgba(255, 255, 255, 0.06)",
|
|
24
|
+
"colorBorderSoftHover": "rgba(255, 255, 255, 0.12)",
|
|
25
|
+
"colorAccentGlow": "rgba(212, 164, 76, 0.15)",
|
|
26
|
+
"colorAccentDim": "rgba(212, 164, 76, 0.08)",
|
|
27
|
+
"colorHighlight": "rgba(212, 164, 76, 0.06)",
|
|
28
|
+
"colorNavScrolledBg": "rgba(12, 12, 20, 0.92)",
|
|
29
|
+
"colorGhostHoverBg": "rgba(255, 255, 255, 0.03)",
|
|
30
|
+
"colorGhostHoverBorder": "rgba(255, 255, 255, 0.35)",
|
|
31
|
+
"colorFocusBorder": "rgba(212, 164, 76, 0.55)",
|
|
32
|
+
"colorFocusGlow": "rgba(212, 164, 76, 0.08)",
|
|
33
|
+
"colorAccentBorderSubtle": "rgba(212, 164, 76, 0.58)",
|
|
34
|
+
"colorAccentBorderDim": "rgba(212, 164, 76, 0.52)",
|
|
35
|
+
"colorGridLine": "rgba(255, 255, 255, 0.02)",
|
|
36
|
+
"spacing0": "0px",
|
|
37
|
+
"spacing4": "4px",
|
|
38
|
+
"spacing5": "5px",
|
|
39
|
+
"spacing6": "6px",
|
|
40
|
+
"spacing8": "8px",
|
|
41
|
+
"spacing10": "10px",
|
|
42
|
+
"spacing12": "12px",
|
|
43
|
+
"spacing14": "14px",
|
|
44
|
+
"spacing16": "16px",
|
|
45
|
+
"spacing20": "20px",
|
|
46
|
+
"spacing22": "22px",
|
|
47
|
+
"spacing24": "24px",
|
|
48
|
+
"spacing28": "28px",
|
|
49
|
+
"spacing32": "32px",
|
|
50
|
+
"spacing36": "36px",
|
|
51
|
+
"spacing40": "40px",
|
|
52
|
+
"spacing48": "48px",
|
|
53
|
+
"spacing60": "60px",
|
|
54
|
+
"spacing64": "64px",
|
|
55
|
+
"spacing72": "72px",
|
|
56
|
+
"spacing80": "80px",
|
|
57
|
+
"spacing100": "100px",
|
|
58
|
+
"spacing120": "120px",
|
|
59
|
+
"radiusSm": "6px",
|
|
60
|
+
"radiusMd": "12px",
|
|
61
|
+
"radiusLg": "20px",
|
|
62
|
+
"radiusXl": "28px",
|
|
63
|
+
"radiusFull": "9999px",
|
|
64
|
+
"fontFamilySans": "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",
|
|
65
|
+
"fontFamilyMono": "'JetBrains Mono', 'Fira Code', monospace",
|
|
66
|
+
"fontWeightLight": 300,
|
|
67
|
+
"fontWeightRegular": 400,
|
|
68
|
+
"fontWeightMedium": 500,
|
|
69
|
+
"fontWeightSemibold": 600,
|
|
70
|
+
"fontWeightBold": 700,
|
|
71
|
+
"fontWeightExtrabold": 800,
|
|
72
|
+
"fontSizeXs": "0.7rem",
|
|
73
|
+
"fontSizeSm": "0.75rem",
|
|
74
|
+
"fontSizeCaption": "0.8rem",
|
|
75
|
+
"fontSizeBodySm": "0.85rem",
|
|
76
|
+
"fontSizeNav": "0.875rem",
|
|
77
|
+
"fontSizeBody": "0.9rem",
|
|
78
|
+
"fontSizeBodyDefault": "0.95rem",
|
|
79
|
+
"fontSizeBodyLg": "1rem",
|
|
80
|
+
"fontSizeLead": "1.05rem",
|
|
81
|
+
"fontSizeSub": "1.1rem",
|
|
82
|
+
"fontSizeH3": "1.15rem",
|
|
83
|
+
"fontSizeH3Lg": "1.2rem",
|
|
84
|
+
"fontSizeLogo": "1.35rem",
|
|
85
|
+
"fontSizeCallout": "1.35rem",
|
|
86
|
+
"fontSizeCloseSm": "1.25rem",
|
|
87
|
+
"fontSizeCloseLg": "1.5rem",
|
|
88
|
+
"fontSizeH2Sm": "2.25rem",
|
|
89
|
+
"fontSizeH2": "2.5rem",
|
|
90
|
+
"fontSizeH1": "2.75rem",
|
|
91
|
+
"fontSizeDisplay": "4rem",
|
|
92
|
+
"fontLineHeightNone": 1,
|
|
93
|
+
"fontLineHeightTight": 1.1,
|
|
94
|
+
"fontLineHeightHeading": 1.2,
|
|
95
|
+
"fontLineHeightSnug": 1.3,
|
|
96
|
+
"fontLineHeightBodySm": 1.5,
|
|
97
|
+
"fontLineHeightBody": 1.6,
|
|
98
|
+
"fontLineHeightStep": 1.65,
|
|
99
|
+
"fontLineHeightRelaxed": 1.7,
|
|
100
|
+
"fontLetterSpacingTight": "-0.03em",
|
|
101
|
+
"fontLetterSpacingHeading": "-0.02em",
|
|
102
|
+
"fontLetterSpacingNormal": "0em",
|
|
103
|
+
"fontLetterSpacingLogo": "0.04em",
|
|
104
|
+
"fontLetterSpacingLabel": "0.06em",
|
|
105
|
+
"fontLetterSpacingBadge": "0.08em",
|
|
106
|
+
"fontLetterSpacingSection": "0.1em",
|
|
107
|
+
"effectShadowBtnPrimaryHover": "0 8px 30px rgba(212, 164, 76, 0.25)",
|
|
108
|
+
"effectShadowNavScrolled": "0 1px 0 rgba(255, 255, 255, 0.06)",
|
|
109
|
+
"effectShadowMobileMenu": "0 12px 40px rgba(0, 0, 0, 0.6)",
|
|
110
|
+
"effectShadowFocusRing": "0 0 0 3px rgba(212, 164, 76, 0.08)",
|
|
111
|
+
"effectShadowFocusRingError": "0 0 0 3px rgba(224, 82, 82, 0.08)",
|
|
112
|
+
"effectShadowElevated": "0 8px 32px rgba(0, 0, 0, 0.4)",
|
|
113
|
+
"effectBlurNavBackdrop": "20px",
|
|
114
|
+
"effectTransitionFast": "0.2s ease",
|
|
115
|
+
"effectTransitionMedium": "0.3s ease",
|
|
116
|
+
"effectTransitionSlow": "0.6s ease",
|
|
117
|
+
"effectOpacityDisabled": 0.5,
|
|
118
|
+
"effectTransformHoverLift": "translateY(-2px)",
|
|
119
|
+
"effectTransformHoverLiftSm": "translateY(-1px)",
|
|
120
|
+
"effectTransformFadeInOffset": "translateY(24px)",
|
|
121
|
+
"effectTransformParallaxFactor": "0.15",
|
|
122
|
+
"effectTransformPressScale": "scale(0.985)",
|
|
123
|
+
"effectTransformPressScaleInput": "scale(0.99)",
|
|
124
|
+
"effectTransformPressScaleControl": "scale(0.95)",
|
|
125
|
+
"effectTransformPressScaleTrack": "scale(0.975)",
|
|
126
|
+
"effectTransformPressScaleIcon": "scale(0.925)",
|
|
127
|
+
"effectTransformToggleThumbOn": "scale(1.15)",
|
|
128
|
+
"layoutContainerMax": "1200px",
|
|
129
|
+
"layoutContainerNarrow": "800px",
|
|
130
|
+
"layoutContainerCta": "680px",
|
|
131
|
+
"layoutContainerCallout": "600px",
|
|
132
|
+
"layoutContainerChamath": "640px",
|
|
133
|
+
"layoutContainerHeroSub": "520px",
|
|
134
|
+
"layoutContainerCompare": "900px",
|
|
135
|
+
"layoutContainerWide": "1100px",
|
|
136
|
+
"layoutContainerModal": "520px",
|
|
137
|
+
"layoutContainerToastMin": "280px",
|
|
138
|
+
"layoutContainerToastMax": "420px",
|
|
139
|
+
"layoutContainerCompareScroll": "500px",
|
|
140
|
+
"layoutContainerDocument": "900px",
|
|
141
|
+
"layoutNavHeight": "72px",
|
|
142
|
+
"layoutBreakpointDesktop": "1025px",
|
|
143
|
+
"layoutBreakpointTablet": "1024px",
|
|
144
|
+
"layoutBreakpointMobile": "768px",
|
|
145
|
+
"layoutBreakpointSmall": "480px",
|
|
146
|
+
"layoutZIndexBase": 1,
|
|
147
|
+
"layoutZIndexContent": 1,
|
|
148
|
+
"layoutZIndexMobileMenu": 100,
|
|
149
|
+
"layoutZIndexNav": 1000,
|
|
150
|
+
"layoutZIndexDropdown": 200,
|
|
151
|
+
"layoutZIndexModal": 500,
|
|
152
|
+
"layoutZIndexToast": 600,
|
|
153
|
+
"layoutComponentControlBox": "18px",
|
|
154
|
+
"layoutComponentRadioDot": "8px",
|
|
155
|
+
"layoutComponentToggleTrackW": "40px",
|
|
156
|
+
"layoutComponentToggleTrackH": "22px",
|
|
157
|
+
"layoutComponentToggleThumb": "16px",
|
|
158
|
+
"layoutComponentToggleThumbInset": "3px",
|
|
159
|
+
"layoutComponentToggleThumbTravel": "18px",
|
|
160
|
+
"layoutComponentToggleCheckW": "4px",
|
|
161
|
+
"layoutComponentToggleCheckH": "7px",
|
|
162
|
+
"layoutComponentToggleCheckStroke": "1.5px",
|
|
163
|
+
"layoutComponentIconBox": "52px",
|
|
164
|
+
"layoutComponentStepNumber": "48px",
|
|
165
|
+
"layoutComponentHamburger": "28px",
|
|
166
|
+
"layoutComponentHamburgerBarOffset": "7px",
|
|
167
|
+
"layoutComponentAccentLineW": "60px",
|
|
168
|
+
"layoutComponentAccentBorderW": "3px",
|
|
169
|
+
"layoutComponentBullet": "8px",
|
|
170
|
+
"sizingHeightXs": "24px",
|
|
171
|
+
"sizingHeightSm": "32px",
|
|
172
|
+
"sizingHeightMd": "40px",
|
|
173
|
+
"sizingHeightLg": "48px",
|
|
174
|
+
"sizingHeightXl": "64px",
|
|
175
|
+
"sizingHeight2xl": "80px",
|
|
176
|
+
"semanticBgDefault": "{color.bg}",
|
|
177
|
+
"semanticBgAlt": "{color.bg-alt}",
|
|
178
|
+
"semanticBgCard": "{color.bg-card}",
|
|
179
|
+
"semanticBgCardHover": "{color.bg-card-hover}",
|
|
180
|
+
"semanticBgSurface": "{color.surface}",
|
|
181
|
+
"semanticBgNavScrolled": "{color.nav-scrolled-bg}",
|
|
182
|
+
"semanticBgOverlay": "rgba(0, 0, 0, 0.6)",
|
|
183
|
+
"semanticTextPrimary": "{color.text-primary}",
|
|
184
|
+
"semanticTextSecondary": "{color.text-secondary}",
|
|
185
|
+
"semanticTextMuted": "{color.text-muted}",
|
|
186
|
+
"semanticTextAccent": "{color.accent}",
|
|
187
|
+
"semanticTextAccentHover": "{color.accent-hover}",
|
|
188
|
+
"semanticTextOnAccent": "{color.bg}",
|
|
189
|
+
"semanticTextSuccess": "{color.success}",
|
|
190
|
+
"semanticTextError": "{color.error}",
|
|
191
|
+
"semanticTextWarning": "{color.warning}",
|
|
192
|
+
"semanticTextInfo": "{color.info}",
|
|
193
|
+
"semanticActionPrimaryBg": "{color.accent}",
|
|
194
|
+
"semanticActionPrimaryBgHover": "{color.accent-hover}",
|
|
195
|
+
"semanticActionPrimaryText": "{color.bg}",
|
|
196
|
+
"semanticActionGhostBg": "transparent",
|
|
197
|
+
"semanticActionGhostBgHover": "{color.ghost-hover-bg}",
|
|
198
|
+
"semanticActionGhostBorder": "{color.border-hover}",
|
|
199
|
+
"semanticActionGhostBorderHover": "{color.ghost-hover-border}",
|
|
200
|
+
"semanticActionGhostText": "{color.text-secondary}",
|
|
201
|
+
"semanticActionGhostTextHover": "{color.text-primary}",
|
|
202
|
+
"semanticActionToggleBg": "{color.border-hover}",
|
|
203
|
+
"semanticActionToggleBgOn": "{color.accent}",
|
|
204
|
+
"semanticActionToggleThumb": "#FFFFFF",
|
|
205
|
+
"semanticActionSuccess": "{color.success}",
|
|
206
|
+
"semanticActionError": "{color.error}",
|
|
207
|
+
"semanticActionWarning": "{color.warning}",
|
|
208
|
+
"semanticActionInfo": "{color.info}",
|
|
209
|
+
"semanticActionSuccessBg": "rgba(42, 125, 95, 0.08)",
|
|
210
|
+
"semanticActionErrorBg": "rgba(224, 82, 82, 0.08)",
|
|
211
|
+
"semanticActionWarningBg": "rgba(232, 148, 58, 0.08)",
|
|
212
|
+
"semanticActionInfoBg": "rgba(91, 139, 212, 0.08)",
|
|
213
|
+
"semanticBorderDefault": "{color.border}",
|
|
214
|
+
"semanticBorderHover": "{color.border-hover}",
|
|
215
|
+
"semanticBorderCard": "{color.border-soft}",
|
|
216
|
+
"semanticBorderCardHover": "{color.border-soft-hover}",
|
|
217
|
+
"semanticBorderAccentSubtle": "{color.accent-border-subtle}",
|
|
218
|
+
"semanticBorderAccentDim": "{color.accent-border-dim}",
|
|
219
|
+
"semanticBorderNav": "{color.border}",
|
|
220
|
+
"semanticBorderInputHover": "{color.border-hover}",
|
|
221
|
+
"semanticBorderSuccess": "{color.success}",
|
|
222
|
+
"semanticBorderError": "{color.error}",
|
|
223
|
+
"semanticBorderWarning": "{color.warning}",
|
|
224
|
+
"semanticBorderInfo": "{color.info}",
|
|
225
|
+
"semanticSurfaceAccentDim": "{color.accent-dim}",
|
|
226
|
+
"semanticSurfaceAccentGlow": "{color.accent-glow}",
|
|
227
|
+
"semanticSurfaceHighlight": "{color.highlight}",
|
|
228
|
+
"semanticSurfaceElevated": "{color.bg-card}",
|
|
229
|
+
"semanticFocusBorder": "{color.focus-border}",
|
|
230
|
+
"semanticFocusGlow": "{color.focus-glow}",
|
|
231
|
+
"semanticSpacingSectionY": "{spacing.80}",
|
|
232
|
+
"semanticSpacingSectionYLg": "{spacing.120}",
|
|
233
|
+
"semanticSpacingComponentGap": "{spacing.40}",
|
|
234
|
+
"semanticSpacingCardPadding": "{spacing.36}",
|
|
235
|
+
"semanticSpacingCardGap": "{spacing.20}",
|
|
236
|
+
"semanticSpacingFormGap": "{spacing.20}",
|
|
237
|
+
"semanticSpacingFormPadding": "{spacing.40}",
|
|
238
|
+
"semanticSpacingInputX": "{spacing.16}",
|
|
239
|
+
"semanticSpacingInputY": "{spacing.12}",
|
|
240
|
+
"semanticSpacingBtnX": "{spacing.24}",
|
|
241
|
+
"semanticSpacingBtnY": "{spacing.10}",
|
|
242
|
+
"semanticSpacingBtnXLg": "{spacing.36}",
|
|
243
|
+
"semanticSpacingBtnYLg": "{spacing.16}",
|
|
244
|
+
"semanticSpacingNavHeight": "{spacing.72}",
|
|
245
|
+
"semanticSpacingStackSm": "{spacing.8}",
|
|
246
|
+
"semanticSpacingStackMd": "{spacing.16}",
|
|
247
|
+
"semanticSpacingStackLg": "{spacing.32}",
|
|
248
|
+
"semanticSpacingInlineSm": "{spacing.8}",
|
|
249
|
+
"semanticSpacingInlineMd": "{spacing.16}",
|
|
250
|
+
"semanticRadiusBtn": "{radius.sm}",
|
|
251
|
+
"semanticRadiusInput": "{radius.sm}",
|
|
252
|
+
"semanticRadiusCard": "{radius.md}",
|
|
253
|
+
"semanticRadiusPanel": "{radius.lg}",
|
|
254
|
+
"semanticRadiusBadge": "{radius.full}",
|
|
255
|
+
"semanticRadiusAvatar": "{radius.full}",
|
|
256
|
+
"semanticTypeHeadingFont": "{font.family.sans}",
|
|
257
|
+
"semanticTypeBodyFont": "{font.family.sans}",
|
|
258
|
+
"semanticTypeMonoFont": "{font.family.mono}",
|
|
259
|
+
"semanticTypeDisplaySize": "clamp(2.5rem, 5vw, 4rem)",
|
|
260
|
+
"semanticTypeSectionTitleSize": "clamp(1.75rem, 3.5vw, 2.75rem)",
|
|
261
|
+
"semanticTypeSectionTitleSmSize": "clamp(1.75rem, 3.5vw, 2.5rem)",
|
|
262
|
+
"semanticTypeSectionTitleXsSize": "clamp(1.5rem, 3vw, 2.25rem)",
|
|
263
|
+
"semanticTypeHeadingMdSize": "{font.size.h3}",
|
|
264
|
+
"semanticTypeHeadingSmSize": "{font.size.sub}",
|
|
265
|
+
"semanticTypeStepTitleSize": "{font.size.h3-lg}",
|
|
266
|
+
"semanticTypeCardSubtitleSize": "{font.size.lead}",
|
|
267
|
+
"semanticTypeBodySize": "{font.size.body-default}",
|
|
268
|
+
"semanticTypeBodyLgSize": "{font.size.body-lg}",
|
|
269
|
+
"semanticTypeBodyCompactSize": "{font.size.body}",
|
|
270
|
+
"semanticTypeBodySmSize": "{font.size.body-sm}",
|
|
271
|
+
"semanticTypeNavSize": "{font.size.nav}",
|
|
272
|
+
"semanticTypeLabelSize": "{font.size.caption}",
|
|
273
|
+
"semanticTypeSectionLabelSize": "{font.size.sm}",
|
|
274
|
+
"semanticTypeBadgeSize": "{font.size.xs}",
|
|
275
|
+
"semanticTypeCalloutSize": "{font.size.callout}",
|
|
276
|
+
"semanticTypeLogoSize": "{font.size.logo}",
|
|
277
|
+
"semanticTypeCloseSmSize": "{font.size.close-sm}",
|
|
278
|
+
"semanticTypeCloseLgSize": "{font.size.close-lg}",
|
|
279
|
+
"semanticTypeDisplayWeight": "{font.weight.extrabold}",
|
|
280
|
+
"semanticTypeHeadingWeight": "{font.weight.bold}",
|
|
281
|
+
"semanticTypeEmphasisWeight": "{font.weight.semibold}",
|
|
282
|
+
"semanticTypeLabelWeight": "{font.weight.medium}",
|
|
283
|
+
"semanticTypeBodyWeight": "{font.weight.regular}",
|
|
284
|
+
"semanticTypeCalloutWeight": "{font.weight.light}",
|
|
285
|
+
"semanticTypeDisplayLineHeight": "{font.lineHeight.tight}",
|
|
286
|
+
"semanticTypeHeadingLineHeight": "{font.lineHeight.heading}",
|
|
287
|
+
"semanticTypeBodyLineHeight": "{font.lineHeight.body}",
|
|
288
|
+
"semanticTypeBodyCompactLineHeight": "{font.lineHeight.body-sm}",
|
|
289
|
+
"semanticTypeStepLineHeight": "{font.lineHeight.step}",
|
|
290
|
+
"semanticTypeRelaxedLineHeight": "{font.lineHeight.relaxed}",
|
|
291
|
+
"semanticTypeNoneLineHeight": "{font.lineHeight.none}",
|
|
292
|
+
"semanticTypeDisplayLetterSpacing": "{font.letterSpacing.tight}",
|
|
293
|
+
"semanticTypeHeadingLetterSpacing": "{font.letterSpacing.heading}",
|
|
294
|
+
"semanticTypeLabelLetterSpacing": "{font.letterSpacing.label}",
|
|
295
|
+
"semanticTypeSectionLabelLetterSpacing": "{font.letterSpacing.section}",
|
|
296
|
+
"semanticTypeBadgeLetterSpacing": "{font.letterSpacing.badge}",
|
|
297
|
+
"semanticTypeLogoLetterSpacing": "{font.letterSpacing.logo}",
|
|
298
|
+
"semanticSizingInputHeight": "{sizing.height.md}",
|
|
299
|
+
"semanticSizingBtnHeight": "{sizing.height.md}",
|
|
300
|
+
"semanticSizingBtnHeightLg": "{sizing.height.lg}",
|
|
301
|
+
"semanticSizingBtnHeightNav": "{sizing.height.sm}",
|
|
302
|
+
"semanticSizingTextareaMinHeight": "{sizing.height.2xl}",
|
|
303
|
+
"semanticSizingBadgeHeight": "{sizing.height.xs}",
|
|
304
|
+
"semanticSizingStepNumber": "{sizing.height.lg}",
|
|
305
|
+
"semanticSizingIconBox": "52px"
|
|
306
|
+
};
|
|
307
|
+
|
|
308
|
+
export default tokens;
|
|
309
|
+
export { tokens };
|