feat(lib): Add snake case helper fn
This commit is contained in:
parent
80b67d9d9e
commit
2efe270e71
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue