Repository navigation
What's Changed
-
⚠ Breaking Changes
flowbite-vue/index.cssnow 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, importflowbite-vue/standalone.cssinstead (Nuxt:flowbiteVue: { css: 'standalone' })- Dark mode is now class-based: components follow a
.darkclass on an ancestor instead of the OS setting. With Tailwind, add@custom-variant dark (&:where(.dark, .dark *));so the generateddark: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 transformflowbite-vue(for example viatransformIgnorePatterns), 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/postcssandflowbiteare no longer installed with flowbite-vue. Install them yourself if your CSS uses@import "tailwindcss"or@plugin "flowbite/plugin".flowbiteand@nuxt/kitare now optional peer dependencies.@vueuse/integrations,nanoidandlodash-esare no longer installed either- See the CHANGELOG for full details on every breaking change above, and its "Upgrading from 0.4" checklist.
-
New Features
-
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
-
Chores
Full Changelog: v0.4.0...v0.5.0