feat(theme): starting switch to everforest

Signed-off-by: Ismo Vuorinen <ismo@ivuorinen.net>
This commit is contained in:
2025-09-03 14:16:46 +03:00
parent f6252c871e
commit 530ce0df4f
8 changed files with 334 additions and 64 deletions

View File

@@ -13,7 +13,7 @@ local a = vim.api -- A table to store API functions
g.mapleader = ' ' -- Space as the leader key g.mapleader = ' ' -- Space as the leader key
g.maplocalleader = ' ' -- Space as the local leader key g.maplocalleader = ' ' -- Space as the local leader key
g.colors_theme = 'onedark' -- Set the colorscheme -- g.colors_theme = 'onedark' -- Set the colorscheme
-- g.colors_variant_light = 'tokyonight-day' -- Set the light variant -- g.colors_variant_light = 'tokyonight-day' -- Set the light variant
-- g.colors_variant_dark = 'tokyonight-storm' -- Set the dark variant -- g.colors_variant_dark = 'tokyonight-storm' -- Set the dark variant
@@ -65,6 +65,6 @@ vim.schedule(function()
end) end)
-- xiyaowong/transparent.nvim -- xiyaowong/transparent.nvim
vim.g.transparent_enabled = true -- vim.g.transparent_enabled = true
-- vim: ts=2 sts=2 sw=2 et -- vim: ts=2 sts=2 sw=2 et

View File

@@ -1,23 +1,52 @@
return { return {
{ {
'rose-pine/neovim', 'neanias/everforest-nvim',
name = 'rose-pine', version = false,
opts = { lazy = false,
dim_inactive_windows = false, priority = 1000, -- make sure to load this before all the other start plugins
extend_background_behind_borders = true, config = function()
styles = { require('everforest').setup {
bold = true, background = 'soft', -- hard, medium, soft
italic = true, transparent_background_level = 0, -- 0, 1, 2
transparency = true, sign_column_background = 'none', -- none, dimmed, normal
}, disable_italic_comments = false,
enable = { diagnostic_virtual_text = 'coloured', -- coloured, gray, underline, none
terminal = true, diagnostic_line_highlight = true,
legacy_highlights = true, -- Improve compatibility for previous versions of Neovim diagnostic_line_highlight_background = 'dimmed', -- dimmed, normal
migrations = true, -- Handle deprecated options automatically diagnostic_text_highlight = true,
}, ui_contrast = 'low', -- high, low
}, italics = true,
config = function() vim.cmd 'colorscheme rose-pine' end, spell_foreground = true,
show_eob = true,
colours_override = function() end,
float_style = 'dim',
on_highlights = function(_, _) end,
dim_inactive_windows = true,
inlay_hints_background = 'dimmed',
}
end,
}, },
-- {
-- 'rose-pine/neovim',
-- name = 'rose-pine',
-- opts = {
-- dim_inactive_windows = false,
-- extend_background_behind_borders = true,
-- styles = {
-- bold = true,
-- italic = true,
-- transparency = true,
-- },
-- enable = {
-- terminal = true,
-- legacy_highlights = true, -- Improve compatibility for previous versions of Neovim
-- migrations = true, -- Handle deprecated options automatically
-- },
-- },
-- config = function() vim.cmd 'colorscheme rose-pine' end,
-- },
-- Automatic dark mode -- Automatic dark mode
-- https://github.com/f-person/auto-dark-mode.nvim -- https://github.com/f-person/auto-dark-mode.nvim
{ {
@@ -27,12 +56,12 @@ return {
set_dark_mode = function() set_dark_mode = function()
vim.api.nvim_set_option_value('background', 'dark', {}) vim.api.nvim_set_option_value('background', 'dark', {})
-- vim.cmd.colorscheme(vim.g.colors_variant_dark) -- vim.cmd.colorscheme(vim.g.colors_variant_dark)
vim.cmd 'colorscheme rose-pine' -- vim.cmd 'colorscheme rose-pine'
end, end,
set_light_mode = function() set_light_mode = function()
vim.api.nvim_set_option_value('background', 'light', {}) vim.api.nvim_set_option_value('background', 'light', {})
-- vim.cmd.colorscheme(vim.g.colors_variant_light) -- vim.cmd.colorscheme(vim.g.colors_variant_light)
vim.cmd 'colorscheme rose-pine-dawn' -- vim.cmd 'colorscheme rose-pine-dawn'
end, end,
}, },
}, },
@@ -51,34 +80,35 @@ return {
-- Remove all background colors to make nvim transparent -- Remove all background colors to make nvim transparent
-- https://github.com/xiyaowong/nvim-transparent -- https://github.com/xiyaowong/nvim-transparent
{ -- {
'xiyaowong/nvim-transparent', -- 'xiyaowong/nvim-transparent',
lazy = false, -- lazy = false,
config = function() -- enabled = false,
local t = require 'transparent' -- config = function()
t.setup { -- local t = require 'transparent'
extra_groups = { -- t.setup {
'NormalNC', -- extra_groups = {
'NormalFloat', -- 'NormalNC',
'FloatTitle', -- 'NormalFloat',
'FloatBorder', -- 'FloatTitle',
'NotifyDEBUGBorder', -- 'FloatBorder',
'NotifyERRORBorder', -- 'NotifyDEBUGBorder',
'NotifyINFOBorder', -- 'NotifyERRORBorder',
'NotifyINFOBorder73', -- 'NotifyINFOBorder',
'NotifyINFOBorder75', -- 'NotifyINFOBorder73',
'NotifyINFOBorder101', -- 'NotifyINFOBorder75',
'NotifyTRACEBorder', -- 'NotifyINFOBorder101',
'NotifyWARNBorder', -- 'NotifyTRACEBorder',
'TelescopeBorder', -- 'NotifyWARNBorder',
'TelescopePromptBorder', -- 'TelescopeBorder',
'TelescopeResultsBorder', -- 'TelescopePromptBorder',
'TelescopePreviewBorder', -- 'TelescopeResultsBorder',
}, -- 'TelescopePreviewBorder',
} -- },
t.clear_prefix 'NeoTree' -- }
end, -- t.clear_prefix 'NeoTree'
}, -- end,
-- },
-- Display a character as the colorcolumn -- Display a character as the colorcolumn
-- https://github.com/lukas-reineke/virt-column.nvim -- https://github.com/lukas-reineke/virt-column.nvim

View File

@@ -1,7 +1,93 @@
set-option -g status-style 'fg=#cad3f5,bg=default' # set-option -g status-style 'fg=#cad3f5,bg=default'
set-window-option -g window-status-style 'fg=#cad3f5,bg=default dim' # set-window-option -g window-status-style 'fg=#cad3f5,bg=default dim'
set-window-option -g window-status-current-style 'fg=#04a5e5,bg=default' # set-window-option -g window-status-current-style 'fg=#04a5e5,bg=default'
set-window-option -g window-status-activity-style 'fg=#cad3f5,bg=default nodim' # set-window-option -g window-status-activity-style 'fg=#cad3f5,bg=default nodim'
set-window-option -g window-status-bell-style 'fg=#cad3f5,bg=default' # set-window-option -g window-status-bell-style 'fg=#cad3f5,bg=default'
set -g message-style 'fg=#c6a0f6 bg=#24273a bold' # set -g message-style 'fg=#c6a0f6 bg=#24273a bold'
## COLORSCHEME: everforest dark medium
set -g @everforest_bg_dim '#efebd4 '
set -g @everforest_bg0 '#fdf6e3 '
set -g @everforest_bg1 '#f6f0d9'
set -g @everforest_bg2 '#efebd4'
set -g @everforest_bg3 '#e6e2cc'
set -g @everforest_bg4 '#e0dcc7'
set -g @everforest_bg5 '#bdc3af'
set -g @everforest_bg_visual '#eaedc8'
set -g @everforest_bg_red '#fbe3da'
set -g @everforest_bg_green '#f0f1d2'
set -g @everforest_bg_blue '#e9f0e9'
set -g @everforest_bg_yellow '#faedcd'
set -g @everforest_fg '#5c6a72'
set -g @everforest_red '#f85552'
set -g @everforest_orange '#f57d26'
set -g @everforest_yellow '#dfa000'
set -g @everforest_green '#8da101'
set -g @everforest_aqua '#35a77c'
set -g @everforest_blue '#3a94c5'
set -g @everforest_purple '#df69ba'
set -g @everforest_grey0 '#a6b0a0'
set -g @everforest_grey1 '#939f91'
set -g @everforest_grey2 '#829181'
set -g @everforest_statusline1 '#93b259'
set -g @everforest_statusline2 '#708089'
set -g @everforest_statusline3 '#e66868'
set-option -g status "on"
set -g status-interval 2
set-option -g status-fg '#5c6a72' # fg (No idea why I can't use variables here)
set-option -g status-bg '#fdf6e4' # bg0
set-option -g mode-style fg='#{@everforest_purple}',bg='#{@everforest_bg_red}' # fg=purple, bg=bg_visual
# default statusbar colors
set-option -g status-style fg='#{@everforest_fg}',bg='#{@everforest_bg_dim}',default # fg=fg bg=bg_dim
# ---- Windows ----
# default window title colors
set-window-option -g window-status-style fg='#{@everforest_bg5}',bg='#{@everforest_bg0}' # fg=yellow bg=bg0
# default window with an activity alert
set-window-option -g window-status-activity-style 'bg=#{@everforest_bg1},fg=#{@everforest_bg3}' # bg=bg1, fg=fg3
# active window title colors
set-window-option -g window-status-current-style fg='#{@everforest_fg}',bg='#{@everforest_bg_green}' # fg=fg bg=bg_green
# ---- Pane ----
# pane borders
set-option -g pane-border-style fg='#{@everforest_bg1}' # fg=bg1
set-option -g pane-active-border-style 'fg=#{@everforest_blue}' # fg=blue
# pane number display
set-option -g display-panes-active-colour '#3a9c53' # blue
set-option -g display-panes-colour '#f57d26' # orange
# ---- Command ----
# message info
set-option -g message-style fg='#{@everforest_statusline3}',bg='#{@everforest_bg_dim}' # fg=statusline3 bg=bg_dim
# writing commands inactive
set-option -g message-command-style 'fg=#{@everforest_bg3},bg=#{@everforest_bg1}' # bg=fg3, fg=bg1
# ---- Miscellaneous ----
# clock
set-window-option -g clock-mode-colour '#3a9c53' #blue
# bell
set-window-option -g window-status-bell-style fg='#{@everforest_bg0}',bg='#{@everforest_statusline3}' # fg=bg, bg=statusline3
# ---- Formatting ----
set-option -g status-left-style none
set -g status-left-length 60
set -g status-left '#[fg=#{@everforest_bg_dim},bg=#{@everforest_green},bold] #S #[fg=#{@everforest_green},bg=#{@everforest_bg2},nobold]#[fg=#{@everforest_green},bg=#{@everforest_bg2},bold] #(whoami) #[fg=#{@everforest_bg2},bg=#{@everforest_bg0},nobold]'
set-option -g status-right-style none
set -g status-right-length 150
set -g status-right '#[fg=#{@everforest_bg2}]#[fg=#{@everforest_fg},bg=#{@everforest_bg2}] #[fg=#{@everforest_fg},bg=#{@everforest_bg2}]%Y-%m-%d  %H:%M #[fg=#{@everforest_aqua},bg=#{@everforest_bg2},bold]#[fg=#{@everforest_bg_dim},bg=#{@everforest_aqua},bold] #h '
set -g window-status-separator '#[fg=#{@everforest_grey2},bg=#{@everforest_bg0}] '
set -g window-status-format "#[fg=#{@everforest_grey0},bg=#{@everforest_bg0}] #I  #[fg=#{@everforest_grey0},bg=#{@everforest_bg0}]#W "
set -g window-status-current-format "#[fg=#{@everforest_bg0},bg=#{@everforest_bg_green}]#[fg=#{@everforest_fg},bg=#{@everforest_bg_green}] #I  #[fg=#{@everforest_fg},bg=#{@everforest_bg_green},bold]#W #[fg=#{@everforest_bg_green},bg=#{@everforest_bg0},nobold]"

View File

@@ -1,7 +1,93 @@
set-option -g status-style 'fg=#4c4f69,bg=default' # set-option -g status-style 'fg=#4c4f69,bg=default'
set-window-option -g window-status-style 'fg=#4c4f69,bg=default dim' # set-window-option -g window-status-style 'fg=#4c4f69,bg=default dim'
set-window-option -g window-status-current-style 'fg=#8839ef,bg=default' # set-window-option -g window-status-current-style 'fg=#8839ef,bg=default'
set-window-option -g window-status-activity-style 'fg=#4c4f69,bg=default nodim' # set-window-option -g window-status-activity-style 'fg=#4c4f69,bg=default nodim'
set-window-option -g window-status-bell-style 'fg=#4c4f69,bg=default' # set-window-option -g window-status-bell-style 'fg=#4c4f69,bg=default'
set -g message-style 'fg=#8839ef bg=#e6e9ef bold' # fg magenta, bg black # set -g message-style 'fg=#8839ef bg=#e6e9ef bold' # fg magenta, bg black
## COLORSCHEME: everforest light medium
set -g @everforest_bg_dim '#e5dfc5'
set -g @everforest_bg0 '#f3ead3'
set -g @everforest_bg1 '#eae4ca'
set -g @everforest_bg2 '#e5dfc5'
set -g @everforest_bg3 '#ddd8be'
set -g @everforest_bg4 '#d8d3ba'
set -g @everforest_bg5 '#b9c0ab'
set -g @everforest_bg_visual '#e1e4b0'
set -g @everforest_bg_red '#f4dbd0'
set -g @everforest_bg_green '#e5e6c5'
set -g @everforest_bg_blue '#e1e7dd'
set -g @everforest_bg_yellow '#f1e4c5'
set -g @everforest_fg '#5c6a72'
set -g @everforest_red '#f85552'
set -g @everforest_orange '#f57d26'
set -g @everforest_yellow '#dfa000'
set -g @everforest_green '#8da101'
set -g @everforest_aqua '#35a77c'
set -g @everforest_blue '#3a94c5'
set -g @everforest_purple '#df69ba'
set -g @everforest_grey0 '#a6b0a0'
set -g @everforest_grey1 '#939f91'
set -g @everforest_grey2 '#829181'
set -g @everforest_statusline1 '#93b259'
set -g @everforest_statusline2 '#708089'
set -g @everforest_statusline3 '#e66868'
set-option -g status "on"
set -g status-interval 2
set-option -g status-fg '#5c6a72' # fg (No idea why I can't use variables here)
set-option -g status-bg '#f3ead3' # bg0
set-option -g mode-style fg='#{@everforest_purple}',bg='#{@everforest_bg_red}' # fg=purple, bg=bg_visual
# default statusbar colors
set-option -g status-style fg='#{@everforest_fg}',bg='#{@everforest_bg_dim}',default # fg=fg bg=bg_dim
# ---- Windows ----
# default window title colors
set-window-option -g window-status-style fg='#{@everforest_bg5}',bg='#{@everforest_bg0}' # fg=yellow bg=bg0
# default window with an activity alert
set-window-option -g window-status-activity-style 'bg=#{@everforest_bg1},fg=#{@everforest_bg3}' # bg=bg1, fg=fg3
# active window title colors
set-window-option -g window-status-current-style fg='#{@everforest_fg}',bg='#{@everforest_bg_green}' # fg=fg bg=bg_green
# ---- Pane ----
# pane borders
set-option -g pane-border-style fg='#{@everforest_bg1}' # fg=bg1
set-option -g pane-active-border-style 'fg=#{@everforest_blue}' # fg=blue
# pane number display
set-option -g display-panes-active-colour '#3a9c53' # blue
set-option -g display-panes-colour '#f57d26' # orange
# ---- Command ----
# message info
set-option -g message-style fg='#{@everforest_statusline3}',bg='#{@everforest_bg_dim}' # fg=statusline3 bg=bg_dim
# writing commands inactive
set-option -g message-command-style 'fg=#{@everforest_bg3},bg=#{@everforest_bg1}' # bg=fg3, fg=bg1
# ---- Miscellaneous ----
# clock
set-window-option -g clock-mode-colour '#3a9c53' #blue
# bell
set-window-option -g window-status-bell-style fg='#{@everforest_bg0}',bg='#{@everforest_statusline3}' # fg=bg, bg=statusline3
# ---- Formatting ----
set-option -g status-left-style none
set -g status-left-length 60
set -g status-left '#[fg=#{@everforest_bg_dim},bg=#{@everforest_green},bold] #S #[fg=#{@everforest_green},bg=#{@everforest_bg2},nobold]#[fg=#{@everforest_green},bg=#{@everforest_bg2},bold] #(whoami) #[fg=#{@everforest_bg2},bg=#{@everforest_bg0},nobold]'
set-option -g status-right-style none
set -g status-right-length 150
set -g status-right '#[fg=#{@everforest_bg2}]#[fg=#{@everforest_fg},bg=#{@everforest_bg2}] #[fg=#{@everforest_fg},bg=#{@everforest_bg2}]%Y-%m-%d  %H:%M #[fg=#{@everforest_aqua},bg=#{@everforest_bg2},bold]#[fg=#{@everforest_bg_dim},bg=#{@everforest_aqua},bold] #h '
set -g window-status-separator '#[fg=#{@everforest_grey2},bg=#{@everforest_bg0}] '
set -g window-status-format "#[fg=#{@everforest_grey0},bg=#{@everforest_bg0}] #I  #[fg=#{@everforest_grey0},bg=#{@everforest_bg0}]#W "
set -g window-status-current-format "#[fg=#{@everforest_bg0},bg=#{@everforest_bg_green}]#[fg=#{@everforest_fg},bg=#{@everforest_bg_green}] #I  #[fg=#{@everforest_fg},bg=#{@everforest_bg_green},bold]#W #[fg=#{@everforest_bg_green},bg=#{@everforest_bg0},nobold]"

View File

@@ -114,7 +114,7 @@ bind -N "tms refresh" C-r display-popup -E "tms refresh"
# Plugin that lets you suspend local tmux session, # Plugin that lets you suspend local tmux session,
# so that you can work with nested remote tmux session painlessly. # so that you can work with nested remote tmux session painlessly.
# https://github.com/MunifTanjim/tmux-suspend # https://github.com/MunifTanjim/tmux-suspend
set -g @suspend_key 'C-i' # Ctrl + inner # set -g @suspend_key 'F8' # Default is F12
## A plugin to name your tmux windows smartly. ## A plugin to name your tmux windows smartly.
## https://github.com/ofirgall/tmux-window-name ## https://github.com/ofirgall/tmux-window-name

View File

@@ -0,0 +1,32 @@
[colors]
ansi = [
'#475258',
'#e67e80',
'#a7c080',
'#dbbc7f',
'#7fbbb3',
'#d699b6',
'#83c092',
'#d3c6aa',
]
background = '#2d353b'
brights = [
'#475258',
'#e67e80',
'#a7c080',
'#dbbc7f',
'#7fbbb3',
'#d699b6',
'#83c092',
'#d3c6aa',
]
cursor_bg = '#d3c6aa'
cursor_border = '#d3c6aa'
cursor_fg = '#2d353b'
foreground = '#d3c6aa'
[colors.indexed]
[metadata]
name = 'Everforest Dark (Medium)'
origin_url = 'https://github.com/frdwin/Everforest-Wezterm'

View File

@@ -0,0 +1,32 @@
[colors]
ansi = [
'#5c6a72',
'#f85552',
'#8da101',
'#dfa000',
'#3a94c5',
'#df69ba',
'#35a77c',
'#e0dcc7',
]
background = '#fdf6e3'
brights = [
'#5c6a72',
'#f85552',
'#8da101',
'#dfa000',
'#3a94c5',
'#df69ba',
'#35a77c',
'#e0dcc7',
]
cursor_bg = '#5c6a72'
cursor_border = '#5c6a72'
cursor_fg = '#fdf6e3'
foreground = '#5c6a72'
[colors.indexed]
[metadata]
name = 'Everforest Light (Medium)'
origin_url = 'https://github.com/frdwin/Everforest-Wezterm'

View File

@@ -5,6 +5,10 @@ config.set_environment_variables = {
COLORTERM = 'truecolor', COLORTERM = 'truecolor',
} }
config.color_scheme_dirs = {
'~/.config/wezterm/colors',
}
-- Font and font size -- Font and font size
config.font_size = 16 config.font_size = 16
config.font = wezterm.font_with_fallback { config.font = wezterm.font_with_fallback {
@@ -45,9 +49,9 @@ config.scrollback_lines = 3000
-- Function to detect the theme based on appearance -- Function to detect the theme based on appearance
function Scheme_for_appearance(appearance) function Scheme_for_appearance(appearance)
if appearance:find 'Dark' then if appearance:find 'Dark' then
return 'Tokyo Night Storm' return 'Everforest Dark (Medium)'
else else
return 'Tokyo Night Day' return 'Everforest Light (Medium)'
end end
end end