vite-plugin-theme-preprocessor icon indicating copy to clipboard operation
vite-plugin-theme-preprocessor copied to clipboard

css theme preprocessor plugin for vite

Results 16 vite-plugin-theme-preprocessor issues
Sort by recently updated
recently updated
newest added

请问是否有优化的可能?

toggleTheme don't work in ts. I add this: ``` declare module "@zougt/vite-plugin-theme-preprocessor/dist/browser-utils" { export function toggleTheme(options: { scopeName?: string; customLinkHref?: (href: string) => string; }); export function addClassNameToHtmlTag(options: { scopeName?:...

想在js中导入less变量,添加插件后无法使用:export导出less变量,只能导出插件中设置的scopeName dark.module.less 代码如下: @color-primary: #253E7A; :export { primary: @color-primary; } js文件中导入: import dark from '@/assets/style/theme/dark.module.less'; dark打印出来是: { theme-dark: "theme-dark", theme-default: "theme-default" }

bug

动态主题和预设主题不能同时使用么?

如动态图所示,在菜单含有下拉菜单时,下拉列表中的菜单项和菜单项的背景动画不同步,具体表现为弹出时先有背景,然后菜单项才出现,而退出时相反,菜单项先消失,然后背景再消失,当把 vite.config.ts中的 `themePreprocessorPlugin` 和 `themePreprocessorHmrPlugin` 注释掉后,动画就恢复正常了。 ![bug](https://user-images.githubusercontent.com/30600711/159701315-4bec155d-45e7-4242-b85a-e53f07eb763e.gif) 如果图片看不清的话,这里还有慢放的视频 https://user-images.githubusercontent.com/30600711/159701291-a65eeb84-0e1c-4198-a2ef-17c948ef6710.mp4 我还创建了一个复现这个bug的仓库,希望您抽空看一下,谢谢 https://github.com/wdyyy/bug_reproduction --- As shown in the gif picture and video, when the menu contains a drop-down menu-item, animations for the...

在乾坤子应用里,乾坤会给原有样式加乾坤标记前缀,会导致本插件生成的css文件class权重较低,部分颜色不生效

下方less编译后会丢失color属性只包含了font-size, 如果不使用变量的形式就正常 ### theme ``` @import "ant-design-vue/lib/style/themes/default.less"; @primary-color: #ed0a5a; ``` ### antd-vue-table ``` :deep(.ant-table) th{ font-size: 12px; color: @primary-color !important; } ```