generated from slothiestudio/kirby-template-slothie-studio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
83 lines (82 loc) · 1.74 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
const defaultTheme = require("tailwindcss/defaultTheme");
module.exports = {
content: [
'site/templates/**/*.php',
'site/snippets/**/*.php',
],
darkMode: 'selector',
theme: {
extend: {
fontFamily: {
sans: ["GeigyLLRegular", "sans-serif"],
serif: ["TimesTen", "serif"],
},
fontSize: {
...defaultTheme.fontSize,
sm: [
"0.95rem",
{
lineHeight: "1.35rem",
letterSpacing: "0.1rem",
},
],
base: [
"1rem",
{
lineHeight: "1.35rem",
letterSpacing: "0.085rem",
},
],
md: [
"1.45rem",
{
lineHeight: "1.65rem",
letterSpacing: "0.03rem",
},
],
lg: [
"1.65rem",
{
lineHeight: "1.9rem",
letterSpacing: "0.03rem",
},
],
},
lineHeight: {
'extra': '0.75',
},
},
},
variants: {},
plugins: [
require('tailwindcss-opentype'),
function ({addBase, theme}) {
addBase({
'.dark .text-sm': {
letterSpacing: "0.105rem",
},
'.dark .text-base': {
letterSpacing: "0.095rem",
},
'.dark .text-md': {
letterSpacing: "0.035rem",
},
'.dark .text-lg': {
letterSpacing: "0.035rem",
},
});
},
function ({addUtilities}) {
const newUtilities = {
".no-scrollbar::-webkit-scrollbar": {
display: "none",
},
".no-scrollbar": {
"-ms-overflow-style": "none",
"scrollbar-width": "none",
},
};
addUtilities(newUtilities);
},
],
};