picasso-skill 1.5.1 → 2.0.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/agents/picasso.md +14 -2
- package/checklists/pre-ship.md +83 -0
- package/commands/backlog.md +34 -0
- package/commands/variants.md +18 -0
- package/package.json +3 -1
- package/references/accessibility-wcag.md +245 -0
- package/references/anti-patterns.md +184 -0
- package/references/color-and-contrast.md +477 -0
- package/references/component-patterns.md +113 -0
- package/references/conversion-design.md +193 -0
- package/references/data-visualization.md +226 -0
- package/references/depth-and-elevation.md +211 -0
- package/references/design-system.md +176 -0
- package/references/generative-art.md +648 -0
- package/references/interaction-design.md +162 -0
- package/references/modern-css-performance.md +361 -0
- package/references/motion-and-animation.md +267 -0
- package/references/performance-optimization.md +746 -0
- package/references/react-patterns.md +318 -0
- package/references/responsive-design.md +452 -0
- package/references/sensory-design.md +369 -0
- package/references/spatial-design.md +176 -0
- package/references/style-presets.md +502 -0
- package/references/tools-catalog.md +103 -0
- package/references/typography.md +415 -0
- package/references/ux-psychology.md +235 -0
- package/references/ux-writing.md +513 -0
- package/skills/picasso/SKILL.md +58 -2
- package/skills/picasso/references/animation-performance.md +244 -0
- package/skills/picasso/references/brand-and-identity.md +136 -0
- package/skills/picasso/references/code-typography.md +222 -0
- package/skills/picasso/references/color-and-contrast.md +56 -2
- package/skills/picasso/references/dark-mode.md +199 -0
- package/skills/picasso/references/depth-and-elevation.md +211 -0
- package/skills/picasso/references/i18n-visual-patterns.md +177 -0
- package/skills/picasso/references/images-and-media.md +222 -0
- package/skills/picasso/references/loading-and-states.md +258 -0
- package/skills/picasso/references/micro-interactions.md +291 -0
- package/skills/picasso/references/motion-and-animation.md +9 -2
- package/skills/picasso/references/navigation-patterns.md +247 -0
- package/skills/picasso/references/style-presets.md +1 -1
- package/skills/picasso/references/tables-and-forms.md +227 -0
- package/skills/picasso/references/tools-catalog.md +103 -0
- package/skills/picasso/references/typography.md +45 -2
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
# Design System Reference
|
|
2
|
+
|
|
3
|
+
## Table of Contents
|
|
4
|
+
1. DESIGN.md Format
|
|
5
|
+
2. Theme Generation
|
|
6
|
+
3. Token Structure
|
|
7
|
+
4. Pre-Built Themes
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## 1. DESIGN.md Format
|
|
12
|
+
|
|
13
|
+
When generating a design system document, follow this structure (derived from the Google Stitch DESIGN.md format, extended by VoltAgent):
|
|
14
|
+
|
|
15
|
+
```markdown
|
|
16
|
+
# DESIGN.md
|
|
17
|
+
|
|
18
|
+
## 1. Visual Theme & Atmosphere
|
|
19
|
+
Describe the mood, density, and design philosophy. Is this minimal or dense?
|
|
20
|
+
Warm or cold? Playful or serious? What existing products or aesthetics does it
|
|
21
|
+
reference?
|
|
22
|
+
|
|
23
|
+
## 2. Color Palette & Roles
|
|
24
|
+
| Token | OKLCH | Hex (fallback) | Role |
|
|
25
|
+
|---|---|---|---|
|
|
26
|
+
| surface-primary | oklch(0.985 0.005 80) | #fafaf9 | Page background |
|
|
27
|
+
| surface-secondary | oklch(0.97 0.008 80) | #f5f5f4 | Card/section background |
|
|
28
|
+
| text-primary | oklch(0.15 0.02 60) | #1c1917 | Headings and body text |
|
|
29
|
+
| text-secondary | oklch(0.40 0.02 60) | #57534e | Supporting text, labels |
|
|
30
|
+
| accent | oklch(0.55 0.25 25) | #dc2626 | CTAs, active states, links |
|
|
31
|
+
| accent-hover | oklch(0.48 0.25 25) | #b91c1c | Hover state for accent |
|
|
32
|
+
| accent-subtle | oklch(0.97 0.02 25) | #fef2f2 | Accent-tinted background |
|
|
33
|
+
| border | oklch(0.91 0.01 80) | #e7e5e4 | Default borders |
|
|
34
|
+
| success | oklch(0.55 0.18 145) | #16a34a | Success states |
|
|
35
|
+
| warning | oklch(0.65 0.18 70) | #d97706 | Warning states |
|
|
36
|
+
| error | oklch(0.55 0.22 25) | #dc2626 | Error states |
|
|
37
|
+
|
|
38
|
+
## 3. Typography Rules
|
|
39
|
+
| Level | Font | Size | Weight | Line Height | Letter Spacing |
|
|
40
|
+
|---|---|---|---|---|---|
|
|
41
|
+
| Display | [Display Font] | 3rem | 700 | 1.1 | -0.02em |
|
|
42
|
+
| H1 | [Display Font] | 2.25rem | 700 | 1.15 | -0.01em |
|
|
43
|
+
| H2 | [Display Font] | 1.875rem | 600 | 1.2 | -0.01em |
|
|
44
|
+
| H3 | [Body Font] | 1.5rem | 600 | 1.25 | 0 |
|
|
45
|
+
| Body | [Body Font] | 1rem | 400 | 1.6 | 0 |
|
|
46
|
+
| Small | [Body Font] | 0.875rem | 400 | 1.5 | 0 |
|
|
47
|
+
| Caption | [Body Font] | 0.75rem | 500 | 1.4 | 0.02em |
|
|
48
|
+
| Code | [Mono Font] | 0.875rem | 400 | 1.6 | 0 |
|
|
49
|
+
|
|
50
|
+
## 4. Component Styling
|
|
51
|
+
### Buttons
|
|
52
|
+
| Variant | Background | Text | Border | Radius | Padding |
|
|
53
|
+
|---|---|---|---|---|---|
|
|
54
|
+
| Primary | accent | white | none | 8px | 12px 24px |
|
|
55
|
+
| Secondary | transparent | text-primary | 1px border | 8px | 12px 24px |
|
|
56
|
+
| Ghost | transparent | text-secondary | none | 8px | 12px 24px |
|
|
57
|
+
| Destructive | error | white | none | 8px | 12px 24px |
|
|
58
|
+
|
|
59
|
+
States: hover (darken bg 5%), active (darken 10%, scale 0.98), disabled (opacity 0.5), focus (2px accent outline, 2px offset).
|
|
60
|
+
|
|
61
|
+
### Cards
|
|
62
|
+
Background: surface-secondary. Border: 1px border. Radius: 12px.
|
|
63
|
+
Padding: 24px. Shadow: 0 1px 3px rgba(0,0,0,0.05).
|
|
64
|
+
Hover: shadow increases to 0 4px 12px rgba(0,0,0,0.08).
|
|
65
|
+
|
|
66
|
+
### Inputs
|
|
67
|
+
Height: 44px. Border: 1px border. Radius: 8px. Padding: 0 12px.
|
|
68
|
+
Focus: 2px accent border, subtle accent glow.
|
|
69
|
+
Error: error border, error message below.
|
|
70
|
+
Disabled: opacity 0.5, cursor not-allowed.
|
|
71
|
+
|
|
72
|
+
### Navigation
|
|
73
|
+
Describe the navigation pattern (sidebar, top bar, tabs) with specific dimensions,
|
|
74
|
+
colors, and active/hover states.
|
|
75
|
+
|
|
76
|
+
## 5. Layout Principles
|
|
77
|
+
Spacing scale: 4, 8, 12, 16, 24, 32, 48, 64, 96.
|
|
78
|
+
Max content width: [value]px.
|
|
79
|
+
Grid: [columns] columns with [gap]px gaps.
|
|
80
|
+
Page margins: [value]px on desktop, [value]px on mobile.
|
|
81
|
+
|
|
82
|
+
## 6. Depth & Elevation
|
|
83
|
+
| Level | Shadow | Use |
|
|
84
|
+
|---|---|---|
|
|
85
|
+
| 0 | none | Flat elements, inline content |
|
|
86
|
+
| 1 | 0 1px 2px rgba(0,0,0,0.05) | Cards, dropdowns |
|
|
87
|
+
| 2 | 0 4px 12px rgba(0,0,0,0.08) | Floating elements, hover cards |
|
|
88
|
+
| 3 | 0 8px 24px rgba(0,0,0,0.12) | Modals, dialogs |
|
|
89
|
+
| 4 | 0 16px 48px rgba(0,0,0,0.16) | Popovers, overlays |
|
|
90
|
+
|
|
91
|
+
## 7. Do's and Don'ts
|
|
92
|
+
### Do
|
|
93
|
+
- [specific guidance for this design system]
|
|
94
|
+
|
|
95
|
+
### Don't
|
|
96
|
+
- [specific anti-patterns to avoid]
|
|
97
|
+
|
|
98
|
+
## 8. Responsive Behavior
|
|
99
|
+
Breakpoints: [values].
|
|
100
|
+
Mobile navigation: [pattern].
|
|
101
|
+
Column collapse strategy: [how grids simplify].
|
|
102
|
+
Touch target minimum: 48px.
|
|
103
|
+
|
|
104
|
+
## 9. Agent Prompt Guide
|
|
105
|
+
Quick reference for AI agents building with this system:
|
|
106
|
+
- Primary color: [hex]
|
|
107
|
+
- Background: [hex]
|
|
108
|
+
- Font family: [name]
|
|
109
|
+
- Border radius: [value]
|
|
110
|
+
- Spacing unit: [value]
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## 2. Theme Generation
|
|
116
|
+
|
|
117
|
+
When creating a custom theme, follow this process:
|
|
118
|
+
|
|
119
|
+
1. **Start with the accent color.** This is usually the brand color or the primary action color.
|
|
120
|
+
2. **Derive surfaces.** Take the accent hue, reduce chroma to near-zero, and create a lightness scale.
|
|
121
|
+
3. **Build the text scale.** Tint near-black toward the accent hue for warmth.
|
|
122
|
+
4. **Choose fonts.** Match the emotional register (serif for editorial/luxury, sans for tech/modern, mono for developer/terminal).
|
|
123
|
+
5. **Set border radius.** 0px for brutalist, 4-8px for professional, 12-16px for friendly, 999px for pill-shaped.
|
|
124
|
+
6. **Define shadows.** Match the overall aesthetic (no shadows for flat designs, layered shadows for elevated designs).
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
## 3. Token Structure
|
|
129
|
+
|
|
130
|
+
Organize tokens by function, not by value:
|
|
131
|
+
|
|
132
|
+
```
|
|
133
|
+
--color-surface-{0-3} Backgrounds, from page to elevated
|
|
134
|
+
--color-text-{primary,secondary,tertiary} Text hierarchy
|
|
135
|
+
--color-accent Primary action color
|
|
136
|
+
--color-accent-{hover,subtle} Accent variants
|
|
137
|
+
--color-border Default borders
|
|
138
|
+
--color-{success,warning,error,info} Semantic states
|
|
139
|
+
--space-{1-24} Spacing scale
|
|
140
|
+
--radius-{sm,md,lg,full} Border radius
|
|
141
|
+
--shadow-{sm,md,lg,xl} Elevation
|
|
142
|
+
--font-{display,body,mono} Font families
|
|
143
|
+
--text-{xs,sm,base,lg,xl,2xl,3xl,4xl} Type scale
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## 4. Pre-Built Themes
|
|
149
|
+
|
|
150
|
+
### Midnight Terminal
|
|
151
|
+
Dark background, green accent, monospace-forward. Suited for developer tools.
|
|
152
|
+
- Surface: oklch(0.12 0.01 150) to oklch(0.20 0.015 150)
|
|
153
|
+
- Accent: oklch(0.70 0.20 150) (terminal green)
|
|
154
|
+
- Font: JetBrains Mono + IBM Plex Sans
|
|
155
|
+
- Radius: 4px
|
|
156
|
+
|
|
157
|
+
### Warm Editorial
|
|
158
|
+
Cream background, serif headings, generous whitespace. Suited for content-heavy sites.
|
|
159
|
+
- Surface: oklch(0.97 0.01 60) to oklch(0.93 0.015 60)
|
|
160
|
+
- Accent: oklch(0.45 0.15 25) (warm red)
|
|
161
|
+
- Font: Instrument Serif + Source Sans 3
|
|
162
|
+
- Radius: 2px
|
|
163
|
+
|
|
164
|
+
### Swiss Precision
|
|
165
|
+
White background, strict grid, no decoration. Suited for professional tools.
|
|
166
|
+
- Surface: oklch(0.99 0.002 0) to oklch(0.95 0.005 0)
|
|
167
|
+
- Accent: oklch(0.50 0.25 250) (blue)
|
|
168
|
+
- Font: Outfit + DM Sans
|
|
169
|
+
- Radius: 0px
|
|
170
|
+
|
|
171
|
+
### Soft Pastel
|
|
172
|
+
Light pastel background, rounded elements, friendly. Suited for consumer apps.
|
|
173
|
+
- Surface: oklch(0.97 0.02 280) to oklch(0.93 0.03 280)
|
|
174
|
+
- Accent: oklch(0.60 0.20 280) (soft purple)
|
|
175
|
+
- Font: Nunito + Nunito Sans
|
|
176
|
+
- Radius: 16px
|