
Styleguide {API}
Extract a complete design system from any website in seconds.
Get colors, typography, spacing, shadows, radii, and component styles as structured design tokens. Perfect for theming, white-labeling, and AI-agent UIs.
What You Get
Each API call returns a complete design system extracted from the target website.
Color palette
Primary, secondary, background, and text colors
Typography system
Fonts, sizes, weights, and line heights
Spacing scale
XS to XL spacing values
Component styles
Buttons, cards, shadows, and borders
How It Works
We analyze the website's CSS and visual elements to build a structured design system.
Pass a domain
Like stripe.com or any company website
We analyze the site
CSS, inline styles, and component patterns extracted
Design system built
Colors, typography, spacing, and components organized
JSON returned
Complete styleguide ready for your UI
API Response
Extracted design system for stripe.com
GET /v1/styleguide?domain=stripe.com{
"status": "ok",
"styleguide": {
"colors": {
"primary": "#635bff",
"background": "#ffffff",
"text": "#0a2540"
},
"typography": {
"h1": { "fontFamily": "Inter", "fontSize": "48px" },
"body": { "fontFamily": "Inter", "fontSize": "16px" }
},
"spacing": { "sm": "8px", "md": "16px", "lg": "24px" }
},
"code": 200
}Frequently asked questions
Common questions about the Context.dev Styleguide API.
Am I billed for failed requests?
What is a styleguide API and what does it return?
How do I extract design tokens from any website?
What design system elements are extracted?
Can I use this to theme a white-label app or AI agent UI?
How accurate is the styleguide extraction?
Does it work for sites built with Tailwind or CSS-in-JS?
Ship an agent that actually knows things.
Free tier, 10-minute integration, and the same API powering agents at Mintlify, daily.dev, and Propane. No credit card to start.













