Skip to content

Commit

Permalink
Theme changes
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Oct 17, 2024
1 parent 01650b6 commit cead69c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
27 changes: 14 additions & 13 deletions src/textual/theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,20 @@ def to_color_system(self) -> ColorSystem:
success="#4EBF71",
dark=False,
),
"nord": Theme(
name="nord",
primary="#88C0D0", # Nord8 - Frost
secondary="#81A1C1", # Nord9 - Frost
warning="#EBCB8B", # Nord13 - Aurora (yellow)
error="#BF616A", # Nord11 - Aurora (red)
success="#A3BE8C", # Nord14 - Aurora (green)
accent="#B48EAD", # Nord15 - Aurora (purple)
background="#2E3440", # Nord0 - Polar Night
surface="#3B4252", # Nord1 - Polar Night
panel="#434C5E", # Nord2 - Polar Night
foreground="#D8DEE9", # Nord4 - Snow Storm
dark=True,
),
"gruvbox": Theme(
name="gruvbox",
primary="#A89A85",
Expand Down Expand Up @@ -202,19 +216,6 @@ def to_color_system(self) -> ColorSystem:
surface="#eee8d5",
panel="#eee8d5",
),
"alpine": Theme(
name="alpine",
primary="#4A90E2", # Clear Sky Blue
secondary="#81A1C1", # Misty Blue
warning="#EBCB8B", # Soft Sunlight
error="#BF616A", # Muted Red
success="#A3BE8C", # Alpine Meadow Green
accent="#5E81AC", # Mountain Lake Blue
dark=True,
background="#2E3440", # Dark Slate Grey
surface="#3B4252", # Darker Blue-Grey
panel="#434C5E", # Lighter Blue-Grey
),
"cobalt": Theme(
name="cobalt",
primary="#334D5C", # Deep Cobalt Blue
Expand Down
1 change: 1 addition & 0 deletions src/textual/widgets/_list_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class ListView(VerticalScroll, can_focus=True, can_focus_children=False):
ListView {
background: transparent;
& > ListItem.--highlight {
color: $text;
background: $highlight-cursor-blurred;
}
&:focus-within {
Expand Down

0 comments on commit cead69c

Please sign in to comment.