- 404
- 500
- Account recovery
- Banner
- Blog
- Contact
- Content
- Cookie
- CTA
- Customer logos
- FAQ
- Feature
- Footer
- Header
- Hero
- Login
- Maintenance
- Newsletter
- Popup
- Pricing
- Register
- Reset password
- Social-proof
- Team
- Testimoanial
Use this library on top of Flowbite-Svelte. Flowbite-Svelte is an official Flowbite component library for Svelte.
Install SvelteKit:
npm init svelte@next sveltekit-demo
cd sveltekit-demo
npm install
Install Tailwind CSS:
npx svelte-add@latest tailwindcss
npm i
Start a server:
npm run dev
Install flowbite and flowbite-svelte:
npm i -D flowbite flowbite-svelte
Update tailwind.config.cjs:
const config = {
content: [
'./src/**/*.{html,js,svelte,ts}',
'./node_modules/flowbite-svelte/**/*.{html,js,svelte,ts}'
],
theme: {
extend: {}
},
plugins: [require('flowbite/plugin')],
darkMode: 'class'
};
module.exports = config;
Install Flowbite-Svelte-Blocks
npm i -D flowbite-svelte-blocks
Current theme
config is the following. You can update primary
color and other config.
theme: {
extend: {
colors: {
primary: {"50":"#fff1f2","100":"#ffe4e6","200":"#fecdd3","300":"#fda4af","400":"#fb7185","500":"#f43f5e","600":"#e11d48","700":"#be123c","800":"#9f1239","900":"#881337"}
}
},
fontFamily: {
'body': [
'Inter',
'ui-sans-serif',
'system-ui',
'-apple-system',
'system-ui',
'Segoe UI',
'Roboto',
'Helvetica Neue',
'Arial',
'Noto Sans',
'sans-serif',
'Apple Color Emoji',
'Segoe UI Emoji',
'Segoe UI Symbol',
'Noto Color Emoji'
],
'sans': [
'Inter',
'ui-sans-serif',
'system-ui',
'-apple-system',
'system-ui',
'Segoe UI',
'Roboto',
'Helvetica Neue',
'Arial',
'Noto Sans',
'sans-serif',
'Apple Color Emoji',
'Segoe UI Emoji',
'Segoe UI Symbol',
'Noto Color Emoji'
]
}
},