@freshclinics/ui
v0.0.47
Published
Welcome to Fresh UI, a design system crafted for FreshClinics to help build consistent, visually appealing, and user-friendly interfaces.
Downloads
216
Keywords
Readme
Fresh UI - Design System
Welcome to Fresh UI, a design system crafted for FreshClinics to help build consistent, visually appealing, and user-friendly interfaces.
Table of Contents
- Introduction
- Installation
- Getting Started
- Available Components
- Documentation
- Contributing
- Publishing to NPM
Introduction
Fresh UI is a comprehensive collection of atomic and reusable components and style guidelines, designed to provide consistency and scalability across FreshClinics applications. This design system simplifies UI development, ensuring a cohesive and intuitive user experience across all projects.
Installation
To install Fresh UI, you can use either npm or yarn:
npm install @freshclinics/ui
or
yarn add @freshclinics/ui
Getting Started
After installing Fresh UI, import the components you need and start integrating them into your app:
import { Button, Card } from '@freshclinics/ui';
const App = () => (
<div>
<Card>
<Button>Click Me</Button>
</Card>
</div>
);
Each component comes with its own set of customizable props, making it easy to adjust functionality and styling according to your application’s requirements.
Available Components
Fresh UI includes a wide range of components to cover most common UI needs, including:
- Buttons - for primary and secondary actions
- Cards - for displaying grouped content
- Modals - for dialogs and overlays
- Forms - with consistent input styling
- Alerts - for notifications and status messages
- And more...
For a comprehensive list of components, their APIs, and examples, check the Fresh UI documentation.
Documentation
Visit the Fresh UI Documentation for detailed information on each component, including examples, usage guidelines, and best practices.
Contributing
We welcome contributions to improve Fresh UI! To get started:
- Clone the repository.
- Install dependencies with
npm install
oryarn
. - Create a new branch for your feature or bug fix.
- Make your changes and ensure they are properly documented.
- Submit a pull request for review.
Publishing to NPM
To publish a new version of Fresh UI, follow these steps:
Update the version number in
package.json
as appropriate.Run the build script to compile the package:
npm run build
Log in to your NPM account:
npm login
Publish the package to NPM:
npm publish
You can increment the version as needed:
npm version patch # or minor/major