@vocdoni/skills 0.1.1 → 0.2.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.
Files changed (65) hide show
  1. package/.claude-plugin/marketplace.json +12 -2
  2. package/CHANGELOG.md +12 -0
  3. package/README.md +13 -0
  4. package/package.json +1 -1
  5. package/plugins/agentic-dev/.claude-plugin/plugin.json +1 -1
  6. package/plugins/agentic-dev/skills/subagent-driven-development/SKILL.md +10 -5
  7. package/plugins/agentic-dev/skills/subagent-driven-development/references/dispatch.md +20 -0
  8. package/plugins/agentic-dev/skills/subagent-driven-development/references/ledger.md +1 -0
  9. package/plugins/agentic-dev/skills/subagent-driven-development/scripts/task-brief.sh +2 -0
  10. package/plugins/agentic-dev/skills/subagent-driven-development/templates/plan.md +4 -0
  11. package/plugins/claude-pi-subagent/.claude-plugin/marketplace.json +1 -1
  12. package/plugins/claude-pi-subagent/plugins/pi-subagent/.claude-plugin/plugin.json +1 -1
  13. package/plugins/claude-pi-subagent/plugins/pi-subagent/dist/server.mjs +75 -12
  14. package/plugins/claude-pi-subagent/plugins/pi-subagent/package-lock.json +89 -89
  15. package/plugins/claude-pi-subagent/plugins/pi-subagent/package.json +2 -2
  16. package/plugins/claude-pi-subagent/plugins/pi-subagent/src/server.ts +1 -1
  17. package/plugins/vocdoni-ui-style/.claude-plugin/plugin.json +25 -0
  18. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/SKILL.md +99 -0
  19. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/components/chakra/product.tsx +263 -0
  20. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/components/shadcn/brand.tsx +195 -0
  21. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/components/shadcn/button.tsx +67 -0
  22. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/components/shadcn/status-badge.tsx +93 -0
  23. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/logo/vocdoni-logo-ink.svg +15 -0
  24. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/logo/vocdoni-logo-white.svg +15 -0
  25. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/logo/vocdoni-logo.svg +15 -0
  26. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/logo/vocdoni-mark-ink.svg +7 -0
  27. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/logo/vocdoni-mark-white.svg +7 -0
  28. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/logo/vocdoni-mark.svg +7 -0
  29. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-footer.webp +0 -0
  30. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-home-hero.webp +0 -0
  31. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-mobile.webp +0 -0
  32. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-stats-and-panels.webp +0 -0
  33. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-vertical-hero.webp +0 -0
  34. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-washes-and-comparison.webp +0 -0
  35. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/product-process-results.webp +0 -0
  36. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/product-signin.webp +0 -0
  37. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/tokens/editorial.chakra.ts +285 -0
  38. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/tokens/editorial.css +847 -0
  39. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/tokens/editorial.tailwind.css +352 -0
  40. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/tokens/product.chakra.ts +410 -0
  41. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/tokens/product.css +1116 -0
  42. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/tokens/product.tailwind.css +289 -0
  43. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/examples/editorial-landing.html +358 -0
  44. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/examples/email-vote-invitation.html +58 -0
  45. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/examples/product-auth.html +81 -0
  46. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/examples/product-builder.html +147 -0
  47. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/examples/product-dashboard.html +185 -0
  48. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/examples/product-voting.html +326 -0
  49. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/references/brand-core.md +166 -0
  50. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/references/editorial.md +198 -0
  51. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/references/product.md +173 -0
  52. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/references/recipes.md +264 -0
  53. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/references/stacks.md +196 -0
  54. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/references/ux-flows.md +110 -0
  55. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/bad-editorial.tsx +15 -0
  56. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/bad-product.tsx +9 -0
  57. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/doc.md +10 -0
  58. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/escaped.json +1 -0
  59. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/good-editorial.tsx +16 -0
  60. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/good-product.css +6 -0
  61. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/locale.json +1 -0
  62. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/multiline-attr.tsx +8 -0
  63. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/multiline-copy.tsx +10 -0
  64. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/regex-literal.tsx +5 -0
  65. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style.mjs +436 -0
@@ -0,0 +1,15 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 215" fill="currentColor" role="img" aria-label="Vocdoni">
2
+ <title>Vocdoni</title>
3
+ <g transform="translate(-460,-433.082)">
4
+ <path d="m 648.53,548.952 -62.85,36.29 -62.84,-36.28 -62.84,-36.29 v 62.85 l 62.84,36.28 62.84,36.28 62.84,-36.28 62.85,-36.28 v -62.85 z" />
5
+ <path d="m 614.16,433.082 -62.84,36.28 v 62.85 l 62.84,-36.29 z" />
6
+ <path d="m 875.09,512.702 -50.43,97.7 -50.45,-97.7 h 29.28 l 21.17,41.08 21.17,-41.08 z" />
7
+ <path d="m 878.57,559.802 c 0,-14 4.8,-25.76 14.22,-35.18 9.62,-9.42 21.54,-14.22 35.57,-14.22 14.03,0 26,4.8 35.37,14.22 9.613,9.42 14.42,21.147 14.42,35.18 0,14 -4.81,25.76 -14.23,35.18 -9.42,9.42 -21.33,14 -35.56,14 -14.23,0 -26.15,-4.62 -35.57,-14 -9.42,-9.38 -14.22,-21.14 -14.22,-35.18 z m 27.87,0 c 0,6.92 2.12,12.69 6.16,17.11 2.037,2.127 4.483,3.82 7.192,4.977 2.708,1.156 5.623,1.752 8.568,1.752 2.945,0 5.86,-0.596 8.568,-1.752 2.709,-1.157 5.155,-2.85 7.192,-4.977 4,-4.42 6.15,-10.19 6.15,-17.11 0,-6.92 -2.11,-12.68 -6.15,-17.11 -2.039,-2.125 -4.485,-3.815 -7.194,-4.97 -2.708,-1.155 -5.622,-1.75 -8.566,-1.75 -2.944,0 -5.858,0.595 -8.567,1.75 -2.708,1.155 -5.155,2.845 -7.193,4.97 -4.04,4.43 -6.16,10.19 -6.16,17.11 z" />
8
+ <path d="m 1084.23,589.022 c -10.19,13.27 -23.83,20 -41.33,20 -14.22,0 -26.14,-4.62 -35.56,-14 -9.42,-9.38 -14.23,-21.14 -14.23,-35.18 0,-14.04 4.81,-25.76 14.23,-35.18 9.61,-9.42 21.53,-14.22 35.56,-14.22 15,0 28.07,6.34 39.41,18.84 l -18.48,17.84 c -6,-7.31 -12.69,-11 -20,-11 -13.07,0 -22.87,9.8 -22.87,23.64 0,13.84 9.8,23.65 22.87,23.65 8.27,0 15.57,-4 21.92,-12.3 z" />
9
+ <path d="m 1107.94,524.242 c 9,-9.23 20.38,-13.84 33.64,-13.84 9.81,0 17.88,2.69 24.22,8.26 v -46.52 h 27.3 v 134.76 h -26.91 v -6.73 c -6.15,6 -14.42,8.85 -24.61,8.85 -13.26,0 -24.61,-4.42 -33.64,-13.46 -9.03,-9.04 -13.46,-21 -13.46,-35.76 0,-14.61 4.42,-26.52 13.46,-35.56 z m 58.25,35.56 c 0,-7.11 -2.12,-13.07 -6.35,-17.68 -1.91,-2.245 -4.3,-4.032 -7,-5.229 -2.69,-1.198 -5.62,-1.776 -8.57,-1.691 -2.97,-0.065 -5.92,0.521 -8.65,1.717 -2.72,1.195 -5.15,2.971 -7.11,5.203 -4,4.61 -6.15,10.57 -6.15,17.68 0,7.11 2.11,13.08 6.15,17.69 1.97,2.231 4.39,4.006 7.12,5.201 2.72,1.195 5.67,1.782 8.64,1.719 2.95,0.083 5.88,-0.496 8.57,-1.693 2.69,-1.198 5.09,-2.984 7,-5.227 4.23,-4.61 6.35,-10.57 6.35,-17.69 z" />
10
+ <path d="m 1210,559.802 c 0,-14 4.81,-25.76 14.23,-35.18 9.61,-9.42 21.53,-14.22 35.57,-14.22 14.04,0 26,4.8 35.37,14.22 9.61,9.42 14.42,21.147 14.42,35.18 0,14 -4.81,25.76 -14.23,35.18 -9.42,9.42 -21.34,14 -35.56,14 -14.22,0 -26.15,-4.62 -35.57,-14 -9.42,-9.38 -14.23,-21.14 -14.23,-35.18 z m 27.88,0 c 0,6.92 2.11,12.69 6.15,17.11 2.04,2.128 4.48,3.821 7.19,4.977 2.71,1.157 5.63,1.753 8.57,1.753 2.95,0 5.87,-0.596 8.58,-1.753 2.7,-1.156 5.15,-2.849 7.19,-4.977 4,-4.42 6.15,-10.19 6.15,-17.11 0,-6.92 -2.11,-12.68 -6.15,-17.11 -2.04,-2.125 -4.49,-3.816 -7.2,-4.971 -2.71,-1.154 -5.62,-1.75 -8.57,-1.75 -2.94,0 -5.85,0.596 -8.56,1.75 -2.71,1.155 -5.16,2.846 -7.2,4.971 -4.04,4.43 -6.15,10.19 -6.15,17.11 z" />
11
+ <path d="m 1324.83,512.702 h 46.09 c 11.07,0.003 21.68,4.402 29.51,12.229 7.82,7.828 12.22,18.443 12.22,29.511 v 52.46 h -27.52 v -52.32 c -0.07,-4.423 -1.87,-8.643 -5.02,-11.756 -3.14,-3.113 -7.38,-4.873 -11.8,-4.904 h -16.21 v 69 h -27.27 z" />
12
+ <path d="m 1432.51,606.902 v -94.2 H 1460 v 94.2 z" />
13
+ <path d="m 1460,472.152 h -27.44 v 27.44 H 1460 Z" />
14
+ </g>
15
+ </svg>
@@ -0,0 +1,7 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 251.37 215" fill="#202019" role="img" aria-label="Vocdoni">
2
+ <title>Vocdoni</title>
3
+ <g transform="translate(-460,-433.082)">
4
+ <path d="m 648.53,548.952 -62.85,36.29 -62.84,-36.28 -62.84,-36.29 v 62.85 l 62.84,36.28 62.84,36.28 62.84,-36.28 62.85,-36.28 v -62.85 z" />
5
+ <path d="m 614.16,433.082 -62.84,36.28 v 62.85 l 62.84,-36.29 z" />
6
+ </g>
7
+ </svg>
@@ -0,0 +1,7 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 251.37 215" fill="#ffffff" role="img" aria-label="Vocdoni">
2
+ <title>Vocdoni</title>
3
+ <g transform="translate(-460,-433.082)">
4
+ <path d="m 648.53,548.952 -62.85,36.29 -62.84,-36.28 -62.84,-36.29 v 62.85 l 62.84,36.28 62.84,36.28 62.84,-36.28 62.85,-36.28 v -62.85 z" />
5
+ <path d="m 614.16,433.082 -62.84,36.28 v 62.85 l 62.84,-36.29 z" />
6
+ </g>
7
+ </svg>
@@ -0,0 +1,7 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 251.37 215" fill="currentColor" role="img" aria-label="Vocdoni">
2
+ <title>Vocdoni</title>
3
+ <g transform="translate(-460,-433.082)">
4
+ <path d="m 648.53,548.952 -62.85,36.29 -62.84,-36.28 -62.84,-36.29 v 62.85 l 62.84,36.28 62.84,36.28 62.84,-36.28 62.85,-36.28 v -62.85 z" />
5
+ <path d="m 614.16,433.082 -62.84,36.28 v 62.85 l 62.84,-36.29 z" />
6
+ </g>
7
+ </svg>
@@ -0,0 +1,285 @@
1
+ /**
2
+ * Vocdoni editorial mode for Chakra UI v3. vocdoni.io itself is Tailwind +
3
+ * shadcn; this ports the same tokens and component looks to a Chakra system so
4
+ * a Chakra codebase can build marketing/landing/docs surfaces in the brand.
5
+ *
6
+ * import { ChakraProvider } from '@chakra-ui/react'
7
+ * import { editorialSystem } from './editorial.chakra'
8
+ * <ChakraProvider value={editorialSystem}>...</ChakraProvider>
9
+ *
10
+ * <Button variant='dark' size='lg'>Start for free</Button> // the one top-level CTA
11
+ * <Button>Set up a test vote</Button> // green, in-page
12
+ * <Text textStyle='eyebrow'><Box as='span' layerStyle='eyebrowDot' />About Vocdoni</Text>
13
+ * <Heading as='h2' textStyle='display'>Trust is not a promise</Heading>
14
+ *
15
+ * Fonts: import '@fontsource-variable/hanken-grotesk/wght.css',
16
+ * '@fontsource-variable/fraunces/full.css' (full = SOFT/WONK axes),
17
+ * '@fontsource-variable/jetbrains-mono/wght.css'.
18
+ * Light-only like vocdoni.io; the dark values are provided for completeness.
19
+ */
20
+ import { createSystem, defaultConfig, defineConfig, defineRecipe, defineSlotRecipe } from '@chakra-ui/react'
21
+ import { cardAnatomy } from '@chakra-ui/react/anatomy'
22
+
23
+ const INK = 'oklch(0.24 0.013 106)'
24
+ const inkA = (a: number) => `oklch(0.24 0.013 106 / ${a})`
25
+
26
+ const button = defineRecipe({
27
+ base: {
28
+ display: 'inline-flex',
29
+ alignItems: 'center',
30
+ justifyContent: 'center',
31
+ gap: '2.5',
32
+ fontFamily: 'body',
33
+ fontWeight: 'medium',
34
+ borderRadius: 'md',
35
+ whiteSpace: 'nowrap',
36
+ cursor: 'pointer',
37
+ transitionProperty: 'color, background-color, border-color, box-shadow, scale',
38
+ transitionDuration: '150ms',
39
+ _active: { scale: '0.96' },
40
+ _focusVisible: { outline: '2px solid', outlineColor: 'ring', outlineOffset: '2px' },
41
+ _disabled: { opacity: 0.5, pointerEvents: 'none' },
42
+ '& svg': { boxSize: '20px', flexShrink: 0 }, // size-4 on vocdoni.io's 5px base
43
+ },
44
+ variants: {
45
+ variant: {
46
+ // In-page CTAs and form submits
47
+ solid: {
48
+ bg: 'primary',
49
+ color: 'primary.fg',
50
+ boxShadow: 'button',
51
+ _hover: { bg: 'primary/90' },
52
+ },
53
+ // The ONE top-level CTA per surface (navbar sign-in, hero primary)
54
+ dark: {
55
+ bg: 'surfaceDark',
56
+ color: 'surfaceDark.fg',
57
+ fontWeight: 'semibold',
58
+ boxShadow: 'insetTop',
59
+ _hover: { bg: 'surfaceDark/90' },
60
+ },
61
+ outline: {
62
+ bg: 'bg',
63
+ borderWidth: '1px',
64
+ borderColor: 'border',
65
+ color: 'fg',
66
+ _hover: { bg: 'accent' },
67
+ },
68
+ secondary: { bg: 'bg.secondary', color: 'fg', _hover: { bg: 'bg.secondary/80' } },
69
+ ghost: { bg: 'transparent', color: 'fg', _hover: { bg: 'accent' } },
70
+ link: {
71
+ bg: 'transparent',
72
+ color: 'primary',
73
+ h: 'auto',
74
+ px: 0,
75
+ _hover: { textDecoration: 'underline', textUnderlineOffset: '4px' },
76
+ _active: { scale: '1' },
77
+ },
78
+ },
79
+ size: {
80
+ sm: { h: '9', px: '3.5', fontSize: 'sm' },
81
+ md: { h: '45px', px: '26px', fontSize: 'sm' }, // navbar CTA as rendered
82
+ lg: { h: '54px', px: '30px', fontSize: 'md' }, // hero / in-page CTA
83
+ icon: { h: '50px', w: '50px', p: 0, borderRadius: 'full' }, // h-10 on the 5px base
84
+ },
85
+ pill: { true: { borderRadius: 'full' } },
86
+ },
87
+ defaultVariants: { variant: 'solid', size: 'md' },
88
+ })
89
+
90
+ // Chakra's default Heading recipe sets fontWeight 'semibold' on a class, which
91
+ // beats the element-level h1-h6 rule below; restate the display voice here.
92
+ const heading = defineRecipe({
93
+ base: {
94
+ fontFamily: 'heading',
95
+ fontWeight: '400',
96
+ fontVariationSettings: "'SOFT' 100, 'WONK' 0",
97
+ letterSpacing: '-0.03em',
98
+ lineHeight: '1.02',
99
+ textWrap: 'balance',
100
+ },
101
+ })
102
+
103
+ const badge = defineRecipe({
104
+ base: {
105
+ display: 'inline-flex',
106
+ alignItems: 'center',
107
+ gap: '1',
108
+ borderRadius: 'full',
109
+ borderWidth: '1px',
110
+ borderColor: 'transparent',
111
+ px: '2.5',
112
+ py: '0.5',
113
+ fontSize: 'xs',
114
+ fontWeight: 'semibold',
115
+ },
116
+ variants: {
117
+ variant: {
118
+ solid: { bg: 'primary', color: 'primary.fg' },
119
+ secondary: { bg: 'bg.secondary', color: 'fg' },
120
+ outline: { borderColor: 'border', color: 'fg' },
121
+ success: { bg: 'success/10', borderColor: 'success/30', color: 'success' },
122
+ warning: { bg: 'warning/10', borderColor: 'warning/40', color: 'warning' },
123
+ },
124
+ },
125
+ defaultVariants: { variant: 'secondary' },
126
+ })
127
+
128
+ const card = defineSlotRecipe({
129
+ slots: cardAnatomy.keys(),
130
+ base: {
131
+ root: { bg: 'bg', borderWidth: '1px', borderColor: 'border', borderRadius: 'card', boxShadow: 'sm' },
132
+ header: { p: '6', display: 'flex', flexDirection: 'column', gap: '1.5' },
133
+ body: { p: '6', pt: 0 },
134
+ footer: { p: '6', pt: 0, display: 'flex', alignItems: 'center' },
135
+ title: { fontFamily: 'body', fontSize: 'lg', fontWeight: 'semibold', lineHeight: 'snug', letterSpacing: 'normal' },
136
+ description: { fontSize: 'sm', color: 'fg.muted' },
137
+ },
138
+ variants: {
139
+ // vocdoni.io panel vocabulary: raised only on tinted sections,
140
+ // outline/inset only on plain ones.
141
+ surface: {
142
+ raised: {},
143
+ outline: { root: { boxShadow: 'none' } },
144
+ inset: { root: { bg: 'bg.muted/50', boxShadow: 'none' } },
145
+ },
146
+ interactive: {
147
+ true: {
148
+ root: {
149
+ transitionProperty: 'transform, box-shadow',
150
+ transitionDuration: '300ms',
151
+ _hover: { transform: 'translateY(-4px)', boxShadow: 'xl' },
152
+ },
153
+ },
154
+ },
155
+ },
156
+ defaultVariants: { surface: 'raised' },
157
+ })
158
+
159
+ const config = defineConfig({
160
+ globalCss: {
161
+ html: { scrollPaddingTop: '5.5rem', colorPalette: 'green' },
162
+ body: {
163
+ bg: 'bg',
164
+ color: 'fg',
165
+ fontFamily: 'body',
166
+ overflowX: 'clip',
167
+ textRendering: 'optimizeLegibility',
168
+ textWrap: 'pretty',
169
+ },
170
+ 'h1, h2, h3, h4, h5, h6': {
171
+ fontFamily: 'heading',
172
+ fontWeight: '400',
173
+ fontVariationSettings: "'SOFT' 100, 'WONK' 0",
174
+ letterSpacing: '-0.03em',
175
+ lineHeight: '1.02',
176
+ textWrap: 'balance',
177
+ },
178
+ '*::selection': { bg: 'primary/20' },
179
+ '*, *::before, *::after': {
180
+ _motionReduce: {
181
+ animationDuration: '0.01ms !important',
182
+ animationIterationCount: '1 !important',
183
+ transitionDuration: '0.01ms !important',
184
+ scrollBehavior: 'auto !important',
185
+ },
186
+ },
187
+ },
188
+ theme: {
189
+ tokens: {
190
+ fonts: {
191
+ body: { value: "'Hanken Grotesk Variable', 'Hanken Grotesk', 'Noto Sans Devanagari Variable', system-ui, sans-serif" },
192
+ heading: { value: "'Fraunces Variable', 'Fraunces', 'Noto Sans Devanagari Variable', Georgia, serif" },
193
+ mono: { value: "'JetBrains Mono Variable', 'JetBrains Mono', monospace" },
194
+ },
195
+ radii: {
196
+ sm: { value: '10px' },
197
+ md: { value: '12px' },
198
+ lg: { value: '16px' },
199
+ xl: { value: '20px' },
200
+ card: { value: '20px' },
201
+ },
202
+ shadows: {
203
+ sm: { value: '0px 1px 2px 0px rgb(0 0 0 / 0.08)' },
204
+ lg: { value: '0px 4px 14px 0px rgb(0 0 0 / 0.16)' },
205
+ xl: { value: '0px 8px 24px -4px rgb(0 0 0 / 0.16), 0px 2px 6px -2px rgb(0 0 0 / 0.08)' },
206
+ panel: { value: `0px 12px 32px -8px ${inkA(0.16)}, 0px 2px 6px -2px ${inkA(0.08)}` },
207
+ insetTop: { value: 'inset 0 1px 1px rgb(255 255 255 / 0.14)' },
208
+ button: { value: `0px 2px 3px -1px ${inkA(0.12)}, 0px 1px 0px 0px ${inkA(0.03)}, 0px 0px 0px 1px ${inkA(0.1)}` },
209
+ },
210
+ spacing: {
211
+ section: { value: '2rem' },
212
+ sectionMd: { value: '4rem' },
213
+ sectionLg: { value: '6rem' },
214
+ },
215
+ },
216
+ semanticTokens: {
217
+ colors: {
218
+ bg: {
219
+ DEFAULT: { value: { _light: 'oklch(0.988 0.011 97)', _dark: 'oklch(0.22 0.012 106)' } },
220
+ secondary: { value: { _light: 'oklch(0.962 0.022 97)', _dark: 'oklch(0.27 0.014 106)' } },
221
+ muted: { value: { _light: 'oklch(0.936 0.033 97)', _dark: 'oklch(0.29 0.016 106)' } },
222
+ panel: { value: { _light: 'oklch(0.988 0.011 97)', _dark: 'oklch(0.25 0.013 106)' } },
223
+ },
224
+ fg: {
225
+ DEFAULT: { value: { _light: INK, _dark: 'oklch(0.95 0.012 97)' } },
226
+ muted: { value: { _light: inkA(0.64), _dark: 'oklch(0.95 0.012 97 / 0.66)' } },
227
+ faint: { value: { _light: inkA(0.68), _dark: 'oklch(0.95 0.012 97 / 0.5)' } },
228
+ },
229
+ border: { DEFAULT: { value: { _light: inkA(0.1), _dark: 'oklch(1 0 0 / 0.1)' } } },
230
+ accent: { value: { _light: inkA(0.07), _dark: 'oklch(1 0 0 / 0.07)' } },
231
+ primary: {
232
+ DEFAULT: { value: { _light: 'oklch(0.47 0.085 158)', _dark: 'oklch(0.62 0.09 158)' } },
233
+ fg: { value: { _light: 'oklch(0.985 0.012 97)', _dark: 'oklch(0.2 0.012 106)' } },
234
+ },
235
+ ring: { value: { _light: 'oklch(0.47 0.085 158)', _dark: 'oklch(0.62 0.09 158)' } },
236
+ surfaceDark: {
237
+ DEFAULT: { value: 'oklch(0.235 0.012 107)' },
238
+ fg: { value: 'oklch(0.985 0.012 97)' },
239
+ },
240
+ // Butter yellow: eyebrow and status dots ONLY, never a surface.
241
+ signal: { DEFAULT: { value: 'oklch(0.93 0.11 102)' }, halo: { value: 'oklch(0.93 0.11 102 / 0.18)' } },
242
+ success: { value: { _light: 'oklch(0.45 0.12 152)', _dark: 'oklch(0.65 0.12 152)' } },
243
+ warning: { value: { _light: 'oklch(0.48 0.17 45)', _dark: 'oklch(0.78 0.15 50)' } },
244
+ destructive: { value: 'oklch(0.577 0.215 27.3)' }, // #dc2626: AA with white
245
+ },
246
+ },
247
+ textStyles: {
248
+ // Large sizes are display text in this mode: tight serif leading and
249
+ // tracking (Chakra's defaults would reset them on <Heading size>).
250
+ ...Object.fromEntries(
251
+ (['2xl', '3xl', '4xl', '5xl', '6xl', '7xl'] as const).map((k) => [
252
+ k,
253
+ { value: { fontSize: k, lineHeight: '1.02', letterSpacing: '-0.03em' } },
254
+ ])
255
+ ),
256
+ eyebrow: {
257
+ value: {
258
+ display: 'inline-flex',
259
+ alignItems: 'center',
260
+ gap: '2.5',
261
+ fontFamily: 'body',
262
+ fontSize: 'sm',
263
+ fontWeight: 'medium',
264
+ textTransform: 'uppercase',
265
+ letterSpacing: '0.11em',
266
+ color: 'fg.muted',
267
+ },
268
+ },
269
+ display: { value: { fontSize: { base: '4xl', sm: '5xl', lg: '6xl' } } },
270
+ section: { value: { fontSize: { base: '3xl', sm: '4xl', lg: '2.75rem' } } },
271
+ lede: { value: { fontSize: 'lg', lineHeight: 'relaxed', color: 'fg.muted', maxW: '2xl' } },
272
+ label: {
273
+ value: { fontSize: '11px', fontWeight: 'semibold', textTransform: 'uppercase', letterSpacing: 'wider', color: 'fg.faint' },
274
+ },
275
+ },
276
+ layerStyles: {
277
+ eyebrowDot: { value: { display: 'inline-block', boxSize: '10px', flexShrink: 0, borderRadius: 'full', bg: 'signal' } },
278
+ imageOutline: { value: { boxShadow: 'inset 0 0 0 1px rgb(0 0 0 / 0.1)' } },
279
+ },
280
+ recipes: { button, badge, heading },
281
+ slotRecipes: { card },
282
+ },
283
+ })
284
+
285
+ export const editorialSystem = createSystem(defaultConfig, config)