logo-icon
Installation

Installation

Run the following command to add STWUI to your project:

CODE
npm i -D stwui

Configure TailwindCSS

Modify your tailwind.config.cjs file with the following:

javascript
module.exports = {
	content: ['./src/**/*.{html,js,svelte,ts}'],
	plugins: [
		require('@tailwindcss/forms'),
		require('stwui/plugin')
	],
	darkMode: 'class',
};

Configure Material Icons

Modify your app.html file and add the following to the head section:

html
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />