Skip to content

Commit 48f0e11

Browse files
authored
feat(themes): add fluorite theme
Add the Fluorite theme with elegant purple and pink tones. Soft and sophisticated color scheme inspired by the mineral fluorite. Created by Rnbsov (https://github.com/Rnbsov/fluorite-theme)"
1 parent c6e9eb1 commit 48f0e11

4 files changed

Lines changed: 62 additions & 0 deletions

File tree

‎docs/themes.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ gitlogue comes with 16 carefully crafted themes optimized for code readability a
2222
- **catppuccin** - Soothing pastel theme (Mocha variant) with soft, gentle colors.
2323
- **dracula** - Vibrant dark theme with rich purples and greens. High contrast for extended viewing.
2424
- **everforest** - Nature-inspired theme with earthy green tones. Easy on the eyes for long sessions.
25+
- **fluorite** - Elegant dark theme with purple and pink tones. Soft and sophisticated color scheme inspired by the mineral fluorite.
2526
- **github-dark** - GitHub's official dark theme. Clean and professional for familiar coding experience.
2627
- **gruvbox** - Retro groove color scheme with warm, earthy tones. Perfect for a cozy coding atmosphere.
2728
- **material** - Google's Material Design inspired theme. Modern and vibrant color palette.

‎src/theme/mod.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ impl Theme {
7474
"ayu-dark" => Ok(themes::ayu_dark()),
7575
"catppuccin" => Ok(themes::catppuccin()),
7676
"dracula" => Ok(themes::dracula()),
77+
"fluorite" => Ok(themes::fluorite()),
7778
"everforest" => Ok(themes::everforest()),
7879
"github-dark" => Ok(themes::github_dark()),
7980
"gruvbox" => Ok(themes::gruvbox()),
@@ -105,6 +106,7 @@ impl Theme {
105106
"ayu-dark",
106107
"catppuccin",
107108
"dracula",
109+
"fluorite"
108110
"everforest",
109111
"github-dark",
110112
"gruvbox",

‎src/theme/themes/fluorite.rs‎

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
use super::super::Theme;
2+
use ratatui::style:: Color;
3+
4+
/// Fluorite - Elegant dark theme with purple and pink tones
5+
/// Soft and sophisticated color scheme inspired by the mineral fluorite
6+
/// Created by Rnbsov (https://github.com/Rnbsov)
7+
pub fn fluorite() -> Theme {
8+
Theme {
9+
background_left: Color::Rgb(18, 12, 23), // Sidebar (#120c17)
10+
background_right: Color::Rgb(22, 17, 27), // Editor (#16111b)
11+
12+
editor_line_number: Color::Rgb(42, 28, 54),
13+
editor_line_number_cursor: Color::Rgb(65, 43, 84),
14+
editor_separator: Color::Rgb(42, 28, 54),
15+
editor_cursor_char_bg: Color::Rgb(163, 109, 207),
16+
editor_cursor_char_fg: Color::Rgb(22, 17, 27),
17+
editor_cursor_line_bg: Color::Rgb(25, 17, 31),
18+
19+
file_tree_added: Color::Rgb(129, 184, 139),
20+
file_tree_deleted: Color::Rgb(91, 60, 117),
21+
file_tree_modified: Color::Rgb(136, 92, 173),
22+
file_tree_renamed: Color::Rgb(139, 203, 255),
23+
file_tree_directory: Color::Rgb(136, 92, 173),
24+
file_tree_current_file_bg: Color::Rgb(25, 17, 31),
25+
file_tree_current_file_fg: Color::Rgb(136, 92, 173),
26+
file_tree_default: Color::Rgb(91, 60, 117),
27+
file_tree_stats_added: Color::Rgb(129, 184, 139),
28+
file_tree_stats_deleted: Color::Rgb(91, 60, 117),
29+
30+
terminal_command: Color::Rgb(136, 92, 173),
31+
terminal_output: Color::Rgb(110, 155, 188),
32+
terminal_cursor_bg: Color::Rgb(163, 109, 207),
33+
terminal_cursor_fg: Color::Rgb(22, 17, 27),
34+
35+
status_hash: Color::Rgb(173, 133, 245),
36+
status_author: Color::Rgb(139, 203, 255),
37+
status_date: Color::Rgb(209, 123, 159),
38+
status_message: Color::Rgb(110, 155, 188),
39+
status_no_commit: Color::Rgb(65, 43, 84),
40+
41+
separator: Color::Rgb(42, 28, 54),
42+
43+
syntax_keyword: Color:: Rgb(222, 127, 236),
44+
syntax_type: Color::Rgb(173, 133, 245),
45+
syntax_function: Color::Rgb(139, 203, 255),
46+
syntax_variable: Color::Rgb(215, 215, 215),
47+
syntax_string: Color::Rgb(139, 215, 137),
48+
syntax_number: Color::Rgb(209, 123, 159),
49+
syntax_comment: Color:: Rgb(91, 60, 117),
50+
syntax_operator: Color:: Rgb(110, 155, 188),
51+
syntax_punctuation: Color:: Rgb(110, 155, 188),
52+
syntax_constant: Color::Rgb(209, 123, 159),
53+
syntax_parameter: Color::Rgb(173, 133, 245),
54+
syntax_property: Color:: Rgb(139, 215, 137),
55+
syntax_label: Color::Rgb(222, 127, 236),
56+
}
57+
}

‎src/theme/themes/mod.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ mod ayu_dark;
22
mod catppuccin;
33
mod dracula;
44
mod everforest;
5+
mod fluorite;
56
mod github_dark;
67
mod gruvbox;
78
mod material;
@@ -19,6 +20,7 @@ pub use ayu_dark::ayu_dark;
1920
pub use catppuccin::catppuccin;
2021
pub use dracula::dracula;
2122
pub use everforest::everforest;
23+
pub use fluorite::fluorite;
2224
pub use github_dark::github_dark;
2325
pub use gruvbox::gruvbox;
2426
pub use material::material;

0 commit comments

Comments
 (0)