mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-11-30 16:48:21 +01:00
- 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
19 lines
390 B
JavaScript
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,
|
|
],
|
|
}; |