-
Notifications
You must be signed in to change notification settings - Fork 5
/
theme.ts
92 lines (87 loc) · 1.93 KB
/
theme.ts
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
import { createTheme } from '@mui/material'
declare module '@mui/material/styles' {
interface TypographyVariants {
numeric: React.CSSProperties
body3: React.CSSProperties
}
// allow configuration using `createTheme`
interface TypographyVariantsOptions {
numeric?: React.CSSProperties
body3?: React.CSSProperties
}
}
declare module '@mui/material/Typography' {
interface TypographyPropsVariantOverrides {
numeric: true
body3: true
}
}
const darkTheme = createTheme({
typography: {
fontFamily: ['Inter', 'Roboto', '"Helvetic Neue"'].join(','),
h6: {
fontFamily: ['Space Mono', 'Michroma', 'Roboto'].join(','),
fontWeight: 600,
letterSpacing: 1.5,
},
h5: {
fontFamily: ['Space Mono', 'Michroma', 'Roboto'].join(','),
fontWeight: 600,
letterSpacing: 1.5,
},
body2: {
fontSize: 15,
fontFamily: ['Space Mono'].join(','),
},
body3: {
fontSize: 15,
color: 'rgb(255 255 255 / 65%)',
},
numeric: {
fontFamily: ['Space Mono', 'Michroma', 'Roboto'].join(','),
},
},
palette: {
mode: 'dark',
primary: {
main: 'rgba(26, 232, 255)',
contrastText: '#FFFFFF',
light: 'rgba(26, 232, 255, 0.08)',
},
secondary: {
main: '#ff2e17',
},
error: {
main: '#ff1f62',
light: '#ff1f6210',
},
warning: {
light: '#F5B07326',
main: '#F5B073',
},
success: {
main: '#17ffa2',
light: '#17ffa210',
},
background: {
base: '#1F2023',
surface: '#27292D',
overlayDark: '#2D2F34',
overlayLight: '#383B40',
default: '#1F2023',
paper: '#1F2023',
},
text: {
primary: 'rgb(255 255 255 / 90%)',
secondary: 'rgb(255 255 255 / 65%)',
},
},
components: {
MuiButtonBase: {
defaultProps: {
disableRipple: true, // No more ripple!
},
},
},
})
export default darkTheme