mirror of
https://github.com/jnsahaj/tweakcn.git
synced 2026-10-30 22:37:13 +08:00
fix: Spread with default styles in theme control panel
This commit is contained in:
@@ -21,6 +21,7 @@ import {
|
||||
DEFAULT_FONT_SANS,
|
||||
DEFAULT_FONT_SERIF,
|
||||
COMMON_STYLES,
|
||||
defaultThemeState,
|
||||
} from "../../config/theme";
|
||||
import { Separator } from "../ui/separator";
|
||||
import { AlertCircle } from "lucide-react";
|
||||
@@ -45,7 +46,10 @@ const ThemeControlPanel = ({
|
||||
} = useEditorStore();
|
||||
const [cssImportOpen, setCssImportOpen] = useState(false);
|
||||
|
||||
const currentStyles = styles?.[currentMode];
|
||||
const currentStyles = {
|
||||
...defaultThemeState.styles[currentMode],
|
||||
...styles?.[currentMode],
|
||||
};
|
||||
|
||||
const updateStyle = React.useCallback(
|
||||
<K extends keyof typeof currentStyles>(
|
||||
|
||||
Reference in New Issue
Block a user