forked from Yoast/wordpress-seo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.js
43 lines (42 loc) · 910 Bytes
/
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
const preset = require( "@yoast/tailwindcss-preset" );
module.exports = {
presets: [ preset ],
content: [
"./packages/ui-library/src/**/!(stories).js",
"./packages/js/src/**/*.js",
"./src/integrations/settings-integration.php",
],
theme: {
extend: {
keyframes: {
slideRight: {
"0%": {
transform: "translate(0, 0)",
opacity: 1,
},
"100%": {
transform: "translate(100%, 0)",
opacity: 0,
},
},
},
animation: {
slideRight: "slideRight .5s ease-in-out forwards",
},
},
},
safelist: process.env.NODE_ENV === "development" ? [ { pattern: /.*/, variants: [ "sm", "md", "lg", "xl", "2xl" ] } ] : [
"yst-border-l",
"yst-space-x-8",
"yst-pb-10",
"yst-space-y-6",
"yst--left-3",
"yst-ring-gray-200",
"yst-font-mono",
"sm:yst-w-auto",
"sm:yst-mb-0",
"sm:yst-ml-3",
"sm:yst-flex",
"sm:yst-flex-row-reverse",
],
};