forgejo-themes/build.sh

22 lines
753 B
Bash
Raw Normal View History

2022-10-31 02:32:46 +00:00
#!/usr/bin/env bash
BASEDIR="$( cd "$( dirname "$0" )" && pwd )"
cd "${BASEDIR}"
theme_list="forgejo-auto,forgejo-light,forgejo-dark,auto,gitea,arc-green"
2023-07-29 19:29:21 +00:00
2022-10-31 03:55:37 +00:00
for theme in edge gruvbox gruvbox-material everforest; do
2022-10-31 03:21:54 +00:00
for variant in dark light auto; do
2023-07-29 19:29:21 +00:00
theme_list="$theme_list,$theme-$variant"
2022-10-31 03:21:54 +00:00
lessc -x "src/${theme}-${variant}.less" > "dist/theme-${theme}-${variant}.css"
done
2022-10-31 02:42:56 +00:00
done
2022-10-31 04:13:06 +00:00
2022-10-31 09:04:16 +00:00
for theme in nord palenight soft-era sonokai sonokai-andromeda sonokai-atlantis sonokai-espresso sonokai-maia sonokai-shusia; do
2023-07-29 19:29:21 +00:00
theme_list="$theme_list,$theme"
2022-10-31 04:13:06 +00:00
lessc -x "src/${theme}.less" > "dist/theme-${theme}.css"
done
2023-07-29 19:29:21 +00:00
# First character in theme_list will be a comma, let's remove that
echo "themes=$theme_list" >> $GITHUB_OUTPUT