Design system
Change site colors and fonts through CSS tokens. Use Tailwind utility classes for spacing and layout.
Use design tokens in the private draft’s assets/css/style.css for shared colors and fonts. Spacing and layout use Tailwind classes in the HTML. A token is a named CSS value that several elements can share.
Saved styles and compiled Tailwind CSS stay in the draft until publication. Check every page that shares a changed token.
Foundation tokens
The design system lives in assets/css/style.css. It's a CSS file with custom properties (CSS variables) in the :root block:
:root {
--color-primary: #2563eb;
--color-accent: #f59e0b;
--color-bg: #fafaf8;
--color-text: #1a1a18;
--font-heading: 'Fraunces', Georgia, serif;
--font-body: 'Work Sans', system-ui, sans-serif;
--max-width: 1200px;
/* Example tokens; use Tailwind classes for spacing and radii. */
}
Built-in generation uses your business details, saved preferences and the design direction to request token values. Review the resulting palette and type.
How design changes work
Color and font changes can update tokens in style.css. Elements using those tokens inherit the change. Spacing, radius and layout changes update Tailwind classes in the page or partial.
For example: "Make the brand color dark green" updates the color tokens in style.css. Every page, button, and heading that references those tokens picks up the new color - without VoxelSite needing to rewrite each page.
Structural changes (like rearranging a layout or adding sections) require updating the affected page files.
CSS architecture
VoxelSite generates two CSS files, loaded in this order:
style.csscontains:roottokens,@keyframes,[data-reveal]transitions, navigation and mobile-menu structure,.iconsizing and reduced-motion rulestailwind.css- Compiled Tailwind utility classes (generated by VoxelSite's built-in PHP compiler)
Visual styling uses Tailwind utility classes in HTML. Component classes such as .hero, .card and .btn do not belong in style.css. VoxelSite's built-in PHP compiler converts these classes to static CSS - no Node.js or build tools needed on your server.
Typography
VoxelSite uses Google Fonts for typography. The font is loaded via a <link> tag in _partials/header.php. Each site gets fonts chosen to match its personality:
- A law firm might get Inter (clean, professional)
- A bakery might get Playfair Display (warm, artisan)
- A tech startup might get Space Grotesk (modern, geometric)
The pairing comes from the site's design direction. At most two families are loaded, each with a system fallback stack.
Icons
VoxelSite ships with a full set of Lucide SVG icons in assets/icons/. The AI writes lightweight <i data-lucide="icon-name"> placeholders in your HTML, and a small client-side script (icon-resolver.js) fetches the corresponding SVGs from your server and injects them inline at runtime. Icons inherit CSS colors through currentColor and load from your server without a buyer-side build step.
Changing the design
Use the manual visual controls without a provider key, or configure built-in AI for the conversational examples below. Studio MCP authoring follows the same website file rules through an external client.
Through conversation - Use the Design action in Chat or describe the change:
- "Change the colors to a warm terracotta palette"
- "Use a more modern, sans-serif font"
- "Make the design darker and more premium"
- "Increase spacing - everything feels too cramped"
VoxelSite figures out whether to update tokens, page files, or both.
Through the visual editor - Click the Edit button, select an element, and open the style panel. Adjust typography, colors, spacing, borders, and effects using visual controls with a live JIT preview. See the Visual Editor docs for details.
Related
- How Prompting Works - How action routing and context budgets affect design changes
- The AI Engine - Technical overview of the generation pipeline
- Visual Editor - Adjust styles visually with JIT CSS preview
- Design Styles - Mood-based prompts for different visual aesthetics
Found a mistake in these instructions? Open an issue.
Download VoxelSite