CUI
CUI is a tailwind components Library Open source
Introduction
C-UI is a component library built with Tailwind CSS and TypeScript for React and Next.js applications. It focuses on consistency, reusability, clarity, simplicity and adaptability to provide an excellent user and developer experience.
Principles of design
- Consistency: Maintain a consistent appearance and behavior across all components.
- Reuse: Design components in a modular way to facilitate their reuse in different parts.
- Clarity and Simplicity: Prioritize simplicity and clarity in design to improve understanding and usability.
- Adaptability: Design components that can adapt to different devices and screen sizes.
- Accessibility: Ensure all components are accessible per WCAG guidelines.
Facility
Previous requirements
- Node.js (>=12.x)
- npm or yarn
- React (>=17.x)
- Next.js (>=10.x)
Installation
First, install the package using npm:
npm install cui-reactSecond, add this to tailwind.config.ts
content: [
"./node_modules/cui-react/dist/**/*.{js,ts,jsx,tsx}",
], Third, import in your React/Next project
import { Button } from "cui-react";Fourth, Enjoy C-UI
Github
https://github.com/nitdraig/cui-react Contribution
Contributions are welcome! Please follow the steps below to contribute to the project.
Clone the Repository
git clone https://github.com/nitdraig/cui-react.git
cd cui-reactInstallation of Dependencies
npm installProject Structure
cui-react/
βββdocs/
βββnpm/
ββ dist/
βββ src/
β |
| βββ ui/
| | βββ components/
| | |
β β βββ Button/
β β β βββ Button.tsx
β β β βββ index.ts
β β β
β β βββ Input/
β β βββ Input.tsx
β β βββ index.ts
β β
β βββ index.ts
βββ README.md
βββ postcss.config.js
βββ tailwind.config.js
βββ package.json
βββ tsconfig.jsonLicense
This project is licensed under the MIT License.