Customization
Brand colors
Override CSS custom properties:
:root {
--color-primary: #ff4d00;
--color-primary-hover: #e64500;
--radius-md: 0.5rem;
}
Place overrides in a stylesheet loaded after main.css, or edit _tokens.scss.
Border beam accent
Use the border_beam=true card parameter to add a slow, woodland-gold highlight:
<article class="c-card c-card--border-beam" >
<header class="c-card__header">
<h3 class="c-card__title">Featured</h3>
</header>
<div class="c-card__body">
A highlighted card.
</div>
</article>
Alternatively, add u-border-beam to a custom surface. The beam respects prefers-reduced-motion; reserve it for a few featured surfaces to keep the effect subtle.
Dark mode
Supported values on <html>:
data-theme="light"data-theme="dark"data-theme="system"(resolved viaprefers-color-scheme)
User preference is stored in localStorage under the key theme.
Adding a component
- Create
_includes/components/my-component.html - Create
assets/scss/components/_my-component.scss - Import it in
assets/css/main.scss - Add JS under
assets/js/components/if interactive - Document under
docs/components/
Use the naming convention:
.c-my-component
.c-my-component--variant
.c-my-component__element
Creating a new template
A new commercial template typically only needs:
- Custom layouts
- Pages / content
- Branding (tokens)
- Optional extra sections
You should not rewrite the component library.