You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

19 lines
488 B

import { resolve } from 'node:path'
import { generateAntColors, primaryColor } from '../config/themeConfig'
2 years ago
/**
* less global variable
*/
2 years ago
export function generateModifyVars() {
2 years ago
const palettes = generateAntColors(primaryColor)
const primaryColorObj: Record<string, string> = {}
for (let index = 0; index < 10; index++)
2 years ago
primaryColorObj[`primary-${index + 1}`] = palettes[index]
return {
2 years ago
hack: `true; @import (reference) "${resolve('src/design/config.less')}";`,
2 years ago
}
}