Skip to content

ncomeaux/ant-design-vue-less-compile-issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ant-design-vue less compile issue

I am attempting to create a way to dynamically switch between light and dark themes. The best way I could figure to do this involved:

  1. Utilize ConfigProvider and prefixCls to prefix ant-light or ant-dark depending on the selected theme
  2. Create custom light-theme.less and dark-theme.less files that can be compiled into two stylesheets utilizing @ant-prefix to change prefixes to match prefixCls.

However when following the Customize Theme instructions the generated css still uses the prefix ant and not the custom prefixes.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published