Skip to content

Commit

Permalink
doc: wrap raw hex string in hsl call in CREATE.md
Browse files Browse the repository at this point in the history
The string must be wrapped as we call `Normal.fg.darken` on it in the next line.
  • Loading branch information
rktjmp authored Aug 16, 2024
1 parent fb52ac2 commit 3a50b41
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CREATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ return lush(function()
return {
-- Define Vim's Normal highlight group.
-- You can provide values with hsl/hsluv or anything that responds to `tostring`
Normal { bg = hsl(208, 90, 30), fg = "#A3CFF5" },
-- but be aware if you don't "wrap" your color in a hsl/hsluv call you
-- wont have chainable access to the color "operators" (darken, etc).
Normal { bg = hsl(208, 90, 30), fg = hsl("#A3CFF5" ) },
-- Make whitespace slightly darker than normal.
-- you must define Normal before deriving from it.
Expand Down

0 comments on commit 3a50b41

Please sign in to comment.