import { mergeWith } from 'lodash-es' ; import { getTokenValue } from '../utils' ; /** 扩展主题 */ export function extendTheme ( baseTheme , overrides ) { return mergeWith ( { } , baseTheme , overrides ) ; } /** 获取 token 的具体值 */ export function getThemeValue ( tokenPath , theme ) { return getTokenValue ( tokenPath , theme ) ; }