0.10.1 • Published 3 years ago

@improv/preact-theme v0.10.1

Weekly downloads
1
License
ISC
Repository
github
Last release
3 years ago

@improv/preact-theme

SizeBadge SizeBadge SizeBadge

Tiny preact bindings for @improv/theme.

Try it on codesandbox.io.

Getting Started

import { useTheme } from "@improv/preact-theme";

export function MyComponent(): JSX.Element {
  const { color } = useTheme();

  return <div style={{ color: color.front, backgroundColor: color.back }}>Hello, world!</div>;
}

API

Includes the @improv/theme API.

Hooks

  • useTheme()
    • Returns the theme from the current context, or a default theme.

Components

  • <Theme value={theme}>
    • Sets, override, or modify the current theme for its children.
0.10.1

3 years ago

0.10.0

3 years ago

0.9.17

3 years ago

0.9.18

3 years ago

0.9.12

3 years ago

0.9.8

3 years ago

0.9.13

3 years ago

0.9.7

3 years ago

0.9.6-next.0

3 years ago

0.9.14

3 years ago

0.9.15

3 years ago

0.9.9

3 years ago

0.9.4

3 years ago

0.9.10

3 years ago

0.9.11

3 years ago

0.9.5

3 years ago

0.9.16

3 years ago

0.9.7-alpha.2

3 years ago

0.9.7-alpha.1

3 years ago

0.9.6-alpha.0

3 years ago

0.9.7-alpha.0

3 years ago

0.9.3

3 years ago

0.9.2

3 years ago

0.9.1

3 years ago

0.9.0

3 years ago

0.8.1

3 years ago

0.7.5

3 years ago

0.8.0

3 years ago

0.7.4

3 years ago

0.7.2

3 years ago

0.7.3

3 years ago

0.7.1

3 years ago

0.7.0

3 years ago

0.6.0

3 years ago