GithubHelp home page GithubHelp logo

hanovo / flowbite-svelte-blocks Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shinokada/flowbite-svelte-blocks

0.0 0.0 0.0 1.36 MB

Doc: https://flowbite-svelte-blocks.codewithshin.com/

Home Page: https://flowbite-svelte-blocks.vercel.app/

License: MIT License

JavaScript 0.67% TypeScript 1.69% CSS 0.01% HTML 0.07% Svelte 97.55%

flowbite-svelte-blocks's Introduction

Flowbite Svelte Blocks

Flowbite Svelte Blocks

npm Created by Shin Okada License

โš ๏ธ Flowbite-Svelte-Blocks is currently in early development and APIs and packages are likely to change quite often.

Demo

Flowbite Svelte Blocks

Docs

Docs

Installation

Use this library on top of Flowbite-Svelte. 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:

npm run dev

Install flowbite flowbite-svelte classnames @popperjs/core, svelte-heros, and flowbite-svelte-blocks:

pnpm i flowbite flowbite-svelte classnames @popperjs/core flowbite-svelte-blocks svelte-heros

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

flowbite-svelte-blocks's People

Contributors

shinokada avatar zoltanszogyenyi avatar destaq avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.