LESS: generate different CSSs for different theme (color variation)

前端 未结 1 352
生来不讨喜
生来不讨喜 2021-01-26 16:14

I would like to manage creation of different \"theme\" for my site, using LESS.

My idea is to generate different compiled .css files, using each time a specific variable

相关标签:
1条回答
  • 2021-01-26 16:52

    You need to flip your import directions.

    The style.less file should not import any variables.

    Instead, each variableN.less file should import style.less after defining all of its variables.
    These files will then each compile to a full set of rules based on their variable values.

    0 讨论(0)
提交回复
热议问题