-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtailwind.config.js
67 lines (64 loc) · 2.03 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
import forms from '@tailwindcss/forms'
import typography from '@tailwindcss/typography'
import defaultTheme from 'tailwindcss/defaultTheme'
import plugin from 'tailwindcss/plugin'
/** @type {import('tailwindcss').Config} */
export default {
content: [
'./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php',
'./vendor/laravel/jetstream/**/*.blade.php',
'./storage/framework/views/*.php',
'./resources/views/**/*.blade.php',
'./resources/js/**/*.vue',
],
theme: {
extend: {
screens: {
'sm': '320px', // 640px
'md': '500px',
'lg': '750px',
'xl': '1100px',
'2xl': '1350px',
'3xl': '1600px',
},
fontFamily: {
sans: ['Figtree', ...defaultTheme.fontFamily.sans],
},
aspectRatio: {
poster: '2 / 3',
album: '1 / 1',
},
},
},
plugins: [
plugin(({ addComponents }) => {
addComponents({
'.poster': {
'@apply aspect-poster rounded-md object-cover': {},
},
'.album': {
'@apply aspect-album rounded-md object-cover': {},
},
'.main-container': {
'@apply container mx-auto max-w-7xl px-4 lg:px-8':
{},
},
'.link': {
'@apply underline decoration-dashed hover:text-gray-200 hover:decoration-gray-200': {},
},
'.hover-zoom': {
'@apply transition-transform duration-300 ease-in-out hover:scale-[1.03]': {},
},
'.debug-screens': {
'@apply before:bottom-0 before:left-0 before:fixed before:px-1 before:text-sm before:bg-black before:text-white before:shadow-xl before:content-["screen:_"] sm:before:content-["screen:sm"] md:before:content-["screen:md"] lg:before:content-["screen:lg"] xl:before:content-["screen:xl"] 2xl:before:content-["screen:2xl"] 3xl:before:content-["screen:3xl"]':
{},
'&:before': {
'z-index': '2147483647',
},
},
})
}),
forms,
typography,
],
}