From 3513a4ad5612b6659ab037b0c1b0c22e5cabc1f5 Mon Sep 17 00:00:00 2001 From: Var Bhat Date: Sat, 3 Feb 2024 23:49:56 +0530 Subject: add catppuccin themes --- style/src/theme.rs | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'style/src/theme.rs') diff --git a/style/src/theme.rs b/style/src/theme.rs index 235aecbd..ad95ff0f 100644 --- a/style/src/theme.rs +++ b/style/src/theme.rs @@ -48,6 +48,14 @@ pub enum Theme { GruvboxLight, /// The built-in Gruvbox Dark variant. GruvboxDark, + /// The built-in Catppuccin Latte variant. + CatppuccinLatte, + /// The built-in Catppuccin Frappé variant. + CatppuccinFrappe, + /// The built-in Catppuccin Macchiato variant. + CatppuccinMacchiato, + /// The built-in Catppuccin Mocha variant. + CatppuccinMocha, /// A [`Theme`] that uses a [`Custom`] palette. Custom(Arc), } @@ -63,6 +71,10 @@ impl Theme { Self::SolarizedDark, Self::GruvboxLight, Self::GruvboxDark, + Self::CatppuccinLatte, + Self::CatppuccinFrappe, + Self::CatppuccinMacchiato, + Self::CatppuccinMocha, ]; /// Creates a new custom [`Theme`] from the given [`Palette`]. @@ -91,6 +103,10 @@ impl Theme { Self::SolarizedDark => Palette::SOLARIZED_DARK, Self::GruvboxLight => Palette::GRUVBOX_LIGHT, Self::GruvboxDark => Palette::GRUVBOX_DARK, + Self::CatppuccinLatte => Palette::CATPPUCCIN_LATTE, + Self::CatppuccinFrappe => Palette::CATPPUCCIN_FRAPPE, + Self::CatppuccinMacchiato => Palette::CATPPUCCIN_MACCHIATO, + Self::CatppuccinMocha => Palette::CATPPUCCIN_MOCHA, Self::Custom(custom) => custom.palette, } } @@ -106,6 +122,12 @@ impl Theme { Self::SolarizedDark => &palette::EXTENDED_SOLARIZED_DARK, Self::GruvboxLight => &palette::EXTENDED_GRUVBOX_LIGHT, Self::GruvboxDark => &palette::EXTENDED_GRUVBOX_DARK, + Self::CatppuccinLatte => &palette::EXTENDED_CATPPUCCIN_LATTE, + Self::CatppuccinFrappe => &palette::EXTENDED_CATPPUCCIN_FRAPPE, + Self::CatppuccinMacchiato => { + &palette::EXTENDED_CATPPUCCIN_MACCHIATO + } + Self::CatppuccinMocha => &palette::EXTENDED_CATPPUCCIN_MOCHA, Self::Custom(custom) => &custom.extended, } } @@ -122,6 +144,10 @@ impl fmt::Display for Theme { Self::SolarizedDark => write!(f, "Solarized Dark"), Self::GruvboxLight => write!(f, "Gruvbox Light"), Self::GruvboxDark => write!(f, "Gruvbox Dark"), + Self::CatppuccinLatte => write!(f, "Catppuccin Latte"), + Self::CatppuccinFrappe => write!(f, "Catppuccin Frappé"), + Self::CatppuccinMacchiato => write!(f, "Catppuccin Macchiato"), + Self::CatppuccinMocha => write!(f, "Catppuccin Mocha"), Self::Custom(custom) => custom.fmt(f), } } -- cgit From 4503e2ba7e1c124798f36849d0f64a31b2e5c9a5 Mon Sep 17 00:00:00 2001 From: Var Bhat Date: Sun, 4 Feb 2024 00:07:16 +0530 Subject: add tokyo night themes and palettes Source: https://github.com/enkia/tokyo-night-vscode-theme --- style/src/theme.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'style/src/theme.rs') diff --git a/style/src/theme.rs b/style/src/theme.rs index ad95ff0f..20ac9343 100644 --- a/style/src/theme.rs +++ b/style/src/theme.rs @@ -56,6 +56,12 @@ pub enum Theme { CatppuccinMacchiato, /// The built-in Catppuccin Mocha variant. CatppuccinMocha, + /// The built-in Tokyo Night variant. + TokyoNight, + /// The built-in Tokyo Night Storm variant. + TokyoNightStorm, + /// The built-in Tokyo Night Light variant. + TokyoNightLight, /// A [`Theme`] that uses a [`Custom`] palette. Custom(Arc), } @@ -75,6 +81,9 @@ impl Theme { Self::CatppuccinFrappe, Self::CatppuccinMacchiato, Self::CatppuccinMocha, + Self::TokyoNight, + Self::TokyoNightStorm, + Self::TokyoNightLight, ]; /// Creates a new custom [`Theme`] from the given [`Palette`]. @@ -107,6 +116,9 @@ impl Theme { Self::CatppuccinFrappe => Palette::CATPPUCCIN_FRAPPE, Self::CatppuccinMacchiato => Palette::CATPPUCCIN_MACCHIATO, Self::CatppuccinMocha => Palette::CATPPUCCIN_MOCHA, + Self::TokyoNight => Palette::TOKYO_NIGHT, + Self::TokyoNightStorm => Palette::TOKYO_NIGHT_STORM, + Self::TokyoNightLight => Palette::TOKYO_NIGHT_LIGHT, Self::Custom(custom) => custom.palette, } } @@ -128,6 +140,9 @@ impl Theme { &palette::EXTENDED_CATPPUCCIN_MACCHIATO } Self::CatppuccinMocha => &palette::EXTENDED_CATPPUCCIN_MOCHA, + Self::TokyoNight => &palette::EXTENDED_TOKYO_NIGHT, + Self::TokyoNightStorm => &palette::EXTENDED_TOKYO_NIGHT_STORM, + Self::TokyoNightLight => &palette::EXTENDED_TOKYO_NIGHT_LIGHT, Self::Custom(custom) => &custom.extended, } } @@ -148,6 +163,9 @@ impl fmt::Display for Theme { Self::CatppuccinFrappe => write!(f, "Catppuccin Frappé"), Self::CatppuccinMacchiato => write!(f, "Catppuccin Macchiato"), Self::CatppuccinMocha => write!(f, "Catppuccin Mocha"), + Self::TokyoNight => write!(f, "Tokyo Night"), + Self::TokyoNightStorm => write!(f, "Tokyo Night Storm"), + Self::TokyoNightLight => write!(f, "Tokyo Night Light"), Self::Custom(custom) => custom.fmt(f), } } -- cgit From d5466c1861157ba5a70d7fa7b818cebe11dedbc3 Mon Sep 17 00:00:00 2001 From: Var Bhat Date: Sun, 4 Feb 2024 01:01:02 +0530 Subject: Add Kanagawa, Moonfly, Nightfly, Oxocarbon themes --- style/src/theme.rs | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'style/src/theme.rs') diff --git a/style/src/theme.rs b/style/src/theme.rs index 20ac9343..5909498f 100644 --- a/style/src/theme.rs +++ b/style/src/theme.rs @@ -62,6 +62,18 @@ pub enum Theme { TokyoNightStorm, /// The built-in Tokyo Night Light variant. TokyoNightLight, + /// The built-in Kanagawa Wave variant. + KanagawaWave, + /// The built-in Kanagawa Dragon variant. + KanagawaDragon, + /// The built-in Kanagawa Lotus variant. + KanagawaLotus, + /// The built-in Moonfly variant. + Moonfly, + /// The built-in Nightfly variant. + Nightfly, + /// The built-in Oxocarbon variant. + Oxocarbon, /// A [`Theme`] that uses a [`Custom`] palette. Custom(Arc), } @@ -84,6 +96,12 @@ impl Theme { Self::TokyoNight, Self::TokyoNightStorm, Self::TokyoNightLight, + Self::KanagawaWave, + Self::KanagawaDragon, + Self::KanagawaLotus, + Self::Moonfly, + Self::Nightfly, + Self::Oxocarbon, ]; /// Creates a new custom [`Theme`] from the given [`Palette`]. @@ -119,6 +137,12 @@ impl Theme { Self::TokyoNight => Palette::TOKYO_NIGHT, Self::TokyoNightStorm => Palette::TOKYO_NIGHT_STORM, Self::TokyoNightLight => Palette::TOKYO_NIGHT_LIGHT, + Self::KanagawaWave => Palette::KANAGAWA_WAVE, + Self::KanagawaDragon => Palette::KANAGAWA_DRAGON, + Self::KanagawaLotus => Palette::KANAGAWA_LOTUS, + Self::Moonfly => Palette::MOONFLY, + Self::Nightfly => Palette::NIGHTFLY, + Self::Oxocarbon => Palette::OXOCARBON, Self::Custom(custom) => custom.palette, } } @@ -143,6 +167,12 @@ impl Theme { Self::TokyoNight => &palette::EXTENDED_TOKYO_NIGHT, Self::TokyoNightStorm => &palette::EXTENDED_TOKYO_NIGHT_STORM, Self::TokyoNightLight => &palette::EXTENDED_TOKYO_NIGHT_LIGHT, + Self::KanagawaWave => &palette::EXTENDED_KANAGAWA_WAVE, + Self::KanagawaDragon => &palette::EXTENDED_KANAGAWA_DRAGON, + Self::KanagawaLotus => &palette::EXTENDED_KANAGAWA_LOTUS, + Self::Moonfly => &palette::EXTENDED_MOONFLY, + Self::Nightfly => &palette::EXTENDED_NIGHTFLY, + Self::Oxocarbon => &palette::EXTENDED_OXOCARBON, Self::Custom(custom) => &custom.extended, } } @@ -166,6 +196,12 @@ impl fmt::Display for Theme { Self::TokyoNight => write!(f, "Tokyo Night"), Self::TokyoNightStorm => write!(f, "Tokyo Night Storm"), Self::TokyoNightLight => write!(f, "Tokyo Night Light"), + Self::KanagawaWave => write!(f, "Kanagawa Wave"), + Self::KanagawaDragon => write!(f, "Kanagawa Dragon"), + Self::KanagawaLotus => write!(f, "Kanagawa Lotus"), + Self::Moonfly => write!(f, "Moonfly"), + Self::Nightfly => write!(f, "Nightfly"), + Self::Oxocarbon => write!(f, "Oxocarbon"), Self::Custom(custom) => custom.fmt(f), } } -- cgit