1.1.1 • Published 1 month ago

flowbite-svelte-blocks v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

⚠️ Flowbite-Svelte-Blocks is currently in early development and APIs and packages are likely to change quite often.

Demo

Flowbite Svelte Blocks

Installation

This library is built on top of Flowbite-Svelte and Flowbite-Svelte-Icons. Flowbite-Svelte is an official Flowbite component library for Svelte.

Install SvelteKit:

npm create svelte@latest your-project-name
cd your-project-name
pnpm install

Install Tailwind CSS:

npx svelte-add@latest tailwindcss
pnpm i

Start a server:

pnpm run dev

Install flowbite-svelte-blocks:

pnpm i flowbite-svelte flowbite-svelte-blocks flowbite-svelte-icons

Update tailwind.config.cjs:

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

  theme: {
    extend: {}
  },

  plugins: [require('flowbite/plugin')],
  darkMode: 'class'
};

module.exports = config;

Update tailwind.config.cjs

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'
  ]
    }
  },
1.1.1

1 month ago

1.1.0

4 months ago

0.5.1

8 months ago

0.4.8

9 months ago

0.4.13

9 months ago

0.4.14

9 months ago

0.4.11

9 months ago

0.4.12

9 months ago

0.4.5

9 months ago

0.4.4

9 months ago

0.4.7

9 months ago

0.4.6

9 months ago

0.4.1

9 months ago

0.4.3

9 months ago

0.4.2

9 months ago

0.3.9

11 months ago

0.3.8

12 months ago

0.3.7

12 months ago

0.2.18

1 year ago

0.3.0

1 year ago

0.3.6

1 year ago

0.3.5

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.3.4

1 year ago

0.3.3

1 year ago

0.2.13

2 years ago

0.2.12

2 years ago

0.2.11

2 years ago

0.2.8

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago