0
0
mirror of https://github.com/yude-jp/yude.jp synced 2024-12-23 04:30:11 +09:00
yude.jp/tailwind.config.js

43 lines
1.1 KiB
JavaScript
Raw Normal View History

2021-02-06 09:36:00 +09:00
module.exports = {
2021-02-07 11:28:57 +09:00
future: {
purgeLayersByDefault: true,
},
2021-02-06 09:36:00 +09:00
purge: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'],
2021-02-06 20:11:20 +09:00
darkMode: "class", // or 'media' or 'class'
2021-02-06 09:36:00 +09:00
theme: {
2021-02-07 17:40:43 +09:00
filter: { // defaults to {}
'none': 'none',
'grayscale': 'grayscale(1)',
'invert': 'invert(1)',
'sepia': 'sepia(1)',
},
backdropFilter: { // defaults to {}
'none': 'none',
'blur': 'blur(20px)',
},
extend: {
animation:{
blur: 'blur 2.5s linear infinite',
2021-02-08 16:05:58 +09:00
heartbeat: 'heartbeat 3s linear infinite'
2021-02-07 17:40:43 +09:00
},
keyframes:{
blur: {
'0%, 100%': {filter: 'blur(8px)'},
'50%': {filter: 'blur(0px)'}
2021-02-08 16:05:58 +09:00
},
heartbeat: {
'0%, 100%': {filter: 'drop-shadow(0px 0px 1px rgb(255, 255, 255))'},
'50%': {filter: 'drop-shadow(0px 0px 8px rgb(255, 255, 255))'}
},
2021-02-07 17:40:43 +09:00
}
}
2021-02-06 09:36:00 +09:00
},
variants: {
2021-02-07 17:40:43 +09:00
filter: ['responsive'], // defaults to ['responsive']
backdropFilter: ['responsive'], // defaults to ['responsive']
2021-02-06 09:36:00 +09:00
},
2021-02-07 17:40:43 +09:00
plugins: [
require('tailwindcss-filters'),
],
2021-02-06 09:36:00 +09:00
}