domain/appearance/accent-presets
Interfaces
Section titled “Interfaces”AccentColors
Section titled “AccentColors”Defined in: app/src/domain/appearance/accent-presets.ts:8
The accent of a color mode, as CSS.
Properties
Section titled “Properties”
readonlydark:string
Defined in: app/src/domain/appearance/accent-presets.ts:10
readonlylight:string
Defined in: app/src/domain/appearance/accent-presets.ts:9
Type Aliases
Section titled “Type Aliases”AccentPreset
Section titled “AccentPreset”AccentPreset = typeof
accentPresets[number]
Defined in: app/src/domain/appearance/accent-presets.ts:5
An accent preset.
Variables
Section titled “Variables”accentPresets
Section titled “accentPresets”
constaccentPresets: readonly ["blue","teal","green","orange","red","graphite"]
Defined in: app/src/domain/appearance/accent-presets.ts:2
Identifiers of the accent colors offered without picking a custom color.
presetAccentColors
Section titled “presetAccentColors”
constpresetAccentColors:Readonly<Record<AccentPreset,AccentColors>>
Defined in: app/src/domain/appearance/accent-presets.ts:18
The accents of the presets, as accentColors in accent.ts computes them. They are
written out, so the start of the browser needs no color math for a preset; a test checks
that they match.
Functions
Section titled “Functions”isAccentPreset()
Section titled “isAccentPreset()”isAccentPreset(
accent): accent is “blue” | “teal” | “green” | “orange” | “red” | “graphite”
Defined in: app/src/domain/appearance/accent-presets.ts:31
Whether an accent is one of the presets.
Parameters
Section titled “Parameters”accent
Section titled “accent”string
A preset, such as blue, or a custom color, such as #2a7f62.
Returns
Section titled “Returns”accent is “blue” | “teal” | “green” | “orange” | “red” | “graphite”