Adjust Colors
You can customize all UI colors in LocalBoards by setting environment variables. This allows you to match the application's appearance to your brand or personal preferences without modifying source files.
Available Color Variables
All colors support both light and dark mode variants. For dark mode colors, append Dark to the variable name (e.g., COLOR_PRIMARY_DARK for dark mode).
| Variable | Default (Light) | Default (Dark) |
|---|---|---|
NUXT_PUBLIC_COLOR_PRIMARY | #004632 | #0a846e |
NUXT_PUBLIC_COLOR_SECONDARY | #b33e04 | #e04a05 |
NUXT_PUBLIC_COLOR_WHITE | #ffffff | #ffffff |
NUXT_PUBLIC_COLOR_GRAY | #3d5e59 | #b6c8c8 |
NUXT_PUBLIC_COLOR_SLATE | #eef5ee | #1f2524 |
NUXT_PUBLIC_COLOR_BLACK | #000000 | #000000 |
NUXT_PUBLIC_COLOR_DARK | #101514 | #101514 |
.env File
Modify your .env file:
# Custom Colors
NUXT_PUBLIC_COLOR_PRIMARY="#ff0000"
NUXT_PUBLIC_COLOR_PRIMARY_DARK="#cc0000"
NUXT_PUBLIC_COLOR_SECONDARY="#00ff00"
NUXT_PUBLIC_COLOR_SECONDARY_DARK="#00cc00"
NUXT_PUBLIC_COLOR_GRAY="#333333"
NUXT_PUBLIC_COLOR_GRAY_DARK="#aaaaaa"
NUXT_PUBLIC_COLOR_SLATE="#f5f5f5"
NUXT_PUBLIC_COLOR_SLATE_DARK="#2a2a2a"
How It Works
- The application reads color values from environment variables at runtime
- Default colors are used if no environment variables are set
- Colors are applied via CSS custom properties (CSS variables)
- Dark mode variants are automatically applied when the user's system prefers dark mode
Tips
- Use valid HEX color codes (with or without
#prefix) - Test your color combinations in both light and dark modes
- Consider accessibility - ensure sufficient contrast between text and background colors
- Restart your application after changing color variables