feat: add a theme CRUD page to manage themes (#34182)

Co-authored-by: Mehmet Salih Yavuz <salih.yavuz@proton.me>
This commit is contained in:
Maxime Beauchemin
2025-07-25 13:26:41 -07:00
committed by GitHub
parent 5f11f9097a
commit e741a3167f
96 changed files with 6391 additions and 862 deletions

View File

@@ -16,7 +16,12 @@
* specific language governing permissions and limitations
* under the License.
*/
import { ErrorLevel, styled, themeObject, useTheme } from '@superset-ui/core';
import {
ErrorLevel,
styled,
useTheme,
getColorVariants,
} from '@superset-ui/core';
import { Icons } from '@superset-ui/core/components';
const StyledContent = styled.div`
@@ -42,7 +47,7 @@ export function BasicErrorAlert({
title,
}: BasicErrorAlertProps) {
const theme = useTheme();
const variants = themeObject.getColorVariants(level);
const variants = getColorVariants(theme, level);
const style: React.CSSProperties = {
backgroundColor: variants.bg,
borderColor: variants.border,