daypress
admin route/d-admin/builder · /d-admin/customize
doc versionv1.0.4
reading time6 min read
section group11 · DayStudio & Appearance
Docs/DayStudio & Appearance
/d-admin/builder · /d-admin/customize6 min readv1.0.4

DayStudio Visual Builder, Responsive Layers & DaystudioKit

DayStudio (/d-admin/builder) is Daypress's native visual page and template builder. Unlike client-heavy builders, DayStudio compiles every layout on save into pure semantic HTML and scoped CSS with zero frontend runtime overhead.

Navigating the DayStudio workspace

Launch DayStudio from the left admin menu (DayStudio) or click Edit in DayStudio on any post, page, header, footer, or theme template:

  • Left Drawer — Elements, Navigator & Symbols: Drag any of the 37 native widgets onto the canvas, reorder deep hierarchies in the tree Navigator (right-click to duplicate, copy styles, or save as a Synced Symbol), or edit global design tokens.
  • Center Viewport — True Site Chrome: Renders your live header, footer, and active theme CSS variables inside an interactive Desktop / Tablet / Mobile stage with zoom controls, Light / Night preview toggle, X-Ray wireframe outlines, and the live WCAG/SEO Audit shield.
  • Right Inspector — Layout, Box Model, Typography & Effects: Fine-tune CSS Grid/Flexbox alignment, linked/unlinked padding & margins, variable font settings, borders, shadows, and SEO settings.
http://localhost:8090/d-admin/builder — DayStudio Canvas, Elements & WCAG Audit
DayStudio visual builder showing left element library, centered responsive page canvas, topbar WCAG 96/100 audit badge, and right inspector
DayStudio edits the live page inside real site chrome alongside X-Ray layout inspection and 1-click WCAG/SEO auditing.

Responsive breakpoints, state overrides & device visibility

Switch the topbar viewport switcher to layer overrides cleanly without duplicating elements:

  • Cascading Breakpoints: Base styles apply to Desktop; styles.tablet compiles inside @media (max-width: 1024px); styles.mobile compiles inside @media (max-width: 767px) (or set a custom pixel breakpoint per container).
  • Interactive Pseudo-States: Switch the state pill between Normal, Hover, Focus, and Active to style transitions, hover elevations, and focus rings natively.
  • Per-Device Visibility: Toggle hide_desktop, hide_tablet, or hide_mobile on any node to tailor layouts per form factor.

Dual-palette DaystudioKit global tokens & node-scoped CSS

Open Appearance → Customize (/d-admin/customize), the Tokens drawer in DayStudio, or call daypress_update_global_styles to define site-wide design tokens that automatically adapt between Daylight and Night modes:

json (mcp)
// MCP: daypress_update_global_styles
{
  "content_width": 1200,
  "system_colors": [
    {"id": "primary",   "title": "Brand Accent", "color": "#a8401b", "dark_color": "#e8744a"},
    {"id": "secondary", "title": "Heading Ink",  "color": "#16171a", "dark_color": "#efe9de"},
    {"id": "text",      "title": "Body Muted",   "color": "#5a5852", "dark_color": "#a7a297"}
  ],
  "custom_colors": [
    {"id": "paper",        "title": "Page Surface", "color": "#f3eee4", "dark_color": "#111214"},
    {"id": "paper-raised", "title": "Card Surface", "color": "#fbf8f2", "dark_color": "#1a1c1f"}
  ],
  "button_style": {"background_color": "var(--oxide)", "text_color": "var(--on-oxide)", "border_radius": "6px"}
}
Node-Scoped Custom CSS: In any node's styles.custom_css, plain declarations (e.g. text-wrap: balance;) emit inline, while full rules using selector, &, or :scope automatically scope to [id="node_id"].