Last active
November 22, 2022 19:29
-
-
Save n1ghtmare/8829745e6788cc158b73aa327bb26bb9 to your computer and use it in GitHub Desktop.
Testing colorbuddy
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
local Color, colors, Group, groups, styles = require('colorbuddy').setup() | |
local M = {} | |
function M.setup(opts) | |
opts = opts or {} | |
if opts.primary then | |
Color.new('primary', opts.primary) | |
else | |
Color.new('primary', '#ff0088') | |
end | |
if opts.secondary then | |
Color.new('secondary', opts.secondary) | |
else | |
Color.new('secondary', '#56c5cc') | |
end | |
Color.new('black', '#121212') | |
Color.new('grey', '#a7a7a7') | |
-- Generic Highlighting | |
Group.new('Normal', colors.black, colors.primary) | |
-- Also works with | |
--Group.new('Normal', colors.black, colors.seconary) | |
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
local Color, colors, Group, groups, styles = require('colorbuddy').setup() | |
local M = {} | |
function M.setup(opts) | |
opts = opts or {} | |
if opts.primary then | |
Color.new('primary', opts.primary) | |
else | |
Color.new('primary', '#ff0088') | |
end | |
if opts.secondary then | |
Color.new('secondary', opts.secondary) | |
else | |
Color.new('secondary', '#56c5cc') | |
end | |
-- I want to add another option for background and move the line below | |
if opts.background then | |
Colors.new('background', opts.background) | |
else | |
Colors.new('background', '#121212') | |
end | |
Color.new('grey', '#a7a7a7') | |
-- Generic Highlighting | |
Group.new('Normal', colors.background, colors.secondary) -- from colors.black to -> colors.background | |
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
requrie("my-theme").setup({ primary="#123456", seconary="#777777"}) | |
-- and with the new changes | |
requrie("my-theme").setup({ primary="#123456", seconary="#777777", background="#000000"}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment