mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-12 00:40:07 +08:00
14 lines
478 B
TypeScript
14 lines
478 B
TypeScript
import { color, defineStyle, defineStyleConfig, transition } from "@chakra-ui/styled-system";
|
|
import { colors } from "../colors";
|
|
|
|
const baseStyle = defineStyle(({ colorMode }) => ({
|
|
minWidth: "100%",
|
|
bg: colorMode === "light" ? colors.light.bg : colors.dark.bg,
|
|
transition: "background-color 200ms cubic-bezier(0.4, 0, 1, 1)",
|
|
color: colorMode === "light" ? colors.light.text : colors.dark.text,
|
|
}));
|
|
|
|
export const containerTheme = defineStyleConfig({
|
|
baseStyle,
|
|
});
|