KodeKarsa UI

Foundations

The tokens in src/styles/app.css that every component uses. Write bg-panel, text-muted, rounded-card, not raw values.

Color

Warm neutrals with one terracotta accent. Every token has a dark and a light value.

Dark

  • inkMain text#f1f0ec
  • mutedSecondary text, icons#a6a49e
  • lineLines and borders#302f2f
  • paperPage background#111113
  • softQuiet area background#161618
  • surfaceCards#1a1a1c
  • panelPill and soft button fill#242427
  • insetFields and chips on a card#111113
  • accentThe only accent#df7950
  • accent-softAccent fill#2b1d18
  • accent-darkFocus rings, accent text#ef956e
  • accent-inkText on the accent#181311

Light

  • inkMain text#1b1b19
  • mutedSecondary text, icons#6a6964
  • lineLines and borders#e3e2de
  • paperPage background#fbfbfa
  • softQuiet area background#f3f3f0
  • surfaceCards#ffffff
  • panelPill and soft button fill#ecebe7
  • insetFields and chips on a card#f3f3f0
  • accentThe only accent#c65f36
  • accent-softAccent fill#f1e3dc
  • accent-darkFocus rings, accent text#97411f
  • accent-inkText on the accent#fffaf5

Status

For badges, alerts, deltas, and meters. Use the -soft version as a fill and the full color for text.

success

dark #74c69alight #24774a

warning

dark #e5b65clight #8f6110

danger

dark #f07a6clight #b93a2c

info

dark #8db4e8light #2f5f9e

Charts

The order of series colors. The first series is always the accent; four series per chart at most.

chart-1
chart-2
chart-3
chart-4

Typography

Instrument Sans for all text, Geist Mono for numbers, code, and short dates.

  • display-1clamp(2.6rem, 6vw, 5rem) / 600 / -0.05emConsistent components
  • text-4xl36px / 600 / -0.04emPage title
  • text-xl20px / 600 / -0.02emSection title
  • text-base16px / 400Body text that is comfortable to read at length.
  • text-sm14px / 400–600Labels, card content, and tables
  • font-monoGeist Mono for numbers and codeINV-0412 / 12 Des / 384

Radius

Rounder outside, tighter inside. Buttons and badges are always pills.

rounded-card28px, Cards and dialogs

rounded-panel24px, Popovers and panels

rounded-tile20px, Tiles, avatars, alerts

rounded-field16px, Form fields

rounded-full9999px, Buttons, pills, badges

Surfaces

Four layers. Cards do not stack; sections inside a card use inset.

surface

Cards. Flat in dark, a soft shadow in light.

bg-inset

Fields and chips on a card.

glass

Floating elements: navbar, popups, menus, toasts.

bg-panel

Flat fills: soft buttons, pills.