-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtailwind.config.js
67 lines (59 loc) · 1.94 KB
/
tailwind.config.js
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
/** @type {import('tailwindcss').Config} */
import plugin from 'tailwindcss/plugin';
export default {
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
darkMode: 'class',
theme: {
extend: {
colors: {
bgColor: `var(--bgColor)`,
primaryColor: `var(--primaryColor)`,
themePrimaryColor: `var(--themePrimaryColor)`,
themeButtonPrimaryColor: `var(--themeButtonPrimaryColor)`,
themeButtonSecondaryColor: `var(--themeButtonSecondaryColor)`,
headerBorderColor: `var(--headerBorderColor)`,
leftSideBorder: `var(--leftSideBorder)`,
textEditorColor: `var(--textEditorColor)`,
textEditorHoverColor: `var(--textEditorHoverColor)`,
textEditorHoverBg: `var(--textEditorHoverBg)`,
tabBarBgColor: `var(--tabBarBgColor)`,
tabBarActiveBorderColor: `var(--tabBarActiveBorderColor)`,
tabBarActiveTextColor: `var(--tabBarActiveTextColor)`,
tabBarActiveBgColor: `var(--tabBarActiveBgColor)`,
tabBarBorderColor: `var(--tabBarBorderColor)`,
},
opacity: {
c8: '0.08',
},
fontFamily: {
code: ['Source Code Pro', 'sans-serif'],
nunito: ['Nunito', 'sans-serif'],
laBelleAurore: ['La Belle Aurore', 'cursive'],
},
height: {
header: '48px',
content: '100svh',
about: 'calc(80vh)',
projects: 'calc(85vh)',
},
backgroundImage: {
about: "url('assets/images/about.png')",
cfProject: "url('assets/images/cf-logo.webp')",
},
boxShadow: {
technologiesCard: `0px 0px 10px 1px theme(colors.themePrimaryColor)`,
},
},
},
plugins: [
plugin(function ({addVariant, addBase}) {
addVariant('blue', '.blue &');
addVariant('light', '.light &');
addBase({
h1: {fontSize: '44px', lineHeight: '45px'},
h2: {fontSize: '40px'},
h3: {fontSize: '35px'},
});
}),
],
};