Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

sz-theme-manager

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sz-theme-manager

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

latest
npmnpm
Version
2.0.3
Version published
Weekly downloads
8
14.29%
Maintainers
1
Weekly downloads
 
Created
Source

通用样式管理工具

安装

npm i @zxsz/theme-manager
或者
pnpm add @zxsz/theme-manager

基础样式集规则配置

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

创建tailwindcss配置文件

npx tailwindcss init -p 

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

// tailwind.config.js

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

module.exports = {
  presets: [SZ_THEME],
  //...其他配置
}

创建实例

import ThemeManager from '@zxsz/theme-manager/lib';
// 挂载到style标签中
themeManager.mount();

FAQs

Package last updated on 06 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts