diff --git a/apps/OpenSign/docs/DARK_MODE_USAGE.md b/apps/OpenSign/docs/DARK_MODE_USAGE.md new file mode 100644 index 0000000000..0ebf8f7095 --- /dev/null +++ b/apps/OpenSign/docs/DARK_MODE_USAGE.md @@ -0,0 +1,213 @@ +# Tailwind Dark Mode Usage Guide + +## Overview +This guide shows how to use the new Tailwind utilities for better dark mode visibility in OpenSign. + +## Button Styling + +### VS Code-style Disabled Buttons +```jsx +// Option 1: Direct VS Code styling + + +// Option 2: Themed disabled styling + + +// Option 3: Conditional styling + +``` + +## Icon Styling + +### Theme-aware Icons +```jsx +// Better visibility in dark mode + + +// Muted but still visible + + +// Disabled state + +``` + +### CSS Variable Approach +```jsx +// Using CSS variables + + + +// Inline styles with CSS variables + +``` + +### Legacy JavaScript Function (Still Supported) +```jsx +// Existing approach - still works + +``` + +## Text Styling + +### Improved Gray Text +```jsx +// These automatically improve in dark mode +More visible in dark mode +Muted but readable +Clear text +``` + +## Complete Examples + +### Toolbar with Better Visibility +```jsx +const Toolbar = () => ( +
Tooltip content
+{t("report-not-found")}
+{t("report-not-found")}