UI support for products!

This commit is contained in:
oitsjustjose 2022-04-26 18:19:17 -05:00
commit 29f4983a15
18 changed files with 21172 additions and 20 deletions

View file

@ -4,11 +4,47 @@ import { Provider } from 'react-redux';
import Routes from './Routes';
import store from './redux/store';
const activeLabelStyles = {
transform: 'scale(0.85) translateY(-24px)',
background: 'transparent !important',
padding: '0 !important',
};
const theme = extendTheme({
config: {
initialColorMode: window.localStorage.getItem('color-mode') || 'light',
useSystemColorMode: false,
},
components: {
Form: {
variants: {
floating: {
container: {
_focusWithin: {
label: {
...activeLabelStyles,
},
},
'input:not(:placeholder-shown) + label, .chakra-select__wrapper + label':
{
...activeLabelStyles,
},
label: {
top: 0,
left: 0,
zIndex: 2,
position: 'absolute',
pointerEvents: 'none',
mx: 'var(--chakra-space-2)',
// px: 1,
my: 'var(--chakra-space-2)',
transformOrigin: 'left top',
},
},
},
},
},
},
});
export default () => (