#![allow(clippy::module_name_repetitions)]
use hyperchad::color::Color;
#[derive(Clone)]
pub struct Theme {
pub background: Color,
pub surface: Color,
pub text_primary: Color,
pub text_secondary: Color,
pub text_muted: Color,
pub accent: Color,
pub border: Color,
pub mono_font: &'static str,
}
impl Theme {
#[must_use]
pub fn default_dark() -> Self {
Self::terminal_dark()
}
#[must_use]
pub fn terminal_dark() -> Self {
Self {
background: Color::from_hex("#0d1117"),
surface: Color::from_hex("#161b22"),
text_primary: Color::from_hex("#f0f6fc"),
text_secondary: Color::from_hex("#c9d1d9"),
text_muted: Color::from_hex("#8b949e"),
accent: Color::from_hex("#7ee787"),
border: Color::from_hex("#21262d"),
mono_font: "'SF Mono', 'Cascadia Code', 'Fira Code', Menlo, Consolas, monospace",
}
}
}
impl Default for Theme {
fn default() -> Self {
Self::default_dark()
}
}