0.10.1 • Published 5 years ago

@improv/react-theme v0.10.1

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

@improv/react-theme

SizeBadge SizeBadge SizeBadge

Tiny react bindings for @improv/theme.

Try it on codesandbox.io.

Getting Started

import { useTheme } from "@improv/react-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

5 years ago

0.10.0

5 years ago

0.9.18

5 years ago

0.9.17

5 years ago

0.9.12

5 years ago

0.9.8

5 years ago

0.9.13

5 years ago

0.9.7

5 years ago

0.9.6-next.0

5 years ago

0.9.14

5 years ago

0.9.15

5 years ago

0.9.9

5 years ago

0.9.4

5 years ago

0.9.10

5 years ago

0.9.11

5 years ago

0.9.5

5 years ago

0.9.16

5 years ago

0.9.7-alpha.2

5 years ago

0.9.7-alpha.1

5 years ago

0.9.6-alpha.0

5 years ago

0.9.7-alpha.0

5 years ago

0.9.3

5 years ago

0.9.2

5 years ago

0.9.1

5 years ago

0.9.0

5 years ago

0.8.1

5 years ago

0.8.0

5 years ago

0.7.5

5 years ago

0.7.4

5 years ago

0.7.3

5 years ago

0.7.2

5 years ago

0.7.1

5 years ago

0.7.0

5 years ago

0.6.0

5 years ago

0.5.0

5 years ago

0.3.9-next.0

5 years ago

0.4.0

5 years ago

0.3.8

5 years ago

0.3.7

5 years ago

0.3.6

5 years ago

0.3.5

5 years ago

0.3.4

5 years ago

0.3.3

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.8-next.4

5 years ago

0.2.8-next.3

5 years ago