Ai
1 Star 7 Fork 1

Gitee 极速下载/Readest

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/readest/readest
克隆/下载
tailwind.config.ts 1.02 KB
一键复制 编辑 原始数据 按行查看 历史
import type { Config } from 'tailwindcss';
import { themes } from './src/styles/themes';
import daisyui from 'daisyui';
import typography from '@tailwindcss/typography';
const config: Config = {
content: [
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}',
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
],
safelist: [
{ pattern: /bg-./ },
{ pattern: /text-./ },
{ pattern: /fill-./ },
{ pattern: /decoration-./ },
{ pattern: /tooltip-./ },
],
theme: {
extend: {
colors: {
background: 'var(--background)',
foreground: 'var(--foreground)',
},
},
},
plugins: [daisyui, typography],
daisyui: {
themes: themes.reduce(
(acc, { name, colors }) => {
acc.push({
[`${name}-light`]: colors.light,
});
acc.push({
[`${name}-dark`]: colors.dark,
});
return acc;
},
['light', 'dark'] as (Record<string, unknown> | string)[],
),
},
};
export default config;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Rust
1
https://gitee.com/mirrors/Readest.git
git@gitee.com:mirrors/Readest.git
mirrors
Readest
Readest
main

搜索帮助