React + Vite + Flowbite React + TailwindCSS + Chart.js, with HMR and some ESLint rules.
https://flowbite-react-tailwindcss-vite-dashboard.vercel.app/
git clone [email protected]:talpitoo/flowbite-react-tailwindcss-vite-dashboard.git
cd flowbite-react-tailwindcss-vite-dashboard
npm install
npm run dev
npm run build
The site will be available at http://localhost:5173/
during development.
https://react-icons.github.io/react-icons/icons/hi/
Please note that in case you are using a larger icon (16px) than the button text (14px), offset its margins so that the icon won't make the button height larger, e.g.
<Button size="sm">
<HiQuestionMarkCircle className="-my-px mr-2 size-4" />
Open Modal
</Button>
We are using Flowbite React components with this theming strategy: https://flowbite-react.com/docs/customize/theme#option-2-create-a-custom-theme. In case that is not enough, add additional/inline class names into the markup:
src/themes/primeRevenueFlowbiteTheme.js
or just the parts you want to override e.g.button: {
color: {
"success": "text-white bg-accent-green-two",
"prime-revenue-cta": "text-white bg-accent-blue-one",
},
},
<Button color="prime-revenue-cta">CTA</Button>
or the overriden <Button color="success">Save</Button>
.<Button color="prime-revenue-cta" className="px-8 py-4">CTA</Button>
.Currently, two official plugins are available:
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
parserOptions
property like this:export default {
// other rules...
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
project: ["./tsconfig.json", "./tsconfig.node.json"],
tsconfigRootDir: __dirname,
},
};
plugin:react/recommended
& plugin:react/jsx-runtime
to the extends
list