New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@apform-ui/themes

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apform-ui/themes

@schema-ui 主题包 — 暗色/自定义主题

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

@apform-ui/themes

@schema-ui 主题包,提供预置主题和切换工具。

安装

npm install @apform-ui/themes

使用

引入主题 CSS

// 暗色主题
import '@apform-ui/themes/dark'

// 明亮主题(重置)
import '@apform-ui/themes/light'

运行时切换

import { setTheme, getTheme, initTheme } from '@apform-ui/themes'

// 切换到暗色
setTheme('dark')

// 切换到亮色
setTheme('light')

// 从 localStorage 初始化
initTheme()

// 获取当前主题
console.log(getTheme()) // 'light' | 'dark'

主题列表

主题文件说明
lightlight.css明亮主题(默认)
darkdark.css科技暗色主题

Keywords

themes

FAQs

Package last updated on 27 Aug 2026

Related posts