Nettalco Theme ships with a complete dark color scheme built into the preset. Unlike many PrimeNG presets that simply invert to a zinc-gray palette, Nettalco Theme’s dark mode uses a custom dark-blue surface scale — keeping the brand’s nautical, navy character visible even when the UI goes dark. This page explains the two dark mode configurations, how to toggle the theme programmatically, and what tokens change between light and dark.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Nettalco/nettalco-theme/llms.txt
Use this file to discover all available pages before exploring further.
Dark Mode Options
PrimeNG’s theming system supports two dark mode strategies controlled by thedarkModeSelector option:
| Value | Behavior |
|---|---|
false | Dark mode is fully disabled. Only light tokens are generated. (Default) |
'.p-dark' | Dark mode activates when the p-dark class is present on a parent element (typically <html>). |
'[data-theme="dark"]' | Any valid CSS selector can be used as the dark mode trigger. |
Default Configuration (Light Only)
The recommended starting configuration for most Nettalco applications disables dark mode entirely, keeping the token surface minimal:app.config.ts
Enabling Dark Mode
To enable dark mode, setdarkModeSelector to the CSS class or attribute selector that will trigger the dark theme:
app.config.ts
semantic.colorScheme.dark into the active token set.
Toggling Dark Mode Programmatically
WithdarkModeSelector: '.p-dark', dark mode is activated by adding the p-dark class to the <html> element. Toggle it from any Angular service, component, or directive:
theme-toggle.service.ts
Dark Surface Palette
Nettalco Theme replaces Aura’s default zinc-gray dark surface scale with a custom dark-blue palette. Every background, card, overlay, and input surface in dark mode carries a hint of the brand’s navy blue identity.
Visual Hierarchy in Dark Mode
| Surface Level | Token | Typical Use |
|---|---|---|
| Text / Icons | surface.0 #f0f5fb | White-tinted labels, icon fills |
| Highlights | surface.50 #c8d8ea | Hover states, selection indicators |
| Overlays | surface.700 #152540 | Dialogs, drawers, popovers |
| Cards | surface.600 #1c2f50 | Panel and card backgrounds |
| Page | surface.800 #0f1e35 | Main app background |
Dark Mode Color Tokens
Primary (Inverted for Dark)
In dark mode, primary colors invert so that the very light end of thenettalcoPrimary scale becomes the foreground color — rendering legibly against the dark blue backgrounds:
Success, Info, Warn, Error in Dark Mode
| Role | Dark Color | Dark Hex | Note |
|---|---|---|---|
| Success | {success.200} | #6ECBCD | Lighter cyan for dark bg contrast |
| Info | {info.400} | #69A7ED | Periwinkle blue |
| Warn | {warn.200} | #F4B33C | Warm amber |
| Error | {error.400} | #f87171 | Light red |
cssLayer Option
ThecssLayer option controls whether PrimeNG’s generated styles are wrapped in a @layer declaration. This is useful when integrating with Tailwind CSS or other utility frameworks that use cascade layers: