fix: restore dark theme and fix theme script regex

Dark theme was set to "dim" in theme.config.ts while app.css registered
"sunset" as the prefersdark theme. The script's regex required a trailing
comma that didn't exist on the last property, causing silent failures.
This commit is contained in:
Julien Calixte
2026-04-08 19:01:29 +02:00
parent a05ff9f238
commit 541e058d12
2 changed files with 3 additions and 3 deletions

View File

@@ -28,8 +28,8 @@ let themeConfigContent = readFileSync(themeConfigPath, "utf8")
// Remplacer la valeur du thème sombre
themeConfigContent = themeConfigContent.replace(
/dark:\s*['"][^'"]*['"],/,
`dark: '${newTheme}',`
/dark:\s*['"][^'"]*['"](,?)/,
`dark: '${newTheme}'$1`
)
// Écrire le contenu mis à jour dans le fichier