19 lines
1.8 KiB
Plaintext
19 lines
1.8 KiB
Plaintext
page ThemesGuide {
|
|
layout = "showcase"
|
|
seo {
|
|
title = "Themes"
|
|
description = "Theme presets control radius, surface treatment, borders, shadows, and motion."
|
|
}
|
|
view {
|
|
<article class="page-docs guide-page">
|
|
<nav class="docs-breadcrumbs" aria-label="Breadcrumb"><a href="/docs">Docs</a><span aria-hidden="true">/</span><span>Themes</span></nav>
|
|
<header class="docs-intro"><span class="showcase-eyebrow">Customization</span><h1>Themes</h1><p>Theme presets control radius, surface treatment, borders, shadows, and motion.</p></header>
|
|
<section class="guide-section"><h2>Default</h2><p>Balanced surfaces, borders, elevation, and radius.</p></section><section class="guide-section"><h2>Soft and sharp</h2><p>Choose friendly rounded surfaces or dense operational styling.</p></section><section class="guide-section"><h2>Glass</h2><p>Use translucent layered surfaces while retaining semantic tokens.</p></section>
|
|
<section class="guide-section"><h2>Keep theme overrides in one place</h2><p>Override design tokens at your application root so all components inherit the same appearance. Start with radius and brand color, then review overlays, forms and navigation together.</p><pre><code>:root <span>{</span> --wrn-radius: 8px; --wrn-color-primary: #7c3aed; <span>}</span>
|
|
<Button label="Primary action" color="primary" /></code></pre><h3>Verify the result</h3><p>Open the matching component page, change its options, and try the keyboard controls. Copy the demonstrated configuration into your page, then replace sample content with your data.</p></section>
|
|
|
|
<nav class="guide-next"><a href="/components/button">Explore components <span aria-hidden="true">→</span></a><a href="/block-library">Browse blocks <span aria-hidden="true">→</span></a></nav>
|
|
</article>
|
|
}
|
|
}
|