-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathtailwind.config.js
44 lines (43 loc) · 1.18 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
const colors = require('tailwindcss/colors');
const { fontFamily } = require('tailwindcss/defaultTheme');
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./resources/**/*.php'
],
future: {
hoverOnlyWhenSupported: true
},
theme: {
extend: {
fontFamily: {
sans: [
['Inter', ...fontFamily.sans],
{ fontFeatureSettings: '"ss04"' }
]
},
aspectRatio: {
photo: '3/2'
},
colors: {
gray: colors.neutral,
accent: {
DEFAULT: colors.sky[600],
...colors.sky
}
}
}
},
plugins: [
require('tailwindcss/plugin')(api => {
api.addVariant('em', variant => {
variant.container.walkRules(rule => {
rule.selector = `.em\\:${rule.selector.slice(1)}`;
rule.walkDecls(decl => {
decl.value = decl.value.replace('rem', 'em');
});
});
});
})
]
}