use ratatui::style::palette::tailwind::{INDIGO, SLATE};
use ratatui::style::{Color, Modifier, Style};
use ratatui::widgets::BorderType;
pub const ACCENT: Color = INDIGO.c500;
pub const FG: Color = SLATE.c600;
pub const FG_DIM: Color = SLATE.c500;
pub const BORDER: BorderType = BorderType::Rounded;
pub fn accent() -> Style {
Style::new().fg(ACCENT)
}
pub fn fg() -> Style {
Style::new().fg(FG)
}
pub fn dim() -> Style {
Style::new().fg(FG_DIM)
}
pub fn bold() -> Style {
Style::new().add_modifier(Modifier::BOLD)
}
pub fn accent_bold() -> Style {
Style::new().fg(ACCENT).add_modifier(Modifier::BOLD)
}
pub fn selected() -> Style {
Style::new().fg(ACCENT).add_modifier(Modifier::REVERSED)
}
pub fn border() -> Style {
Style::new().fg(FG_DIM)
}
pub fn border_active() -> Style {
Style::new().fg(ACCENT)
}
pub fn success() -> Style {
Style::new().fg(Color::Green)
}
pub fn error() -> Style {
Style::new().fg(Color::Red).add_modifier(Modifier::BOLD)
}