Why Molten Brand?
Building beautiful CLI tools shouldn't mean hardcoding hex values everywhere. Molten Brand gives you a complete design system in Rustβthe same tokens powering Lair, our GPU-rendered terminal.
use ;
// One source of truth for your entire CLI
let primary = PRIMARY; // #F97316 - Molten Orange
let success = SUCCESS; // #10B981 - Consistent everywhere
let terminal_bg = BACKGROUND; // #0F0F1A - Cave Dark
"Update colors in one place. Watch your entire ecosystem transform."
Features
π¨ Complete Color System
- Forge Brand - Parent company palette
- Molten Scale - Warm orange (50-950)
- Neutral Scale - Gray scale for text/borders
- Semantic Colors - Success, warning, error, info
π Product Themes
- Lair - Goblin Purple for terminals
- Hearth - Iron Blue for content
- Alloy - Molten Orange for design systems
π Spacing & Typography
- Consistent 4px-based spacing scale
- Font stacks (Geist Sans, Geist Mono)
- Type scale with semantic presets
β‘ Zero Runtime Cost
- All tokens are
const - Compile-time color resolution
- No heap allocations for colors
Installation
Or add to your Cargo.toml:
[]
= "0.1"
Quick Start
Colors
use ;
// Forge brand colors (shared across all products)
let bg = BLACK; // #0A0A0A
let accent = MOLTEN; // #F97316
// Full color scales
let orange_light = SCALE_300; // #FDBA74
let orange = PRIMARY; // #F97316
let orange_dark = SCALE_700; // #C2410C
// Surfaces for dark mode UIs
let card_bg = RAISED; // #18181B
let modal_bg = OVERLAY; // #27272A
// Text colors
let primary_text = PRIMARY; // #FAFAFA
let secondary_text = SECONDARY; // #A1A1AA
Product Themes
Each Molten Labs product has its own visual identity:
use ;
// Lair - The Terminal for Goblins πΊ
let goblin_purple = PRIMARY; // #7C3AED
let cave_dark = BACKGROUND; // #0F0F1A
let cursor = CURSOR; // #7C3AED
let glow = GLOW; // Purple glow effect
// Hearth - Content Platform π°
let editorial_blue = PRIMARY; // #3B82F6
let card = CARD; // #111111
// Alloy - Design System π¨
let system_orange = PRIMARY; // #F97316
Semantic Colors
Colors that convey meaningβconsistent across your entire app:
use semantic;
let success = SUCCESS; // #10B981 - Green
let warning = WARNING; // #F59E0B - Amber
let error = ERROR; // #EF4444 - Red
let info = INFO; // #3B82F6 - Blue
// Agent status colors (for AI/automation UIs)
let running = RUNNING; // Green
let thinking = THINKING; // Amber
let failed = FAILED; // Red
Typography
use ;
// Font families
let sans = SANS; // Geist Sans + system fallbacks
let mono = MONO; // Geist Mono + system fallbacks
let display = DISPLAY; // Space Grotesk for headlines
// Sizes
let body = BASE; // 16px
let h1 = H1; // 36px
let huge = DISPLAY; // 48px
// Presets (family + size + weight + line-height)
let heading_style = H1;
let body_style = BODY;
let code_style = CODE;
Spacing
use ;
// Scale values
let xs = S2; // 8px
let md = S4; // 16px
let xl = S8; // 32px
// Semantic aliases
let padding = COMPONENT_MD; // 12px
let gap = GAP_MD; // 16px
let section = SECTION; // 32px
// Calculate from units (4px base)
let custom = units; // 20px
Brand Hierarchy
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β MOLTEN LABS (Parent) β
β β
β βββββββββββββββ βββββββββββββββ βββββββββββββββ β
β β LAIR β β HEARTH β β ALLOY β β
β β Terminal β β Content β βDesign Systemβ β
β β Purple β β Blue β β Orange β β
β β #7C3AED β β #3B82F6 β β #F97316 β β
β βββββββββββββββ βββββββββββββββ βββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Use with Sigil (Terminal Styling)
Combine with sigil for beautiful terminal output:
use molten;
use ;
// Convert brand colors to terminal colors
let styled = style
.fg
.bold
.to_string;
println!;
Ecosystem
Molten Brand is part of the Molten Labs open source ecosystem:
| Crate | Description | Status |
|---|---|---|
| molten-brand | Design tokens (you are here) | β Released |
| sigil | ANSI escape sequences | β Released |
| lacquer | Terminal styling (like lipgloss) | π§ Coming Soon |
| cauldron | TUI framework (like bubbletea) | π Planned |
| rune | Shell script tools (like gum) | π Planned |
| ember | Markdown renderer (like glow) | π Planned |
Documentation
- π API Documentation
- π¨ Brand Guidelines
- π‘ Examples
Contributing
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
# Clone and run tests
License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE)
- MIT license (LICENSE-MIT)
at your option.