Svelte MIT

stwui

Opinionated yet customizable Svelte-TailwindCSS component library

N

N00nDay

Dernière activité 5 août 2026
N00nDay/stwui

457

étoiles

24

forks

16

issues ouvertes

componentssveltesvelte-componentssvelte3sveltejstailwindcss

Ce README est souvent en anglais.

Svelte 4 GitHub stars npm version license

Svelte-TailwindCSS UI (stwui) is an opinionated, customizable component library for Svelte and TailwindCSS. Inspired by Tailwind UI, it aims for a component API you compose with props instead of memorizing class names. A live showcase of all 49 components is at stwui.vercel.app.

Status

stwui is stable and feature-complete for Svelte 4 + TailwindCSS, with 49 components. It grew to 450+ stars and is still installed from npm regularly.

It is no longer under active development and has not been migrated to Svelte 5, but it remains usable as-is for Svelte 4 projects. Issues and pull requests are still welcome.



A showcase can be found at https://stwui.vercel.app/. Documentation is still forthcoming but you can at least see the components being used.

Installing

  • Run npm install stwui
  • Add require('stwui/plugin') to the plugins section of your tailwind.config.cjs
  • Add './node_modules/stwui/**/*.{svelte,js,ts,html}' to the content array of your tailwind.config.cjs
module.exports = {
	content: [
		'./src/**/*.{html,js,svelte,ts}',
		'./node_modules/stwui/**/*.{svelte,js,ts,html}'
	],
	plugins: [
		require('@tailwindcss/forms'),
		require('stwui/plugin')
	]
};

How to Contribute

  • Clone the project to your local machine: git clone git@github.com:N00nDay/stwui.git MY-PROJECT-NAME && cd MY-PROJECT-NAME
  • Install dependancies with npm install
  • Start your dev server with npm run dev
  • Make changes, and submit your pull request.

📖 The docs are included in this repo which is itself a SvelteKit app. You'll find the pages for each component within src/routes/.

Useful Resources

Contributors

Craig Howell N00nDay https://github.com/N00nDay

Projets similaires

🌼 🌼 🌼 🌼 🌼 The most popular, free and open-source Tailwind CSS component library

JavaScriptcomponentcomponent-librarycomponents
Ssaadeghi
42,5 k étoiles1,7 k

shadcn/ui, but for Svelte. ✨

TypeScriptbits-uishadcn-svelteshadcn-ui
Hhuntabyte
9,2 k étoiles573

Sailboat UI is a modern UI component library for Tailwind CSS

HTMLcsshtmlresponsive
Ssailboatui
1,3 k étoiles45