Restore test for ThemeProps

This commit is contained in:
Hieu Ho
2019-04-11 10:28:14 +07:00
parent 288bb000f5
commit 2e585bb423

View File

@@ -13,12 +13,20 @@ const backgroundColor = theme.variants("mode", "variant", {
warning: { light: "orange", dark: "darkorange" }
});
interface cssProps {
visible: boolean;
}
const cssTheme = theme("mode", {
dark: css`
background: gray;
`,
light: css`
background: white;
`
});
interface cssProps {
visible: boolean;
}
const cssPropsTheme = theme("mode", {
dark: css`
visibility: ${(props: cssProps) => props.visible ? 'visible' : 'hidden'};
`,
light: css`