Skip to content

v0.5.0

Latest

Choose a tag to compare

@Sqrcz Sqrcz released this 19 Nov 23:24
6dec924

What's Changed

  • ⚠ Breaking Changes

    • flowbite-vue/index.css now contains only the components' own CSS, in @layer components.flowbite-vue, instead of a full Tailwind build. With Tailwind CSS v4.1+, also add @import "flowbite-vue/tailwind.css"; after @import "tailwindcss";. Without Tailwind, import flowbite-vue/standalone.css instead (Nuxt: flowbiteVue: { css: 'standalone' })
    • Dark mode is now class-based: components follow a .dark class on an ancestor instead of the OS setting. With Tailwind, add @custom-variant dark (&:where(.dark, .dark *)); so the generated dark: utilities follow the same class
    • The UMD/CommonJS build (dist/flowbite-vue.umd.cjs) was removed. require('flowbite-vue') loads the ESM build; Jest needs to transform flowbite-vue (for example via transformIgnorePatterns), and a CDN <script> tag no longer works
    • Flowbite Vue's CSS no longer includes flowbite/plugin's form base styles, so your own plain <input>, <select> and <textarea> are no longer styled by it. With Tailwind, add @plugin "flowbite/plugin"; and a Flowbite theme to keep that styling. Flowbite Vue's form components are styled either way
    • tailwindcss, @tailwindcss/vite, @tailwindcss/postcss and flowbite are no longer installed with flowbite-vue. Install them yourself if your CSS uses @import "tailwindcss" or @plugin "flowbite/plugin". flowbite and @nuxt/kit are now optional peer dependencies. @vueuse/integrations, nanoid and lodash-es are no longer installed either
    • See the CHANGELOG for full details on every breaking change above, and its "Upgrading from 0.4" checklist.
  • New Features

    • feat(css): export a Tailwind source entry as flowbite-vue/tailwind.css by @Sqrcz in #484
    • feat: merge custom classes in ButtonGroup, Card, Carousel and Tooltip by @Sqrcz in #486
  • Bug Fixes

    • fix(css): scope prebuilt CSS to components and use class-based dark mode by @Sqrcz in #476
    • fix(file-input): let user hover classes override the file button hover by @Sqrcz in #477
    • fix(build): drop the UMD/CJS build that injected CSS at import time by @Sqrcz in #478
    • fix(deps): stop installing build tools into consumer apps by @Sqrcz in #479
    • fix(deps): drop nanoid, lodash-es and @vueuse/integrations by @Sqrcz in #480
    • fix(build): stop bundling runtime dependencies and export per-component entries by @Sqrcz in #481
    • fix(css): ship component-only index.css and a separate standalone.css by @Sqrcz in #482
    • fix(css): style form controls without flowbite/plugin base styles by @Sqrcz in #483
    • fix(package): stop publishing test files by @Sqrcz in #487
  • Documentation Updates

    • docs: update the README for the 0.5 CSS setup by @Sqrcz in #488
  • Chores

Full Changelog: v0.4.0...v0.5.0