GithubHelp home page GithubHelp logo

julien-r44 / unocss-preset-flowbite Goto Github PK

View Code? Open in Web Editor NEW
26.0 4.0 0.0 194 KB

๐Ÿ’… An adaptation of the Flowbite Tailwind plugin for UnoCSS

TypeScript 100.00%
flowbite unocss components-library headless

unocss-preset-flowbite's Introduction

unocss-preset-flowbite

๐Ÿ’… An adaptation of the Flowbite Tailwind plugin for UnoCSS

๐Ÿšง Warning: The preset does not currently support all Flowbite features yet. I just added what I needed for the moment. So use it at your own risk, and feel free to make PRs or open issues if you need more features.

Installation

pnpm add -D @julr/unocss-preset-flowbite

Usage

import { defineConfig, presetAttributify, presetUno } from 'unocss'
import { presetFlowbite } from '@julr/unocss-preset-flowbite'

export default defineConfig({
  presets: [
    presetUno(),
    presetFlowbite()
  ],
})

License

MIT License ยฉ 2022 Julien Ripouteau

unocss-preset-flowbite's People

Contributors

julien-r44 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

unocss-preset-flowbite's Issues

Double loading?

Sveltekit-TS project. I have added unoCSS and it is functional. Once I add your preset as per instructions everything works until I import a Flowbite component. commenting out your suggest changes in vite.config gets it functional again.

[ERROR] The symbol "click_handler" has already been declared

    node_modules/.pnpm/flowbite-svelte@0.29.2/node_modules/flowbite-svelte/dropdowns/DropdownItem.svelte:344:10:
      344 โ”‚   function click_handler(event) {
          โ•ต            ~~~~~~~~~~~~~

  The symbol "click_handler" was originally declared here:

    node_modules/.pnpm/flowbite-svelte@0.29.2/node_modules/flowbite-svelte/dropdowns/DropdownItem.svelte:312:10:
      312 โ”‚   function click_handler(event) {
          โ•ต            ~~~~~~~~~~~~~
....more

Any help would be appreciated.

Stackblitz

Accordian

Thank you for a great repo... I know you said not everything has been implemented. I just want to make sure, is all javascript components (accordian etc) not working?

What is not included

Hi @Julien-R44 I came across your project while trying to use flowbite with unocss. I would like to know what is not included in this preset that is available on flowbite. It would have been nice to have everything included , and a subset (for your use case) with just the bit you needed

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.