Fadgram UI is a Tailwind CSS plugin that provides a set of custom utility classes to enhance your web development experience. This plugin is designed to work seamlessly with Tailwind CSS, allowing you to quickly and easily style your web applications. ![F
npm install fadgram-uiFadgram UI is a Tailwind CSS plugin that provides a set of custom utility classes to enhance your web development experience. This plugin is designed to work seamlessly with Tailwind CSS, allowing you to quickly and easily style your web applications.
!FadgramUI
this plugin requires Tailwindcss v4
if your project uses Tailwindcss v3 you must install our plugin compatible with tailwindcss v3 Fadgram UI 3 Documentation.
For components and detailed documentation and examples, please visit the Fadgram UI 4 Documentation.
To install Fadgram UI, you need to have Tailwind CSS already set up in your project. If you haven't set up Tailwind CSS yet, follow the official installation guide.
Once Tailwind CSS is set up, you can install Fadgram UI via:
- npm
``bash`
npm i fadgram-ui
- pnpm
`bash`
pnpm add -D fadgram-ui
To use Fadgram UI in your project, you need to import it in your main style file like: (main.css or app.css) or any main style file after import tailwindcss.
`css`
@import "tailwindcss";
@import "fadgram-ui";
Add javascript helpers to your main javascript file (main.js) or (app.js).
javascript helpers required by some components like (dropdown, modal, tooltip, offcanvas, tabs, toast ...etc);
`javascript`
import "fadgram-ui";
Initialize all components:
`javascript`
import { initFadgramUI } from "fadgram-ui";
document.addEventListener("DOMContentLoaded", () => {
initFadgramUI();
});
Initialize specific components:
`javascript``
import { Dropdown, Toast } from "fadgram-ui/js";
document.addEventListener("DOMContentLoaded", () => {
Dropdown.init();
Toast.init();
});
We welcome contributions to Fadgram UI! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request on our GitHub repository.
Fadgram UI is open-source software licensed under the MIT license.
We would like to thank the Tailwind CSS team for their amazing work on the framework that makes plugins like Fadgram UI possible.