Svelte-TailwindCSS UI (STWUI) is currently in pre-release. There has been a lot work already but a lot of work still needs to be done. Most of my inspiration comes from TawilwindUI with a desire to create a component library similar to React component libraries that are less reliant on remembering class names. Contributors and collaborators 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.
npm install stwuirequire('stwui/plugin') to the plugins section of your tailwind.config.cjs'./node_modules/stwui/**/*.{svelte,js,ts,html}' to the content array of your tailwind.config.cjsmodule.exports = {
content: [
'./src/**/*.{html,js,svelte,ts}',
'./node_modules/stwui/**/*.{svelte,js,ts,html}'
],
plugins: [
require('@tailwindcss/forms'),
require('stwui/plugin')
]
};
git clone [email protected]:N00nDay/stwui.git MY-PROJECT-NAME && cd MY-PROJECT-NAMEnpm installnpm run devš The docs are included in this repo which is itself a SvelteKit app. You'll find the pages for each component within src/routes/.
Craig Howell N00nDay https://github.com/N00nDay