Surfaces, alpha ink hierarchy, achromatic actions, and 6 semantic status tones.
Read spec →Design System
The Default visual language and token specification behind BIU UI components and page blocks.
BIU UI components are self-contained: every component ships with built-in fallback values so it renders cleanly even without a global stylesheet. When building full apps or multi-component blocks (such as dashboards and full-page calendars), use this specification to keep every surface, control, and state visually unified.
Design principles
Our Default style favors calm neutrality, hairline precision, and tactile interaction so data-dense tools stay easy to scan without visual fatigue.
Warm paper-neutral surfaces (#fafaf9 / #151517), rounded Nunito headings, and crisp Inter controls balance friendliness with density.
0.5px translucent rings paired with subtle top-edge keycap highlights give controls physical presence without heavy borders.
Primary controls stay near-black in light mode and near-white in dark mode, letting user content and 6 semantic tones carry color.
Pure-CSS press scale, sliding indicators, focus halos, and restrained selection pops stay fast (< 260ms) and respect reduced motion.
4-layer CSS architecture
BIU UI separates visual concerns into four deterministic CSS cascade layers (tokens → base → appearance → theme) so you can adopt Default as-is, toggle Dark appearance, or apply expressive themes like Comic without rewriting component markup:
@layer components.biu-tokensCanonical Default palette, radius, spacing, elevation, typography, and motion variables for Light & Dark.@layer components.biu-baseStandalone component styles with built-in var(--biu-*, fallback) defaults so every file works copy-and-paste.@layer components.biu-appearanceSwitches surfaces, alpha inks, hairline shadows, and semantic status tones under html[data-appearance="dark"].@layer components.biu-themeOptional custom brand themes layered at highest precedence without touching component logic.Foundations map
Each foundation has its own dedicated specification with live Light/Dark specimens and token references:
Heading (Nunito), UI Sans (Inter), and Monospace stacks, 7-step type ramp, and tabular numerals.
Read spec →4px base spacing scale (including 6px compact & 20px dialog steps), aligned 28/32/36px control heights, and touch targets.
Read spec →5-step corner ladder and the concentric nesting formula for containers.
Read spec →0.5px hairline rings paired with soft multi-layer shadows for Light and Dark.
Read spec →Decision framework, live curve comparison, timing table, 5 interactive recipes, and reduced motion.
Read spec →Keyboard-only :focus-visible rings, roving tabindex, and dialog focus restoration.
Read spec →Z-index stacking tiers, React 19 style precedence, and custom theme composition.
Read spec →Using the Default tokens
Mount <BiuTokens /> once near your app root alongside <BiuAppearance />:
import { BiuTokens, BiuAppearance } from 'biu-ui';
export function AppProviders({ dark, children }) {
return (
<>
<BiuTokens />
<BiuAppearance dark={dark} />
{children}
</>
);
}