# @huteming/ui-styles

> > 样式定制

Latest version **1.2.0** (published 2019-12-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install @huteming/ui-styles
pnpm add @huteming/ui-styles
yarn add @huteming/ui-styles
bun add @huteming/ui-styles
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2019-12-12 |
| First published | 2019-12-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Tommy |
| Maintainers | huteming |

## Links

- npm: https://www.npmjs.com/package/@huteming/ui-styles
- Repository: git@47.52.168.43:/srv/web-common
- npm.io page: https://npm.io/package/@huteming/ui-styles

## Dependencies (1)

- [@huteming/ui-tools](https://npm.io/package/@huteming/ui-tools.md) ^2.3.0

## Recent versions

- 1.2.0 (latest) — 2019-12-12

## README

## 代码演示

### 自定义变量

```html
<theme-provider :theme="theme">
    <tm-button>hello</tm-button>
</theme-provider>
```

```js
import { createTheme, ThemeProvider } from '@huteming/ui-styles'

const theme = createTheme({
    button: {
        borderColorDefault: 'lightblue',
        colorDefault: 'lightBlue',
    },
})

export default {
    data () {
        return {
            theme,
        }
    },
}
```

### 嵌套主题

```html
<theme-provider :theme="theme">
    <tm-button>hello</tm-button>

    <theme-provider :theme="innerTheme">
        <tm-button>inner</tm-button>
    </theme-provider>
</theme-provider>
```

```js
import { createTheme, ThemeProvider } from '@huteming/ui-styles'

const theme = createTheme({
    button: {
        borderColorDefault: 'lightblue',
        colorDefault: 'lightBlue',
    },
})
const innerTheme = createTheme({
    button: {
        borderColorDefault: '#ff9800',
        colorDefault: '#ff9800',
    },
})

export default {
    data () {
        return {
            theme,
            innerTheme,
        }
    },
}
```

---
_Source: https://npm.io/package/@huteming/ui-styles · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
