Pluto UI :rocket:
Pluto UI is a comprehensive React UI component library designed specifically for ecommerce websites. Its purpose is to enhance the user experience of online stores by providing a wide range of reusable and customizable UI elements.
[![GitHub issues](https://img.shields.io/github/issues/purnima143/Pluto-UI?style=plastic)](https://github.com/purnima143/Pluto-UI/issues)
[![GitHub pull requests](https://img.shields.io/github/issues-pr/purnima143/Pluto-UI?style=plastic)](https://github.com/purnima143/Pluto-UI/pulls)
[![GitHub](https://img.shields.io/github/license/purnima143/Pluto-UI?style=plastic)](https://github.com/purnima143/Pluto-UI/blob/master/LICENSE)
[![GitHub forks](https://img.shields.io/github/forks/purnima143/Pluto-UI?label=Forks&style=plastic)](https://github.com/purnima143/Pluto-UI/forks)
[![GitHub Repo stars](https://img.shields.io/github/stars/purnima143/Pluto-UI?style=social)](https://github.com/purnima143/Pluto-UI/stargazers)
Technologies
Also included these tech stacks:
- Storybook: A development environment and UI component explorer for building UI components in isolation.
- PropTypes: A library for type checking React component props.
## Color Code
Must follow this color code when creating a component.To ensure consistency and visual coherence, Pluto UI follows a specific color code. When creating new components, it is important to adhere to this color code for a unified look and feel throughout the UI library.
![Group 3(1)](https://github.com/purnima143/Pluto-UI/assets/57852378/7e0be7ea-7aaf-410c-a5e4-4eddd166b6e4)
## Components
Here's a comprehensive list of common components should be in the library:
- Navigation Components:
- [ ] Navigation bar
- [ ] Mega menu
- [ ] Breadcrumbs
- [ ] Sidebar
- Product Display Components:
- [ ] Product card
- [ ] Product list/grid view
- [ ] Product carousel/slider
- [ ] Product details page
- Shopping Cart Components:
- [ ] Cart summary
- [ ] Cart items list
- [ ] Cart sidebar
- [ ] Cart checkout process
- Checkout Components:
- [ ] Address form
- [ ] Payment options
- [ ] Order summary
- [ ] Shipping options
- [ ] Order confirmation
- User Account Components:
- [ ] Sign-in/sign-up form
- [ ] User profile
- [ ] Order history
- [ ] Wishlist
- Search Components:
- [ ] Search bar
- [ ] Sorting dropdown
- [ ] Filter options
- Promotion Components:
- [ ] Banner
- [ ] Sale/Discount badges
- [ ] Featured products
- Review and Rating Components:
- [ ] Rating system
- [ ] Customer reviews
- Messaging Components:
- [ ] Notifications
- [ ] Toast messages
- [ ] Alerts
- Forms and Inputs:
- [x] Text fields
- [x] Dropdowns
- [x] Radio buttons
- [x] Checkboxes
- [x] Date pickers
- [x] Range
- Miscellaneous Components:
- [ ] Pagination
- [ ] Loading spinners
- [ ] Modal/pop-up windows
- [ ] Tooltips
- [ ] Progress bars
- [ ] Avatars
## 🚀 Getting Started
### Prerequisites
Before you begin, ensure that you have Node.js and npm installed on your machine.
### Installation
To install Pluto UI, clone this repository to your local machine:
```
git clone https://github.com/your-username/pluto-ui.git
```
Then, navigate to the cloned repository and install the necessary dependencies:
```
cd pluto-ui
npm install
```
Run Storybook:
```
npm run storybook
```
Open your browser and visit http://localhost:6006 to view the Storybook interface.
### Usage
With Storybook up and running, you can interact with the individual components, explore their variations, and test their behavior in different scenarios directly in your browser. This allows you to see how the components look and function in isolation and helps you integrate them seamlessly into your own ecommerce website.
Feel free to customize and enhance this markdown file to match your project's specific needs and requirements.
## Guidelines for Writing SCSS
When writing SCSS code for our project, please adhere to the following guidelines:
* Classname Convention: Use the following naming convention for SCSS class names:
```
scss
.pluto--
{
/* Styles for the element */
}
```
For example, if you are creating a button component, the SCSS class should be named .pluto--button. This convention helps ensure consistency and avoids naming conflicts.
* Modular Approach: Keep the SCSS styles modular and component-based. Each component should have its own SCSS file, organizing the styles specific to that component.
* Reusability: Aim for reusable SCSS styles to promote consistency and reduce duplication. Extract common styles into reusable mixins or variables.
* Maintainability: Keep the SCSS code clean, readable, and well-organized. Use indentation, comments, and appropriate naming conventions to enhance code maintainability.
* Responsiveness: Consider responsive design principles and write SCSS styles that adapt to different screen sizes and devices.
* BEM Methodology: Consider utilizing the BEM (Block Element Modifier) methodology for naming classes and structuring the SCSS code. This methodology helps create maintainable and scalable styles.
Please ensure that the SCSS code follows these guidelines to maintain a consistent and organized codebase for our UI library.
Feel free to modify and expand upon these guidelines to fit the specific requirements of your project.
## Contributing
We welcome contributions from everyone. Here are some guidelines to get started:
1. Fork the repository and create your branch: `git checkout -b your-branch-name`. For example, if you are working on the Navbar component, you can create a branch named `navbar`.
2. Make your changes and commit them: `git commit -m 'Add some feature'`.
3. Push to your forked repository: `git push origin your-branch-name`.
4. Open a pull request to the **dev branch** and mention which component you have worked on.
For example, if you have made changes to the Navbar component, you can mention it in the pull request title or description: "Feature: Updated Navbar component".
## Resources
- [React Documentation](https://reactjs.org/docs): React is a popular JavaScript library for building user interfaces. The React documentation provides comprehensive information and guides on React concepts, components, and best practices.
- [Storybook Documentation](https://storybook.js.org/docs): Storybook is a powerful tool for developing UI components in isolation. Refer to the documentation to learn how to set up and use Storybook for Pluto UI development.
- [SCSS Guide](https://sass-lang.com/guide): SCSS (Sass) is a popular CSS preprocessor that offers additional features and flexibility. The SCSS Guide provides detailed information on how to write SCSS code effectively.
Please utilize these resources to enhance your understanding and contribute effectively to the project.