import type { Meta } from "@storybook/react-vite"; import { darkThemeObj, lightThemeObj, type Theme, } from "../react/core/design-system/index.js"; import { StyledDiv } from "../react/web/ui/design-system/elements.js"; const meta: Meta = { title: "theme", }; export default meta; export function Dark() { return ; } export function Light() { return ; } function Variant(props: { theme: Theme }) { return (
border
separatorLine
); } function ColorPairTest(props: { theme: Theme; bg?: keyof Theme["colors"]; text: keyof Theme["colors"]; hoverBg?: keyof Theme["colors"]; hoverText?: keyof Theme["colors"]; }) { return ( {[props.bg, props.hoverBg, props.text].filter(Boolean).join(", ")} ); } const HoverBg = StyledDiv( (props: { bg?: string; hoverBg?: string; text: string; hoverText?: string; }) => { return { backgroundColor: props.bg ?? "transparent", padding: "20px", borderRadius: "8px", fontSize: "16px", fontWeight: 400, color: props.text, "&:hover": props.hoverBg ? { backgroundColor: props.hoverBg, } : undefined, }; }, );