Skip to content

New engine #1498

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 437 commits into from
Mar 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
437 commits
Select commit Hold shift + click to select a range
68444e0
feat(tailwind): improve support for Tailwind CSS v4
SutuSebastian Jan 24, 2025
1385340
fix - tests
SutuSebastian Jan 26, 2025
1310dc5
feat(tailwind): refactor to support dynamic Tailwind version detectio…
SutuSebastian Jan 27, 2025
adb0e6e
chore(package): update turbo to version 2.3.4
SutuSebastian Jan 27, 2025
0aaaba9
chore(deps): up packages
SutuSebastian Jan 28, 2025
074ce25
refactor: convert all *.spec.* files to *.test.*
SutuSebastian Jan 29, 2025
b880309
refactor: update tsconfig to exclude *.test.* files instead of *.spec.*
SutuSebastian Jan 29, 2025
54f49f1
chore(deps): up packages
SutuSebastian Jan 30, 2025
2a0802a
refactor: improve code readability with consistent brace usage
SutuSebastian Jan 31, 2025
cdd77ec
feat: add new CLI and refactor Tailwind plugin configuration (WIP)
SutuSebastian Feb 3, 2025
d614c9c
chore(deps): update turbo to version 2.4.0
SutuSebastian Feb 3, 2025
c8ffd50
feat: cater for automatic class detection when doing `import * from`;…
SutuSebastian Feb 4, 2025
d059408
chore(deps): update bun to 1.2.2
SutuSebastian Feb 4, 2025
c702792
fix(applyPrefix): cacheKey
SutuSebastian Feb 4, 2025
c7c7d85
fix: add watcher for config file too and generate fresh class list on…
SutuSebastian Feb 4, 2025
17b848c
feat: add support for package.json setup with postinstall script
SutuSebastian Feb 4, 2025
19f42fb
chore: update apps/{storybook, web} to use the new `flowbite-react` e…
SutuSebastian Feb 4, 2025
7be786f
fix(cli): register command - ensure `outputDir`
SutuSebastian Feb 4, 2025
371c99e
chore: bun.lockb -> bun.lock
SutuSebastian Feb 4, 2025
2e9f3e7
fix(apps): remove `postinstall` and update build scripts to include `…
SutuSebastian Feb 4, 2025
9ad4738
build `packages/ui` after `bun i`
SutuSebastian Feb 4, 2025
4fd618c
fix(cli): build command - ensure `outputDir`
SutuSebastian Feb 4, 2025
1e3d143
fix CI (trial)
SutuSebastian Feb 4, 2025
6530d56
fix(apps): run `flowbite-react register` for `dev` scripts
SutuSebastian Feb 4, 2025
cc9181a
fix CI (trial 2)
SutuSebastian Feb 4, 2025
be09f68
revert
SutuSebastian Feb 4, 2025
279291a
chmod +x
SutuSebastian Feb 4, 2025
f3546c6
fix CI (trial 3)
SutuSebastian Feb 4, 2025
fe21445
fix CI (trial 4)
SutuSebastian Feb 4, 2025
f26a846
fix CI (trial 5)
SutuSebastian Feb 4, 2025
e5d0663
fix CI (trial 5) - wrong path
SutuSebastian Feb 4, 2025
3127f09
fix CI (trial 6...)
SutuSebastian Feb 4, 2025
cb755d5
chore(web): update editor setup
SutuSebastian Feb 4, 2025
f85ae0c
fix(cli): handle potential undefined argv[0] in main function
SutuSebastian Feb 4, 2025
f6e4338
stricter import
SutuSebastian Feb 5, 2025
34cd4f4
feat: auto class list detection for all components and sub-components
SutuSebastian Feb 5, 2025
9e314d7
fix(cli): ensure proper formatting when updating .gitignore
SutuSebastian Feb 5, 2025
ed17bb4
feat(cli): export everything
SutuSebastian Feb 5, 2025
54d76fa
feat(metadata): add detailed documentation for class list and depende…
SutuSebastian Feb 5, 2025
19f93d3
feat(tests): add unit tests for extractClassList and extractDependenc…
SutuSebastian Feb 5, 2025
cc6f2b6
chore: formatting for readability
SutuSebastian Feb 6, 2025
95273d5
chore: add JSON schema for config file
SutuSebastian Feb 6, 2025
82406d7
feat(cli): add $schema property to Config interface and defaultConfig
SutuSebastian Feb 6, 2025
20eceab
feat(cli): put everything under `.flowbite-react` directory and simpl…
SutuSebastian Feb 6, 2025
c36d332
use paths from consts
SutuSebastian Feb 6, 2025
e2e070c
chore(cli): remove unused imports from utils.ts
SutuSebastian Feb 6, 2025
db3b383
refactor(apps): use new config
SutuSebastian Feb 6, 2025
fcf22ce
fix(tailwind): rename flowbite variable to flowbiteReact for consistency
SutuSebastian Feb 6, 2025
f6357c3
plugin system for all bundlers (WIP)
SutuSebastian Feb 6, 2025
e4670ca
chore(ci): remove redundant setup step from CI workflow (now that we …
SutuSebastian Feb 6, 2025
e11197d
fix: astro integration
SutuSebastian Feb 6, 2025
ca47cd6
fix(plugin): farm
SutuSebastian Feb 7, 2025
934b4ef
fix(plugin): rollup, esbuild
SutuSebastian Feb 7, 2025
1cc9e3b
fix(plugin): rolldown
SutuSebastian Feb 7, 2025
2d00576
fix(plugin): remove redundant async
SutuSebastian Feb 7, 2025
075e400
fix(plugin): esbuild plugin [with comment]
SutuSebastian Feb 7, 2025
c914ac2
fix(plugin): only run `dev` when `minify = false`; only register `dev…
SutuSebastian Feb 7, 2025
9317b81
fix: warning
SutuSebastian Feb 7, 2025
4a4c39a
feat(plugin): nextjs integration
SutuSebastian Feb 7, 2025
5f432f1
feat(plugin): rsbuild
SutuSebastian Feb 7, 2025
6931fb9
simplify check
SutuSebastian Feb 8, 2025
64cef5a
type return
SutuSebastian Feb 9, 2025
e68b02f
refactor(ui): switch bundler from `rollup` to `rslib`
SutuSebastian Feb 10, 2025
7c03cba
refactor(ui): generate source maps
SutuSebastian Feb 10, 2025
80564e3
chore(ui~cli): move hardcoded import name to consts
SutuSebastian Feb 10, 2025
c6c9629
refactor(ui ~ cli): add `setupPlugin` script (WIP)
SutuSebastian Feb 10, 2025
6db2658
refactor(ui ~ cli): create helper `addPluginToConfig` and add more `s…
SutuSebastian Feb 10, 2025
0eaba18
refactor(ui ~ cli): add `setupPluginNextjs`
SutuSebastian Feb 10, 2025
9ea8b2e
fix build
SutuSebastian Feb 10, 2025
8c0bfef
refine `addImport` and `wrapDefaultExport` + add tests
SutuSebastian Feb 11, 2025
cac5bfc
refactor(ui ~ cli): create parcel plugin and add `setupPluginParcel`
SutuSebastian Feb 11, 2025
831e601
fix(setupPluginParcel): wrong key
SutuSebastian Feb 11, 2025
1587bdf
fix(setupTailwindV3): plugin name
SutuSebastian Feb 11, 2025
4ce178d
fix parcel plugin reporter
SutuSebastian Feb 12, 2025
ed2b196
fix `setupPluginParcel` since plugin registering is very strict (nami…
SutuSebastian Feb 12, 2025
b4c17f5
chore(ui): conditional `tailwind-merge` for tailwind v3 and v4
SutuSebastian Feb 12, 2025
0d9b811
refactor(ui~cli): safer tailwind version check after `ensureTailwind()`
SutuSebastian Feb 12, 2025
5d7e57e
feat(ui): generate `schema.json` on auto-pilot
SutuSebastian Feb 12, 2025
cad4a2f
fix: prettier `importOrder` rules + format files
SutuSebastian Feb 13, 2025
d0c00f9
refactor: `rimraf` -> `git clean`
SutuSebastian Feb 14, 2025
9951057
fix(ui~cli): install packages more safely + properly detect package m…
SutuSebastian Feb 14, 2025
d46b030
fix confusing import resolution due to monorepo
SutuSebastian Feb 14, 2025
a30afbb
add TODO's
SutuSebastian Feb 14, 2025
40eabe3
refactor(ui ~ cli): create modern.js plugin and add `setupPluginModer…
SutuSebastian Feb 14, 2025
3e8ccac
fix: rspack version match
SutuSebastian Feb 14, 2025
5525e02
up turbo
SutuSebastian Feb 14, 2025
b349410
fix: findFiles exclude check false positive
SutuSebastian Feb 14, 2025
7e40e27
simplify exclude
SutuSebastian Feb 16, 2025
ee3cc2f
fix(plugin ~ modernjs): patch `tsconfig.json` due to `moduleResolutio…
SutuSebastian Feb 16, 2025
25a3f7e
fix tailwind plugin return value
SutuSebastian Feb 16, 2025
dc2da10
refactor(ui): switch bundler back to `rollup` (rslib interop driving …
SutuSebastian Feb 17, 2025
9ea4aca
exact imports, easier tree-shaking
SutuSebastian Feb 18, 2025
2cac724
refactor(ui): output `.mjs` -> `.js` since "type": "module"
SutuSebastian Feb 18, 2025
916f685
feat(ui ~ cli): handle `jsonc`
SutuSebastian Feb 18, 2025
26347a1
fix(ui): `generateDts`
SutuSebastian Feb 18, 2025
26864ff
refactor(ui ~ cli): do not fail the `installFlowbiteReact` when no pa…
SutuSebastian Feb 18, 2025
9a8c1cd
refactor(ui~cli): simplify `setupTailwind`
SutuSebastian Feb 18, 2025
66be9ec
refactor(ui~cli): remove relative path from `setupTailwindV3`
SutuSebastian Feb 18, 2025
1582d24
expose more commands
SutuSebastian Feb 18, 2025
cd2cd37
up packages + run format
SutuSebastian Feb 19, 2025
da0f28e
remove CRA
SutuSebastian Mar 1, 2025
4cd7c3b
refactor(ui~cli): update Next.js plugin to use CLI build and dev func…
SutuSebastian Mar 1, 2025
06206fe
refactor(ui~cli): modularize CLI utility functions and add TanStack S…
SutuSebastian Mar 3, 2025
4da3682
feat(ui): add advanced config modification utility for plugins and co…
SutuSebastian Mar 3, 2025
3b7bd17
fix(ui): prevent duplicate values in config array modification
SutuSebastian Mar 3, 2025
16a5872
fix(deps): add `acorn` as dep instead of devDep
SutuSebastian Mar 4, 2025
d95340c
fix(cli): replace acorn with @typescript-eslint/typescript-estree for…
SutuSebastian Mar 4, 2025
5e7b169
fix(ui): update withFlowbiteReact to use async/await for build and de…
SutuSebastian Mar 4, 2025
7839b17
fix(ui): enhance addToConfig to support config objects referenced by …
SutuSebastian Mar 4, 2025
1137f16
fix(ui): support adding values to filtered config arrays
SutuSebastian Mar 4, 2025
5cfa70e
fix(ui): remove async/await from withFlowbiteReact plugin
SutuSebastian Mar 4, 2025
4c238e6
docs(theme): comprehensive rewrite of theme customization documentation
SutuSebastian Mar 5, 2025
590a347
docs(theme): add documentation for ThemeProvider props and prop inher…
SutuSebastian Mar 5, 2025
f0b7b9b
test(ui): add comprehensive test cases for resolveTheme function
SutuSebastian Mar 5, 2025
effe13a
feat(docs): expand integration guides
SutuSebastian Mar 5, 2025
4c332f8
docs(ui): update README with comprehensive CLI and framework integrat…
SutuSebastian Mar 5, 2025
5a6cb06
docs(customize): update prefix configuration guide with detailed Tail…
SutuSebastian Mar 5, 2025
dfa84e3
docs(server-components): enhance documentation with comprehensive RSC…
SutuSebastian Mar 5, 2025
6cae0ac
docs(sidebar): update documentation sidebar with section tags and reo…
SutuSebastian Mar 5, 2025
c466af7
docs(introduction): revamp introduction & quickstart
SutuSebastian Mar 6, 2025
8b3bc14
docs(colors): add comprehensive color customization guide for Flowbit…
SutuSebastian Mar 6, 2025
e3b284c
docs: update component documentation titles to remove "React" prefix
SutuSebastian Mar 6, 2025
0e088d8
docs(cli): comprehensive rewrite of CLI documentation with detailed s…
SutuSebastian Mar 6, 2025
408df08
docs(typography): remove "React" prefix from typography documentation…
SutuSebastian Mar 6, 2025
be00314
docs(theme): add missing createTheme import
SutuSebastian Mar 6, 2025
f23cbd1
feat(ui): add types export path to package.json
SutuSebastian Mar 6, 2025
6685cea
docs(customize): add config documentation
SutuSebastian Mar 6, 2025
7a6ee2e
docs(dark-mode): update dark mode guide
SutuSebastian Mar 6, 2025
dd54d52
docs(config): improve markdown formatting and headings
SutuSebastian Mar 6, 2025
aa3deec
feat(mdx): enhance markdown list rendering with Flowbite React compon…
SutuSebastian Mar 6, 2025
3cc41d3
docs(editor-setup): comprehensive VS Code configuration guide for Flo…
SutuSebastian Mar 6, 2025
0dfb620
style(docs): refactor and improve documentation CSS styles
SutuSebastian Mar 6, 2025
889084a
style(ui): improve link and list item styling
SutuSebastian Mar 6, 2025
7726c51
feat(logos): add new logos for integration guides
SutuSebastian Mar 6, 2025
6088384
feat(integration-guides): add Bun and ESBuild to quickstart guides
SutuSebastian Mar 6, 2025
39aa2f0
docs(cli): add detailed CLI command documentation for Flowbite React
SutuSebastian Mar 6, 2025
5e5ecb2
feat(bun): add Bun plugin and configuration support
SutuSebastian Mar 6, 2025
9653dab
feat(bun): add build config update utility for Bun plugin
SutuSebastian Mar 6, 2025
0f506a9
up packages
SutuSebastian Mar 7, 2025
a407a9c
chore(templates): update CLI template list with new frameworks and re…
SutuSebastian Mar 7, 2025
3eb1273
feat(integration-guides): add Vike to quickstart guides and templates
SutuSebastian Mar 7, 2025
e302d7c
refactor(navbar): replace anchor tag with Next.js Link component for …
SutuSebastian Mar 7, 2025
1128b17
feat(cli): add Vike template to CLI repository list
SutuSebastian Mar 7, 2025
c28f89d
docs(ui): improve schema descriptions with documentation links
SutuSebastian Mar 7, 2025
0af1c5b
refacotr(docs): rename `-js` suffix to `js` (files/content)
SutuSebastian Mar 7, 2025
d494b62
fix(mdx): support hash links in markdown anchor component
SutuSebastian Mar 7, 2025
f8aafab
docs(adonisjs): comprehensive guide for Flowbite React integration
SutuSebastian Mar 7, 2025
c2674b8
docs(astro): comprehensive guide for Flowbite React integration
SutuSebastian Mar 7, 2025
4987a0d
docs(integration-guides): cleanup AdonisJS and Astro setup instructions
SutuSebastian Mar 7, 2025
abcfa71
docs(bun): add comprehensive integration guide for Flowbite React
SutuSebastian Mar 7, 2025
478f64a
docs(farm): add comprehensive integration guide for Flowbite React
SutuSebastian Mar 7, 2025
15adc14
docs(laravel): revamp integration guide with comprehensive setup options
SutuSebastian Mar 7, 2025
32787f2
docs(modernjs): add comprehensive integration guide for Flowbite React
SutuSebastian Mar 8, 2025
9568a6c
docs(nextjs): revamp integration guide with comprehensive setup methods
SutuSebastian Mar 8, 2025
67a8bda
docs(react-router): add comprehensive integration guide for Flowbite …
SutuSebastian Mar 8, 2025
b59bf73
docs(rsbuild): add comprehensive integration guide for Flowbite React
SutuSebastian Mar 8, 2025
dfef9e8
docs(guides): update CLI command and package installation instructions
SutuSebastian Mar 8, 2025
0ea07ef
docs(vite): comprehensive guide with multiple setup methods for Flowb…
SutuSebastian Mar 8, 2025
1dacb93
docs(customize): add comprehensive guide for creating custom components
SutuSebastian Mar 9, 2025
5fecc20
docs(customize): enhance custom component documentation with TypeScri…
SutuSebastian Mar 9, 2025
9e0ca20
refactor(types): optimize imports and restructure theme and props int…
SutuSebastian Mar 9, 2025
9f6c198
docs(tanstack-router): add comprehensive integration guide for Flowbi…
SutuSebastian Mar 9, 2025
18845d6
docs(tanstack-start): add comprehensive integration guide for TanStac…
SutuSebastian Mar 9, 2025
50aa69b
docs(vike): add comprehensive integration guide for Flowbite React
SutuSebastian Mar 10, 2025
fb7e918
docs(react-server): add comprehensive integration guide for Flowbite …
SutuSebastian Mar 10, 2025
9c15313
refactor(ui): replace fast-deep-equal with custom isEqual implementation
SutuSebastian Mar 10, 2025
5df4256
docs(waku): add comprehensive integration guide for Waku framework
SutuSebastian Mar 10, 2025
f5b783f
docs(rspack): add comprehensive integration guide for Flowbite React
SutuSebastian Mar 10, 2025
00e1dd5
docs(remix): update integration guide with comprehensive setup instru…
SutuSebastian Mar 10, 2025
2bac3f0
docs(blitzjs): add comprehensive integration guide for Blitz.js frame…
SutuSebastian Mar 10, 2025
027ca82
docs(redwoodjs): add comprehensive integration guide for Flowbite React
SutuSebastian Mar 10, 2025
4845e0d
refactor(ui): improve Tailwind V4 CSS configuration update logic
SutuSebastian Mar 10, 2025
5f5acb4
style(docs): prevent styling conflicts in code preview and syntax wra…
SutuSebastian Mar 10, 2025
868001a
style(docs): fix inline code styling selector
SutuSebastian Mar 10, 2025
d1cc11d
feat(ui): add copy-to-clipboard functionality for code blocks
SutuSebastian Mar 10, 2025
53a0d76
rename file
SutuSebastian Mar 10, 2025
071a8bf
feat(docs): enhance table of contents with active section tracking
SutuSebastian Mar 10, 2025
f04aaf1
style(docs): refactor MDX and documentation styling
SutuSebastian Mar 11, 2025
8430ecf
feat(cli): add new configuration options for component generation
SutuSebastian Mar 11, 2025
9dfb084
docs(cli): cleanup and explain the `create` command better
SutuSebastian Mar 11, 2025
efff791
refactor(docs): simplify ToC link active state handling
SutuSebastian Mar 11, 2025
147c200
docs(cli): update `create` command documentation
SutuSebastian Mar 11, 2025
fb3d21b
docs: Update component documentation titles (SEO)
SutuSebastian Mar 11, 2025
5bfed65
refactor(cli): simplify component creation path handling
SutuSebastian Mar 11, 2025
d5f6f91
docs: Add Meteor.js integration guide and template support
SutuSebastian Mar 11, 2025
9e020fb
docs(cli): improve `build` and `create` command documentation
SutuSebastian Mar 12, 2025
f2d0b29
docs(cli): formatting
SutuSebastian Mar 12, 2025
3e146fe
feat(docs): add dark mode configuration support
SutuSebastian Mar 13, 2025
4576f23
fix(strip-dark): check for existance of `dark:` instead of `startsWit…
SutuSebastian Mar 13, 2025
8cefd74
fix(build-class-list): ensure unique class names by using Set when st…
SutuSebastian Mar 13, 2025
6a74ca9
docs(cli): remove redundant examples in `create` command
SutuSebastian Mar 13, 2025
c851c27
fix(docs): add missing `dark` in config.mdx
SutuSebastian Mar 13, 2025
825ecaf
docs(cli): add missing Bun support to CLI bundler detection
SutuSebastian Mar 13, 2025
d180f21
docs(guides): update section title for clarity in Astro integration g…
SutuSebastian Mar 13, 2025
d88050f
docs(prefix): add the full config example + highlight
SutuSebastian Mar 13, 2025
1f42daf
docs(dark-mode): add instructions for completely disabling dark mode …
SutuSebastian Mar 13, 2025
59b2243
docs(gatsby): rework integration using the new format
SutuSebastian Mar 13, 2025
7697f7c
docs(gatsby): emphasize Tailwind CSS version compatibility note
SutuSebastian Mar 13, 2025
7a42116
docs(parcel): rework integration guide for Parcel
SutuSebastian Mar 13, 2025
5bea1db
docs(compatibility): add new section on compatibility with Tailwind C…
SutuSebastian Mar 13, 2025
f5c84a9
fix(pre-with-copy): add max height
SutuSebastian Mar 13, 2025
5bd66a8
docs(editor-setup): update ESLint configuration instructions to inclu…
SutuSebastian Mar 13, 2025
91b739a
feat(cli): split CLI into multiple files and refactor:
SutuSebastian Mar 13, 2025
cfcf03d
refactor(cli): reorganize file names
SutuSebastian Mar 14, 2025
7fa9ee2
refactor(cli): expose all CLI endpoints in package.json
SutuSebastian Mar 14, 2025
b560585
chore(cli): simplify success message in initialization log
SutuSebastian Mar 14, 2025
8213cfa
refactor(cli): update version file generation and improve Tailwind se…
SutuSebastian Mar 14, 2025
782c637
docs(cli): enhance CLI documentation with new commands and Tailwind C…
SutuSebastian Mar 14, 2025
3f0c270
fix(tailwind): update import path for Tailwind CSS version to include…
SutuSebastian Mar 14, 2025
d02de9c
refactor(cli): fix `buildClassList` empty string generation
SutuSebastian Mar 14, 2025
b55e951
fix(cli): update example name for `create` prompt
SutuSebastian Mar 14, 2025
9a2733e
feat(cli): add setup for class list configuration during initialization
SutuSebastian Mar 15, 2025
7b77b70
feat(web): generate `llms.txt`
SutuSebastian Mar 15, 2025
4b516fc
feat(cli): add Esbuild template to CLI documentation
SutuSebastian Mar 15, 2025
ea99616
feat(web): enhance `generate-llms` script to process `IntegrationGuid…
SutuSebastian Mar 16, 2025
358f2c9
feat(web): `generate-llms` - parse frontmatter and add it as markdown…
SutuSebastian Mar 16, 2025
1babf73
feat(web): update `generate-llms` script to generate `llms-full.txt`
SutuSebastian Mar 16, 2025
011d580
feat(web): refactor `generate-llms` script, bring back the public/doc…
SutuSebastian Mar 17, 2025
0e98b57
refactor(web): optimize `convertMdxContentToMd` function by removing …
SutuSebastian Mar 17, 2025
a924b85
feat(ui): separate Tailwind CSS plugin default export vs module expor…
SutuSebastian Mar 18, 2025
53c451a
feat(ui): up rs* related packages and fix `rspack` build output with …
SutuSebastian Mar 18, 2025
4d71689
fix lock file
SutuSebastian Mar 18, 2025
f2f2f7b
feat(docs): add comprehensive guide for integrating Flowbite React wi…
SutuSebastian Mar 19, 2025
b85bb74
feat(docs): add guide for integrating Flowbite React with Webpack
SutuSebastian Mar 19, 2025
38659d7
feat(ui): enhance withFlowbiteReact to support config as function (or…
SutuSebastian Mar 19, 2025
ac104d9
chore(docs): update command examples to use 'npx' instead of 'npm' fo…
SutuSebastian Mar 19, 2025
fa5efb6
fix(docs): update CLI command examples to use `@latest`
SutuSebastian Mar 19, 2025
f69d1ad
fix(docs): update CLI command examples to consistently use `npx creat…
SutuSebastian Mar 19, 2025
c26e648
fix(docs): standardize naming for RSBuild and RSPack to Rsbuild and R…
SutuSebastian Mar 19, 2025
c8a360d
add `create-flowbite-react` changeset
SutuSebastian Mar 21, 2025
f962133
fix(docs): update template URLs in CLI README to use markdown link fo…
SutuSebastian Mar 21, 2025
030fc9f
add `flowbite-react` changeset
SutuSebastian Mar 21, 2025
6784eff
update `flowbite-react` changeset with more doc links
SutuSebastian Mar 21, 2025
391c4aa
fix(docs): update AdonisJS guide to clarify Tailwind CSS installation…
SutuSebastian Mar 21, 2025
bbf47c2
fix(docs): remove redundant inline comments
SutuSebastian Mar 22, 2025
ce75b6a
fix(docs): add TypeScript type annotation for PostCSS configuration i…
SutuSebastian Mar 22, 2025
fa3a1dd
fix(docs): add ProvidePlugin configuration to webpack guide for React
SutuSebastian Mar 22, 2025
1c9f7a0
refactor(cli): allow multiple template variant/version
SutuSebastian Mar 23, 2025
43593bf
fix(docs): update CLI template usage to use shorthand flag for all gu…
SutuSebastian Mar 23, 2025
d29cc02
feat(docs): integrate remark-gfm for enhanced markdown support and ad…
SutuSebastian Mar 23, 2025
bcea0dd
fix(docs): rework CLI documentation by using table data
SutuSebastian Mar 23, 2025
55cfe7f
fix(docs): remove font medium class from TableCell component in MDX
SutuSebastian Mar 23, 2025
91ace73
fix(docs): correct code block line highlights in AdonisJS, React Rout…
SutuSebastian Mar 23, 2025
41c8eb5
fix(theme): update Checkbox theme styles for dark mode support
SutuSebastian Mar 24, 2025
356a0a7
refactor(theme): enhance theme mode handling with new initialization …
SutuSebastian Mar 24, 2025
07573e9
fix(theme): improve theme mode resolution logic for better handling o…
SutuSebastian Mar 24, 2025
8f2f765
fix(theme): refine theme mode resolution to validate stored values an…
SutuSebastian Mar 24, 2025
b51da3f
fix(theme): update theme mode handling to default to 'auto' and valid…
SutuSebastian Mar 24, 2025
af5c70b
fix(theme): enhance theme mode handling by validating storage values …
SutuSebastian Mar 24, 2025
863b474
fix(theme): add client check in theme mode computation to ensure defa…
SutuSebastian Mar 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["storybook", "web"]
"ignore": ["@/storybook", "@/web"]
}
21 changes: 21 additions & 0 deletions .changeset/huge-parrots-fail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
"create-flowbite-react": minor
---

- Added new project templates:

- `blitzjs` - Blitz.js
- `bun` - Bun
- `esbuild` - ESBuild
- `farm` - Farm
- `meteorjs` - Meteor.js
- `modernjs` - Modern.js
- `react-router` - React Router
- `react-server` - React Server
- `rsbuild` - Rsbuild
- `rspack` - Rspack
- `tanstack-router` - TanStack Router
- `tanstack-start` - TanStack Start
- `vike` - Vike
- `waku` - Waku
- `webpack` - Webpack
346 changes: 346 additions & 0 deletions .changeset/sad-papers-crash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,346 @@
---
"flowbite-react": minor
---

## Summary

This release brings massive improvements to Flowbite React's capabilities, introducing the first automatic Tailwind CSS class generation system and native support for both Tailwind CSS v3 and v4. Key highlights include:

- **Automatic Class Generation**: First UI library to automatically detect and generate Tailwind CSS classes
- **Tailwind CSS v4 Support**: Native compatibility with both Tailwind CSS v3 and v4
- **Comprehensive Prefix Support**: Complete system for customizing class prefixes
- **Enhanced CLI Tools**: New project initialization and component creation commands
- **Expanded Framework Support**: 15 new framework integration guides and templates

## New Engine

### Automatic Class Generation

- First UI library to implement automatic Tailwind CSS class detection
- Only includes styles for components you actually import and use
- Works like tree-shaking but for Tailwind CSS classes
- Real-time class list updates during development
- Optimized production builds with minimal CSS output

Learn more about class generation in our [CLI documentation](https://flowbite-react.com/docs/getting-started/cli#cli-commands).

### One-Command Setup

```bash
npx flowbite-react@latest init
```

This single command:

- Detects your project's environment
- Installs necessary dependencies
- Configures Tailwind CSS
- Sets up the appropriate bundler plugin
- Creates optimal VSCode configuration
- Initializes the `.flowbite-react` directory

See our [quickstart guide](https://flowbite-react.com/docs/getting-started/quickstart) for detailed setup instructions.

### Smart Version Handling

- Automatic detection of Tailwind CSS version (v3 or v4)
- No manual configuration needed
- Adapts class generation to version-specific syntax
- Ensures compatibility with both versions simultaneously

Read more about version compatibility in our [compatibility guide](https://flowbite-react.com/docs/getting-started/compatibility).

## Major Features

### 1. Enhanced Integration Support

- Added new framework integration guides and templates:
- Blitz.js
- Bun
- ESBuild
- Farm
- Meteor.js
- Modern.js
- React Router
- React Server
- Rsbuild
- Rspack
- TanStack Router
- TanStack Start
- Vike
- Waku
- Webpack

Explore all integration guides in our [framework guides section](https://flowbite-react.com/docs/guides).

### 2. Prefix Support System

- Added support for customizing Tailwind CSS class prefixes
- Different configuration options for Tailwind CSS v3 and v4:

```js
// Tailwind CSS v3
/** @type {import('tailwindcss').Config} */
export default {
prefix: "tw-",
// ... rest of your config
};

// Tailwind CSS v4
@import "tailwindcss" prefix(tw);
```

- Prefix configuration in `.flowbite-react/config.json`:

```json
{
"$schema": "https://unpkg.com/flowbite-react/schema.json",
"prefix": "tw"
}
```

- ThemeConfig component support for prefix configuration:

```tsx
import { ThemeConfig } from "flowbite-react";

export default function App() {
return (
<>
<ThemeConfig prefix="tw" />
{/* ... */}
</>
);
}
```

Learn more about prefix configuration in our [prefix documentation](https://flowbite-react.com/docs/customize/prefix).

### 3. CLI Enhancements

- New project initialization command:

```bash
npx flowbite-react@latest init
```

Learn more about CLI features in our [CLI documentation](https://flowbite-react.com/docs/getting-started/cli).

### 4. Tailwind CSS Version Compatibility

- Automatic version detection between Tailwind CSS v3 and v4
- Seamless support for both versions without manual configuration
- Improved class merging and prefix handling for each version

### 5. Configuration System

- New `.flowbite-react/config.json` for centralized configuration (automatically generated):

```json
{
"$schema": "https://unpkg.com/flowbite-react/schema.json",
"components": [],
"dark": true,
"path": "src/components",
"prefix": "",
"rsc": true,
"tsx": true
}
```

Learn more about configuration options in our [config documentation](https://flowbite-react.com/docs/customize/config).

### 6. Custom Components

#### Component Creation

- Added CLI command for component generation:

```bash
npx flowbite-react@latest create my-component
```

- Automatic setup based on `.flowbite-react/config.json` configuration:
- Component path location
- React Server Components support
- TypeScript/JavaScript selection

#### Theme System Integration

- Full theming system support for custom components:
- Global theme inheritance
- Component-level overrides
- Provider-level props
- Theme clearing and applying
- Type safety with TypeScript

## Technical Improvements

### Build System

- Improved bundler compatibility and performance
- Added support for tree-shaking
- Enhanced TypeScript configuration
- Optimized production builds

### Component Updates

- Improved component primitives
- Enhanced type safety across components
- Added extensive test coverage

### Developer Experience

- Added comprehensive TypeScript types
- Improved VSCode integration
- Enhanced debugging capabilities

### Exports and Package Structure

- All components, hooks, and utilities are now exported from the root package
- Every internal part and primitive is exposed for advanced customization
- Improved module resolution with better tree-shaking support
- Direct access to component parts without compound components
- TypeScript types for all exports are available

## Breaking Changes

### Component Changes

- Deprecated compound components in favor of simpler component primitives:

```tsx
// Before - Compound components
<Accordion>
<Accordion.Panel>
<Accordion.Title>Title 1</Accordion.Title>
<Accordion.Content>Content 1</Accordion.Content>
</Accordion.Panel>
</Accordion>

// After - Simple primitives
<AccordionRoot>
<AccordionItem>
<AccordionTitle>Title 1</AccordionTitle>
<AccordionContent>Content 1</AccordionContent>
</AccordionItem>
</AccordionRoot>
```

- Removed `helperText` prop from all form components in favor of using the `HelperText` component directly
- Deprecated `href` prop in `Badge` component
- Updated `Button` component to use new color system:
- Added `default` and `alternative` colors
- Changed default color from `blue` to `default`
- Modified hover states to use primary colors
- Moved theme size styles from inner span to root button element

### Theme System

- Changed theme application behavior:
- Enhanced `ThemeProvider` with deep merging of themes
- Added support for granular theme resets using `clearTheme`
- Improved theme resolution with better performance
- Updated color schemes to use primary colors consistently
- Modified component color schemes:
- Updated default colors to use `primary` instead of specific colors (e.g., `cyan`)
- Standardized color naming across components
- Enhanced color inheritance and theme customization

Learn more about theming in our [theme documentation](https://flowbite-react.com/docs/customize/theme).

### Package and Build System

- Switched package type to `module`
- Added new entry points for better module resolution
- Removed `react-icons` dependency in favor of custom icon components
- Added support for [Yarn Plug'n'Play (PnP)](https://yarnpkg.com/features/pnp):

### API Changes

- Deprecated `<Flowbite>` component in favor of `ThemeProvider`
- Removed `getStore()` export and limited to finite actions and getters
- Added `forwardRef` to almost all components
- Removed redundant `Flowbite` prefix from type names

## Migration Guide

1. Update to the latest version:

```bash
npm install flowbite-react@latest
```

2. Initialize the new engine:

```bash
npx flowbite-react@latest init
```

This will:

- Set up the `.flowbite-react` directory
- Configure your bundler
- Update VSCode settings
- Create necessary configuration files

3. Clean up your Tailwind configuration:

```diff
- import flowbite from 'flowbite-react/tailwind';

/** @type {import('tailwindcss').Config} */
export default {
content: [
- flowbite.content(),
+ // The init command will add the correct content paths
],
plugins: [
- flowbite.plugin(),
+ // The init command will add the correct plugins
],
}
```

## Fixed Issues and Pull Requests

### Resolved Issues

- [#339](https://github.com/themesberg/flowbite-react/issues/339)
- [#1197](https://github.com/themesberg/flowbite-react/issues/1197)
- [#1286](https://github.com/themesberg/flowbite-react/issues/1286)
- [#1389](https://github.com/themesberg/flowbite-react/issues/1389)
- [#1447](https://github.com/themesberg/flowbite-react/issues/1447)
- [#1454](https://github.com/themesberg/flowbite-react/issues/1454)
- [#1473](https://github.com/themesberg/flowbite-react/issues/1473)
- [#1489](https://github.com/themesberg/flowbite-react/issues/1489)
- [#1508](https://github.com/themesberg/flowbite-react/issues/1508)
- [#1523](https://github.com/themesberg/flowbite-react/issues/1523)

### Resolved Pull Requests

- [#1155](https://github.com/themesberg/flowbite-react/pull/1155)

## Technical Requirements

- Node.js 16+
- Tailwind CSS v3 or v4
- React 18+

For detailed documentation on all new features and integrations, visit:

## Core Documentation

- [Quickstart (Updated)](https://flowbite-react.com/docs/getting-started/quickstart)
- [CLI (Updated)](https://flowbite-react.com/docs/getting-started/cli)
- [Compatibility (New)](https://flowbite-react.com/docs/getting-started/compatibility)
- [Editor Setup (Updated)](https://flowbite-react.com/docs/getting-started/editor-setup)
- [Server Components (Updated)](https://flowbite-react.com/docs/getting-started/server-components)

## Customization

- [Theme (Updated)](https://flowbite-react.com/docs/customize/theme)
- [Config (New)](https://flowbite-react.com/docs/customize/config)
- [Prefix (New)](https://flowbite-react.com/docs/customize/prefix)
- [Colors (New)](https://flowbite-react.com/docs/customize/colors)
- [Custom Components (New)](https://flowbite-react.com/docs/customize/custom-components)
4 changes: 2 additions & 2 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ runs:
using: composite
steps:
- name: Setup Bun
uses: oven-sh/setup-bun@v1
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.1.21
bun-version: 1.2.2

- name: Setup Node
uses: actions/setup-node@v4
Expand Down
Binary file removed .github/assets/flowbite-react-github.png
Binary file not shown.
Loading