From 9bf957188c60cd68e6a26700abae2dbc5fd9d207 Mon Sep 17 00:00:00 2001 From: thislight Date: Sat, 23 Nov 2024 20:20:27 +0800 Subject: [PATCH] theme: add error color --- src/material/theme.css | 2 ++ src/material/theme.ts | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/material/theme.css b/src/material/theme.css index 5048f98..fc8d718 100644 --- a/src/material/theme.css +++ b/src/material/theme.css @@ -153,6 +153,8 @@ --tutu-transition-shadow: box-shadow 175ms var(--tutu-anim-curve-std); --tutu-zidx-nav: 1100; + + accent-color: var(--tutu-color-primary); } * { diff --git a/src/material/theme.ts b/src/material/theme.ts index a7c2c65..0eb4eaf 100644 --- a/src/material/theme.ts +++ b/src/material/theme.ts @@ -1,5 +1,5 @@ import { Theme, createTheme } from "@suid/material/styles"; -import { deepPurple, amber } from "@suid/material/colors"; +import { deepPurple, amber, red } from "@suid/material/colors"; import { Accessor } from "solid-js"; /** @@ -12,6 +12,9 @@ export function useRootTheme(): Accessor { primary: { main: deepPurple[500], }, + error: { + main: red[900], + }, secondary: { main: amber.A200, },