Nextjs Themes
GitHub
Preparing search index...
hooks/use-theme
UseThemeYield
Interface UseThemeYield
interface
UseThemeYield
{
colorSchemePref
:
ColorSchemeType
;
darkTheme
:
string
;
lightTheme
:
string
;
resolvedColorScheme
:
ResolvedColorSchemeType
;
resolvedTheme
:
string
;
setColorSchemePref
:
(
colorSchemePref
:
ColorSchemeType
)
=>
void
;
setDarkTheme
:
(
darkTheme
:
string
)
=>
void
;
setForcedColorScheme
:
(
forcedColorScheme
:
ColorSchemeType
)
=>
void
;
setForcedTheme
:
(
forcedTheme
:
string
)
=>
void
;
setLightTheme
:
(
lightTheme
:
string
)
=>
void
;
setTheme
:
(
theme
:
string
)
=>
void
;
setThemeSet
:
(
themeSet
:
{
darkTheme
:
string
;
lightTheme
:
string
}
)
=>
void
;
systemColorScheme
:
ResolvedColorSchemeType
;
theme
:
string
;
toggleColorScheme
:
(
skipSystem
?:
boolean
)
=>
void
;
}
Index
Properties
color
Scheme
Pref
dark
Theme
light
Theme
resolved
Color
Scheme
resolved
Theme
set
Color
Scheme
Pref
set
Dark
Theme
set
Forced
Color
Scheme
set
Forced
Theme
set
Light
Theme
set
Theme
set
Theme
Set
system
Color
Scheme
theme
toggle
Color
Scheme
Properties
color
Scheme
Pref
colorSchemePref
:
ColorSchemeType
dark
Theme
darkTheme
:
string
light
Theme
lightTheme
:
string
resolved
Color
Scheme
resolvedColorScheme
:
ResolvedColorSchemeType
resolved
Theme
resolvedTheme
:
string
set
Color
Scheme
Pref
setColorSchemePref
:
(
colorSchemePref
:
ColorSchemeType
)
=>
void
set
Dark
Theme
setDarkTheme
:
(
darkTheme
:
string
)
=>
void
set
Forced
Color
Scheme
setForcedColorScheme
:
(
forcedColorScheme
:
ColorSchemeType
)
=>
void
set
Forced
Theme
setForcedTheme
:
(
forcedTheme
:
string
)
=>
void
set
Light
Theme
setLightTheme
:
(
lightTheme
:
string
)
=>
void
set
Theme
setTheme
:
(
theme
:
string
)
=>
void
actions
set
Theme
Set
setThemeSet
:
(
themeSet
:
{
darkTheme
:
string
;
lightTheme
:
string
}
)
=>
void
system
Color
Scheme
systemColorScheme
:
ResolvedColorSchemeType
theme
theme
:
string
toggle
Color
Scheme
toggleColorScheme
:
(
skipSystem
?:
boolean
)
=>
void
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Properties
color
Scheme
Pref
dark
Theme
light
Theme
resolved
Color
Scheme
resolved
Theme
set
Color
Scheme
Pref
set
Dark
Theme
set
Forced
Color
Scheme
set
Forced
Theme
set
Light
Theme
set
Theme
set
Theme
Set
system
Color
Scheme
theme
toggle
Color
Scheme
GitHub
Nextjs Themes
Loading...
actions