1.1.0 • Published 8 months ago

@x-edu/theme v1.1.0

Weekly downloads
-
License
-
Repository
-
Last release
8 months ago

@x-edu/theme

设计案

多租户域名获取方案

demo

目前内置 dark light 两套主题变量

设置主题

import {
  removeTheme,
  setTheme
} from '../src'

// 为根级元素 #app 添加class dark
setTheme('#app', 'dark')
// 移除主题
removeTheme('#app', 'dark')
// 单参数则设置 class于 body 元素上
setTheme('dark')
removeTheme('dark')

读取主题变量

@import '@x-edu/theme/dist/theme/dark.less';
import darkThemeVariable from '@x-edu/theme/dist/theme/dark'
1.1.0

8 months ago

1.0.9

1 year ago

1.0.11

12 months ago

1.0.10

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

2 years ago

1.0.0

2 years ago