Set colors as a triplet of HSL numbers (without a prefix) #1449
eugenesvk
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Thanks to Wez It's now possible (in WezTerm nightly) to enter colors in a more convenient HSL scheme
"hsl: 0 0 98"
(very light gray) rather than the ugly hex"#fafafa"
However, you need to specify the
hsl:
prefix for every color.Below is a lua function that allows you to skip the prefix and just enter a triplet of numbers:
"0 0 98"
(you can also mix and match this with the old hex
"#fafafa"
so you don't have to replace all the current colors with their HSL values)!The snippet requires a configuration where you set a
col
table in a separate module and then add it,see this example for more details
It works by recursively checking all the values and if it matches a pattern of a triplet of #s, it appends the given
colorScheme
prefix (should only be set to"hsl"
) for youBeta Was this translation helpful? Give feedback.
All reactions