shinokada / svelte-5-ui-lib

A UI library crafted for Svelte 5: Runes

Home Page:https://svelte-5-ui-lib.codewithshin.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Svelte 5 UI Lib

UI library for Svelte 5

Installation

After installing Svelte-5:

pnpm i -D svelte-5-ui-lib tailwind-merge

Install tailwindcss:

npx svelte-add@latest tailwindcss
pnpm i

If you want a SVG icon set, choose one from Svelte SVG icon sets.

pnpm i -D flowbite-svelte-icons

Add the following to tailwind.config.js:

const config = {
	content: ['./src/**/*.{html,js,svelte,ts}', './node_modules/svelte-5-ui-lib/**/*.{html,js,svelte,ts}'],

	darkMode: 'class',

	theme: {
		extend: {
			colors: {
				// violet
				primary: {
					50: '#f5f3ff',
					100: '#ede9fe',
					200: '#ddd6fe',
					300: '#c4b5fd',
					400: '#a78bfa',
					500: '#8b5cf6',
					600: '#7c3aed',
					700: '#6d28d9',
					800: '#5b21b6',
					900: '#4c1d95'
				}
			}
		}
	}
};

module.exports = config;

Credits

  • Svelte 5
  • SvelteKit 2
  • TailwindCSS
  • Flowbite
  • Flowbite-Svelte

License

MIT

About

A UI library crafted for Svelte 5: Runes

https://svelte-5-ui-lib.codewithshin.com

License:MIT License


Languages

Language:Svelte 73.2%Language:CSS 19.0%Language:TypeScript 7.5%Language:JavaScript 0.2%Language:HTML 0.1%