-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
106 lines (103 loc) · 2.97 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
const colors = require('tailwindcss/colors')
const plugin = require('tailwindcss/plugin')
module.exports = {
mode: 'jit',
purge: [
'./components/**/*.{vue,js}',
'./layouts/**/*.vue',
'./pages/**/*.vue',
'./nuxt.config.{js,ts}',
],
darkMode: 'class',
theme: {
colors: {
transparent: 'transparent',
current: 'currentColor',
white: colors.white,
red: colors.red,
green: colors.green,
orange: colors.orange,
black: colors.black,
gray: colors.slate,
blue: colors.blue,
cyan: colors.cyan,
zinc: colors.zinc,
'body-gray': '#111215',
'body-gray-after': 'rgba(255, 255, 255, 0.01)',
skill: 'rgba(255, 255, 255, 0.01)',
'white-opacity': {
10: 'rgba(255, 255, 255, 0.1)',
20: 'rgba(255, 255, 255, 0.2)',
30: 'rgba(255, 255, 255, 0.3)',
40: 'rgba(255, 255, 255, 0.4)',
50: 'rgba(255, 255, 255, 0.5)',
60: 'rgba(255, 255, 255, 0.6)',
70: 'rgba(255, 255, 255, 0.7)',
80: 'rgba(255, 255, 255, 0.8)',
90: 'rgba(255, 255, 255, 0.9)',
100: 'rgba(255, 255, 255, 1)',
},
'black-opacity': {
10: 'rgba(0, 0, 0, 0.1)',
20: 'rgba(0, 0, 0, 0.2)',
30: 'rgba(0, 0, 0, 0.3)',
40: 'rgba(0, 0, 0, 0.4)',
50: 'rgba(0, 0, 0, 0.5)',
60: 'rgba(0, 0, 0, 0.6)',
70: 'rgba(0, 0, 0, 0.7)',
80: 'rgba(0, 0, 0, 0.8)',
90: 'rgba(0, 0, 0, 0.9)',
100: 'rgba(0, 0, 0, 1)',
},
},
extend: {
fontFamily: {
sourcesans: ['"Source Sans Pro"', 'sans-serif'],
sourcecode: ['"Source Code Pro"', 'monospace'],
},
backgroundImage: {
'mountains-hiking': "url('/images/profile/reno-hiking-background.jpg')",
},
boxShadow: {
even: '0 0 10px rgb(0 0 0 / 0.1), 0 0 5px rgb(0 0 0 / 0.1)',
'skill-item': '0 2px 70px 0 rgb(34,211,238 / 5%)',
},
rotate: {
225: '225deg',
},
},
},
variants: {
extend: {
backgroundOpacity: ['dark'],
},
},
plugins: [
plugin(({ addVariant, e }) => {
addVariant('before', ({ modifySelectors, separator }) => {
modifySelectors(({ className }) => {
return `.${e(`before${separator}${className}`)}::before`
})
})
addVariant('after', ({ modifySelectors, separator }) => {
modifySelectors(({ className }) => {
return `.${e(`after${separator}${className}`)}::after`
})
})
}),
plugin(({ addUtilities }) => {
const contentUtilities = {
'.content': {
content: 'attr(data-content)',
},
'.content-before': {
content: 'attr(data-before)',
},
'.content-after': {
content: 'attr(data-after)',
},
}
addUtilities(contentUtilities, ['before', 'after'])
}),
],
}