ThemeElevation Class#
Defines the elevation (drop shadow) scale for a Verso notebook theme.
Each value is a complete CSS box-shadow expression, or none.
public sealed record ThemeElevation : System.IEquatable<Verso.Abstractions.ThemeElevation>
Inheritance System.Object → ThemeElevation
Implements System.IEquatable<ThemeElevation>
Remarks#
Elevation is how one surface separates from the one beneath it. Themes that
separate surfaces by lightness alone (most dark themes) can lean on small
shadows. Themes whose surfaces compress near white (most light themes) cannot
step above the page in lightness at all, so the defaults below carry that step
themselves: levels 1 and 2 begin with a one pixel spread ring, a hairline that
gives a white surface an edge on a white page from the same box-shadow
rule that gives it depth, with no border rule for a dark theme to cancel.
Level 3 has no ring because floating surfaces carry a real border in every
theme. High-contrast themes should set every level to none and separate
with borders instead.
The emitted custom properties drop the Level prefix, so a stylesheet
reads var(--verso-elevation-1) rather than --verso-elevation-level1.
Properties#
Level0 Property#
No elevation. A surface flush with its parent.
public string Level0 { get; init; }
Property Value#
Level1 Property#
Resting cards: notebook cells, panels, and other content surfaces.
public string Level1 { get; init; }
Property Value#
Level2 Property#
Raised cards: hover and active states of anything at level 1.
public string Level2 { get; init; }
Property Value#
Level3 Property#
Floating surfaces that overlay the page: dialogs, dropdowns, popovers.
public string Level3 { get; init; }