@vocdoni/skills 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.
Files changed (70) hide show
  1. package/.claude-plugin/marketplace.json +22 -2
  2. package/CHANGELOG.md +22 -0
  3. package/README.md +25 -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 +18072 -3144
  14. package/plugins/claude-pi-subagent/plugins/pi-subagent/package-lock.json +171 -184
  15. package/plugins/claude-pi-subagent/plugins/pi-subagent/package.json +4 -4
  16. package/plugins/claude-pi-subagent/plugins/pi-subagent/src/schemas.ts +4 -0
  17. package/plugins/claude-pi-subagent/plugins/pi-subagent/src/server.ts +1 -1
  18. package/plugins/claude-pi-subagent/plugins/pi-subagent/test/schemas.test.ts +30 -0
  19. package/plugins/vocdoni-comments/.claude-plugin/plugin.json +21 -0
  20. package/plugins/vocdoni-comments/skills/comments/SKILL.md +59 -0
  21. package/plugins/vocdoni-comments/skills/comments/trim.md +78 -0
  22. package/plugins/vocdoni-ui-style/.claude-plugin/plugin.json +25 -0
  23. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/SKILL.md +99 -0
  24. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/components/chakra/product.tsx +263 -0
  25. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/components/shadcn/brand.tsx +195 -0
  26. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/components/shadcn/button.tsx +67 -0
  27. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/components/shadcn/status-badge.tsx +93 -0
  28. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/logo/vocdoni-logo-ink.svg +15 -0
  29. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/logo/vocdoni-logo-white.svg +15 -0
  30. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/logo/vocdoni-logo.svg +15 -0
  31. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/logo/vocdoni-mark-ink.svg +7 -0
  32. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/logo/vocdoni-mark-white.svg +7 -0
  33. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/logo/vocdoni-mark.svg +7 -0
  34. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-footer.webp +0 -0
  35. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-home-hero.webp +0 -0
  36. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-mobile.webp +0 -0
  37. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-stats-and-panels.webp +0 -0
  38. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-vertical-hero.webp +0 -0
  39. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-washes-and-comparison.webp +0 -0
  40. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/product-process-results.webp +0 -0
  41. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/product-signin.webp +0 -0
  42. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/tokens/editorial.chakra.ts +285 -0
  43. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/tokens/editorial.css +847 -0
  44. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/tokens/editorial.tailwind.css +352 -0
  45. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/tokens/product.chakra.ts +410 -0
  46. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/tokens/product.css +1116 -0
  47. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/tokens/product.tailwind.css +289 -0
  48. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/examples/editorial-landing.html +358 -0
  49. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/examples/email-vote-invitation.html +58 -0
  50. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/examples/product-auth.html +81 -0
  51. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/examples/product-builder.html +147 -0
  52. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/examples/product-dashboard.html +185 -0
  53. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/examples/product-voting.html +326 -0
  54. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/references/brand-core.md +166 -0
  55. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/references/editorial.md +198 -0
  56. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/references/product.md +173 -0
  57. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/references/recipes.md +264 -0
  58. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/references/stacks.md +196 -0
  59. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/references/ux-flows.md +110 -0
  60. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/bad-editorial.tsx +15 -0
  61. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/bad-product.tsx +9 -0
  62. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/doc.md +10 -0
  63. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/escaped.json +1 -0
  64. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/good-editorial.tsx +16 -0
  65. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/good-product.css +6 -0
  66. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/locale.json +1 -0
  67. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/multiline-attr.tsx +8 -0
  68. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/multiline-copy.tsx +10 -0
  69. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/regex-literal.tsx +5 -0
  70. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style.mjs +436 -0
@@ -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)