You are viewing Pre-Alpha documentation.
Vuetify0 Logo

useTheme API

API reference for the useTheme composable.

Options

adapter

ThemeAdapter

The theme adapter to use.

default

ID

The default theme ID to select on initialization.

palette

TokenCollection

A collection of tokens to use for resolving theme colors.

themes

Record<ID, Z>

A record of themes to register.

target

string | HTMLElement

The target element or selector to apply theme classes to.

Properties

colors

ComputedRef<Record<string, Colors>>

A computed reference to the resolved colors of the current theme.

isDark

Readonly<Ref<boolean, boolean>>

A ref indicating whether the current theme is dark.

Methods

cycle

(themes?: ID[]) => void

Cycles through the provided themes in order.


© 2016-2025 Vuetify, LLC
Ctrl+/