diff --git a/docs/README.content-formater.md b/docs/README.CONTENT_FORMATTING.md similarity index 100% rename from docs/README.content-formater.md rename to docs/README.CONTENT_FORMATTING.md diff --git a/docs/README.CSS_UTILITY_CLASSES.md b/docs/README.CSS_UTILITY_CLASSES.md new file mode 100644 index 0000000..a98c9fc --- /dev/null +++ b/docs/README.CSS_UTILITY_CLASSES.md @@ -0,0 +1,161 @@ +# Custom CSS Utility Classes + +This document describes the centralized CSS utility classes defined in `src/styles/global.css` for consistent styling across the application. + +## Error & Warning Classes + +### Validation Bubbles (Popups) + +**`.error-bubble`** +- Used for error validation popup messages on form fields +- Light mode: Soft red background with dark red text +- Dark mode: Very dark red background (80% opacity) with light red text +- Includes border for visual separation +- Example: Input field validation errors + +**`.warning-bubble`** +- Used for warning validation popup messages on form fields +- Light mode: Soft amber background with dark amber text +- Dark mode: Very dark amber background (80% opacity) with light amber text +- Includes border for visual separation +- Example: Input field warnings about unusual values + +### Borders + +**`.error-border`** +- Red border for form inputs with errors +- Uses the `destructive` color from the theme +- Example: Highlight invalid input fields + +**`.warning-border`** +- Amber border for form inputs with warnings +- Uses `amber-500` color +- Example: Highlight input fields with unusual but valid values + +### Background Boxes (Static Sections) + +**`.error-bg-box`** +- For static error information sections +- Light mode: Light red background +- Dark mode: Dark red background (40% opacity) +- Includes border +- Example: Persistent error messages in modals + +**`.warning-bg-box`** +- For static warning information sections +- Light mode: Light amber background +- Dark mode: Dark amber background (40% opacity) +- Includes border +- Example: Warning boxes in settings + +**`.info-bg-box`** +- For informational sections +- Light mode: Light blue background +- Dark mode: Dark blue background (40% opacity) +- Includes border +- Example: Helpful tips, contextual information + +### Text Colors + +**`.error-text`** +- Dark red text in light mode, light red in dark mode +- High contrast for readability +- Example: Inline error messages + +**`.warning-text`** +- Dark amber text in light mode, light amber in dark mode +- High contrast for readability +- Example: Inline warning messages + +**`.info-text`** +- Dark blue text in light mode, light blue in dark mode +- High contrast for readability +- Example: Inline informational text + +## Usage Examples + +### Form Validation Popup + +```tsx +{hasError && ( +
{warningText}
+{infoText}
+{errorText}
+