-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implemented backend for theme variants
refactor(colors, theme, ansi): moved existing setup to variants backend refactor(plugins, languages): transitioned plugins & languages to variant structure feat(plugins): added custom integration loaders to preserve existing configs
- Loading branch information
Showing
33 changed files
with
369 additions
and
157 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 |
---|---|---|
@@ -1,88 +1,6 @@ | ||
---@alias ColorName string | ||
local function get_palette() | ||
local variant = require("ashen.state").variant | ||
return require("ashen.variants." .. variant .. ".colors") | ||
end | ||
|
||
---@alias HexCode string # Hexadecimal color code preceded by a hashtag | ||
---@alias Palette table<ColorName, HexCode> | ||
|
||
---@type Palette | ||
local M = { | ||
-- used for errors | ||
red_flame = "#C53030", -- Brightest, most intense red | ||
-- standard red colors | ||
red_glowing = "#DF6464", -- Slightly deeper glowing red | ||
red_ember = "#B14242", -- Deep, smoldering ember red | ||
|
||
-- standard orange colors | ||
orange_glow = "#D87C4A", -- Bright, glowing orange | ||
orange_blaze = "#C4693D", -- Vibrant blaze orange | ||
orange_smolder = "#E49A44", | ||
|
||
-- used for warnings | ||
orange_golden = "#E5A72A", | ||
|
||
-- NOTE: These reds are not widely used and will likely be fazed out in a future update. | ||
red_kindling = "#BD4C4C", -- Light, warm red | ||
red_burnt_crimson = "#A84848", -- Muted crimson red | ||
red_brick = "#853D3D", -- Muted, earthy brick red | ||
red_deep_ember = "#7A2E2E", -- Dark, deep ember red | ||
red_ashen = "#6F2929", -- Cool, ashen red | ||
|
||
-- standard misc colors | ||
blue = "#4A8B8B", -- Muted teal, soft and unobtrusive | ||
blue_dark = "#3A6E6E", -- Dark teal, ideal for subtle backgrounds | ||
-- strong contender: #629C7D | ||
green_light = "#629C7D", | ||
green = "#1E6F54", | ||
|
||
-- standard grayscale palette | ||
background = "#121212", | ||
-- duplicate for compatibility | ||
-- g_0 will be removed in future | ||
g_0 = "#e5e5e5", | ||
g_1 = "#e5e5e5", | ||
g_2 = "#d5d5d5", | ||
g_3 = "#b4b4b4", | ||
g_4 = "#a7a7a7", | ||
g_5 = "#949494", | ||
g_6 = "#737373", | ||
g_7 = "#535353", | ||
g_8 = "#323232", | ||
g_9 = "#212121", | ||
g_10 = "#1d1d1d", | ||
g_11 = "#191919", | ||
g_12 = "#151515", | ||
|
||
-- WARNING: These colors are not part of the Ashen palette! | ||
-- Rather, they're here as reference, to have a list of "normal" | ||
-- colors that still fit nicely with the theme -- for example, in case | ||
-- you *really* need something to be, say, purple, and want it to | ||
-- look decent with the rest of the theme. Currently, the only place | ||
-- these are used is in the mini.icons integration! | ||
-- Please don't use them | ||
-- if you're porting Ashen to another program -- I can't guarantee | ||
-- that it'll look good! --ficcdaf | ||
red = "#C53030", -- Brightest, most intense red | ||
yellow = "#F4CA64", -- Bright sunflower yellow | ||
orange = "#D87C4A", -- Bright, glowing orange | ||
purple = "#7A3D82", -- Rich violet purple | ||
pink = "#D1728C", -- Deep rose pink | ||
brown = "#853D3D", -- Muted, earthy brick red | ||
black = "#121212", -- Deep background black | ||
white = "#FFFFFF", -- Pure white | ||
gray = "#A7A7A7", -- Neutral mid-gray | ||
cyan = "#6E91C4", -- Sky-like cyan | ||
magenta = "#C9347C", -- Vibrant fuchsia | ||
lime = "#8CD437", -- Bright lime green | ||
teal = "#1A3F3F", -- Dark teal | ||
navy = "#223A70", -- Deep navy blue | ||
maroon = "#7A2E2E", -- Dark, deep ember red | ||
olive = "#708238", -- Muted olive green | ||
indigo = "#502E5F", -- Deep, muted indigo | ||
violet = "#8E5E93", -- Soft mauve violet | ||
gold = "#D7A933", -- Rich golden yellow | ||
silver = "#D5D5D5", -- Soft, muted silver | ||
beige = "#F5F5DC", -- Light, warm beige | ||
aqua = "#4AC4C4", -- Bright aqua | ||
coral = "#E492B4", -- Soft coral pink | ||
} | ||
|
||
return M | ||
return get_palette() |
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
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
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
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,18 @@ | ||
return { | ||
"background", | ||
"red_ember", | ||
"orange_glow", | ||
"orange_smolder", | ||
"blue", | ||
"g_4", | ||
"g_3", | ||
"g_2", | ||
"g_5", | ||
"red_ember", | ||
"orange_glow", | ||
"orange_smolder", | ||
"blue", | ||
"g_4", | ||
"g_3", | ||
"g_2", | ||
} |
Oops, something went wrong.