Quick Start
Here is a guide on how to install the Simple Material UI Library, a simple and easy to use UI library for React applications.
Installation
Install the package via npm or yarn:
npm install simple-material-ui-library pnpm install simple-material-ui-library yarn install simple-material-ui-libraryTailwind
Install postcss and autoprefixer:
npm install postcss autoprefixerTailwind Configuration
Create a tailwind.config.js file in the root of your project:
npx tailwindcss init -pTailwind SetUp
-
Add the following code to your componets property in the
tailwind.config.jsfile:tailwind.config.js content[...,'node_modules/simple-material-ui-library/**/*.{html,js,jsx,ts,tsx}',...], -
Delete all the code in your
index.cssandApp.cssfiles. -
Paste this code in your
index.cssfile:index.css @tailwind base;@tailwind components;@tailwind utilities;
Using TypeScript
If you are using TypeScript, you will need to add the following code to your tsconfig.json file:
{"target": "ESNext","lib": [ "DOM", "DOM.Iterable", "ESNext",],"module": "ESNext","moduleResolution": "Node",}