diff --git a/srcd/superset/assets/src/customization/index.jsx b/srcd/superset/assets/src/customization/index.jsx index 319543b9..f04abdb8 100644 --- a/srcd/superset/assets/src/customization/index.jsx +++ b/srcd/superset/assets/src/customization/index.jsx @@ -1,12 +1,18 @@ import { getCategoricalSchemeRegistry } from '@superset-ui/color'; import srcdColors from './srcdColors'; +export const defaultScheme = 'SUPERSET_DEFAULT'; + +const srcdPaletteId = 'srcdMain'; function setupColors() { const categoricalSchemeRegistry = getCategoricalSchemeRegistry(); [srcdColors].forEach((group) => { group.forEach((scheme) => { categoricalSchemeRegistry.registerValue(scheme.id, scheme); + if (scheme.id === srcdPaletteId) { + categoricalSchemeRegistry.registerValue(defaultScheme, scheme); + } }); }); }