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,47 +0,0 @@
|
||||
[colors]
|
||||
[colors.primary]
|
||||
background = "#2e3440"
|
||||
foreground = "#d8dee9"
|
||||
dim_foreground = "#a5abb6"
|
||||
|
||||
[colors.cursor]
|
||||
text = "#2e3440"
|
||||
cursor = "#d8dee9"
|
||||
|
||||
[colors.vi_mode_cursor]
|
||||
text = "#2e3440"
|
||||
cursor = "#d8dee9"
|
||||
|
||||
[colors.selection]
|
||||
text = "CellForeground"
|
||||
background = "#4c566a"
|
||||
|
||||
[colors.normal]
|
||||
black = "#3b4252"
|
||||
red = "#bf616a"
|
||||
green = "#a3be8c"
|
||||
yellow = "#ebcb8b"
|
||||
blue = "#81a1c1"
|
||||
magenta = "#b48ead"
|
||||
cyan = "#88c0d0"
|
||||
white = "#e5e9f0"
|
||||
|
||||
[colors.bright]
|
||||
black = "#4c566a"
|
||||
red = "#bf616a"
|
||||
green = "#a3be8c"
|
||||
yellow = "#ebcb8b"
|
||||
blue = "#81a1c1"
|
||||
magenta = "#b48ead"
|
||||
cyan = "#8fbcbb"
|
||||
white = "#eceff4"
|
||||
|
||||
[colors.dim]
|
||||
black = "#373e4d"
|
||||
red = "#94545d"
|
||||
green = "#809575"
|
||||
yellow = "#b29e75"
|
||||
blue = "#68809a"
|
||||
magenta = "#8c738c"
|
||||
cyan = "#6d96a5"
|
||||
white = "#aeb3bb"
|
||||
26
themes/nord/colors.toml
Normal file
26
themes/nord/colors.toml
Normal file
@@ -0,0 +1,26 @@
|
||||
accent = "#81a1c1"
|
||||
active_border_color = "#81A1C1"
|
||||
active_tab_background = "#2E3440"
|
||||
|
||||
cursor = "#d8dee9"
|
||||
foreground = "#d8dee9"
|
||||
background = "#2e3440"
|
||||
selection_foreground = "#d8dee9"
|
||||
selection_background = "#4c566a"
|
||||
|
||||
color0 = "#3b4252"
|
||||
color1 = "#bf616a"
|
||||
color2 = "#a3be8c"
|
||||
color3 = "#ebcb8b"
|
||||
color4 = "#81a1c1"
|
||||
color5 = "#b48ead"
|
||||
color6 = "#88c0d0"
|
||||
color7 = "#e5e9f0"
|
||||
color8 = "#4c566a"
|
||||
color9 = "#bf616a"
|
||||
color10 = "#a3be8c"
|
||||
color11 = "#ebcb8b"
|
||||
color12 = "#81a1c1"
|
||||
color13 = "#b48ead"
|
||||
color14 = "#8fbcbb"
|
||||
color15 = "#eceff4"
|
||||
@@ -1 +0,0 @@
|
||||
theme = Nord
|
||||
@@ -1,94 +0,0 @@
|
||||
@define-color foreground #D8DEE9;
|
||||
@define-color background #2E3440;
|
||||
@define-color accent #88C0D0;
|
||||
@define-color muted #4C566A;
|
||||
@define-color card_bg #3B4252;
|
||||
@define-color text_dark #2E3440;
|
||||
@define-color accent_hover #8FBCBB;
|
||||
@define-color selected_tab #88C0D0;
|
||||
@define-color text #D8DEE9;
|
||||
|
||||
* {
|
||||
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(D8DEE9)
|
||||
|
||||
general {
|
||||
col.active_border = $activeBorderColor
|
||||
}
|
||||
|
||||
group {
|
||||
col.border_active = $activeBorderColor
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
$color = rgba(46,52,64,1.0)
|
||||
$inner_color = rgba(46,52,64,0.8)
|
||||
$outer_color = rgba(216,222,233,1.0)
|
||||
$font_color = rgba(216,222,233,1.0)
|
||||
$check_color = rgba(136, 192, 208, 1.0)
|
||||
@@ -1,40 +0,0 @@
|
||||
# Nord Colorscheme for Kitty
|
||||
|
||||
foreground #D8DEE9
|
||||
background #2E3440
|
||||
selection_foreground #000000
|
||||
selection_background #FFFACD
|
||||
url_color #0087BD
|
||||
cursor #81A1C1
|
||||
|
||||
# black
|
||||
color0 #3B4252
|
||||
color8 #4C566A
|
||||
|
||||
# red
|
||||
color1 #BF616A
|
||||
color9 #BF616A
|
||||
|
||||
# green
|
||||
color2 #A3BE8C
|
||||
color10 #A3BE8C
|
||||
|
||||
# yellow
|
||||
color3 #EBCB8B
|
||||
color11 #EBCB8B
|
||||
|
||||
# blue
|
||||
color4 #81A1C1
|
||||
color12 #81A1C1
|
||||
|
||||
# magenta
|
||||
color5 #B48EAD
|
||||
color13 #B48EAD
|
||||
|
||||
# cyan
|
||||
color6 #88C0D0
|
||||
color14 #8FBCBB
|
||||
|
||||
# white
|
||||
color7 #E5E9F0
|
||||
color15 #ECEFF4
|
||||
@@ -1,5 +0,0 @@
|
||||
include=~/.local/share/omarchy/default/mako/core.ini
|
||||
|
||||
text-color=#d8dee9
|
||||
border-color=#D8DEE9
|
||||
background-color=#2e3440
|
||||
@@ -1,6 +0,0 @@
|
||||
@define-color background-color #2E3440;
|
||||
@define-color border-color #D8DEE9;
|
||||
@define-color label #D8DEE9;
|
||||
@define-color image #D8DEE9;
|
||||
@define-color progress #D8DEE9;
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
@define-color selected-text #88C0D0;
|
||||
@define-color text #D8DEE9;
|
||||
@define-color base #2E3440;
|
||||
@define-color border #D8DEE9;
|
||||
@define-color foreground #D8DEE9;
|
||||
@define-color background #2E3440;
|
||||
@@ -1,2 +0,0 @@
|
||||
@define-color foreground #d8dee9;
|
||||
@define-color background #2e3440;
|
||||
Reference in New Issue
Block a user