refactor(metadata): remove colors section and update light/dark checks in import-icon script

This commit is contained in:
Thomas Camlong
2025-12-29 11:21:27 +01:00
parent d599e76c61
commit 78705737eb
2 changed files with 2 additions and 6 deletions

View File

@@ -34534,10 +34534,6 @@
"login": "filogif403@httpsu.com"
}
},
"colors": {
"light": "helix-light",
"dark": "helix-dark"
},
"wordmark": {
"light": "helix-wordmark-light",
"dark": "helix-wordmark-dark"

View File

@@ -171,10 +171,10 @@ function buildTargets(submission: Submission): VariantTarget[] {
const assetsLower = submission.assets.map((a) => a.toLowerCase());
const hasLight =
submission.extras?.colors?.light ||
assetsLower.some((a) => a.includes("light"));
assetsLower.some((a) => a.includes("light") && !a.includes("wordmark"));
const hasDark =
submission.extras?.colors?.dark ||
assetsLower.some((a) => a.includes("dark"));
assetsLower.some((a) => a.includes("dark") && !a.includes("wordmark"));
const hasWordmark =
submission.extras?.wordmark ||
assetsLower.some((a) => a.includes("wordmark"));