Skip to content

Commit

Permalink
add CSS Methodology (#960)
Browse files Browse the repository at this point in the history
* add CSS Methodology

* changes img directory
  • Loading branch information
rahulch07 authored Jan 23, 2025
1 parent d973609 commit 83396bc
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions docs/design/ux/design_system.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,35 @@ We follow a single Figma file for the designing of the Talawa admin and user por
You can find our most current Figma designs here
1. [Link to Figma for Talawa Designs](https://www.figma.com/file/WksD4uIa5sQJMIk3pR4l0c/Talawa-Design-System-(Official)?type=design&node-id=307%3A212&mode=dev)

## CSS Methodology
To ensure consistency across the application and reduce duplication, common styles
(such as button styles) have been moved to the global CSS file. Instead of using
component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable
class (e.g., .addButton) is now applied.

### Benefits:
- Reduces redundant CSS code.
- Improves maintainability by centralizing common styles.
- Ensures consistent styling across components.

### Components:
This structre of styling can be followed accross all the components/screens for consistent design.

#### Search Bar:
- (example: src/screens/OrganizationPeople.OrganizationPeopl.tsx)
- ![searchBarDesign](/img/markdown/ui-ux/searchBarDesign.png)

#### Modal:
- ![Modal](/img/markdown/ui-ux/modal.png)

#### Tabs:
- (example: src/screens/Volunteer.VolunteerManagement.tsx)
- ![Tabs](/img/markdown/ui-ux/tabs.png)

#### Table:
- (example: src/screens/OrganizationActionItems/OrganizationActionItems.tsx)
- ![Table](/img/markdown/ui-ux/table.png)

## Other
Feel free to contribute your suggestions!

Binary file added static/img/markdown/ui-ux/modal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/markdown/ui-ux/searchBarDesign.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/markdown/ui-ux/table.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/markdown/ui-ux/tabs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 83396bc

Please sign in to comment.