https://github.com/loiccoyle/tinted-lua
🎨 base24 and base16 color schemes for lua scripting
https://github.com/loiccoyle/tinted-lua
base16 base24 theming tinted-theming
Last synced: about 2 months ago
JSON representation
🎨 base24 and base16 color schemes for lua scripting
- Host: GitHub
- URL: https://github.com/loiccoyle/tinted-lua
- Owner: loiccoyle
- License: mit
- Created: 2024-12-02T18:37:30.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-12-14T15:04:24.000Z (5 months ago)
- Last Synced: 2025-02-07T07:42:02.691Z (3 months ago)
- Topics: base16, base24, theming, tinted-theming
- Language: Lua
- Homepage:
- Size: 110 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tinted-lua
> See the [Tinted theming repository](https://github.com/tinted-theming/home) for more information.
> This theme was built with [Tinted Builder Rust](https://github.com/tinted-theming/tinted-builder-rust).[Base24](https://github.com/tinted-theming/base24) and [base16](https://github.com/tinted-theming/home/blob/main/styling.md) color schemes for use in lua scripting.
## Example usage
**Modifying the `neovim` [`cattpuccin`](https://github.com/catppuccin/nvim) color palette to be `base24` compatible.**
This assumes [`lazy.nvim`](https://github.com/folke/lazy.nvim) is used to manage plugin.
Copy over a [`base24` color scheme file](schemes/base24) to `~/.config/nvim/lua/config/colors-base24.lua`
In `~/.config/nvim/lua/plugins/catppuccin.lua`:
```lua
return {
{
"catppuccin/nvim",
name = "catppuccin",
lazy = false,
opts = function(_, opts)
local base24 = require("config.colors-base24")
local utils = require("catppuccin.utils.colors")local steps = 2
local interpolated = {}
for i = 1, steps do
local t = i / (steps + 1)
table.insert(interpolated, utils.blend(base24.base04, base24.base05, t))
endopts.color_overrides = {
mocha = {
rosewater = base24.base14,
flamingo = base24.base0F,
pink = base24.base17,
mauve = base24.base0E,
red = base24.base08,
maroon = base24.base12,
peach = base24.base09,
yellow = base24.base0A,
green = base24.base0B,
teal = base24.base0C,
sky = base24.base15,
sapphire = base24.base16,
blue = base24.base0D,
lavender = base24.base13,
text = base24.base07,
subtext1 = base24.base06,
subtext0 = base24.base05,
overlay2 = interpolated[1],
overlay1 = interpolated[2],
overlay0 = base24.base04,
surface2 = base24.base03,
surface1 = base24.base02,
surface0 = base24.base01,
base = base24.base00,
mantle = base24.base10,
crust = base24.base11,
},
}
end,
},
}
```