-
Notifications
You must be signed in to change notification settings - Fork 12
/
tailwind.config.cjs
97 lines (95 loc) · 2.62 KB
/
tailwind.config.cjs
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
/** @type {import('tailwindcss').Config} */
const defaultTheme = require("tailwindcss/defaultTheme");
const plugin = require('tailwindcss/plugin');
module.exports = {
//darkMode: ['class', '[data-mode="dark"]'],
content: [
'./src/**/*.{astro,html,js,jsx,svelte,ts,ts*,tsx,vue,mdx,md}',
'./node_modules/flowbite/**/*.js'
// transform: {
// mdx: (content) => {
// return remark().process(content)
// }}
],
//content: ["./src/components/**/*.{astro,html,js,jsx,svelte,ts,tsx,vue}"],
theme: {
extend: {
fontFamily: {
sans: ["Inter", ...defaultTheme.fontFamily.sans],
},
colors: {
primary: "var(--color-primary)",
secondary: "var(--color-secondary)",
},
textColor: {
default: "var(--color-text)",
offset: "var(--color-text-offset)",
},
backgroundColor: {
default: "var(--color-background)",
offset: "var(--color-background-offset)",
},
borderColor: {
default: "var(--color-border)",
},
animation: {
'spin-slow': 'spin 5s linear infinite',
'pulse-short': 'pulse 5s ease-in-out',
float: 'float linear 3s infinite',
'ltr-linear-infinite': 'ltr-linear-infinite 100s linear infinite',
},
textShadow: {
sm: '0 1px 2px var(--tw-shadow-color)',
DEFAULT: '0 2px 4px var(--tw-shadow-color)',
lg: '0 8px 16px var(--tw-shadow-color)',
xl: '0 32px 64px var(--tw-shadow-color)',
},
boxShadow: {
overdrive: '0 10px 420px 150px rgb(0 0 0 / 0.25)',
},
zIndex: {
'100': '100',
},
scale: {
flip: '-1',
},
keyframes: {
float: {
'0%, 100%': { transform: 'translate3d(0, 0, 0)' },
'50%': { transform: 'translate3d(0, 30px, 0)' },
},
'ltr-linear-infinite': {
'0%, 100%': { 'background-position': '0 0' },
'50%': { 'background-position': '400% 0%' },
},
},
},
},
corePlugins: {
fontSize: false,
aspectRatio: false,
},
variants: {
extend: {
// ...
backgroundOpacity: ['active'],
}
},
plugins: [
require('flowbite/plugin'),
require("tailwindcss-fluid-type"),
require('@tailwindcss/forms'),
require('@tailwindcss/typography'),
require('@tailwindcss/aspect-ratio'),
plugin(function ({ matchUtilities, theme }) {
matchUtilities(
{
'text-shadow': (value) => ({
textShadow: value,
}),
},
{ values: theme('textShadow') }
)
}),
],
};