Skip to content
On this page

Module: data/themes

Enumerations

Themes

Themes: Object

An enum of all available themes and their internal IDs. The keys are their display names.

NameType
Aqua"aqua"
Classic"classic"
Nordic"nordic"
Paper"paper"

Defined in

profectus/src/data/themes.ts:73

Interfaces

Theme

Theme: Object

An object representing a theme the player can use to change the look of the game.

NameTypeDescription
floatingTabsbooleanWhether or not tabs should "float" in the center of their container.
mergeAdjacentbooleanWhether or not adjacent features should merge together - removing the margin between them, and only applying the border radius to the first and last elements in the row or column.
showPinbooleanWhether or not to show a pin icon on pinned tooltips.
variablesThemeVarsThe values of the theme's CSS variables.

Defined in

profectus/src/data/themes.ts:24


ThemeVars

ThemeVars: Object

A object of all CSS variables determined by the current theme.

NameType
--accent1string
--accent2string
--accent3string
--backgroundstring
--border-radiusstring
--boughtstring
--dangerstring
--feature-foregroundstring
--feature-marginstring
--foregroundstring
--highlightedstring
--linkstring
--lockedstring
--modal-borderstring
--outlinestring
--pointsstring
--raised-backgroundstring
--tooltip-backgroundstring

Defined in

profectus/src/data/themes.ts:2

Variables

default

default: Record<Themes, Theme>

A dictionary of all available themes.

Defined in

profectus/src/data/themes.ts:81