Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions audit_files/fix_plan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Fix Plan – NutriHelp UI Consistency

## Objective
Improve UI consistency and fully align all components with the design token system and Figma design.

---

## Planned Fixes

- Standardize spacing across all pages using spacing tokens
- Align all button styles (padding, radius, colors)
- Ensure all inputs follow consistent styling
- Standardize shadow usage across cards and components
- Fix minor alignment issues in forms and layouts
- Ensure hover and focus states are consistent
- Remove any remaining hardcoded values

---

## Priority

### High Priority (P0)
- Fix any remaining hardcoded color usage
- Ensure all components use tokens

### Medium Priority (P1)
- Standardize component spacing and alignment
- Fix inconsistent hover and button styles

### Low Priority (P2)
- Improve visual polish (shadows, typography, spacing)
- Minor UI refinements

---

## Expected Outcome
- Fully consistent UI across all pages
- Scalable and maintainable design system
- Improved user experience and visual quality
56 changes: 56 additions & 0 deletions audit_files/styles_audit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Style Audit Report – NutriHelp

## Overview
A UI audit was conducted to evaluate consistency across key pages after implementing the design token system.

---

## Navbar (mainNavbar.css)
- Token usage applied correctly → OK
- Minor shadow inconsistency → P2

## Dashboard / Menu (Menustyles.css)
- Fully migrated to tokens → OK
- Layout and responsiveness preserved → OK

## Meal Page (Meal.css)
- Minor spacing inconsistencies → P2
- Typography mostly consistent → OK

## Food Preferences
- Previously used local variables → Fixed
- Now aligned with global tokens → OK

## Create Recipe
- Inputs and buttons standardized → OK
- Minor spacing differences → P2

## Global Styles (style.css)
- Fully tokenized → OK
- Typography and base styles consistent → OK

---

## Identified Issues & Severity

### P0 – Critical Issues
- Some components previously used hardcoded colors (fixed during refactor)
- Potential missing token usage in edge cases

### P1 – Medium Issues
- Inconsistent button padding across pages
- Input field spacing varies slightly
- Some hover states differ in intensity
- Alignment inconsistencies in forms

### P2 – Minor Issues
- Slight shadow variations across cards
- Minor spacing inconsistencies
- Border radius differences in small components
- Minor typography weight differences

---

## Summary
Most UI components now follow centralized design tokens.
Remaining issues are minor and relate to visual polish rather than structural inconsistencies.
32 changes: 32 additions & 0 deletions audit_files/styles_checklist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Style Compliance Checklist – NutriHelp

## Colors
- All colors use global design tokens (var(--color-*))
- No hardcoded hex, rgb, or rgba values
- No legacy variables (--background-color, --fp-*, --dpe-*)

## Typography
- Uses global font family
- Uses defined font sizes (var(--font-*))
- Consistent font weights across components

## Spacing
- Uses spacing tokens (var(--space-*))
- No hardcoded px spacing values
- Consistent margin and padding across pages

## Components
- Buttons use consistent styles (color, radius, padding)
- Inputs have consistent border, padding, and font styles
- Cards use standard background, border, and shadow
- Navigation elements are consistent

## States
- Hover states use token-based colors
- Focus states are visible and accessible
- Disabled states are styled consistently

## Layout
- Flex and grid layouts are consistent
- Responsive design maintained across breakpoints
- Alignment consistent across components
7 changes: 7 additions & 0 deletions audit_files/subtasks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# FE06 Subtasks – UI Improvements

- FE06-1 Navbar style refinement
- FE06-2 Dashboard spacing standardization
- FE06-3 Meal page UI consistency improvements
- FE06-4 Food preferences UI alignment
- FE06-5 Recipe page input and button standardization