additional colors under admin control

This commit is contained in:
kfj001 committed 2026-06-29 22:31:37 +00:00
1 parent ee79662e5d
commit f62f8188bf
11 files changed
+42

No files matched your search

@@ -46,6 +46,10 @@ const DEFAULT_CONFIG: StationConfig = {
color_success: '#4a9e4f',
color_danger: '#c83030',
color_info: '#3a8abf',
color_white: '#ffffff',
color_light: '#f0ebe3',
color_medium: '#8a8580',
color_black: '#1a1816',
};
@Injectable({
+4
View File
@@ -17,6 +17,10 @@ const COLOR_MAP: ReadonlyArray<{ field: keyof StationConfig; prop: string }> = [
{ field: 'color_success', prop: '--color-success' },
{ field: 'color_danger', prop: '--color-danger' },
{ field: 'color_info', prop: '--color-info' },
{ field: 'color_white', prop: '--color-white' },
{ field: 'color_light', prop: '--color-light' },
{ field: 'color_medium', prop: '--color-medium' },
{ field: 'color_black', prop: '--color-black' },
];
/** Build a gradient CSS value from three color stops. */