Skip to content

Commit

Permalink
feat(theme): add edge - sainnhe
Browse files Browse the repository at this point in the history
  • Loading branch information
doprz committed Apr 23, 2023
1 parent 58a55c2 commit 417cbbc
Show file tree
Hide file tree
Showing 3 changed files with 142 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Convert your favorite images and wallpapers with your favorite color palettes/th
## Color Palettes/Themes

- catppuccin
- edge
- everforest
- gruvbox
- gruvbox-material
Expand Down Expand Up @@ -56,7 +57,7 @@ Options:
-i, --image <FILE>
The image to process
--color-palette <COLOR_PALETTE>
The color palette to use [possible values: catppuccin, everforest, gruvbox, gruvbox-material, nord, rose-pine]
The color palette to use [possible values: catppuccin, edge, everforest, gruvbox, gruvbox-material, nord, rose-pine, tokyo-night]
-a, --all
Use all color palette variations
--color-palette-variation <COLOR_PALETTE_VARIATION>
Expand Down
8 changes: 8 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use clap::ValueEnum;
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, ValueEnum, Hash, Debug)]
pub enum ColorPalette {
Catppuccin,
Edge,
Everforest,
Gruvbox,
GruvboxMaterial,
Expand All @@ -19,6 +20,7 @@ impl std::fmt::Display for ColorPalette {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
ColorPalette::Catppuccin => write!(f, "catppuccin"),
ColorPalette::Edge => write!(f, "edge"),
ColorPalette::Everforest => write!(f, "everforest"),
ColorPalette::Gruvbox => write!(f, "gruvbox"),
ColorPalette::GruvboxMaterial => write!(f, "gruvbox-material"),
Expand Down Expand Up @@ -249,6 +251,12 @@ pub fn init_color_palettes() -> HashMap<String, HashMap<String, Vec<(String, u32
let color_palette = parse_color_palette(&json_color_palette).unwrap();
color_palettes.insert("catppuccin".to_string(), color_palette);

// edge
let json_color_palette: serde_json::Value =
serde_json::from_str(include_str!("palettes/edge.json")).unwrap();
let color_palette = parse_color_palette(&json_color_palette).unwrap();
color_palettes.insert("edge".to_string(), color_palette);

// everforest
let json_color_palette: serde_json::Value =
serde_json::from_str(include_str!("palettes/everforest.json")).unwrap();
Expand Down
132 changes: 132 additions & 0 deletions src/palettes/edge.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
{
"Edge Dark": {
"black": "#202023",
"bg_dim": "#24262A",
"bg0": "#2C2E34",
"bg1": "#33353F",
"bg2": "#363944",
"bg3": "#3B3E48",
"bg4": "#414550",
"gray_dim": "#535C6A",
"bg_red": "#EC7279",
"diff_red": "#55393D",
"bg_green": "#A0C980",
"diff_green": "#394634",
"bg_blue": "#6CB6EB",
"diff_blue": "#354157",
"bg_purple": "#D38AEA",
"gray": "#758094",
"red": "#EC7279",
"yellow": "#DEB974",
"green": "#A0C980",
"cyan": "#5DBBC1",
"blue": "#6CB6EB",
"diff_yellow": "#4E432F",
"purple": "#D38AEA",
"fg": "#C5CDD9"
},
"Edge Dark (Aura)": {
"black": "#202023",
"bg_dim": "#24262D",
"bg0": "#2B2D37",
"bg1": "#333644",
"bg2": "#363A49",
"bg3": "#3A3E4E",
"bg4": "#404455",
"gray_dim": "#535C6A",
"bg_red": "#EC7279",
"diff_red": "#55393D",
"bg_green": "#A0C980",
"diff_green": "#394634",
"bg_blue": "#6CB6EB",
"diff_blue": "#354157",
"bg_purple": "#D38AEA",
"gray": "#758094",
"red": "#EC7279",
"yellow": "#DEB974",
"green": "#A0C980",
"cyan": "#5DBBC1",
"blue": "#6CB6EB",
"diff_yellow": "#4E432F",
"purple": "#d38aea",
"fg": "#C5CDD9"
},
"Edge Dark (Neon)": {
"black": "#202023",
"bg_dim": "#252630",
"bg0": "#2B2D3A",
"bg1": "#333648",
"bg2": "#363A4E",
"bg3": "#393E53",
"bg4": "#3F445B",
"gray_dim": "#535C6A",
"bg_red": "#EC7279",
"diff_red": "#55393D",
"bg_green": "#A0C980",
"diff_green": "#394634",
"bg_blue": "#6CB6EB",
"diff_blue": "#354157",
"bg_purple": "#D38AEA",
"gray": "#758094",
"red": "#EC7279",
"yellow": "#DEB974",
"green": "#A0C980",
"cyan": "#5DBBC1",
"blue": "#6CB6EB",
"diff_yellow": "#4E432F",
"purple": "#D38AEA",
"fg": "#C5CDD9"
},
"Edge Dark (Aura Dim)": {
"black": "#202023",
"bg_dim": "#24262D",
"bg0": "#2B2D37",
"bg1": "#333644",
"bg2": "#363A49",
"bg3": "#3A3E4E",
"bg4": "#404455",
"gray_dim": "#4F5866",
"bg_red": "#EC7279",
"diff_red": "#55393D",
"bg_green": "#A0C980",
"diff_green": "#394634",
"bg_blue": "#6CB6EB",
"diff_blue": "#354157",
"bg_purple": "#D38AEA",
"gray": "#677287",
"red": "#EC7279",
"yellow": "#DEB974",
"green": "#A0C980",
"cyan": "#5DBBC1",
"blue": "#6CB6EB",
"diff_yellow": "#4E432F",
"purple": "#D38AEA",
"fg": "#97A4B5"
},
"Edge Light": {
"black": "#DDE2E7",
"bg_dim": "#E8EBF0",
"bg0": "#FAFAFA",
"bg1": "#EEF1F4",
"bg2": "#E8EBF0",
"bg3": "#E8EBF0",
"bg4": "#DDE2E7",
"gray_dim": "#BAC3CB",
"bg_red": "#E17373",
"diff_red": "#F6E4E4",
"bg_green": "#76AF6F",
"diff_green": "#E5EEE4",
"bg_blue": "#6996E0",
"diff_blue": "#E3EAF6",
"bg_purple": "#BF75D6",
"gray": "#8790A0",
"red": "#D05858",
"yellow": "#BE7E05",
"green": "#608E32",
"cyan": "#3A8B84",
"blue": "#5079BE",
"diff_yellow": "#F0ECE2",
"purple": "#B05CCC",
"fg": "#4B505B"
}
}

0 comments on commit 417cbbc

Please sign in to comment.