Docs · API reference · Verso.Abstractions

ThemeColorTokens Class#

Defines the complete set of color tokens for a Verso notebook theme. All values are CSS hex color strings (e.g. #FFFFFF).

public sealed record ThemeColorTokens : System.IEquatable<Verso.Abstractions.ThemeColorTokens>

Inheritance System.Object → ThemeColorTokens

Implements System.IEquatable<ThemeColorTokens>

Properties#

Accent Property#

Primary accent color exposed to layout extensions as --verso-accent. This mirrors AccentPrimary; assign AccentPrimary to change both.

public string Accent { get; }

Property Value#

System.String

AccentForeground Property#

Text and icon color drawn on top of an accent fill: primary buttons, active menu items, selected tabs.

public string AccentForeground { get; init; }

Property Value#

System.String

Remarks#

Set this whenever AccentPrimary is light. White is only the right answer for a mid-to-dark accent, and a theme that leaves it at the default while using a pale accent renders its own primary buttons unreadable.

AccentPrimary Property#

Primary accent color used for interactive elements and links.

public string AccentPrimary { get; init; }

Property Value#

System.String

Remarks#

Layout extensions read the same value as --verso-accent through Accent, so this is the single field to set for the accent color.

AccentSecondary Property#

Secondary accent color for hover states and emphasis.

public string AccentSecondary { get; init; }

Property Value#

System.String

BgDefault Property#

Default page background color exposed to layout extensions as --verso-bg-default.

public string BgDefault { get; init; }

Property Value#

System.String

BgElevated Property#

Elevated surface background (cards, panel sections) exposed as --verso-bg-elevated: the step above BgDefault. A light theme has no room above white, so the default keeps the page's white and lets Level1 carry the step with a hairline and a shadow. Dark themes step up in lightness instead.

public string BgElevated { get; init; }

Property Value#

System.String

BgSunken Property#

Recessed surface background exposed as --verso-bg-sunken: the step below BgDefault, used for wells that content sits inside rather than on top of (output regions, fenced code, quoted blocks, empty states). There is room below white, so in light this is a real lightness step.

public string BgSunken { get; init; }

Property Value#

System.String

BorderDefault Property#

Default border color used across general UI elements.

public string BorderDefault { get; init; }

Property Value#

System.String

BorderFocused Property#

Border color applied to focused or active input elements.

public string BorderFocused { get; init; }

Property Value#

System.String

CellActiveBorder Property#

Border color for the currently focused cell.

public string CellActiveBorder { get; init; }

Property Value#

System.String

CellBackground Property#

Default background color of notebook cells.

public string CellBackground { get; init; }

Property Value#

System.String

CellBorder Property#

Border color for inactive cells.

public string CellBorder { get; init; }

Property Value#

System.String

CellErrorBackground Property#

Background color for cell error output.

public string CellErrorBackground { get; init; }

Property Value#

System.String

CellErrorForeground Property#

Text color for cell error output.

public string CellErrorForeground { get; init; }

Property Value#

System.String

CellHoverBackground Property#

Background color applied when hovering over a cell.

public string CellHoverBackground { get; init; }

Property Value#

System.String

CellOutputBackground Property#

Background color of cell output regions.

public string CellOutputBackground { get; init; }

Property Value#

System.String

CellOutputForeground Property#

Text color within cell output regions.

public string CellOutputForeground { get; init; }

Property Value#

System.String

CellRunningIndicator Property#

Color of the animated indicator shown while a cell is executing.

public string CellRunningIndicator { get; init; }

Property Value#

System.String

Background color of dropdown menus.

public string DropdownBackground { get; init; }

Property Value#

System.String

Background color of dropdown items on hover.

public string DropdownHover { get; init; }

Property Value#

System.String

EditorBackground Property#

Background color of code editor regions.

public string EditorBackground { get; init; }

Property Value#

System.String

EditorCursor Property#

Color of the blinking text cursor in editors.

public string EditorCursor { get; init; }

Property Value#

System.String

EditorForeground Property#

Default text color within code editors.

public string EditorForeground { get; init; }

Property Value#

System.String

EditorGutter Property#

Background color of the editor gutter area.

public string EditorGutter { get; init; }

Property Value#

System.String

EditorLineNumber Property#

Color of line-number labels in the editor gutter.

public string EditorLineNumber { get; init; }

Property Value#

System.String

EditorSelection Property#

Background highlight for selected text in editors.

public string EditorSelection { get; init; }

Property Value#

System.String

EditorWhitespace Property#

Color used to render whitespace indicator characters.

public string EditorWhitespace { get; init; }

Property Value#

System.String

FgDefault Property#

Default foreground color exposed as --verso-fg-default.

public string FgDefault { get; init; }

Property Value#

System.String

FgMuted Property#

Muted/secondary foreground color exposed as --verso-fg-muted.

public string FgMuted { get; init; }

Property Value#

System.String

FgSubtle Property#

Tertiary foreground color exposed as --verso-fg-subtle: the quietest readable step, for metadata that sits beside content without competing with it (timestamps, counts, type annotations, secondary lines under a title).

public string FgSubtle { get; init; }

Property Value#

System.String

HighlightBackground Property#

Background color for highlighted or marked content.

public string HighlightBackground { get; init; }

Property Value#

System.String

HighlightForeground Property#

Text color rendered over highlighted backgrounds.

public string HighlightForeground { get; init; }

Property Value#

System.String

OverlayBackground Property#

Background color of modal overlays and popups.

public string OverlayBackground { get; init; }

Property Value#

System.String

OverlayBorder Property#

Border color of overlay panels.

public string OverlayBorder { get; init; }

Property Value#

System.String

ScrollbarThumb Property#

Color of the scrollbar thumb (draggable handle).

public string ScrollbarThumb { get; init; }

Property Value#

System.String

ScrollbarThumbHover Property#

Color of the scrollbar thumb when hovered.

public string ScrollbarThumbHover { get; init; }

Property Value#

System.String

ScrollbarTrack Property#

Background color of the scrollbar track.

public string ScrollbarTrack { get; init; }

Property Value#

System.String

SidebarBackground Property#

Background color of the sidebar panel.

public string SidebarBackground { get; init; }

Property Value#

System.String

SidebarForeground Property#

Text color within the sidebar.

public string SidebarForeground { get; init; }

Property Value#

System.String

SidebarItemActive Property#

Background color of the currently active sidebar item.

public string SidebarItemActive { get; init; }

Property Value#

System.String

SidebarItemHover Property#

Background color of sidebar items on hover.

public string SidebarItemHover { get; init; }

Property Value#

System.String

StatusError Property#

Color representing an error or failure status.

public string StatusError { get; init; }

Property Value#

System.String

StatusInfo Property#

Color representing an informational status.

public string StatusInfo { get; init; }

Property Value#

System.String

StatusSuccess Property#

Color representing a successful or positive status.

public string StatusSuccess { get; init; }

Property Value#

System.String

StatusWarning Property#

Color representing a warning or caution status.

public string StatusWarning { get; init; }

Property Value#

System.String

ToolbarBackground Property#

Background color of the main toolbar.

public string ToolbarBackground { get; init; }

Property Value#

System.String

ToolbarButtonHover Property#

Background color of toolbar buttons on hover.

public string ToolbarButtonHover { get; init; }

Property Value#

System.String

ToolbarDisabledForeground Property#

Foreground color for disabled toolbar buttons.

public string ToolbarDisabledForeground { get; init; }

Property Value#

System.String

ToolbarForeground Property#

Text and icon color within the toolbar.

public string ToolbarForeground { get; init; }

Property Value#

System.String

ToolbarSeparator Property#

Color of vertical separator lines between toolbar groups.

public string ToolbarSeparator { get; init; }

Property Value#

System.String

TooltipBackground Property#

Background color of tooltip popups.

public string TooltipBackground { get; init; }

Property Value#

System.String

TooltipForeground Property#

Text color within tooltip popups.

public string TooltipForeground { get; init; }

Property Value#

System.String