Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: light theme #134

Merged
merged 2 commits into from
Dec 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions colors/monokai-pro-light.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require("monokai-pro")._load("light")
4 changes: 2 additions & 2 deletions lua/monokai-pro/colorscheme/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ local hp = require("monokai-pro.color_helper")
---@param filter Filter
---@return ColorschemeOptions
M.get = function(filter)
local filters = { "classic", "machine", "octagon", "pro", "ristretto", "spectrum" }
local filters = { "light", "classic", "machine", "octagon", "pro", "ristretto", "spectrum" }

if not vim.tbl_contains(filters, filter) then
local msg = 'Invalid filter, expected "classic", "machine", "octagon", "pro", "ristretto" or "spectrum"'
local msg = 'Invalid filter, expected "light", "classic", "machine", "octagon", "pro", "ristretto" or "spectrum"'
local level = "info"
filter = "pro"
Util.log(msg, level)
Expand Down
20 changes: 20 additions & 0 deletions lua/monokai-pro/colorscheme/palette/light.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---@type Palette
return {
dark2 = "#d3cdcc",
dark1 = "#ede7e5",
background = "#faf4f2",
text = "#29242a",
accent1 = "#e14775",
accent2 = "#e16032",
accent3 = "#cc7a0a",
accent4 = "#269d69",
accent5 = "#1c8ca8",
accent6 = "#7058be",
dimmed1 = "#706b6e",
dimmed2 = "#918c8e",
dimmed3 = "#a59fa0",
dimmed4 = "#bfb9ba",
dimmed5 = "#d3cdcc",
panel = "#fefaf9",
light = "#ffffff",
}
6 changes: 4 additions & 2 deletions lua/monokai-pro/command.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ M.create_filter_command = function()
cmd("MonokaiProSelect", function()
local menu = util.ui.create_menu("Set monokai filter", {
"classic",
"light",
"machine",
"octagon",
"pro",
"machine",
"ristretto",
"spectrum",
}, function(item)
Expand All @@ -32,9 +33,10 @@ M.create_filter_command = function()
complete = function()
return {
"classic",
"light",
"machine",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This moved because I've sorted the entries alphabetically.

"octagon",
"pro",
"machine",
"ristretto",
"spectrum",
}
Expand Down
2 changes: 1 addition & 1 deletion lua/monokai-pro/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ M.load = function()
util.theme.load(theme.setup())
end

--- @param filter "classic" | "machine" | "octagon" | "pro" | "ristretto" | "spectrum"
--- @param filter "light" | "classic" | "machine" | "octagon" | "pro" | "ristretto" | "spectrum"
M._load = function(filter)
config.extend({ filter = filter })
M.load()
Expand Down
Loading