@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,289 @@
1
+ /*
2
+ * Vocdoni product mode - Tailwind CSS v4 + shadcn/ui variable names.
3
+ * The look of vocdoni-app (which itself is Chakra UI v3) ported to Tailwind:
4
+ * white surfaces, zinc neutrals, Inter at light weights, 6px controls, 8px
5
+ * cards, a monochrome accent that becomes the organization's color when
6
+ * --brand is set.
7
+ *
8
+ * Fonts: @fontsource/inter 300/400/500/600 (or Google Fonts Inter 300..600).
9
+ * Spacing: Tailwind's default 4px base, the same as Chakra's, so p-4 = 16px.
10
+ *
11
+ * Weight discipline: the app reads light. Use font-normal (400) for headings
12
+ * and buttons, font-light (300) for form labels and secondary badges,
13
+ * font-medium (500) for emphasis, font-semibold (600) only for ballot choice
14
+ * labels, dialog titles and question titles. Never font-bold.
15
+ */
16
+ @import 'tailwindcss';
17
+ @import 'tw-animate-css'; /* optional: shadcn animated primitives */
18
+ @custom-variant dark (&:is(.dark *));
19
+
20
+ :root {
21
+ /* Accent. Default = monochrome, Vocdoni's own look. For an organization's
22
+ color: <html data-brand style="--brand: #1a73e8">, plus --brand-on
23
+ (#fff or #000, whichever reaches 4.5:1 on the brand) when white fails,
24
+ and --brand-on-dark if it differs in dark mode. */
25
+ /* --brand is the organization's color, set inline and never redeclared, so it
26
+ survives nested light/dark scopes; --brand-default is the monochrome accent. */
27
+ --brand-default: #18181b;
28
+ --brand-foreground: #ffffff; /* must reach 4.5:1 on --brand */
29
+
30
+ --background: #ffffff;
31
+ --foreground: #09090b;
32
+ --card: #ffffff;
33
+ --card-foreground: #09090b;
34
+ --popover: #ffffff;
35
+ --popover-foreground: #09090b;
36
+ --secondary: #f5f5f5;
37
+ --secondary-foreground: #27272a;
38
+ --muted: #f5f5f5;
39
+ --muted-foreground: #52525b;
40
+ --subtle-foreground: #b2b2b2;
41
+ --accent: #f5f5f5;
42
+ --accent-foreground: #09090b;
43
+ --destructive: #dc2626;
44
+ --destructive-foreground: #ffffff;
45
+ --border: #e4e4e7;
46
+ --input: #e4e4e7;
47
+ --placeholder: #737373;
48
+ /* Monochrome tints come from the gray scale; [data-brand] derives them from --brand */
49
+ --brand-subtle: #f5f5f5;
50
+ --brand-muted: #e4e4e7;
51
+ --brand-fg: #27272a;
52
+ --sidebar: #fbfbfb;
53
+ --sidebar-foreground: #09090b;
54
+ --sidebar-accent: #f5f5f5;
55
+ --sidebar-accent-foreground: #09090b;
56
+ --sidebar-border: #e4e4e7;
57
+
58
+ /* Status: subtle bg + fg (election status, alerts, plan tags) */
59
+ --status-green: #dcfce7;
60
+ --status-green-foreground: #116932;
61
+ --status-teal: #ccfbf1;
62
+ --status-teal-foreground: #0c5d56;
63
+ --status-blue: #dbeafe;
64
+ --status-blue-foreground: #173da6;
65
+ --status-purple: #f3e8ff;
66
+ --status-purple-foreground: #641ba3;
67
+ --status-orange: #ffedd5;
68
+ --status-orange-foreground: #92310a;
69
+ --status-red: #fee2e2;
70
+ --status-red-foreground: #991919;
71
+ --status-yellow: #fef9c3;
72
+ --status-yellow-foreground: #845209;
73
+ --status-gray: #f5f5f5;
74
+ --status-gray-foreground: #27272a;
75
+
76
+ --chart-1: #18181b;
77
+ --chart-2: #0d9488;
78
+ --chart-3: #2563eb;
79
+ --chart-4: #9333ea;
80
+ --chart-5: #ea580c;
81
+
82
+ --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
83
+ --font-mono: Menlo, ui-monospace, monospace;
84
+ }
85
+
86
+
87
+ .dark {
88
+ --brand-default: #ffffff;
89
+ --brand-foreground: #000000;
90
+ --background: #0a0a0a;
91
+ --foreground: #fcfcfc;
92
+ --card: #111111;
93
+ --card-foreground: #fcfcfc;
94
+ --popover: #111111;
95
+ --popover-foreground: #fcfcfc;
96
+ --secondary: #3f3f3f;
97
+ --secondary-foreground: #fcfcfc;
98
+ --muted: #3f3f3f;
99
+ --muted-foreground: #b2b2b2;
100
+ --subtle-foreground: #737373;
101
+ --accent: #27272a;
102
+ --accent-foreground: #fcfcfc;
103
+ --border: #27272a;
104
+ --input: #27272a;
105
+ --brand-subtle: #18181b;
106
+ --brand-muted: #27272a;
107
+ --brand-fg: #d4d4d8;
108
+ --sidebar: #18181b;
109
+ --sidebar-foreground: #fcfcfc;
110
+ --sidebar-accent: #27272a;
111
+ --sidebar-accent-foreground: #fcfcfc;
112
+ --sidebar-border: #27272a;
113
+ --status-green: #042713;
114
+ --status-green-foreground: #86efac;
115
+ --status-teal: #032726;
116
+ --status-teal-foreground: #5eead4;
117
+ --status-blue: #14204a;
118
+ --status-blue-foreground: #a3cfff;
119
+ --status-purple: #2f0553;
120
+ --status-purple-foreground: #d8b4fe;
121
+ --status-orange: #3b1106;
122
+ --status-orange-foreground: #fdba74;
123
+ --status-red: #300c0c;
124
+ --status-red-foreground: #fca5a5;
125
+ --status-yellow: #422006;
126
+ --status-yellow-foreground: #fde047;
127
+ --status-gray: #27272a;
128
+ --status-gray-foreground: #e4e4e7;
129
+ }
130
+
131
+ /* Aliases re-declared on every theming scope, so a nested .dark section or a
132
+ [data-brand] subtree re-resolves them (custom properties compute where they
133
+ are declared, not where they are used). */
134
+ :root,
135
+ .dark,
136
+ [data-brand] {
137
+ --primary: var(--brand, var(--brand-default));
138
+ --primary-foreground: var(--brand-foreground);
139
+ --ring: var(--brand, var(--brand-default));
140
+ --sidebar-primary: var(--brand, var(--brand-default));
141
+ --sidebar-primary-foreground: var(--brand-foreground);
142
+ --sidebar-ring: var(--brand, var(--brand-default));
143
+ }
144
+
145
+ /* White-label, light: subtle = step 100, muted = 200, fg = 700 of the generator */
146
+ [data-brand] {
147
+ --brand-foreground: var(--brand-on, #ffffff);
148
+ --brand-subtle: color-mix(in oklab, var(--brand) 10%, white);
149
+ --brand-muted: color-mix(in oklab, var(--brand) 20%, white);
150
+ --brand-fg: color-mix(in oklab, var(--brand) 70%, black);
151
+ }
152
+ /* White-label, dark: the brand keeps its color; subtle = 900, muted = 800, fg = 300 */
153
+ .dark[data-brand],
154
+ .dark [data-brand],
155
+ [data-brand] .dark {
156
+ --brand-foreground: var(--brand-on-dark, var(--brand-on, #ffffff));
157
+ --brand-subtle: color-mix(in oklab, var(--brand) 40%, black);
158
+ --brand-muted: color-mix(in oklab, var(--brand) 55%, black);
159
+ --brand-fg: color-mix(in oklab, var(--brand) 40%, white);
160
+ }
161
+
162
+ @theme inline {
163
+ --color-background: var(--background);
164
+ --color-foreground: var(--foreground);
165
+ --color-card: var(--card);
166
+ --color-card-foreground: var(--card-foreground);
167
+ --color-popover: var(--popover);
168
+ --color-popover-foreground: var(--popover-foreground);
169
+ --color-primary: var(--primary);
170
+ --color-primary-foreground: var(--primary-foreground);
171
+ --color-secondary: var(--secondary);
172
+ --color-secondary-foreground: var(--secondary-foreground);
173
+ --color-muted: var(--muted);
174
+ --color-muted-foreground: var(--muted-foreground);
175
+ --color-subtle-foreground: var(--subtle-foreground);
176
+ --color-accent: var(--accent);
177
+ --color-accent-foreground: var(--accent-foreground);
178
+ --color-destructive: var(--destructive);
179
+ --color-destructive-foreground: var(--destructive-foreground);
180
+ --color-border: var(--border);
181
+ --color-input: var(--input);
182
+ --color-ring: var(--ring);
183
+ --color-placeholder: var(--placeholder);
184
+ --color-brand: var(--primary);
185
+ --color-brand-foreground: var(--brand-foreground);
186
+ --color-brand-subtle: var(--brand-subtle);
187
+ --color-brand-muted: var(--brand-muted);
188
+ --color-brand-fg: var(--brand-fg);
189
+ --color-sidebar: var(--sidebar);
190
+ --color-sidebar-foreground: var(--sidebar-foreground);
191
+ --color-sidebar-accent: var(--sidebar-accent);
192
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
193
+ --color-sidebar-border: var(--sidebar-border);
194
+ --color-sidebar-primary: var(--sidebar-primary);
195
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
196
+ --color-sidebar-ring: var(--sidebar-ring);
197
+ --color-status-green: var(--status-green);
198
+ --color-status-green-foreground: var(--status-green-foreground);
199
+ --color-status-teal: var(--status-teal);
200
+ --color-status-teal-foreground: var(--status-teal-foreground);
201
+ --color-status-blue: var(--status-blue);
202
+ --color-status-blue-foreground: var(--status-blue-foreground);
203
+ --color-status-purple: var(--status-purple);
204
+ --color-status-purple-foreground: var(--status-purple-foreground);
205
+ --color-status-orange: var(--status-orange);
206
+ --color-status-orange-foreground: var(--status-orange-foreground);
207
+ --color-status-red: var(--status-red);
208
+ --color-status-red-foreground: var(--status-red-foreground);
209
+ --color-status-yellow: var(--status-yellow);
210
+ --color-status-yellow-foreground: var(--status-yellow-foreground);
211
+ --color-status-gray: var(--status-gray);
212
+ --color-status-gray-foreground: var(--status-gray-foreground);
213
+ --color-chart-1: var(--chart-1);
214
+ --color-chart-2: var(--chart-2);
215
+ --color-chart-3: var(--chart-3);
216
+ --color-chart-4: var(--chart-4);
217
+ --color-chart-5: var(--chart-5);
218
+
219
+ --font-sans: var(--font-sans);
220
+ --font-mono: var(--font-mono);
221
+
222
+ /* Radius: controls 6px, cards/dialogs 8px */
223
+ --radius-xs: 4px;
224
+ --radius-sm: 6px;
225
+ --radius-md: 8px;
226
+ --radius-lg: 10px;
227
+ --radius-xl: 12px;
228
+ --radius-2xl: 16px;
229
+
230
+ --shadow-xs: 0px 1px 2px rgb(24 24 27 / 0.1), 0px 0px 1px rgb(24 24 27 / 0.2);
231
+ --shadow-sm: 0px 2px 4px rgb(24 24 27 / 0.1), 0px 0px 1px rgb(24 24 27 / 0.3);
232
+ --shadow-md: 0px 4px 8px rgb(24 24 27 / 0.1), 0px 0px 1px rgb(24 24 27 / 0.3);
233
+ --shadow-lg: 0px 8px 16px rgb(24 24 27 / 0.1), 0px 0px 1px rgb(24 24 27 / 0.3);
234
+
235
+ --spacing-sidebar: 255px;
236
+ --spacing-sidebar-reduced: 48px;
237
+ --spacing-voting-sidebar: 320px;
238
+ --container-content: 1200px;
239
+ }
240
+
241
+ @layer base {
242
+ * {
243
+ @apply border-border outline-ring/50;
244
+ }
245
+ :root {
246
+ color-scheme: light;
247
+ }
248
+ .dark {
249
+ color-scheme: dark;
250
+ }
251
+ body {
252
+ @apply bg-background text-foreground font-sans;
253
+ -webkit-font-smoothing: antialiased;
254
+ }
255
+ h1,
256
+ h2,
257
+ h3,
258
+ h4 {
259
+ font-weight: 400;
260
+ letter-spacing: -0.025em;
261
+ }
262
+ input::placeholder,
263
+ textarea::placeholder {
264
+ color: var(--placeholder);
265
+ }
266
+ /* iOS Safari zooms focused inputs under 16px: 16px on mobile, 14px from md */
267
+ input,
268
+ select,
269
+ textarea {
270
+ font-size: 16px;
271
+ }
272
+ @media (min-width: 48rem) {
273
+ input,
274
+ select,
275
+ textarea {
276
+ font-size: 14px;
277
+ }
278
+ }
279
+ @media (prefers-reduced-motion: reduce) {
280
+ *,
281
+ *::before,
282
+ *::after {
283
+ animation-duration: 0.01ms !important;
284
+ animation-iteration-count: 1 !important;
285
+ transition-duration: 0.01ms !important;
286
+ scroll-behavior: auto !important;
287
+ }
288
+ }
289
+ }