mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2024-10-11 18:07:24 +08:00
d7ff5b9abc
* fix: ensure TopicDetail locks the body when open * chore: ensure 'overflow-hidden' is always available via safelist * revert: prettier changes
53 lines
1.3 KiB
JavaScript
53 lines
1.3 KiB
JavaScript
/** @type {import('tailwindcss').Config} */
|
|
module.exports = {
|
|
content: [
|
|
'./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue,svg}',
|
|
'./editor/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue,svg}',
|
|
],
|
|
future: {
|
|
hoverOnlyWhenSupported: true,
|
|
},
|
|
safelist: ['overflow-hidden'],
|
|
theme: {
|
|
extend: {
|
|
typography: {
|
|
quoteless: {
|
|
css: {
|
|
'blockquote p:first-of-type::before': { content: 'none' },
|
|
'blockquote p:first-of-type::after': { content: 'none' },
|
|
},
|
|
},
|
|
},
|
|
keyframes: {
|
|
'fade-slide-up': {
|
|
'0%': {
|
|
opacity: '0',
|
|
transform: 'translateX(var(--tw-translate-x, 0)) translateY(20px)',
|
|
},
|
|
'100%': {
|
|
opacity: '1',
|
|
transform: 'translateX(var(--tw-translate-x, 0)) translateY(0)',
|
|
},
|
|
},
|
|
'fade-in': {
|
|
'0%': {
|
|
opacity: '0',
|
|
},
|
|
'100%': {
|
|
opacity: '1',
|
|
},
|
|
},
|
|
},
|
|
animation: {
|
|
'fade-slide-up':
|
|
'fade-slide-up 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards',
|
|
'fade-in': 'fade-in 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards',
|
|
},
|
|
},
|
|
container: {
|
|
center: true,
|
|
},
|
|
},
|
|
plugins: [require('@tailwindcss/typography')],
|
|
};
|