Skip to content
Browse library
Docs/Design System
DEFAULT DESIGN LANGUAGE

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.

01 — DESIGN LANGUAGE

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 tactile precision

Warm paper-neutral surfaces (#fafaf9 / #151517), rounded Nunito headings, and crisp Inter controls balance friendliness with density.

Hairline & specular rim

0.5px translucent rings paired with subtle top-edge keycap highlights give controls physical presence without heavy borders.

Achromatic chrome

Primary controls stay near-black in light mode and near-white in dark mode, letting user content and 6 semantic tones carry color.

Zero-dependency micro-motion

Pure-CSS press scale, sliding indicators, focus halos, and restrained selection pops stay fast (< 260ms) and respect reduced motion.

02 — ARCHITECTURE

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 1 · Tokens (<BiuTokens />)@layer components.biu-tokensCanonical Default palette, radius, spacing, elevation, typography, and motion variables for Light & Dark.
Layer 2 · Component Base@layer components.biu-baseStandalone component styles with built-in var(--biu-*, fallback) defaults so every file works copy-and-paste.
Layer 3 · Appearance (<BiuAppearance />)@layer components.biu-appearanceSwitches surfaces, alpha inks, hairline shadows, and semantic status tones under html[data-appearance="dark"].
Layer 4 · Expressive Themes (<BiuTheme />)@layer components.biu-themeOptional custom brand themes layered at highest precedence without touching component logic.
03 — SPECIFICATIONS

Foundations map

Each foundation has its own dedicated specification with live Light/Dark specimens and token references:

04 — QUICK START

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}
    </>
  );
}