mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
31 lines
798 B
TypeScript
31 lines
798 B
TypeScript
import type { StyleFunctionProps } from '@chakra-ui/theme-tools';
|
|
import { mode } from '@chakra-ui/theme-tools';
|
|
|
|
import scrollbar from './foundations/scrollbar';
|
|
import addressEntity from './globals/address-entity';
|
|
import getDefaultTransitionProps from './utils/getDefaultTransitionProps';
|
|
|
|
const global = (props: StyleFunctionProps) => ({
|
|
body: {
|
|
bg: mode('white', 'black')(props),
|
|
...getDefaultTransitionProps(),
|
|
'-webkit-tap-highlight-color': 'transparent',
|
|
'font-variant-ligatures': 'no-contextual',
|
|
},
|
|
mark: {
|
|
bgColor: mode('green.100', 'green.800')(props),
|
|
color: 'inherit',
|
|
},
|
|
'svg *::selection': {
|
|
color: 'none',
|
|
background: 'none',
|
|
},
|
|
form: {
|
|
w: '100%',
|
|
},
|
|
...scrollbar(props),
|
|
...addressEntity(props),
|
|
});
|
|
|
|
export default global;
|