Files
LCUI/postcss.config.js
Liu 9217b1ca3a feat(styles): add light and dark theme support
- share shadcn neutral color tokens between both Tailwind configs
- rewrite Tailwind dark selectors into LCUI-compatible descendant selectors
- theme style-nova components and doc-viewer surfaces for dark mode
- generate GitHub Light and GitHub Dark syntax line pairs for code blocks
- support alpha channels in text style tag colors
- keep focus rings and scrollbars visible on dark surfaces
- use a neutral code surface instead of GitHub's blue-tinted background
2026-11-15 23:40:42 +08:00

19 lines
390 B
JavaScript

const formatLcuiCss = {
postcssPlugin: "format-lcui-css",
OnceExit(root) {
root.raws.after = "\n";
root.each((node) => {
node.raws.before = "\n";
node.raws.after = "\n";
});
},
};
module.exports = {
plugins: [
require("tailwindcss"),
require("@thedutchcoder/postcss-rem-to-px"),
require("./scripts/postcss-lcui-dark"),
formatLcuiCss,
],
};