tianji/website/tailwind.config.ts
2023-12-24 15:58:30 +08:00

26 lines
583 B
TypeScript

import type { Config } from 'tailwindcss';
import { PluginCreator } from 'tailwindcss/types/config';
const plugin: PluginCreator = (api) => {
api.addUtilities({
'.text-gradient': {
background:
'linear-gradient(270deg, #00E725 -33.33%, #0799B9 17.93%, #940DFF 105.3%)',
backgroundClip: 'text',
color: 'transparent',
},
});
};
export default {
darkMode: ['class', '[data-theme="dark"]'],
corePlugins: {
preflight: false,
},
content: ['./src/**/*.{html,tsx}'],
theme: {
extend: {},
},
plugins: [plugin],
} satisfies Config;