-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
120 lines (116 loc) · 3.31 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
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
/** @type {import('tailwindcss').Config} */
const plugin = require('tailwindcss/plugin');
const defaultTheme = require('tailwindcss/defaultTheme');
module.exports = {
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
darkMode: 'class',
theme: {
colors: {
primaryColor: 'hsl(164, 60%, 50%)',
white: 'hsl(0, 100%, 100%)',
black: 'hsl(0,0%, 0%)',
red: 'hsl(0, 100%, 50%)',
transparency: 'transparency',
// light mode colors
PrimaryColorHex: '#33cca3',
titleColor: '#000',
textColor: '#262626',
bgColor: '#f0ebe3',
bgColorAlt: '#fff',
containerColor: '#fff',
borderColor: '#000',
// dark mode colors
titleColorDark: 'hsl(0, 0%, 100%)',
textColorDark: 'hsl(0, 0%, 92%)',
bgColorDark: 'hsl(216, 18%, 16%)',
bgColorAltDark: 'hsl(213, 10%, 21%)',
containerColorDark: 'hsl(217, 18%, 14%)',
borderColorDark: 'hsl(210, 2%, 65%)',
primaryColorDark: 'hsl(164, 60%, 50%)',
},
// additional small screen breakpoints
screens: {
xs: '475px',
...defaultTheme.screens,
},
fontSize: {
biggest: '90px',
h1Size: '44px',
h2Size: '30px',
h3Size: '28px',
h4Size: '24px',
h5Size: '22px',
largest: '21px',
larger: '20px',
large: '18px',
normal: '16px',
small: '15px',
smaller: '14px',
tiny: '13px',
},
extend: {
dropShadow: {
textShadow: [
'2px 2px hsl(0, 0% ,0%)',
'-2px 2px hsl(0, 0% ,0%)',
'2px -2px hsl(0, 0% ,0%)',
'-2px -2px hsl(0, 0% ,0%)',
'5px 5px rgba(0,0,0,0.2)',
],
},
screens: {
'3xl': '1700px',
'4xl': '1800px',
'5xl': '1950px',
},
},
// defaults to these values for text-stroke plugin
textFillColor: (theme) => theme('borderColor'),
textStrokeColor: (theme) => theme('borderColor'),
textStrokeWidth: (theme) => theme('borderWidth'),
paintOrder: {
fsm: { paintOrder: 'fill stroke markers' },
fms: { paintOrder: 'fill markers stroke' },
sfm: { paintOrder: 'stroke fill markers' },
smf: { paintOrder: 'stroke markers fill' },
mfs: { paintOrder: 'markers fill stroke' },
msf: { paintOrder: 'markers stroke fill' },
},
},
plugins: [
// Plugin for hiding scrollbar
require('tailwind-scrollbar-hide'),
// plugin for text-stroke
require('tailwindcss-text-fill-stroke')(),
// plugin for bg gradient degree
plugin(function ({ matchUtilities, theme }) {
matchUtilities(
{
'bg-gradient': (angle) => ({
'background-image': `linear-gradient(${angle}, var(--tw-gradient-stops))`,
}),
},
{
// values from config and defaults you wish to use most
values: Object.assign(
theme('bgGradientDeg', {}), // name of config key. Must be unique
{
0: '0deg',
10: '10deg', // bg-gradient-10
15: '15deg',
20: '20deg',
25: '25deg',
30: '30deg',
45: '45deg',
60: '60deg',
90: '90deg',
135: '135deg',
155: '155deg',
180: '180deg',
}
),
}
);
}),
],
};