Components
Bullframe does not ship React or Web Components. Navigation, cards and modals are semantic HTML plus a few utilities and token-based inline styles. Prefer the patterns in the docs over inventing framework classes.
When to use
A site header, breadcrumb, pagination, a grid of content or media cards, a confirm or
help <dialog>, or any task that asks for "components" on top of Bullframe.
Inputs to gather
Nav items and the primary action, card titles and summaries (and optional images), whether a modal is needed and what it confirms, and light / dark / system theme.
Rules
- There is no
.bf-card,.bf-nav,.bf-modal,.bf-breadcrumbor.bf-navbar. Compose with landmarks, lists, buttons andvar(--bf-*)borders. - Header nav:
<header>with<nav aria-label="Primary">, links in a list or inline group, and at most one.bf-btn.bf-btn--primarycall to action. - Breadcrumbs:
<nav aria-label="Breadcrumb">with an ordered list;aria-current="page"on the current item; hide separators from assistive tech witharia-hidden="true". - Pagination:
<nav aria-label="Pagination">with.bf-btnlinks; mark the current page witharia-current="page"and.bf-btn--primary. - Cards:
<article>with border, radius and padding from tokens. Media cards put the image first and clip to the radius withoverflow: hidden. Card grids use.bf-rowand.bf-col-*. - Modals: native
<dialog>. Open withshowModal(), close with<form method="dialog">. Do not build an overlay<div>or a focus-trap library. - Every class-based page starts with
.bf-skip-linkpointing at#main-content. - Keep JavaScript to the dialog open trigger (and optional
closelistener). No framework.
Recipe
- Pick a class-based build.
- Emit the scaffold with skip link.
- Add header nav if the page needs site chrome.
- Main content: card row and any other sections.
- Add
<dialog>elements at the end of<body>when confirmation or help is required. - Wire a button that calls
document.getElementById(…).showModal()only when a modal is in scope.
Example
examples/components.html is a page with primary nav, a
three-card row and a confirm <dialog> opened from a destructive action.
Expected output
Semantic landmarks, composed cards, and (when needed) a native dialog. No component npm
package and no invented .bf-* component classes.
Failure modes
- Inventing
.bf-card,.bf-nav,.bf-modalor.bf-breadcrumb. - A modal built from fixed-position
<div>s instead of<dialog>. - Nav without an accessible name (
aria-labelor similar). - Cards as nested
<div>soup with no heading hierarchy. - Multiple primary buttons competing in the header.
Do not
- Do not add Bootstrap, Tailwind or a headless UI kit alongside Bullframe for these patterns.
- Do not disable the dialog backdrop or Escape behaviour.
- Do not skip heading levels inside cards (
h1page title, thenh2orh3in cards).


