-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.cjs
More file actions
46 lines (45 loc) · 1.18 KB
/
tailwind.config.cjs
File metadata and controls
46 lines (45 loc) · 1.18 KB
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
const plugin = require('tailwindcss/plugin')
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
theme: {
colors: {
transparent: 'transparent',
current: 'currentColor',
inherit: 'inherit',
yellow: {
DEFAULT: '#C58511',
},
black: '#000000',
dark: '#1B2124',
grey: {
darker: '#8D9091',
DEFAULT: '#CCCCCC',
},
white: {
darker: '#EFEFEF',
DEFAULT: '#FFFFFF',
lighter: '#F9F9F9',
},
},
fontFamily: {
regular: ['RedHatDisplay Regular'],
medium: ['RedHatDisplay Medium'],
semibold: ['RedHatDisplay SemiBold'],
bold: ['RedHatDisplay Bold'],
},
//For extending existing tailwind configurations
// extend: {},
},
plugins: [
require('@tailwindcss/forms'),
require('@tailwindcss/line-clamp'),
plugin(function({ addBase, theme }) {
addBase({
'h1': { fontSize: "2.5rem", fontFamily: theme("fontFamily.bold") },
'h2': { fontSize: "2rem", fontFamily: theme("fontFamily.bold") },
// 'h3': { fontSize: theme('fontSize.lg') },
})
})
],
}