安装
ThemePro 可以通过 npm、yarn 或 pnpm 安装:
bash
npm install themeprobash
yarn add themeprobash
pnpm add themepro基本引入
安装完成后,在你的项目入口文件中引入 ThemePro:
- 在代码中引入
js
import 'themepro/index.css';
import 'themepro';- 在
HTML文件中引入
``html
<link rel="stylesheet" href="path/to/themepro/index.css">
<script src="https://cdn.jsdelivr.net/npm/themepro"></script>提示
导入ThemePro会创建一个全局变量ThemePro。