-
Notifications
You must be signed in to change notification settings - Fork 395
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
555 additions
and
360 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)" | ||
cd "$DIR/.." | ||
|
||
export LUA_PATH="./lua/?/init.lua;./lua/?.lua" | ||
lua -e 'require"tokyonight.extra"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# TokyoNight colors for Kitty | ||
|
||
background #1a1b26 | ||
foreground #c0caf5 | ||
selection_background #33467C | ||
selection_foreground #c0caf5 | ||
url_color #73daca | ||
cursor #c0caf5 | ||
|
||
# Tabs | ||
active_tab_background #7aa2f7 | ||
active_tab_foreground #1f2335 | ||
inactive_tab_background #292e42 | ||
inactive_tab_foreground #545c7e | ||
#tab_bar_background #15161E | ||
|
||
# normal | ||
color0 #414868 | ||
color1 #f7768e | ||
color2 #9ece6a | ||
color3 #e0af68 | ||
color4 #7aa2f7 | ||
color5 #bb9af7 | ||
color6 #7dcfff | ||
color7 #a9b1d6 | ||
|
||
# bright | ||
color8 #414868 | ||
color9 #f7768e | ||
color10 #9ece6a | ||
color11 #e0af68 | ||
color12 #7aa2f7 | ||
color13 #bb9af7 | ||
color14 #7dcfff | ||
color15 #c0caf5 | ||
|
||
# extended colors | ||
color16 #ff9e64 | ||
color17 #db4b4b | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# TokyoNight colors for Kitty | ||
|
||
background #24283b | ||
foreground #c0caf5 | ||
selection_background #364A82 | ||
selection_foreground #c0caf5 | ||
url_color #73daca | ||
cursor #c0caf5 | ||
|
||
# Tabs | ||
active_tab_background #7aa2f7 | ||
active_tab_foreground #1f2335 | ||
inactive_tab_background #292e42 | ||
inactive_tab_foreground #545c7e | ||
#tab_bar_background #1D202F | ||
|
||
# normal | ||
color0 #414868 | ||
color1 #f7768e | ||
color2 #9ece6a | ||
color3 #e0af68 | ||
color4 #7aa2f7 | ||
color5 #bb9af7 | ||
color6 #7dcfff | ||
color7 #a9b1d6 | ||
|
||
# bright | ||
color8 #414868 | ||
color9 #f7768e | ||
color10 #9ece6a | ||
color11 #e0af68 | ||
color12 #7aa2f7 | ||
color13 #bb9af7 | ||
color14 #7dcfff | ||
color15 #c0caf5 | ||
|
||
# extended colors | ||
color16 #ff9e64 | ||
color17 #db4b4b | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,66 @@ | ||
local util = require("tokyonight.util") | ||
local config = require("tokyonight.config") | ||
|
||
-- Color Palette | ||
---@class ColorScheme | ||
local colors = { | ||
none = "NONE", | ||
bg_dark = "#1f2335", | ||
bg = "#24283b", | ||
bg_highlight = "#292e42", | ||
terminal_black = "#414868", | ||
fg = "#c0caf5", | ||
fg_dark = "#a9b1d6", | ||
fg_gutter = "#3b4261", | ||
dark3 = "#545c7e", | ||
comment = "#565f89", | ||
dark5 = "#737aa2", | ||
blue0 = "#3d59a1", | ||
blue = "#7aa2f7", | ||
cyan = "#7dcfff", | ||
blue1 = "#2ac3de", | ||
blue5 = "#89ddff", | ||
blue6 = "#B4F9F8", | ||
magenta = "#bb9af7", | ||
purple = "#9d7cd8", | ||
orange = "#ff9e64", | ||
yellow = "#e0af68", | ||
green = "#9ece6a", | ||
green1 = "#73daca", | ||
teal = "#1abc9c", | ||
red = "#f7768e", | ||
red1 = "#db4b4b", | ||
diff = { change = "#394b70", add = "#164846", delete = "#823c41" }, | ||
git = { change = "#6183bb", add = "#449dab", delete = "#914c54" }, | ||
} | ||
if config.style == "night" then colors.bg = "#1a1b26" end | ||
util.bg = colors.bg | ||
colors.git.ignore = colors.dark3 | ||
colors.black = util.darken(colors.bg, 0.8, "#000000") | ||
colors.border_highlight = colors.blue0 | ||
colors.border = colors.black | ||
|
||
colors.bg_popup = colors.bg_dark | ||
colors.bg_sidebar = colors.bg_dark | ||
colors.bg_statusline = colors.bg_dark | ||
colors.bg_float = colors.bg | ||
colors.bg_visual = util.darken(colors.blue0, 0.7) | ||
colors.bg_search = colors.blue0 | ||
colors.fg_sidebar = colors.fg_dark | ||
|
||
colors.error = colors.red1 | ||
colors.warning = colors.yellow | ||
colors.info = colors.teal | ||
colors.hint = colors.info | ||
|
||
-- util.fg = colors.fg | ||
|
||
return colors | ||
|
||
local M = {} | ||
|
||
---@param config Config | ||
---@return ColorScheme | ||
function M.setup(config) | ||
config = config or require("tokyonight.config") | ||
|
||
-- Color Palette | ||
---@class ColorScheme | ||
local colors = { | ||
none = "NONE", | ||
bg_dark = "#1f2335", | ||
bg = "#24283b", | ||
bg_highlight = "#292e42", | ||
terminal_black = "#414868", | ||
fg = "#c0caf5", | ||
fg_dark = "#a9b1d6", | ||
fg_gutter = "#3b4261", | ||
dark3 = "#545c7e", | ||
comment = "#565f89", | ||
dark5 = "#737aa2", | ||
blue0 = "#3d59a1", | ||
blue = "#7aa2f7", | ||
cyan = "#7dcfff", | ||
blue1 = "#2ac3de", | ||
blue5 = "#89ddff", | ||
blue6 = "#B4F9F8", | ||
magenta = "#bb9af7", | ||
purple = "#9d7cd8", | ||
orange = "#ff9e64", | ||
yellow = "#e0af68", | ||
green = "#9ece6a", | ||
green1 = "#73daca", | ||
teal = "#1abc9c", | ||
red = "#f7768e", | ||
red1 = "#db4b4b", | ||
diff = { change = "#394b70", add = "#164846", delete = "#823c41" }, | ||
git = { change = "#6183bb", add = "#449dab", delete = "#914c54" }, | ||
} | ||
|
||
if config.style == "night" then colors.bg = "#1a1b26" end | ||
util.bg = colors.bg | ||
colors.git.ignore = colors.dark3 | ||
colors.black = util.darken(colors.bg, 0.8, "#000000") | ||
colors.border_highlight = colors.blue0 | ||
colors.border = colors.black | ||
|
||
colors.bg_popup = colors.bg_dark | ||
colors.bg_sidebar = colors.bg_dark | ||
colors.bg_statusline = colors.bg_dark | ||
colors.bg_float = colors.bg | ||
colors.bg_visual = util.darken(colors.blue0, 0.7) | ||
colors.bg_search = colors.blue0 | ||
colors.fg_sidebar = colors.fg_dark | ||
|
||
colors.error = colors.red1 | ||
colors.warning = colors.yellow | ||
colors.info = colors.teal | ||
colors.hint = colors.info | ||
return colors | ||
end | ||
|
||
return M | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
local config = require("tokyonight.config") | ||
local kitty = require("tokyonight.kitty") | ||
|
||
local function write(str, fileName) | ||
local file = io.open("extra/" .. fileName, "w") | ||
file:write(str) | ||
file:close() | ||
end | ||
|
||
config.style = "storm" | ||
|
||
write(kitty.kitty(config), "kitty_tokyonight_storm.conf") | ||
|
||
config.style = "night" | ||
|
||
write(kitty.kitty(config), "kitty_tokyonight_night.conf") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
local util = require("tokyonight.util") | ||
local theme = require("tokyonight.theme") | ||
|
||
return { colorscheme = function() util.load(theme) end } | ||
local M = {} | ||
|
||
function M.colorscheme() util.load(theme.setup()) end | ||
|
||
return M | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
local util = require("tokyonight.util") | ||
|
||
local M = {} | ||
|
||
function M.kitty(config) | ||
config = config or require("tokyonight.config") | ||
local colors = require("tokyonight.colors").setup(config) | ||
|
||
local kitty = util.template([[ | ||
# TokyoNight colors for Kitty | ||
background ${bg} | ||
foreground ${fg} | ||
selection_background ${bg_visual} | ||
selection_foreground ${fg} | ||
url_color ${green1} | ||
cursor ${fg} | ||
# Tabs | ||
active_tab_background ${blue} | ||
active_tab_foreground ${bg_dark} | ||
inactive_tab_background ${bg_highlight} | ||
inactive_tab_foreground ${dark3} | ||
#tab_bar_background ${black} | ||
# normal | ||
color0 ${terminal_black} | ||
color1 ${red} | ||
color2 ${green} | ||
color3 ${yellow} | ||
color4 ${blue} | ||
color5 ${magenta} | ||
color6 ${cyan} | ||
color7 ${fg_dark} | ||
# bright | ||
color8 ${terminal_black} | ||
color9 ${red} | ||
color10 ${green} | ||
color11 ${yellow} | ||
color12 ${blue} | ||
color13 ${magenta} | ||
color14 ${cyan} | ||
color15 ${fg} | ||
# extended colors | ||
color16 ${orange} | ||
color17 ${red1} | ||
]], colors) | ||
return kitty | ||
end | ||
|
||
return M | ||
|
Oops, something went wrong.