-
Notifications
You must be signed in to change notification settings - Fork 171
/
tailwind.config.js
41 lines (40 loc) · 1.23 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
const defaultTheme = require('tailwindcss/defaultTheme')
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./resources/views/**/*.blade.php"],
safelist: [
{
pattern: /grid-cols-(\d+)/,
variants: ['sm', 'md', 'lg', 'xl', '2xl', 'default', 'default:lg'],
},
{
pattern: /(row|col)-span-(\d+|full)/,
variants: ['sm', 'md', 'lg', 'xl', '2xl', 'default', 'default:lg'],
},
{
pattern: /h-\d+/,
variants: ['sm', 'md', 'lg', 'xl', '2xl'],
}
],
darkMode: 'class',
theme: {
extend: {
fontFamily: {
'sans': ['Figtree', ...defaultTheme.fontFamily.sans],
},
height: {
'128': '32rem',
}
},
},
plugins: [
require("@tailwindcss/forms"),
require("@tailwindcss/container-queries"),
function ({ addVariant }) {
addVariant('default', 'html :where(&)')
addVariant('scrollbar', '&::-webkit-scrollbar')
addVariant('scrollbar-track', '&::-webkit-scrollbar-track')
addVariant('scrollbar-thumb', '&::-webkit-scrollbar-thumb')
},
],
};