feat(lib): Add snake case helper fn

This commit is contained in:
punkfairie 2024-11-04 20:55:17 -08:00
parent 80b67d9d9e
commit 2efe270e71
Signed by: punkfairie
GPG key ID: 01823C057725C266

View file

@ -55,6 +55,11 @@ in
# a convenience to deal with the main flavor naming
getKebabTheme = flavor: if (flavor == "main") then "rose-pine" else "rose-pine-${flavor}";
# string -> string
# convert flavor to full theme name in snake case
# a convenience to deal with the main flavor naming
getSnakeTheme = flavor: if (flavor == "main") then "rose_pine" else "rose_pine_${flavor}";
# string -> string
# this capitalizes the first letter in a string,
# which is sometimes needed in order to format