feat: Modal zum manuellen Erstellen von Farbschemata

This commit is contained in:
Ferdinand
2026-04-02 14:23:26 +02:00
parent 7a17f2c511
commit 447473c6f5
5 changed files with 309 additions and 1 deletions

View File

@@ -74,6 +74,18 @@ export function addColorToSchema(hsl) {
}
}
export function saveSchema(name, farben) {
const data = load();
const existing = data.schemata.find(s => s.name === name);
if (existing) {
existing.farben = farben;
} else {
data.schemata.push({ name, farben });
}
save(data);
renderSammlung();
}
export function deleteSchema(name) {
const data = load();
data.schemata = data.schemata.filter(s => s.name !== name);