UNPKG
@startpage/theming
Version:
latest (0.2.6)
0.2.6
0.2.5
0.2.4
0.2.2
0.2.0
0.1.2
0.1.1
0.1.0-alpha.14
0.1.0-alpha.13
0.1.0-alpha.12
0.1.0-alpha.10
0.1.0-alpha.9
0.1.0-alpha.8
0.1.0-alpha.2
0.1.0-alpha.1
0.1.0-alpha.0
Create and use themes for your startpage
prettycoffee.github.io/startpage
PrettyCoffee/startpage
@startpage/theming
/
lib
/
ThemeContext
/
ThemeContext.d.ts
8 lines
(7 loc)
•
231 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
/// <reference types="react" />
import
{
Theme
}
from
"../Theme"
;
export
type
ThemeState
= {
theme
:
Theme
;
setTheme
:
(
theme
:
Theme
) =>
void
; };
export
declare
const
ThemeContext
:
import
(
"react"
).
Context
<
ThemeState
>;