Crate molten_brand

Crate molten_brand 

Source
Expand description

Β§Molten Brand

Design tokens and brand system for Molten Labs CLI tools.

This crate provides the single source of truth for all branding across the Molten Labs ecosystem. It mirrors the TypeScript tokens in @moltenlabs/alloy and ensures consistent branding in Rust applications.

Β§Quick Start

use molten_brand::{colors, products, semantic};

// Get the primary Molten Orange
let primary = colors::molten::PRIMARY;
println!("Molten Orange: {}", primary.hex());

// Get product-specific colors (Lair/Goblin theme)
let goblin_purple = products::lair::PRIMARY;
let cave_dark = products::lair::terminal::BACKGROUND;

// Semantic colors work across all products
let success = semantic::SUCCESS;

Β§Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚           MOLTEN LABS (Parent)          β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚  LAIR    β”‚  β”‚  HEARTH  β”‚  β”‚ALLOY β”‚  β”‚
β”‚  β”‚(Terminal)β”‚  β”‚(Content) β”‚  β”‚(DS)  β”‚  β”‚
β”‚  β”‚ Purple   β”‚  β”‚ Blue     β”‚  β”‚Orangeβ”‚  β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”˜  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Β§Features

  • serde - Enable serialization/deserialization of color types

ModulesΒ§

brand
Brand metadata.
colors
Core color palettes.
prelude
Re-export all color modules for convenience.
products
Product-specific design tokens.
semantic
Semantic color tokens.
spacing
Spacing scale tokens.
typography
Typography tokens.

StructsΒ§

Rgb
An RGB color with 8-bit components.
Rgba
An RGBA color with 8-bit components.

EnumsΒ§

Color
A color that can be either RGB or RGBA.