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#
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#
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#
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#
BgDefault Property#
Default page background color exposed to layout extensions as --verso-bg-default.
public string BgDefault { get; init; }
Property Value#
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#
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#
BorderDefault Property#
Default border color used across general UI elements.
public string BorderDefault { get; init; }
Property Value#
BorderFocused Property#
Border color applied to focused or active input elements.
public string BorderFocused { get; init; }
Property Value#
CellActiveBorder Property#
Border color for the currently focused cell.
public string CellActiveBorder { get; init; }
Property Value#
CellBackground Property#
Default background color of notebook cells.
public string CellBackground { get; init; }
Property Value#
CellBorder Property#
Border color for inactive cells.
public string CellBorder { get; init; }
Property Value#
CellErrorBackground Property#
Background color for cell error output.
public string CellErrorBackground { get; init; }
Property Value#
CellErrorForeground Property#
Text color for cell error output.
public string CellErrorForeground { get; init; }
Property Value#
CellHoverBackground Property#
Background color applied when hovering over a cell.
public string CellHoverBackground { get; init; }
Property Value#
CellOutputBackground Property#
Background color of cell output regions.
public string CellOutputBackground { get; init; }
Property Value#
CellOutputForeground Property#
Text color within cell output regions.
public string CellOutputForeground { get; init; }
Property Value#
CellRunningIndicator Property#
Color of the animated indicator shown while a cell is executing.
public string CellRunningIndicator { get; init; }
Property Value#
DropdownBackground Property#
Background color of dropdown menus.
public string DropdownBackground { get; init; }
Property Value#
DropdownHover Property#
Background color of dropdown items on hover.
public string DropdownHover { get; init; }
Property Value#
EditorBackground Property#
Background color of code editor regions.
public string EditorBackground { get; init; }
Property Value#
EditorCursor Property#
Color of the blinking text cursor in editors.
public string EditorCursor { get; init; }
Property Value#
EditorForeground Property#
Default text color within code editors.
public string EditorForeground { get; init; }
Property Value#
EditorGutter Property#
Background color of the editor gutter area.
public string EditorGutter { get; init; }
Property Value#
EditorLineNumber Property#
Color of line-number labels in the editor gutter.
public string EditorLineNumber { get; init; }
Property Value#
EditorSelection Property#
Background highlight for selected text in editors.
public string EditorSelection { get; init; }
Property Value#
EditorWhitespace Property#
Color used to render whitespace indicator characters.
public string EditorWhitespace { get; init; }
Property Value#
FgDefault Property#
Default foreground color exposed as --verso-fg-default.
public string FgDefault { get; init; }
Property Value#
FgMuted Property#
Muted/secondary foreground color exposed as --verso-fg-muted.
public string FgMuted { get; init; }
Property Value#
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#
HighlightBackground Property#
Background color for highlighted or marked content.
public string HighlightBackground { get; init; }
Property Value#
HighlightForeground Property#
Text color rendered over highlighted backgrounds.
public string HighlightForeground { get; init; }
Property Value#
OverlayBackground Property#
Background color of modal overlays and popups.
public string OverlayBackground { get; init; }
Property Value#
OverlayBorder Property#
Border color of overlay panels.
public string OverlayBorder { get; init; }
Property Value#
ScrollbarThumb Property#
Color of the scrollbar thumb (draggable handle).
public string ScrollbarThumb { get; init; }
Property Value#
ScrollbarThumbHover Property#
Color of the scrollbar thumb when hovered.
public string ScrollbarThumbHover { get; init; }
Property Value#
ScrollbarTrack Property#
Background color of the scrollbar track.
public string ScrollbarTrack { get; init; }
Property Value#
SidebarBackground Property#
Background color of the sidebar panel.
public string SidebarBackground { get; init; }
Property Value#
SidebarForeground Property#
Text color within the sidebar.
public string SidebarForeground { get; init; }
Property Value#
SidebarItemActive Property#
Background color of the currently active sidebar item.
public string SidebarItemActive { get; init; }
Property Value#
SidebarItemHover Property#
Background color of sidebar items on hover.
public string SidebarItemHover { get; init; }
Property Value#
StatusError Property#
Color representing an error or failure status.
public string StatusError { get; init; }
Property Value#
StatusInfo Property#
Color representing an informational status.
public string StatusInfo { get; init; }
Property Value#
StatusSuccess Property#
Color representing a successful or positive status.
public string StatusSuccess { get; init; }
Property Value#
StatusWarning Property#
Color representing a warning or caution status.
public string StatusWarning { get; init; }
Property Value#
ToolbarBackground Property#
Background color of the main toolbar.
public string ToolbarBackground { get; init; }
Property Value#
ToolbarButtonHover Property#
Background color of toolbar buttons on hover.
public string ToolbarButtonHover { get; init; }
Property Value#
ToolbarDisabledForeground Property#
Foreground color for disabled toolbar buttons.
public string ToolbarDisabledForeground { get; init; }
Property Value#
ToolbarForeground Property#
Text and icon color within the toolbar.
public string ToolbarForeground { get; init; }
Property Value#
ToolbarSeparator Property#
Color of vertical separator lines between toolbar groups.
public string ToolbarSeparator { get; init; }
Property Value#
TooltipBackground Property#
Background color of tooltip popups.
public string TooltipBackground { get; init; }
Property Value#
TooltipForeground Property#
Text color within tooltip popups.
public string TooltipForeground { get; init; }