Installation
Requirements:
Global Installation
The one way to get started with SrcubeUI Taro is to use the global installation, which means that all the components in one package.
Follow the steps below to install all SrcubeUI Taro components:
Install Packages
$...
Hoisted Dependencies Setup
This step is only for those who use pnpm
to install. You may skip this step when using other package managers.
If you are using pnpm, you need to add the following line to your .npmrc
file to hoist our packages to the root node_modules
.
...
(Weapp) Tailwind CSS Setup
SrcubeUI Taro is build on top of Tailwind CSS with Weapp Tailwind CSS, so you need to install Tailwind CSS and Weapp Tailwind CSS in your project.
You can follow the official installation guide to install Tailwind CSS and Weapp Tailwind CSS. Then you need to add the following code to your
app.css
, tailwind.config.js
file:
app.css
...
tailwind.config.js
...
