Section
Bifrost components
The Wheel of Heaven theme — design tokens, SCSS components, Tera macros, and content shortcodes that compose the visual language across www.wheelofheaven.world.
Bifrost is the theme that powers www.wheelofheaven.world. Its source lives at wheelofheaven/bifrost, mounted as a submodule under themes/bifrost/ in both the main site repo and this docs repo.
This section documents Bifrost from the outside-in:
- Visual language — the premium-CTA recipe (glass + drifting cloud-duo gradient) and its two adoption mixins.
- Chrome — page-structural UI: breadcrumbs, claim badges, dispatch chips, section marks, translation indicators, figures.
- Interactive — JS-backed widgets: glossary tooltips, reader controls, sharing, keyboard shortcuts, modals, snackbars.
- Content components — pieces used inside article bodies: cards, buttons, wiki-shortcode visuals, related-content blocks.
- Tera macros — server-side render helpers imported into templates with
importand called asnamespace::name(args). - Content shortcodes — Tera shortcodes invoked from markdown with paired-tag (body) or inline-tag (no body) syntax.
- Tokens — the SCSS abstracts (colors, spacing, type, mixins, functions) that everything above composes from.
How to read these pages#
Every component page follows the same shape:
- What it is — one paragraph.
- Anatomy — what the recipe does and why.
- Usage —
@use/@include/importsnippets you can paste. - Tokens — what to override per instance (CSS custom properties, macro params, etc.).
- Live examples — links to canonical call sites on
www.wheelofheaven.worldwhere the component renders. - Related — companion components.
Pages do not render components live inside the docs site — the docs theme has its own CSS-variable contract that doesn’t fully align with Bifrost’s, so embedded examples would drift visually from the real site. Instead, every page links to a live URL where you can inspect the component in its real context with DevTools.
When to add a new component#
Before adding a new component to Bifrost, check whether an existing one fits. Specifically: any new lead-card or premium-CTA surface should adopt glass-cloud-card or glass-cloud-button rather than inventing a fresh background treatment. Re-use is the point of the component library — when in doubt, link to this docs section from your PR and ask which existing component to extend.
- Tokens The SCSS abstracts that everything else in Bifrost composes from — colors, spacing, type, mixins, functions.
- Visual language Glass + drifting cloud-duo gradient — the recipe Bifrost uses for premium CTAs and lead cards. Two adoption mixins: glass-cloud-card and glass-cloud-button.
- Chrome Page-structural UI in Bifrost: breadcrumbs, claim badges, dispatch chips, section marks, translation indicators, figures, focus styles, back-to-top.
- Interactive JS-backed widgets in Bifrost: glossary tooltips, reader controls, sharing, keyboard shortcuts, modals, snackbars, listen-button, study-tools, PWA install.
- Content components Components used inside article bodies in Bifrost: cards, buttons, wiki-shortcode visuals, related-content, category rails.
- Tera macros Server-side render helpers in Bifrost — imported into templates with `{%/* import */%}` and called as `namespace::name(args)`.
- Content shortcodes Tera shortcodes Bifrost exposes to markdown content — invoked as `{%/* name(args) */%}…{%/* end */%}` (paired) or `{%/* name(args) */%}` (inline).