Preset Background Colors
The extension includes 6 carefully selected preset colors:- Color Swatches
- Preview
| Color Name | Hex Value | Description |
|---|---|---|
| White | #fff | Clean, bright white |
| Dark Zinc | #18181b | Default - Deep charcoal gray |
| Dark Blue | #1e3a8a | Rich navy blue |
| Dark Indigo | #312e81 | Deep purple-blue |
| Dark Green | #166534 | Forest green |
| Dark Red | #7f1d1d | Deep burgundy red |
Using Preset Colors
- Click the settings icon in the bottom-left corner
- Look for the Background Color section at the top of the settings panel
- Click on any color swatch to apply it immediately
- The selected color shows a darker border to indicate it’s active
Custom Color Picker
If the preset colors don’t match your preference, you can create any custom color:Using the Color Picker
- Click the settings icon to open settings
- In the Background Color section, find the last swatch (shows a ”+” icon if unused, or your custom color if set)
- Click on it to open your browser’s native color picker
- Select any color using the picker
- The background updates in real-time as you adjust the color
Color Format
All colors are stored and processed as hexadecimal values (e.g.,#18181b). When you use the custom color picker:
- The color picker outputs a hex value
- This value is immediately saved to Chrome Storage
- The background color transitions smoothly to your selection
Light vs Dark Theme Detection
The extension automatically adjusts text colors based on your background color to ensure readability:How It Works
The extension uses the HSP (Highly Sensitive Poo) equation to determine if a background color is light or dark:Text Color Adjustments
Based on the detection:- Dark backgrounds: Text displays in white (
text-white) and light zinc (text-zinc-300) for the author - Light backgrounds: Text displays in dark zinc (
text-zinc-900) for maximum contrast
The HSP equation analyzes the RGB components of your color and calculates a value between 0-255. Values above 127.5 are considered “light” and trigger dark text, while values below use light text.
Technical Details
Color Persistence
Your color preference is saved immediately when you make a selection:Custom Color Detection
When the extension loads, it checks if your saved color is in the preset list:Smooth Transitions
The background color changes use CSS transitions for a smooth visual effect:Your color preference is stored locally and persists across browser sessions. If you clear your browser data or use a different browser, you’ll need to set your color preference again.