Flyonui
概览
什么是 FlyonUI?
FlyonUI 是一个专为 Tailwind CSS 设计的开源组件库,提供了一系列预设计的可定制组件,帮助开发者快速高效地构建用户界面。通过语义类,FlyonUI 简化了创建响应式和视觉吸引力强的网页应用程序的过程。
FlyonUI 的特点
- 开源:FlyonUI 完全免费使用,允许开发者根据需要修改和分发代码。
- Tailwind CSS 集成:基于 Tailwind CSS 构建,利用实用优先的 CSS 原则提供灵活且可定制的设计框架。
- 响应式设计:所有组件都设计为响应式,确保在任何设备上(从移动设备到桌面)都能看起来很棒。
- 语义类:使用语义类增强可访问性并改善 HTML 的整体结构。
- 易于定制:开发者可以轻松定制组件以满足特定需求,而无需大量编码。
- 完整文档:FlyonUI 附带详细文档,使开发者易于理解如何实现和定制组件。
如何使用 FlyonUI
-
安装:首先在项目中安装 Tailwind CSS。然后,可以通过将其添加到项目依赖中来包含 FlyonUI。
npm install flyonui
-
导入组件:将所需的组件导入到项目中。例如,可以直接在 HTML 或 JavaScript 文件中导入按钮、模态框或表单。
import { Button } from 'flyonui';
-
定制:使用 Tailwind CSS 类根据设计要求定制组件。您可以轻松调整颜色、大小和其他样式。
-
构建和部署:一旦定制了组件,构建项目并将其部署到您首选的托管服务。
常见问题解答
FlyonUI 是免费使用的吗?
是的,FlyonUI 是一个开源库,这意味着它是免费使用、修改和分发的。
我需要了解 Tailwind CSS 才能使用 FlyonUI 吗?
虽然不是强制性的,但对 Tailwind CSS 有基本了解将帮助您充分利用 FlyonUI 的组件和定制选项。
我可以为 FlyonUI 贡献吗?
当然可以!欢迎贡献。您可以通过报告问题、建议功能或在 GitHub 仓库提交拉取请求来贡献。
我在哪里可以找到 FlyonUI 的文档?
FlyonUI 的文档可在官方网站 flyonui.com 上找到,您可以在这里找到指南、示例和 API 参考。
FlyonUI 提供哪些类型的组件?
FlyonUI 提供广泛的组件,包括按钮、表单、模态框、警报等,所有组件都设计为易于定制和响应式。
详情
FlyonUI is the easiest, free and open-source Tailwind CSS component library with semantic classes. 🚀
<p> <a href="https://www.npmjs.com/package/flyonui"><img src="https://img.shields.io/npm/dt/flyonui.svg" alt="Total Downloads on NPM"></a> <a href="https://github.com/themeselection/flyonui/releases"><img src="https://img.shields.io/npm/v/flyonui.svg" alt="Latest Version"></a> <a href="https://flyonui.com/docs/getting-started/license/"><img src="https://img.shields.io/badge/license-MIT-blue" alt="MIT License"></a> <a href="https://x.com/flyonui" target="_blank"> <img alt="Twitter Follow" src="https://img.shields.io/twitter/follow/flyonui"> </a> </p> <a href="https://themeselection.com" target="_blank"> <img src="https://cdn.themeselection.com/ts-assets/themeselection/logo/logo.png" alt="themeselection logo" height="30" /> </a>Created by ThemeSelection, with a commitment to empowering the open-source community.
Table of Contents 📋
- Table of Contents 📋
- Overview 🌏
- Why should I use FlyonUI? 💡
- Features ✨
- Documentation 📚
- Framework guides 🛠️
- Getting Started 🏁
- Available Components 🧩
- Community 🤝
- Contributing 📝
- Credits 🤘
- License ©
- Useful Links 🎁
Overview 🌏
FlyonUI is designed to combine the best of both worlds: the aesthetic appeal of semantic classes and the powerful functionality of JS plugins.
Under the hood, it uses the strengths of:
- Tailwind CSS A utility-first CSS framework that helps you build beautiful websites with ease.
- daisyUI adds component semantic class names to Tailwind CSS so you can make beautiful websites faster, easier and Maintainable.
- Preline JavaScript headless & fully unstyled Tailwind plugins for accessible, responsive UI. Enhance experiences with animations, transitions, and more.
Why should I use FlyonUI? 💡
Using Tailwind CSS alone may lead to cluttered HTML with numerous utility classes, which can be a nightmare to maintain.
Apart from that Tailwind CSS or daisyUI doesn’t provide any interactive headless JavaScript components like accordion, overlay, dropdowns, etc…
This is where FlyonUI shines.✨
FlyonUI Tailwind CSS Components Library brings together the beauty of semantic classes and the interactive headless JavaScript plugins, offering you a powerful toolkit to build stunning, interactive user interfaces with ease.
- Beautiful and Semantic Styling: Utilize comprehensive CSS components with semantic class names for a clean and readable codebase.
- Interactive and Dynamic Features: Incorporate Headless JavaScript plugins for ex: Accordion, Dropdown, Overlay etc… to add interactivity and dynamic behavior to your UI components.
- Efficiency and Productivity: Enjoy a faster and more efficient development process by combining the strengths of semantic classes and JS plugins.
- Maintainable and Scalable: Keep your projects maintainable and scalable with a consistent coding approach and powerful JS plugins.
Features ✨
- 800+ Free Components Examples: Hundreds of component examples for all your WebApp needs that meet accessibility criteria.
- Universal Framework Compatibility: Fully compatible wherever Tailwind CSS is in action, from React to Vue and beyond.
- Unlimited Themes: Customize your app’s look and feel with FlyonUI’s theming capabilities. Refer to the theme section for more details.
- Unstyled & Accessible Plugins: Seamlessly add unstyled, accessible plugins for functionality without sacrificing design.
- Responsive & RTL support : Built with responsiveness in mind, ensuring your app looks great on all devices with RTL language support.
- Free Forever: Completely free forever, open-source, and built for the community.
Documentation 📚
For comprehensive documentation, please visit flyonui.com.
Framework guides 🛠️
<table> <tr> <td width="20%" align="center">HTML</td> <td width="20%" align="center">React</td> <td width="20%" align="center">Nextjs</td> <td width="20%" align="center">Vue</td> <td width="20%" align="center">Nuxtjs</td> </tr> <tr> <td width="20%" align="center"> <a href="https://flyonui.com/docs/getting-started/quick-start/"> <img src="https://cdn.flyonui.com/fy-assets/icons/html-icon.png" alt="Html logo" width="70" /> </a> </td> <td width="20%" align="center"> <a href="https://flyonui.com/framework-integrations/react/"> <img src="https://cdn.flyonui.com/fy-assets/icons/react-icon.png" alt="React logo" width="70" /> </a> </td> <td width="20%" align="center"> <a href="https://flyonui.com/framework-integrations/nextjs/"> <img src="https://cdn.flyonui.com/fy-assets/icons/nextjs-icon.png" alt="Nextjs logo" width="70" /> </a> </td> <td width="20%" align="center"> <a href="https://flyonui.com/framework-integrations/vuejs/"> <img src="https://cdn.flyonui.com/fy-assets/icons/vue-vite-icon.png" alt="Vue logo" width="70" /> </a> </td> <td width="20%" align="center"> <a href="https://flyonui.com/framework-integrations/nuxtjs/"> <img src="https://cdn.flyonui.com/fy-assets/icons/nuxt-icon.png" alt="Nuxtjs logo" width="70" /> </a> </td> </tr> <tr> <td width="20%" align="center">Angular</td> <td width="20%" align="center">Svelte</td> <td width="20%" align="center">Remix</td> <td width="20%" align="center">Astro</td> <td width="20%" align="center">Qwik</td> </tr> <tr> <td width="20%" align="center"> <a href="https://flyonui.com/framework-integrations/angular/"> <img src="https://cdn.flyonui.com/fy-assets/icons/angular-icon.png" alt="Angular logo" width="70" /> </a> </td> <td width="20%" align="center"> <a href="https://flyonui.com/framework-integrations/svelte/"> <img src="https://cdn.flyonui.com/fy-assets/icons/svelte-icon.png" alt="Svelte logo" width="70" /> </a> </td> <td width="20%" align="center"> <a href="https://flyonui.com/framework-integrations/remix/"> <img src="https://cdn.flyonui.com/fy-assets/icons/remix-icon.png" alt="Remix logo" width="70" /> </a> </td> <td width="20%" align="center"> <a href="https://flyonui.com/framework-integrations/astro/"> <img src="https://cdn.flyonui.com/fy-assets/icons/astro-icon.png" alt="Astro logo" width="70" /> </a> </td> <td width="20%" align="center"> <a href="https://flyonui.com/framework-integrations/qwik/"> <img src="https://cdn.flyonui.com/fy-assets/icons/qwik-icon.png" alt="Qwik logo" width="70" /> </a> </td> </tr> <tr> <td width="20%" align="center">SolidJS</td> <td width="20%" align="center">Django</td> <td width="20%" align="center">Flask</td> <td width="20%" align="center">Laravel</td> <td width="20%" align="center">11ty</td> </tr> <tr> <td width="20%" align="center"> <a href="https://flyonui.com/framework-integrations/solidjs/"> <img src="https://cdn.flyonui.com/fy-assets/icons/solidjs-icon.png" alt="Django logo" width="70" /> </a> </td> <td width="20%" align="center"> <a href="https://flyonui.com/framework-integrations/django/"> <img src="https://cdn.flyonui.com/fy-assets/icons/django-icon.png" alt="Django logo" width="70" /> </a> </td> <td width="20%" align="center"> <a href="https://flyonui.com/framework-integrations/flask/"> <img src="https://cdn.flyonui.com/fy-assets/icons/flask-icon.png" alt="Flask logo" width="70" /> </a> </td> <td width="20%" align="center"> <a href="https://flyonui.com/framework-integrations/laravel/"> <img src="https://cdn.flyonui.com/fy-assets/icons/laravel-icon.png" alt="Laravel logo" width="70" /> </a> </td> <td width="20%" align="center"> <a href="https://flyonui.com/framework-integrations/eleventy/"> <img src="https://cdn.flyonui.com/fy-assets/icons/11ty-icon.png" alt="11ty logo" width="70" /> </a> </td> </tr> </table>Getting Started 🏁
FlyonUI can be easily integrated into any existing Tailwind CSS project.
Installation via NPM
To use FlyonUI, ensure that you have Node.js and Tailwind CSS installed.
-
Install FlyonUI as a dependency:
npm install flyonui
-
Include FlyonUI as a plugin in your
app.css
file:@import "tailwindcss"; @plugin "flyonui"; @import "./node_modules/flyonui/variants.css"; // Require only if you want to use FlyonUI JS component @source "./node_modules/flyonui/dist/index.js"; // Require only if you want to use FlyonUI JS component
This ensures that FlyonUI's styling is applied correctly throughout your project.
If you want to include specific js component:
@source "./node_modules/flyonui/dist/accordion.js";
-
For enabling interactive components such as accordion, dropdown, modal etc... , include FlyonUI's JavaScript in your HTML file, just before the closing
</body>
tag:<script src="../node_modules/flyonui/flyonui.js"></script>
For a single component, use the specific path:
<script src="../node_modules/flyonui/dist/accordion.js"></script>
RTL (Right-to-Left) Language Support
FlyonUI components offer native RTL support. Simply add the dir="rtl"
attribute to your HTML element to enable this feature.
Star History 🌟
Available Components 🧩
FlyonUI provides a robust library of UI components built with Tailwind CSS utility classes, enabling fast and efficient web development. Our library includes 80+ components, from basic elements like buttons and cards to more complex third-party integrations.
Component Examples
<table> <tr> <td width="33.3333%">Accordion</td> <td width="33.3333%">Alert</td> <td width="33.3333%">Apex Charts</td> </tr> <tr> <td width="33.3333%" align="center"> <a href="https://flyonui.com/docs/components/accordion/"> <img alt="Tailwind CSS Accordion" src="https://cdn.flyonui.com/fy-assets/components-svg/components/accordion.svg"> </a> </td> <td width="33.3333%" align="center"> <a href="https://flyonui.com/docs/components/alert/"> <img alt="Tailwind CSS Alert" src="https://cdn.flyonui.com/fy-assets/components-svg/components/alert.svg"> </a> </td> <td width="33.3333%" align="center"> <a href="https://flyonui.com/docs/third-party-plugins/apex-charts/"> <img alt="Tailwind CSS Apex Charts" src="https://cdn.flyonui.com/fy-assets/components-svg/third-party-plugins/apex-charts.svg"> </a> </td> </tr> <tr> <td width="33.3333%">Button</td> <td width="33.3333%">Card</td> <td width="33.3333%">Checkbox</td> </tr> <tr> <td width="33.3333%" align="center"> <a href="https://flyonui.com/docs/components/button/"> <img alt="Tailwind CSS Button" src="https://cdn.flyonui.com/fy-assets/components-svg/components/button.svg"> </a> </td> <td width="33.3333%" align="center"> <a href="https://flyonui.com/docs/components/card/"> <img alt="Tailwind CSS Card" src="https://cdn.flyonui.com/fy-assets/components-svg/components/card.svg"> </a> </td> <td width="33.3333%" align="center"> <a href="https://flyonui.com/docs/components/checkbox/"> <img alt="Tailwind CSS Checkbox" src="https://cdn.flyonui.com/fy-assets/components-svg/form-elements/checkbox.svg"> </a> </td> </tr> <tr> <td width="33.3333%">Dropdown</td> <td width="33.3333%">Input</td> <td width="33.3333%">Modal</td> </tr> <tr> <td width="33.3333%" align="center"> <a href="https://flyonui.com/docs/overlays/dropdown/"> <img alt="Tailwind CSS Dropdown" src="https://cdn.flyonui.com/fy-assets/components-svg/overlays/dropdown.svg"> </a> </td> <td width="33.3333%" align="center"> <a href="https://flyonui.com/docs/forms/input/"> <img alt="Tailwind CSS Input" src="https://cdn.flyonui.com/fy-assets/components-svg/form-elements/input.svg"> </a> </td> <td width="33.3333%" align="center"> <a href="https://flyonui.com/docs/overlays/modal/"> <img alt="Tailwind CSS Modal" src="https://cdn.flyonui.com/fy-assets/components-svg/overlays/modal.svg"> </a> </td> </tr> <tr> <td width="33.3333%">Navbar</td> <td width="33.3333%">Tabs & Pills</td> <td width="33.3333%">Tooltip</td> </tr> <tr> <td width="33.3333%" align="center"> <a href="https://flyonui.com/docs/navigations/navbar/"> <img alt="Tailwind CSS Navbar" src="https://cdn.flyonui.com/fy-assets/components-svg/navigations/navbar.svg"> </a> </td> <td width="33.3333%" align="center"> <a href="https://flyonui.com/docs/navigations/tabs-pills/"> <img alt="Tailwind CSS Tabs & Pills" src="https://cdn.flyonui.com/fy-assets/components-svg/navigations/tabs-pills.svg"> </a> </td> <td width="33.3333%" align="center"> <a href="https://flyonui.com/docs/overlays/tooltip/"> <img alt="Tailwind CSS Tooltip" src="https://cdn.flyonui.com/fy-assets/components-svg/overlays/tooltip.svg"> </a> </td> </tr> </table>Community 🤝
Join the FlyonUI community to discuss the library, ask questions, and share your experiences:
Contributing 📝
Fix a bug, or add a new feature. You can make a pull request and see your code in the next version of FlyonUI.
Before adding a pull request, please see the contributing guidelines.
Credits 🤘
We are grateful for the contributions of the open-source community, particularly:
These projects form the backbone of FlyonUI, allowing us to build a powerful and user-friendly UI kit.
License ©
- Copyright © ThemeSelection
- Licensed under MIT
- FlyonUI is open-source software licensed under the MIT License.You can use our free items for personal as well as commercial purposes.
Useful Links 🎁
Server配置
{
"mcpServers": {
"flyonui-mcp": {
"command": "npx",
"args": [
"-y",
"flyonui-mcp",
"API_KEY="YOUR_API_KEY""
]
}
}
}