Variable: REPORT_STYLES
ts
const REPORT_STYLES: "\n:where(.surfview-report-controls) {\n align-items: center;\n background: var(--surfview-report-bg, #f8fafc);\n border: 1px solid var(--surfview-report-border, #d7dde5);\n border-radius: var(--surfview-report-radius, 6px);\n box-sizing: border-box;\n color: var(--surfview-report-fg, #111827);\n display: flex;\n flex-wrap: wrap;\n font: var(--surfview-report-font, 12px/1.4 system-ui, sans-serif);\n gap: var(--surfview-report-gap, 6px);\n margin-bottom: 8px;\n padding: var(--surfview-report-padding, 7px);\n}\n:where(.surfview-report-controls) :where(fieldset) {\n align-items: center;\n border: 0;\n display: flex;\n flex-wrap: wrap;\n gap: 4px;\n margin: 0;\n min-width: 0;\n padding: 0;\n}\n:where(.surfview-report-controls) :where(legend) {\n float: left;\n margin-right: 2px;\n padding: 0;\n}\n:where(.surfview-report-view) {\n white-space: nowrap;\n}\n:where(.surfview-report-swatch) {\n border: 1px solid currentColor;\n display: inline-block;\n height: 12px;\n margin-inline: 4px;\n vertical-align: middle;\n width: 12px;\n}\n:where(.surfview-report-opacity) {\n align-items: center;\n display: inline-flex;\n gap: 4px;\n white-space: nowrap;\n}\n:where(.surfview-report-opacity-slider) {\n width: var(--surfview-report-slider-width, 90px);\n}\n:where(.surfview-report-opacity-value) {\n display: inline-block;\n font-variant-numeric: tabular-nums;\n min-width: 4ch;\n text-align: end;\n}\n:where(.surfview-report-legend) {\n align-items: center;\n display: flex;\n flex-wrap: wrap;\n gap: 4px 8px;\n margin-left: auto;\n}\n:where(.surfview-report-legend-title) {\n white-space: nowrap;\n}\n:where(.surfview-report-colorbar) {\n padding-bottom: 13px;\n position: relative;\n width: var(--surfview-report-colorbar-width, 160px);\n}\n:where(.surfview-report-colorbar-ramp) {\n border: 1px solid var(--surfview-report-colorbar-border, rgba(17, 24, 39, 0.35));\n box-sizing: border-box;\n height: var(--surfview-report-colorbar-height, 10px);\n position: relative;\n}\n:where(.surfview-report-colorbar-mask) {\n background: repeating-linear-gradient(\n 135deg,\n var(--surfview-report-mask, #e5e7eb) 0 3px,\n var(--surfview-report-mask-stripe, #9ca3af) 3px 4px\n );\n bottom: 0;\n position: absolute;\n top: 0;\n}\n:where(.surfview-report-colorbar-tick) {\n color: var(--surfview-report-muted, #475569);\n font-size: 10px;\n line-height: 1;\n position: absolute;\n top: 100%;\n transform: translateX(-50%);\n white-space: nowrap;\n}\n:where(.surfview-report-colorbar-tick)::before {\n background: var(--surfview-report-colorbar-border, rgba(17, 24, 39, 0.35));\n content: '';\n display: block;\n height: 3px;\n margin: 0 auto 1px;\n width: 1px;\n}\n:where(.surfview-report-colorbar-tick.is-start) {\n transform: none;\n}\n:where(.surfview-report-colorbar-tick.is-start)::before {\n margin-left: 0;\n}\n:where(.surfview-report-colorbar-tick.is-end) {\n transform: translateX(-100%);\n}\n:where(.surfview-report-colorbar-tick.is-end)::before {\n margin-right: 0;\n}\n:where(.surfview-report-feedback) {\n color: var(--surfview-report-error, #991b1b);\n}\n:where(.surfview-report-sr) {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n:where(.surfview-status) {\n align-items: center;\n background: var(--surfview-report-bg, #f8fafc);\n box-sizing: border-box;\n color: var(--surfview-report-muted, #475569);\n display: flex;\n font: 13px/1.5 system-ui, sans-serif;\n inset: 0;\n justify-content: center;\n padding: 1rem;\n position: absolute;\n text-align: center;\n}\n:where(.surfview-status[data-state=\"error\"]) {\n background: var(--surfview-report-error-bg, #fef2f2);\n color: var(--surfview-report-error, #991b1b);\n}\n:where(.surfview-report-controls, .surfview-mount) [hidden] {\n display: none;\n}\n";Defined in: report/reportStyles.ts:29
Default stylesheet of the compact report toolbar and mount status.
Every rule is wrapped in :where(), so it has zero specificity: any host selector (a class, an element name, an attribute) overrides it without !important. Colours and sizes read CSS custom properties with built-in fallbacks, so a host can also theme the toolbar by setting, on the toolbar or any ancestor:
| Property | Default | Used for |
|---|---|---|
--surfview-report-bg | #f8fafc | toolbar and status background |
--surfview-report-fg | #111827 | text |
--surfview-report-muted | #475569 | tick labels, loading status |
--surfview-report-border | #d7dde5 | toolbar border |
--surfview-report-radius | 6px | toolbar corner radius |
--surfview-report-font | 12px/1.4 system-ui, sans-serif | toolbar font |
--surfview-report-gap | 6px | spacing between controls |
--surfview-report-padding | 7px | toolbar padding |
--surfview-report-error | #991b1b | command and load errors |
--surfview-report-error-bg | #fef2f2 | load error background |
--surfview-report-slider-width | 90px | reference opacity slider |
--surfview-report-colorbar-width | 160px | colour bar length |
--surfview-report-colorbar-height | 10px | colour bar thickness |
--surfview-report-colorbar-border | rgba(17, 24, 39, 0.35) | colour bar outline and ticks |
--surfview-report-mask | #e5e7eb | sub-threshold band |
--surfview-report-mask-stripe | #9ca3af | sub-threshold band hatching |