forked from r-ushil/gdsc-portfolio-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.ts
78 lines (70 loc) · 1.65 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
import { theme as chakraTheme, ThemeConfig } from '@chakra-ui/react'
import { extendTheme } from '@chakra-ui/react'
const config: ThemeConfig = {
initialColorMode: 'dark',
useSystemColorMode: false,
}
const fluidType = (minFont: number, maxFont: number) => {
let XX = 768 / 100
let YY = (100 * (maxFont - minFont)) / (1920 - 768)
let ZZ = minFont / 16
return `calc(${ZZ}rem + ((1vw - ${XX}px) * ${YY}))`
}
const colors = {
background: '#12141D',
secondary: '#080808',
complement: '#5F99FF',
displayColor: '#FFFFFF',
textPrimary: '#D1D5DB',
textSecondary: '#8F9094',
button1: '#5F99FF',
button2: '#F6A20E',
button3: '#5132BF',
borderColor: '#111111',
}
const fonts = {
...chakraTheme.fonts,
body: `Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"`,
heading: `Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"`,
}
const Link = {
baseStyle: {
color: '#3CCF91',
_hover: { color: '#F6A20E', textDecoration: 'none' },
},
}
const overrides = {
...chakraTheme,
components: {
Link,
},
config,
colors,
fonts,
fontWeights: {
normal: 300,
medium: 600,
bold: 700,
},
fontSizes: {
display: fluidType(80, 144),
display2: fluidType(24, 36),
display3: fluidType(16, 24),
},
breakpoints: {
base: '0em',
sm: '30em',
md: '48em',
lg: '80em',
xl: '80em',
},
styles: {
global: () => ({
body: {
bg: "#000000",
},
}),
},
}
const customTheme = extendTheme(overrides)
export default customTheme