4 variants
Warm contrast for long coding sessions
Hearth Code
Turn your editor into hearthside parchment and coffee. Warm, low-glare, and semantically steady - with dark and light tuned to the same readability standard and refined texture.
// async data fetching with full type safety
import { createContext, useContext } from 'react'
interface ApiResponse<T> {
data: T
status: number
ok: boolean
}
async function request<T>(
url: string,
options?: RequestInit
): Promise<ApiResponse<T>> {
const res = await fetch(url, options)
const data = await res.json() as T
return { data, status: res.status, ok: res.ok }
}
const BASE = 'https://api.hearthcode.dev'
const TIMEOUT = 5_000Quick Proof
Same code. Clearer hierarchy. Less glare.
HearthCode keeps syntax roles stable across four variants and applies shared readability constraints, so dark and light both stay clear, consistent, and polished.
Cross-mode clarity
Stable semantics
Hearth Dark
Hearth Dark Soft
Hearth Light
Hearth Light Soft
HearthCode Philosophy
Ember, not flame
High-saturation syntax colors burn bright but exhaust your eyes. Hearth keeps highlights in a moderate saturation range, then tunes them under readability constraints so they stay warm without glare.
Neither black nor white
Pure black backgrounds can create halation around white text and blur edges. Hearth uses warm, non-extreme background tones across all four variants to keep glare down and reading layers stable.
- Hearth Dark
- Dark Soft
- Hearth Light
- Light Soft
Hierarchy as semantics
Brightness maps directly to semantic weight: keywords are brightest, functions next, variables after, and comments deliberately fade into the background.
Color temperature as comfort
The entire palette is warm-toned, below 4500K. High blue-light content strains the retina. A warm coding environment is easier on your eyes over long sessions.
Color System
Final Step
Ready to code in HearthCode?
Hearth fire, coffee, and a parchment-like reading feel - so every line of code stays warm and clear.