Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | 7x 2x | import { createTheme } from "@mantine/core";
// theme.ts
export const theme = createTheme({
primaryColor: 'cyan',
fontFamily: "'Major Mono Display', monospace",
radius: {
sm: '4px',
md: '8px',
},
autoContrast: true,
headings: {
// fontFamily: 'Poppins, sans-serif',
fontFamily: "'Press Start 2P', sans-serif",
sizes: {
h1: { fontSize: '66px', fontWeight: '600' },
},
},
components: {
Card: {
styles: () => ({
root: {
backgroundColor: 'light-dark(var(--mantine-color-white), var(--mantine-color-black))',
border: '4px solid light-dark(black, white)',
boxShadow: '6px 6px 0 black',
transition: 'transform 100ms ease',
'&:hover': {
transform: 'translate(-2px, -2px)',
boxShadow:
'8px 8px 0 light-dark(black, white)',
},
},
}),
defaultProps: {
radius: 'none',
shadow: 'sm',
padding: 'lg',
},
},
},
}); |