Viewport
The viewport of a route or layout (the viewport export, or what generateViewport returns): the viewport meta, the theme color and the color scheme.
The viewport of a route or layout (the viewport export, or what generateViewport returns): the viewport meta,
the theme color and the color scheme. A layer's values replace the ones above.
Import#
ts
import type { Viewport } from "@shadow-js/dusk";
Signature#
ts
interface Viewport extends ViewportFields {
readonly themeColor?: string | ThemeColorDescriptor | readonly ThemeColorDescriptor[];
readonly colorScheme?: ColorScheme;
}
Members#
| Name | Type | Description |
|---|---|---|
themeColor? |
readonly themeColor?: string | ThemeColorDescriptor | readonly ThemeColorDescriptor[] |
|
colorScheme? |
readonly colorScheme?: ColorScheme |