mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Use theme config templates with singular color definition (#4053)
* Attempt to templaterize the theme specific files * Cleanup * Slim down * Combine render into -set * Pull out the dynamic template rendering again, but simpler * Fix vars * Variables are lowercase * Better presentation * Fix missing colors * Provide stripped values too * Fix colors for regular hex format * Bring back explicit btop themes They're too involved to derive from a basic color set * Make an atomic swap of the theme directories * No longer used by walker to cancel * Explain why * Remove redundant const * Consistent const naming * No longe have $THEMES_DIR * Correct the blue * Set opencode colors too * Fix colors for readability * Move the templates together with the others in default * Split user themes and default themes * Fix paths * Look for both user themes and default themes Plus speed things up * Migrate to the new setup where default themes live inside omarchy * Explicitly store the name of the current theme * Cleanup * No longer need omarchy-theme-next since themes are now fully rendered, not symlinks * Get current theme name from the new theme.name file * Look for user background images in dedicated directory * Need yq for toml * Need yq to parse colors.toml * Look for backgrounds matching the new theme.name We no longer have symlinks * Migrate existing user backgrounds to the new proper location * Install user backgrounds in the correct path * Fix quoting * Just rely on the system theme for opencode and get ready for USRSIG2 being available to live reload * Fix template generation for rgb colors
This commit is contained in:
committed by
GitHub
parent
de2757466b
commit
4a07b94cb6
@@ -1,24 +0,0 @@
|
||||
[colors]
|
||||
[colors.primary]
|
||||
background = "0x282828"
|
||||
foreground = "0xd4be98"
|
||||
|
||||
[colors.normal]
|
||||
black = "0x3c3836"
|
||||
red = "0xea6962"
|
||||
green = "0xa9b665"
|
||||
yellow = "0xd8a657"
|
||||
blue = "0x7daea3"
|
||||
magenta = "0xd3869b"
|
||||
cyan = "0x89b482"
|
||||
white = "0xd4be98"
|
||||
|
||||
[colors.bright]
|
||||
black = "0x3c3836"
|
||||
red = "0xea6962"
|
||||
green = "0xa9b665"
|
||||
yellow = "0xd8a657"
|
||||
blue = "0x7daea3"
|
||||
magenta = "0xd3869b"
|
||||
cyan = "0x89b482"
|
||||
white = "0xd4be98"
|
||||
26
themes/gruvbox/colors.toml
Normal file
26
themes/gruvbox/colors.toml
Normal file
@@ -0,0 +1,26 @@
|
||||
accent = "#7daea3"
|
||||
active_border_color = "#458588"
|
||||
active_tab_background = "#d65d0e"
|
||||
|
||||
cursor = "#bdae93"
|
||||
foreground = "#d4be98"
|
||||
background = "#282828"
|
||||
selection_foreground = "#ebdbb2"
|
||||
selection_background = "#d65d0e"
|
||||
|
||||
color0 = "#3c3836"
|
||||
color1 = "#ea6962"
|
||||
color2 = "#a9b665"
|
||||
color3 = "#d8a657"
|
||||
color4 = "#7daea3"
|
||||
color5 = "#d3869b"
|
||||
color6 = "#89b482"
|
||||
color7 = "#d4be98"
|
||||
color8 = "#3c3836"
|
||||
color9 = "#ea6962"
|
||||
color10 = "#a9b665"
|
||||
color11 = "#d8a657"
|
||||
color12 = "#7daea3"
|
||||
color13 = "#d3869b"
|
||||
color14 = "#89b482"
|
||||
color15 = "#d4be98"
|
||||
@@ -1 +0,0 @@
|
||||
theme = Gruvbox Dark
|
||||
@@ -1,94 +0,0 @@
|
||||
@define-color foreground #ebdbb2;
|
||||
@define-color background #282828;
|
||||
@define-color accent #d65d0e;
|
||||
@define-color muted #928374;
|
||||
@define-color card_bg #3c3836;
|
||||
@define-color text_dark #282828;
|
||||
@define-color accent_hover #fabd2f;
|
||||
@define-color selected_tab #d65d0e;
|
||||
@define-color text #ebdbb2;
|
||||
|
||||
* {
|
||||
all: unset;
|
||||
font-family: JetBrains Mono NF;
|
||||
color: @foreground;
|
||||
font-weight: bold;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.window {
|
||||
background: alpha(@background, 0.95);
|
||||
border: solid 2px @accent;
|
||||
margin: 4px;
|
||||
padding: 18px;
|
||||
}
|
||||
|
||||
tabs {
|
||||
padding: 0.5rem 1rem;
|
||||
}
|
||||
|
||||
tabs > tab {
|
||||
margin-right: 1rem;
|
||||
}
|
||||
|
||||
.tab-label {
|
||||
color: @text;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
tabs > tab:checked > .tab-label, tabs > tab:active > .tab-label {
|
||||
text-decoration: underline currentColor;
|
||||
color: @selected_tab;
|
||||
}
|
||||
|
||||
tabs > tab:focus > .tab-label {
|
||||
color: @foreground;
|
||||
}
|
||||
|
||||
.page {
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.image-label {
|
||||
font-size: 12px;
|
||||
padding: 0.25rem;
|
||||
}
|
||||
|
||||
flowboxchild > .card, button > .card {
|
||||
transition: all 0.2s ease;
|
||||
border: solid 2px transparent;
|
||||
border-color: @background;
|
||||
border-radius: 5px;
|
||||
background-color: @card_bg;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
flowboxchild:hover > .card, button:hover > .card, flowboxchild:active > .card, flowboxchild:selected > .card, button:active > .card, button:selected > .card, button:focus > .card {
|
||||
border: solid 2px @accent;
|
||||
}
|
||||
|
||||
.image {
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.region-button {
|
||||
padding: 0.5rem 1rem;
|
||||
border-radius: 5px;
|
||||
background-color: @accent;
|
||||
color: @text_dark;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.region-button > label {
|
||||
color: @text_dark;
|
||||
}
|
||||
|
||||
.region-button:not(:disabled):hover, .region-button:not(:disabled):focus {
|
||||
background-color: @accent_hover;
|
||||
color: @text_dark;
|
||||
}
|
||||
|
||||
.region-button:disabled {
|
||||
background-color: @muted;
|
||||
color: @background;
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
$activeBorderColor = rgb(a89984)
|
||||
|
||||
general {
|
||||
col.active_border = $activeBorderColor
|
||||
}
|
||||
|
||||
group {
|
||||
col.border_active = $activeBorderColor
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
$color = rgba(40,40,40,1.0)
|
||||
$inner_color = rgba(40,40,40,0.8)
|
||||
$outer_color = rgba(212,190,152,1.0)
|
||||
$font_color = rgba(212,190,152,1.0)
|
||||
$check_color = rgba(214, 153, 92, 1.0)
|
||||
@@ -1,40 +0,0 @@
|
||||
## name: Gruvbox Dark
|
||||
## author: Pavel Pertsev
|
||||
## license: MIT/X11
|
||||
## upstream: https://raw.githubusercontent.com/gruvbox-community/gruvbox-contrib/master/kitty/gruvbox-dark.conf
|
||||
|
||||
selection_foreground #ebdbb2
|
||||
selection_background #d65d0e
|
||||
|
||||
background #282828
|
||||
foreground #ebdbb2
|
||||
|
||||
color0 #3c3836
|
||||
color1 #cc241d
|
||||
color2 #98971a
|
||||
color3 #d79921
|
||||
color4 #458588
|
||||
color5 #b16286
|
||||
color6 #689d6a
|
||||
color7 #a89984
|
||||
color8 #928374
|
||||
color9 #fb4934
|
||||
color10 #b8bb26
|
||||
color11 #fabd2f
|
||||
color12 #83a598
|
||||
color13 #d3869b
|
||||
color14 #8ec07c
|
||||
color15 #fbf1c7
|
||||
|
||||
cursor #bdae93
|
||||
cursor_text_color #665c54
|
||||
|
||||
url_color #458588
|
||||
|
||||
# START_AUTOGENERATED_TAB_STYLE
|
||||
# Feel free to update these colors manually and remove these comments.
|
||||
active_tab_foreground #eeeeee
|
||||
active_tab_background #d65d0e
|
||||
inactive_tab_foreground #ebdbb2
|
||||
inactive_tab_background #202020
|
||||
# END_AUTOGENERATED_TAB_STYLE
|
||||
@@ -1,5 +0,0 @@
|
||||
include=~/.local/share/omarchy/default/mako/core.ini
|
||||
|
||||
text-color=#d4be98
|
||||
border-color=#a89984
|
||||
background-color=#282828
|
||||
@@ -1,6 +0,0 @@
|
||||
@define-color background-color #282828;
|
||||
@define-color border-color #a89984;
|
||||
@define-color label #ebdbb2;
|
||||
@define-color image #ebdbb2;
|
||||
@define-color progress #ebdbb2;
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
@define-color selected-text #fabd2f;
|
||||
@define-color text #ebdbb2;
|
||||
@define-color base #282828;
|
||||
@define-color border #ebdbb2;
|
||||
@define-color foreground #ebdbb2;
|
||||
@define-color background #282828;
|
||||
@@ -1,2 +0,0 @@
|
||||
@define-color foreground #d4be98;
|
||||
@define-color background #282828;
|
||||
Reference in New Issue
Block a user