koto/theme/meson.build
Joshua Strobl 8334323af8 Implement support for dedicated theme CSS files from our gresource.
Properly implement light and gruvbox themes. Yay!
2021-05-27 15:47:45 +03:00

22 lines
No EOL
442 B
Meson

sassc = find_program('sassc', required: true)
builtin_variants = [
'dark',
'gruvbox',
'light'
]
themes = []
foreach variant: builtin_variants
themes += custom_target('@0@ theme generation'.format(variant),
input: 'koto-builtin-@0@.scss'.format(variant),
output: 'koto-builtin-@0@.css'.format(variant),
command: [
sassc,
[ '-a', '-M', '-t', 'compact' ],
'@INPUT@', '@OUTPUT@',
],
build_by_default: true,
)
endforeach