mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-11-29 18:58:28 -05:00
256 lines
7.1 KiB
Lua
256 lines
7.1 KiB
Lua
--
|
|
-- Base16 Nord
|
|
-- Author: arcticicestudio
|
|
--
|
|
|
|
function hex2rgb(hex)
|
|
local hex = hex:gsub("#","")
|
|
return string.format("%s, %s, %s",tonumber("0x"..hex:sub(1,2)), tonumber("0x"..hex:sub(3,4)), tonumber("0x"..hex:sub(5,6)))
|
|
end
|
|
|
|
local base00 = "#2E3440" -- ----
|
|
local base01 = "#3B4252" -- ---
|
|
local base02 = "#434C5E" -- --
|
|
local base03 = "#4C566A" -- -
|
|
local base04 = "#D8DEE9" -- +
|
|
local base05 = "#E5E9F0" -- ++
|
|
local base06 = "#ECEFF4" -- +++
|
|
local base07 = "#8FBCBB" -- ++++
|
|
local base08 = "#BF616A" -- red
|
|
local base09 = "#D08770" -- orange
|
|
local base0A = "#EBCB8B" -- yellow
|
|
local base0B = "#A3BE8C" -- green
|
|
local base0C = "#88C0D0" -- aqua/cyan
|
|
local base0D = "#81A1C1" -- blue
|
|
local base0E = "#B48EAD" -- purple
|
|
local base0F = "#5E81AC" -- brown
|
|
|
|
local theme = {}
|
|
|
|
-- Default settings
|
|
theme.fg = base00
|
|
theme.bg = base07
|
|
|
|
-- Genaral colours
|
|
theme.success_fg = base0C
|
|
theme.loaded_fg = base0D
|
|
theme.error_fg = base00
|
|
theme.error_bg = base08
|
|
|
|
-- Warning colours
|
|
theme.warning_fg = base00
|
|
theme.warning_bg = base0E
|
|
|
|
-- Notification colours
|
|
theme.notif_fg = base00
|
|
theme.notif_bg = base05
|
|
|
|
-- Menu colours
|
|
theme.menu_fg = base05
|
|
theme.menu_bg = base00
|
|
theme.menu_selected_fg = base01
|
|
theme.menu_selected_bg = base0A
|
|
|
|
theme.menu_title_bg = base00
|
|
theme.menu_primary_title_fg = base05
|
|
theme.menu_secondary_title_fg = base04
|
|
|
|
theme.menu_disabled_fg = base03
|
|
theme.menu_disabled_bg = theme.menu_bg
|
|
theme.menu_enabled_fg = theme.menu_fg
|
|
theme.menu_enabled_bg = theme.menu_bg
|
|
theme.menu_active_fg = base06
|
|
theme.menu_active_bg = theme.menu_bg
|
|
|
|
-- Proxy manager
|
|
theme.proxy_active_menu_fg = base05
|
|
theme.proxy_active_menu_bg = base00
|
|
theme.proxy_inactive_menu_fg = base03
|
|
theme.proxy_inactive_menu_bg = base00
|
|
|
|
-- Statusbar specific
|
|
theme.sbar_fg = base05
|
|
theme.sbar_bg = base00
|
|
|
|
-- Downloadbar specific
|
|
theme.dbar_fg = base00
|
|
theme.dbar_bg = base0D
|
|
theme.dbar_error_fg = base08
|
|
|
|
-- Input bar specific
|
|
theme.ibar_fg = base05
|
|
theme.ibar_bg = base00
|
|
|
|
-- Tab label
|
|
theme.tab_fg = base05
|
|
theme.tab_bg = base00
|
|
theme.tab_hover_bg = base03
|
|
theme.tab_ntheme = base03
|
|
theme.selected_fg = base05
|
|
theme.selected_bg = base03
|
|
theme.selected_ntheme = base00
|
|
theme.loading_fg = base0D
|
|
theme.loading_bg = base00
|
|
|
|
theme.selected_private_tab_bg = base05
|
|
theme.private_tab_bg = base03
|
|
|
|
-- Trusted/untrusted ssl colours
|
|
theme.trust_fg = base0B
|
|
theme.notrust_fg = base0D
|
|
|
|
-- Follow mode hints
|
|
theme.hint_fg = base00
|
|
theme.hint_bg = base0A
|
|
theme.hint_border = string.format("1px dashed %s", base0A)
|
|
|
|
theme.hint_overlay_bg = string.format("rgba(%s, 0.3)", hex2rgb(base07))
|
|
theme.hint_overlay_border = string.format("1px dotted %s", base07)
|
|
|
|
theme.hint_overlay_selected_bg = string.format("rgba(%s, 0.3)", hex2rgb(base0B))
|
|
theme.hint_overlay_selected_border = theme.hint_overlay_border
|
|
|
|
-- General colour pairings
|
|
theme.ok = { fg = base05, bg = base00 }
|
|
theme.warn = { fg = base00, bg = base0E }
|
|
theme.error = { fg = base08, bg = base00 }
|
|
|
|
-- Gopher sites
|
|
theme.gopher_light = { bg = base06, fg = base00, link = base0D }
|
|
theme.gopher_dark = { bg = base00, fg = base06, link = base0A }
|
|
|
|
-- Font
|
|
theme.font = "13pt Sarasa Mono J"
|
|
theme.hint_font = "12pt Sarasa Mono J"
|
|
|
|
return theme
|
|
|
|
--
|
|
-- Base16 OneDark
|
|
-- Author: Lalit Magant (http://github.com/tilal6991)
|
|
--
|
|
|
|
-- function hex2rgb(hex)
|
|
-- local hex = hex:gsub("#","")
|
|
-- return string.format("%s, %s, %s",tonumber("0x"..hex:sub(1,2)), tonumber("0x"..hex:sub(3,4)), tonumber("0x"..hex:sub(5,6)))
|
|
-- end
|
|
|
|
-- local base00 = "#282c34" -- ----
|
|
-- local base01 = "#353b45" -- ---
|
|
-- local base02 = "#3e4451" -- --
|
|
-- local base03 = "#545862" -- -
|
|
-- local base04 = "#565c64" -- +
|
|
-- local base05 = "#abb2bf" -- ++
|
|
-- local base06 = "#b6bdca" -- +++
|
|
-- local base07 = "#c8ccd4" -- ++++
|
|
-- local base08 = "#e06c75" -- red
|
|
-- local base09 = "#d19a66" -- orange
|
|
-- local base0A = "#e5c07b" -- yellow
|
|
-- local base0B = "#98c379" -- green
|
|
-- local base0C = "#56b6c2" -- aqua/cyan
|
|
-- local base0D = "#61afef" -- blue
|
|
-- local base0E = "#c678dd" -- purple
|
|
-- local base0F = "#be5046" -- brown
|
|
|
|
-- local theme = {}
|
|
|
|
-- -- Default settings
|
|
-- theme.fg = base00
|
|
-- theme.bg = base07
|
|
|
|
-- -- Genaral colours
|
|
-- theme.success_fg = base0C
|
|
-- theme.loaded_fg = base0D
|
|
-- theme.error_fg = base00
|
|
-- theme.error_bg = base08
|
|
|
|
-- -- Warning colours
|
|
-- theme.warning_fg = base00
|
|
-- theme.warning_bg = base0E
|
|
|
|
-- -- Notification colours
|
|
-- theme.notif_fg = base00
|
|
-- theme.notif_bg = base05
|
|
|
|
-- -- Menu colours
|
|
-- theme.menu_fg = base05
|
|
-- theme.menu_bg = base00
|
|
-- theme.menu_selected_fg = base01
|
|
-- theme.menu_selected_bg = base0A
|
|
|
|
-- theme.menu_title_bg = base00
|
|
-- theme.menu_primary_title_fg = base05
|
|
-- theme.menu_secondary_title_fg = base04
|
|
|
|
-- theme.menu_disabled_fg = base03
|
|
-- theme.menu_disabled_bg = theme.menu_bg
|
|
-- theme.menu_enabled_fg = theme.menu_fg
|
|
-- theme.menu_enabled_bg = theme.menu_bg
|
|
-- theme.menu_active_fg = base06
|
|
-- theme.menu_active_bg = theme.menu_bg
|
|
|
|
-- -- Proxy manager
|
|
-- theme.proxy_active_menu_fg = base05
|
|
-- theme.proxy_active_menu_bg = base00
|
|
-- theme.proxy_inactive_menu_fg = base03
|
|
-- theme.proxy_inactive_menu_bg = base00
|
|
|
|
-- -- Statusbar specific
|
|
-- theme.sbar_fg = base05
|
|
-- theme.sbar_bg = base00
|
|
|
|
-- -- Downloadbar specific
|
|
-- theme.dbar_fg = base00
|
|
-- theme.dbar_bg = base0D
|
|
-- theme.dbar_error_fg = base08
|
|
|
|
-- -- Input bar specific
|
|
-- theme.ibar_fg = base05
|
|
-- theme.ibar_bg = base00
|
|
|
|
-- -- Tab label
|
|
-- theme.tab_fg = base05
|
|
-- theme.tab_bg = base00
|
|
-- theme.tab_hover_bg = base03
|
|
-- theme.tab_ntheme = base03
|
|
-- theme.selected_fg = base05
|
|
-- theme.selected_bg = base03
|
|
-- theme.selected_ntheme = base00
|
|
-- theme.loading_fg = base0D
|
|
-- theme.loading_bg = base00
|
|
|
|
-- theme.selected_private_tab_bg = base05
|
|
-- theme.private_tab_bg = base03
|
|
|
|
-- -- Trusted/untrusted ssl colours
|
|
-- theme.trust_fg = base0B
|
|
-- theme.notrust_fg = base0D
|
|
|
|
-- -- Follow mode hints
|
|
-- theme.hint_fg = base00
|
|
-- theme.hint_bg = base0A
|
|
-- theme.hint_border = string.format("1px dashed %s", base0A)
|
|
|
|
-- theme.hint_overlay_bg = string.format("rgba(%s, 0.3)", hex2rgb(base07))
|
|
-- theme.hint_overlay_border = string.format("1px dotted %s", base07)
|
|
|
|
-- theme.hint_overlay_selected_bg = string.format("rgba(%s, 0.3)", hex2rgb(base0B))
|
|
-- theme.hint_overlay_selected_border = theme.hint_overlay_border
|
|
|
|
-- -- General colour pairings
|
|
-- theme.ok = { fg = base05, bg = base00 }
|
|
-- theme.warn = { fg = base00, bg = base0E }
|
|
-- theme.error = { fg = base08, bg = base00 }
|
|
|
|
-- -- Gopher sites
|
|
-- theme.gopher_light = { bg = base06, fg = base00, link = base0D }
|
|
-- theme.gopher_dark = { bg = base00, fg = base06, link = base0A }
|
|
|
|
-- -- Font
|
|
-- theme.font = "13pt Sarasa Mono J"
|
|
-- theme.hint_font = "12pt Sarasa Mono J"
|
|
|
|
-- return theme
|
|
|
|
-- vim: et:sw=4:ts=8:sts=4:tw=80:ft=lua
|