-
Notifications
You must be signed in to change notification settings - Fork 10
/
tailwind.config.js
81 lines (77 loc) · 2.42 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
/*
* Opatciy Map for Colors
* https://www.viget.com/articles/tips-for-your-tailwind-config/
* */
/** @type {import('tailwindcss').Config} */
// plugins
import containerQuerries from '@tailwindcss/container-queries';
import themeIt from 'tailwindcss-theme-it';
import fluidType from 'tailwindcss-fluid-type';
import debugScreens from 'tailwindcss-debug-screens';
import forms from '@tailwindcss/forms';
import components from './tailwind/tailwind.plugins.addComponents';
// Settings
import settingsGrid from './tailwind/tailwind.settings.grid';
import settingsfluidType from './tailwind/tailwind.settings.fluidType';
import settingsThemeIt from './tailwind/tailwind.settings.themeIt';
export default {
content: ['./templates/**/*.{twig,html,vue,js,ts,json}', './src/vue/**/*.{vue,js,ts}'],
safelist: [],
darkMode: 'class', // or 'media' or 'class'
theme: {
fontFamily: {
sans: ['Lato', 'Helvetica', 'Arial', 'sans-serif'],
serif: ['Merriweather', 'Georgia', 'Times New Roman', 'Times', 'serif'],
mono: ['"JetBrains Mono"', '"Courier New"', 'Courier', 'monospace'],
},
screens: {
sm: '640px',
md: '768px',
lg: '1024px',
xl: '1280px',
'2xl': '1536px',
nthover: { raw: '(hover: hover)' },
},
extend: {
gridTemplateColumns: { ...settingsGrid.gridTemplateColumns },
gridColumn: { ...settingsGrid.gridColumn },
gridRowStart: { ...settingsGrid.gridRowStart },
gridRowEnd: { ...settingsGrid.gridRowEnd },
aspectRatio: {
landscape: '3 / 2',
portrait: '2 / 3',
},
transitionTimingFunction: {
'out-back': 'cubic-bezier(0.175, 0.885, 0.320, 1.275)',
},
},
// Plugin Stuff
debugScreens: {
ignore: ['nthover'],
position: ['bottom', 'right'],
},
},
variants: {},
corePlugins: {
container: false,
fontSize: false, // disable because we use the fluid type plugin
},
plugins: [
containerQuerries,
// eslint-disable-next-line @typescript-eslint/no-var-requires
themeIt(settingsThemeIt),
// eslint-disable-next-line @typescript-eslint/no-var-requires
fluidType({
...settingsfluidType,
}),
debugScreens,
// eslint-disable-next-line @typescript-eslint/no-var-requires
forms({
strategy: 'class',
}),
({ addComponents }) => {
// eslint-disable-next-line @typescript-eslint/no-var-requires
addComponents(components);
},
],
}