Summary
HTML fragments from ConvertTo-NinjaOneHtml are unreadable in NinjaOne dark mode due to light-theme assumptions in WYSIWYG fragment HTML.
Screenshot

The Access Errors warning card shows near-white title/body text on a pale yellow info-card.warning background when NinjaOne dark mode is enabled.
Current behavior
- Info cards (
New-HtmlInfoCard) — info-card.warning keeps a light yellow background while page text inherits dark-mode light colors.
- Muted inline text — hardcoded
color: #666 / #888 on table dates, cleanup sizes, duplicate paths (low contrast on dark backgrounds).
New-HtmlWrapper standalone CSS is fine for exported HTML files, but NinjaOne WYSIWYG fields strip style blocks. Only inline styles and NinjaOne-provided classes survive.
Expected behavior
- Info card title/body readable in NinjaOne light and dark mode
- Secondary text inherits theme colors (
stat-desc) where the background is not a fixed light tint
Environment
- UltraTree 1.0.1
- NinjaOne device custom field (WYSIWYG), dark mode enabled
- Report via
Get-FolderSizes | ConvertTo-NinjaOneHtml (no wrapper)
Suggested fix
New-HtmlInfoCard: explicit dark text on info-title / info-description (light tinted card backgrounds stay light in dark mode)
- Other fragment helpers: replace hardcoded
#666 / #888 with class="stat-desc" where appropriate
Tracked in PR #3.
Summary
HTML fragments from
ConvertTo-NinjaOneHtmlare unreadable in NinjaOne dark mode due to light-theme assumptions in WYSIWYG fragment HTML.Screenshot
The Access Errors warning card shows near-white title/body text on a pale yellow
info-card.warningbackground when NinjaOne dark mode is enabled.Current behavior
New-HtmlInfoCard) —info-card.warningkeeps a light yellow background while page text inherits dark-mode light colors.color: #666/#888on table dates, cleanup sizes, duplicate paths (low contrast on dark backgrounds).New-HtmlWrapperstandalone CSS is fine for exported HTML files, but NinjaOne WYSIWYG fields strip style blocks. Only inline styles and NinjaOne-provided classes survive.Expected behavior
stat-desc) where the background is not a fixed light tintEnvironment
Get-FolderSizes | ConvertTo-NinjaOneHtml(no wrapper)Suggested fix
New-HtmlInfoCard: explicit dark text oninfo-title/info-description(light tinted card backgrounds stay light in dark mode)#666/#888withclass="stat-desc"where appropriateTracked in PR #3.