Style Guide Generator
Overview
Generate professionally formatted website style guides and design systems by analyzing provided URLs, screenshots, uploaded files, and user requirements. Output comprehensive PDF documents that serve as the single source of truth for design and development teams.
Workflow Decision Tree
When a user requests a style guide, follow this decision tree:
Gather Information
- If user provides URL → Use web_fetch to analyze the website
- If user provides screenshots/images → Analyze visual elements
- If user provides existing documentation → Extract and structure information
- If user provides minimal information → Ask clarifying questions about brand, goals, and requirements
Extract Design Elements
- Colors (primary, secondary, accent, text, background, success, warning, error)
- Typography (fonts, weights, sizes, line heights)
- Logo usage guidelines
- Iconography style
- Imagery preferences
- UI component patterns
- Layout and spacing systems
- Accessibility requirements
Structure Content
- Follow the standard template structure (see Template Structure section)
- Organize extracted information into appropriate sections
- Add mission/vision if provided or inferred
- Document design principles
- Create component specifications
Generate PDF
- Use the PDF skill to create a professional document
- Apply consistent formatting and typography
- Include tables for color palettes, typography specs, and component states
- Ensure accessibility with proper contrast ratios
- Add version number and last updated date
Standard Template Structure
Every style guide should follow this professional structure (based on industry best practices):
1.0 Introduction
- Version number and last updated date
- Purpose and scope statement
- Target audience (design and development teams)
1.1 Mission & Vision
- Company mission statement
- Company vision statement
- Strategic positioning
1.2 Design Principles
- 4-6 core principles that guide design decisions
- Each principle with name and description
- Examples: "Clarity Above All", "Empowerment Through Simplicity", "Consistency Builds Trust", "Human-Centered"
2.0 Brand Identity
2.1 Logo Usage
- Primary logo specifications
- Clear space requirements
- Incorrect usage examples
- Minimum size requirements
- Color variations (full color, black, white)
2.2 Color Palette
- Organized table with Role, Color Name, HEX, and RGB values
- Primary colors (1-2)
- Secondary colors (1-3)
- Accent colors
- Text colors
- Background colors
- System colors (Success, Warning, Error)
- Accessibility notes for each color combination
2.3 Typography
- Heading font specifications (H1, H2, H3)
- Body text specifications
- Caption/small text specifications
- Font families, weights, sizes, and line heights in tabular format
- Web font loading considerations
- Fallback fonts
2.4 Iconography
- Icon style guidelines (outlined, filled, line weight)
- Grid system specifications
- Size variants
- Usage examples
- Link to icon library
2.5 Imagery
- Photography style guidelines
- Illustration style guidelines
- Image treatment specifications
- Do's and don'ts
- Quality requirements
3.0 Content Style Guide
3.1 Voice and Tone
- Voice characteristics (consistent attributes)
- Tone variations (how voice adapts to context)
- Examples for different scenarios
3.2 Grammar and Mechanics
- Punctuation rules
- Capitalization standards
- Voice preference (active/passive)
- Number formatting
- Date and time formatting
4.0 UI Components
4.1 Buttons
- State variants (Primary, Secondary, Tertiary, Disabled)
- Size variants
- Usage guidelines
- Code snippets (HTML/CSS)
- Accessibility requirements
4.2 Forms
- Input field specifications
- Label positioning
- Validation states
- Required field indicators
- Error message styling
- Help text formatting
4.3 [Additional Components as needed]
- Cards
- Modals
- Navigation
- Tables
- Alerts/Notifications
- Tooltips
- Badges
- Progress indicators
5.0 Layout & Grid
- Grid system specifications (columns, gutters)
- Responsive breakpoints
- Spacing scale (base unit and multipliers)
- Container widths
- Margin and padding conventions
6.0 Accessibility (A11y)
- WCAG compliance level (2.1 AA standard)
- Color contrast requirements
- Alt text guidelines
- Keyboard navigation standards
- Screen reader considerations
- Focus indicators
7.0 Resources
- Links to design files (Figma, Sketch, Adobe XD)
- Icon library location
- Illustration library location
- Font files repository
- Code repository
- Additional documentation
8.0 Changelog
- Version history with dates
- Changes summary for each version
Information Extraction Process
When analyzing provided materials, extract the following systematically:
From URLs/Websites:
- Fetch the website using web_fetch
- Analyze HTML/CSS for:
- Color values (background-color, color properties)
- Font families and typography (font-family, font-size, font-weight)
- Spacing patterns (margin, padding values)
- Component structures
- Take note of:
- Visual hierarchy
- Button styles and states
- Form element treatments
- Navigation patterns
- Responsive behavior (if observable)
From Screenshots/Images:
- Identify color palette using visual analysis
- Determine typography hierarchy
- Note spacing and layout patterns
- Identify UI component variants
- Observe design principles in practice
From Existing Documentation:
- Extract mission/vision statements
- Gather existing brand guidelines
- Collect color specifications
- Document current typography standards
- Note any existing component libraries
Creating Professional Tables
Use well-formatted tables for specifications. Example formats:
Color Palette Table:
| Role | Color | HEX | RGB |
|------------|-------------|---------|---------------|
| Primary | Brand Blue | #378DFF | 55, 141, 255 |
| Secondary | Light Blue | #A5CAFF | 165, 202, 255 |
Typography Table:
| Element | Font Family | Weight | Size (px) | Line Height |
|---------|-------------|---------|-----------|-------------|
| H1 | Inter | Bold | 48 | 1.2 |
| H2 | Inter | Bold | 36 | 1.3 |
| Body | Inter | Regular | 16 | 1.5 |
Button States Table:
| State | Appearance | Usage |
|-----------|-------------------------|--------------------------------|
| Primary | Solid fill, primary | Main call to action on a page |
| Secondary | Outline, primary color | Secondary actions |
| Tertiary | Text only | Less important actions |
PDF Generation Best Practices
Professional Formatting:
- Use consistent heading hierarchy
- Apply proper spacing between sections
- Utilize tables for structured data
- Include visual examples where possible
Typography:
- Use professional fonts (Inter, Roboto, or system fonts)
- Maintain consistent sizing hierarchy
- Ensure sufficient line height for readability
Color Usage:
- Show color swatches with hex codes
- Ensure sufficient contrast for accessibility
- Document color roles clearly
Organization:
- Number sections clearly (1.0, 1.1, 2.0, etc.)
- Include table of contents for longer guides
- Use page breaks appropriately
- Add page numbers
Accessibility:
- Ensure document is screen-reader friendly
- Use proper heading structure
- Include alt text for images
- Maintain minimum font size of 12pt
Handling Incomplete Information
When information is missing or unclear:
Make Reasonable Inferences:
- Extract colors from provided screenshots
- Infer typography from website analysis
- Estimate spacing based on visual patterns
Use Placeholders:
- "[Insert company mission statement]" for unknown content
- "[Link to design files]" for unavailable resources
- "Version 1.0" and current date as defaults
Ask Clarifying Questions:
- "What is your company's mission statement?"
- "Do you have existing brand colors or should I extract them from the website?"
- "Are there specific accessibility requirements beyond WCAG 2.1 AA?"
Provide Templates:
- Include example text for sections that need user input
- Show format for content they should provide
- Give guidance on what information would be ideal
Example User Interactions
Example 1: URL-Based Request
User: "Create a style guide for my website at example.com"
Process:
- Fetch website with web_fetch
- Analyze HTML/CSS for design system
- Extract colors, fonts, spacing
- Structure into standard template
- Generate professional PDF
- Provide download link
Example 2: Screenshot-Based Request
User: "Here are screenshots of my app. Create a style guide." [uploads images]
Process:
- Analyze images for visual elements
- Extract color palette
- Identify typography patterns
- Document component styles
- Fill in template structure
- Generate PDF with findings
- Provide download link
Example 3: Comprehensive Request
User: "Create a style guide using my website URL, these brand colors [list], and our mission statement [text]"
Process:
- Combine all provided information
- Fetch and analyze website
- Integrate provided brand elements
- Structure complete style guide
- Generate professional PDF
- Provide download link
Quality Checklist
Before delivering the style guide PDF, verify:
Resources
This skill uses the following bundled resources:
assets/template.pdf
The base template PDF that demonstrates the professional structure and formatting that all generated style guides should follow. This file serves as a reference for structure, section organization, and formatting standards.
scripts/analyze_website.py
Python script to extract design system information from websites, including colors, typography, and component patterns. Can be used to automatically gather design specifications from live URLs.
references/design_system_examples.md
Reference document containing examples of well-structured design systems and style guides from leading companies. Use this for inspiration on content organization and presentation standards.
1---
2name: style-guide-generator
3description: Generate comprehensive website style guides and design systems from URLs, screenshots, and existing documentation. Use this skill when users ask to create a style guide, design system documentation, brand guidelines document, or design specification from a website, app, or existing materials. This skill produces professional PDF outputs following industry-standard style guide structure.
4metadata:
5 source: https://skillmd.com/skills/danstrem2/style-guide-generator
6---
7
8# Style Guide Generator
9
10## Overview
11
12Generate professionally formatted website style guides and design systems by analyzing provided URLs, screenshots, uploaded files, and user requirements. Output comprehensive PDF documents that serve as the single source of truth for design and development teams.
13
14## Workflow Decision Tree
15
16When a user requests a style guide, follow this decision tree:
17
181. **Gather Information**
19 - If user provides URL → Use web_fetch to analyze the website
20 - If user provides screenshots/images → Analyze visual elements
21 - If user provides existing documentation → Extract and structure information
22 - If user provides minimal information → Ask clarifying questions about brand, goals, and requirements
23
242. **Extract Design Elements**
25 - Colors (primary, secondary, accent, text, background, success, warning, error)
26 - Typography (fonts, weights, sizes, line heights)
27 - Logo usage guidelines
28 - Iconography style
29 - Imagery preferences
30 - UI component patterns
31 - Layout and spacing systems
32 - Accessibility requirements
33
343. **Structure Content**
35 - Follow the standard template structure (see Template Structure section)
36 - Organize extracted information into appropriate sections
37 - Add mission/vision if provided or inferred
38 - Document design principles
39 - Create component specifications
40
414. **Generate PDF**
42 - Use the PDF skill to create a professional document
43 - Apply consistent formatting and typography
44 - Include tables for color palettes, typography specs, and component states
45 - Ensure accessibility with proper contrast ratios
46 - Add version number and last updated date
47
48## Standard Template Structure
49
50Every style guide should follow this professional structure (based on industry best practices):
51
52### 1.0 Introduction
53- Version number and last updated date
54- Purpose and scope statement
55- Target audience (design and development teams)
56
57### 1.1 Mission & Vision
58- Company mission statement
59- Company vision statement
60- Strategic positioning
61
62### 1.2 Design Principles
63- 4-6 core principles that guide design decisions
64- Each principle with name and description
65- Examples: "Clarity Above All", "Empowerment Through Simplicity", "Consistency Builds Trust", "Human-Centered"
66
67### 2.0 Brand Identity
68
69#### 2.1 Logo Usage
70- Primary logo specifications
71- Clear space requirements
72- Incorrect usage examples
73- Minimum size requirements
74- Color variations (full color, black, white)
75
76#### 2.2 Color Palette
77- Organized table with Role, Color Name, HEX, and RGB values
78- Primary colors (1-2)
79- Secondary colors (1-3)
80- Accent colors
81- Text colors
82- Background colors
83- System colors (Success, Warning, Error)
84- Accessibility notes for each color combination
85
86#### 2.3 Typography
87- Heading font specifications (H1, H2, H3)
88- Body text specifications
89- Caption/small text specifications
90- Font families, weights, sizes, and line heights in tabular format
91- Web font loading considerations
92- Fallback fonts
93
94#### 2.4 Iconography
95- Icon style guidelines (outlined, filled, line weight)
96- Grid system specifications
97- Size variants
98- Usage examples
99- Link to icon library
100
101#### 2.5 Imagery
102- Photography style guidelines
103- Illustration style guidelines
104- Image treatment specifications
105- Do's and don'ts
106- Quality requirements
107
108### 3.0 Content Style Guide
109
110#### 3.1 Voice and Tone
111- Voice characteristics (consistent attributes)
112- Tone variations (how voice adapts to context)
113- Examples for different scenarios
114
115#### 3.2 Grammar and Mechanics
116- Punctuation rules
117- Capitalization standards
118- Voice preference (active/passive)
119- Number formatting
120- Date and time formatting
121
122### 4.0 UI Components
123
124#### 4.1 Buttons
125- State variants (Primary, Secondary, Tertiary, Disabled)
126- Size variants
127- Usage guidelines
128- Code snippets (HTML/CSS)
129- Accessibility requirements
130
131#### 4.2 Forms
132- Input field specifications
133- Label positioning
134- Validation states
135- Required field indicators
136- Error message styling
137- Help text formatting
138
139#### 4.3 [Additional Components as needed]
140- Cards
141- Modals
142- Navigation
143- Tables
144- Alerts/Notifications
145- Tooltips
146- Badges
147- Progress indicators
148
149### 5.0 Layout & Grid
150- Grid system specifications (columns, gutters)
151- Responsive breakpoints
152- Spacing scale (base unit and multipliers)
153- Container widths
154- Margin and padding conventions
155
156### 6.0 Accessibility (A11y)
157- WCAG compliance level (2.1 AA standard)
158- Color contrast requirements
159- Alt text guidelines
160- Keyboard navigation standards
161- Screen reader considerations
162- Focus indicators
163
164### 7.0 Resources
165- Links to design files (Figma, Sketch, Adobe XD)
166- Icon library location
167- Illustration library location
168- Font files repository
169- Code repository
170- Additional documentation
171
172### 8.0 Changelog
173- Version history with dates
174- Changes summary for each version
175
176## Information Extraction Process
177
178When analyzing provided materials, extract the following systematically:
179
180### From URLs/Websites:
1811. Fetch the website using web_fetch
1822. Analyze HTML/CSS for:
183 - Color values (background-color, color properties)
184 - Font families and typography (font-family, font-size, font-weight)
185 - Spacing patterns (margin, padding values)
186 - Component structures
1873. Take note of:
188 - Visual hierarchy
189 - Button styles and states
190 - Form element treatments
191 - Navigation patterns
192 - Responsive behavior (if observable)
193
194### From Screenshots/Images:
1951. Identify color palette using visual analysis
1962. Determine typography hierarchy
1973. Note spacing and layout patterns
1984. Identify UI component variants
1995. Observe design principles in practice
200
201### From Existing Documentation:
2021. Extract mission/vision statements
2032. Gather existing brand guidelines
2043. Collect color specifications
2054. Document current typography standards
2065. Note any existing component libraries
207
208## Creating Professional Tables
209
210Use well-formatted tables for specifications. Example formats:
211
212**Color Palette Table:**
213```
214| Role | Color | HEX | RGB |
215|------------|-------------|---------|---------------|
216| Primary | Brand Blue | #378DFF | 55, 141, 255 |
217| Secondary | Light Blue | #A5CAFF | 165, 202, 255 |
218```
219
220**Typography Table:**
221```
222| Element | Font Family | Weight | Size (px) | Line Height |
223|---------|-------------|---------|-----------|-------------|
224| H1 | Inter | Bold | 48 | 1.2 |
225| H2 | Inter | Bold | 36 | 1.3 |
226| Body | Inter | Regular | 16 | 1.5 |
227```
228
229**Button States Table:**
230```
231| State | Appearance | Usage |
232|-----------|-------------------------|--------------------------------|
233| Primary | Solid fill, primary | Main call to action on a page |
234| Secondary | Outline, primary color | Secondary actions |
235| Tertiary | Text only | Less important actions |
236```
237
238## PDF Generation Best Practices
239
2401. **Professional Formatting:**
241 - Use consistent heading hierarchy
242 - Apply proper spacing between sections
243 - Utilize tables for structured data
244 - Include visual examples where possible
245
2462. **Typography:**
247 - Use professional fonts (Inter, Roboto, or system fonts)
248 - Maintain consistent sizing hierarchy
249 - Ensure sufficient line height for readability
250
2513. **Color Usage:**
252 - Show color swatches with hex codes
253 - Ensure sufficient contrast for accessibility
254 - Document color roles clearly
255
2564. **Organization:**
257 - Number sections clearly (1.0, 1.1, 2.0, etc.)
258 - Include table of contents for longer guides
259 - Use page breaks appropriately
260 - Add page numbers
261
2625. **Accessibility:**
263 - Ensure document is screen-reader friendly
264 - Use proper heading structure
265 - Include alt text for images
266 - Maintain minimum font size of 12pt
267
268## Handling Incomplete Information
269
270When information is missing or unclear:
271
2721. **Make Reasonable Inferences:**
273 - Extract colors from provided screenshots
274 - Infer typography from website analysis
275 - Estimate spacing based on visual patterns
276
2772. **Use Placeholders:**
278 - "[Insert company mission statement]" for unknown content
279 - "[Link to design files]" for unavailable resources
280 - "Version 1.0" and current date as defaults
281
2823. **Ask Clarifying Questions:**
283 - "What is your company's mission statement?"
284 - "Do you have existing brand colors or should I extract them from the website?"
285 - "Are there specific accessibility requirements beyond WCAG 2.1 AA?"
286
2874. **Provide Templates:**
288 - Include example text for sections that need user input
289 - Show format for content they should provide
290 - Give guidance on what information would be ideal
291
292## Example User Interactions
293
294**Example 1: URL-Based Request**
295User: "Create a style guide for my website at example.com"
296Process:
2971. Fetch website with web_fetch
2982. Analyze HTML/CSS for design system
2993. Extract colors, fonts, spacing
3004. Structure into standard template
3015. Generate professional PDF
3026. Provide download link
303
304**Example 2: Screenshot-Based Request**
305User: "Here are screenshots of my app. Create a style guide." [uploads images]
306Process:
3071. Analyze images for visual elements
3082. Extract color palette
3093. Identify typography patterns
3104. Document component styles
3115. Fill in template structure
3126. Generate PDF with findings
3137. Provide download link
314
315**Example 3: Comprehensive Request**
316User: "Create a style guide using my website URL, these brand colors [list], and our mission statement [text]"
317Process:
3181. Combine all provided information
3192. Fetch and analyze website
3203. Integrate provided brand elements
3214. Structure complete style guide
3225. Generate professional PDF
3236. Provide download link
324
325## Quality Checklist
326
327Before delivering the style guide PDF, verify:
328
329- [ ] All sections are complete or marked as placeholders
330- [ ] Color palette includes HEX and RGB values
331- [ ] Typography specifications are detailed (family, weight, size, line height)
332- [ ] Tables are properly formatted and aligned
333- [ ] Accessibility requirements are documented
334- [ ] Version number and date are included
335- [ ] Resources section links are provided (even if placeholder)
336- [ ] Changelog is started with version 1.0
337- [ ] PDF is professionally formatted
338- [ ] Document is ready for team distribution
339
340## Resources
341
342This skill uses the following bundled resources:
343
344### assets/template.pdf
345The base template PDF that demonstrates the professional structure and formatting that all generated style guides should follow. This file serves as a reference for structure, section organization, and formatting standards.
346
347### scripts/analyze_website.py
348Python script to extract design system information from websites, including colors, typography, and component patterns. Can be used to automatically gather design specifications from live URLs.
349
350### references/design_system_examples.md
351Reference document containing examples of well-structured design systems and style guides from leading companies. Use this for inspiration on content organization and presentation standards.