acud
Version:
acg react 组件库
20 lines (18 loc) • 375 B
JavaScript
const defaultTheme = require('./default-theme.js');
const darkThemeSingle = {};
function getThemeVariables(options = {}) {
let themeVar = {
...defaultTheme
};
if(options.dark) {
themeVar = {
...themeVar,
...darkThemeSingle
}
}
return themeVar;
}
module.exports = {
darkThemeSingle,
getThemeVariables
}