-
Notifications
You must be signed in to change notification settings - Fork 94
/
Copy pathtailwind.config.js
69 lines (62 loc) · 2.24 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
const colors = require('tailwindcss/colors')
const defaultTheme = require('tailwindcss/defaultTheme')
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./app/**/*.php",
"./resources/svg/**/*.svg",
"./resources/views/**/*.blade.php",
],
darkMode: 'media',
future: {
hoverOnlyWhenSupported: true,
},
theme: {
container: {
center: true,
padding: '1rem',
},
extend: {
fontFamily: {
sans: ['Outfit', ...defaultTheme.fontFamily.sans],
handwriting: ['Indie Flower', ...defaultTheme.fontFamily.sans],
},
typography: {
DEFAULT: {
css: {
'h1, h2, h3, h4, h5, h6': {
'a:not([href^=http])': {
'color': colors.inherit,
'font-weight': defaultTheme.fontWeight.bold,
'text-decoration': 'none',
'&::before': {
'content': '"# "',
'font-weight': defaultTheme.fontWeight.normal,
'opacity': defaultTheme.opacity[50],
},
},
},
a: {
'font-weight': 'inherit',
'color': colors.indigo[600],
},
'iframe[src^="https://www.youtube.com"]': {
'width': '100% !important',
'height': 'auto !important',
'aspect-ratio': defaultTheme.aspectRatio.video,
'border-radius': defaultTheme.borderRadius.md,
'box-shadow': defaultTheme.boxShadow.lg,
},
pre: {
padding: 0,
},
},
},
},
},
},
plugins: [
require('@tailwindcss/forms'),
require('@tailwindcss/typography'),
],
}