# sz-theme-manager

> 通用样式管理工具,基于tailwindcss

Latest version **2.0.3** (published 2025-01-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install sz-theme-manager
pnpm add sz-theme-manager
yarn add sz-theme-manager
bun add sz-theme-manager
```

## Health

**Score 30/100 (F)** — status: maintenance-mode.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.3 |
| Published | 2025-01-06 |
| First published | 2023-06-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 141.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | zxsz |

## Links

- npm: https://www.npmjs.com/package/sz-theme-manager
- npm.io page: https://npm.io/package/sz-theme-manager

## Dependencies (2)

- [color](https://npm.io/package/color.md) ^4.2.3
- [tailwindcss](https://npm.io/package/tailwindcss.md) ^3.4.13

## Recent versions

- 2.0.3 (latest) — 2025-01-06
- 1.0.2 — 2023-07-25
- 1.0.0 — 2023-06-08

## README

## 通用样式管理工具

## 安装

```
npm i @zxsz/theme-manager
或者
pnpm add @zxsz/theme-manager
```
## 基础样式集规则配置

**请确保项目正确安装了tailwindcss**相关依赖

创建tailwindcss配置文件

```bash
npx tailwindcss init -p 
```

在配置文件中引入样式集预设

```js
// tailwind.config.js

const SZ_THEME = require('@zxsz/theme-manager');

module.exports = {
  presets: [SZ_THEME],
  //...其他配置
}
```
创建实例
```js
import ThemeManager from '@zxsz/theme-manager/lib';
// 挂载到style标签中
themeManager.mount();
```

---
_Source: https://npm.io/package/sz-theme-manager · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
