-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
53 lines (48 loc) · 1.17 KB
/
Copy pathtailwind.config.js
File metadata and controls
53 lines (48 loc) · 1.17 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
47
48
49
50
/** @type {import('tailwindcss').Config} */
const plugin = require('tailwindcss/plugin')
export default {
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {},
},
plugins: [
plugin(function ({ addComponents }) {
addComponents({
'.btn': {
background: "#1646a0",
color: "#fff",
padding: "10px 45px",
border: "1px solid #fff",
borderRadius: "25px",
textTransform: "uppercase",
fontWeight: "bold",
fontSize: "1.2em",
cursor: "pointer",
transitionDuration: ".4s",
'&:hover': {
backgroundColor: '#2779bd'
},
},
'.space': {
fontSize: "35px",
lineHeight: "1.5",
border: "3px solid #000",
height: "60px",
width: "60px",
textTransform: "uppercase",
backgroundColor: "#fff",
color: "#000",
fontWeight: "bold"
},
".body": {
background: "linear-gradient(180deg, rgba(9, 35, 175, 1) 0%, rgba(0, 0, 0, 1) 100%)",
color: "#fff",
}
}
)
})
],
}