-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·26 lines (21 loc) · 831 Bytes
/
build.sh
File metadata and controls
executable file
·26 lines (21 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env sh
npx @rose-pine/build@latest -f hex-ns -t ./source.theme -o ./themes
mv ./themes/rose-pine.theme "./themes/Rosé Pine.theme"
mv ./themes/rose-pine-dawn.theme "./themes/Rosé Pine Dawn.theme"
mv ./themes/rose-pine-moon.theme "./themes/Rosé Pine Moon.theme"
# Create color-theme-aware "Auto" themes for fish 4.3+
# These automatically switch between dark and light variants based on terminal background
create_auto_theme() {
dark_theme="$1"
light_theme="$2"
output="$3"
{
echo "[dark]"
cat "$dark_theme"
echo ""
echo "[light]"
cat "$light_theme"
} >"$output"
}
create_auto_theme "./themes/Rosé Pine.theme" "./themes/Rosé Pine Dawn.theme" "./themes/Rosé Pine Auto.theme"
create_auto_theme "./themes/Rosé Pine Moon.theme" "./themes/Rosé Pine Dawn.theme" "./themes/Rosé Pine Moon Auto.theme"