@yoroi/theme
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

Yoroi Theme

Usage

It uses "t-shirt" sizes e.g sm, md, lg, etc.

Naming conventions follow Tailwind, delimited by _ instead of - to enable object access.

Atoms

The style definitions that "match" Tailwind CSS selectors.

import {atoms as a} from '@yoroi/theme'

<View style={[a.flex_1]} />

Theme

The palette definition, prefer to use useThemeColor most of the time. The useTheme was designed to manage the theme and not to consume it. Sub vars should be consumed from the theme always, everything else should be consumed from atoms directly.

import {atoms as a, useThemeColor} from '@yoroi/theme'

const {gray_500} = useThemeColor()

<View style={[a.flex_1, {backgroundColor: gray_500}]} />

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    4
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    4
  • 1.0.0
    2

Package Sidebar

Install

npm i @yoroi/theme

Weekly Downloads

6

Version

2.0.0

License

Apache-2.0

Unpacked Size

279 kB

Total Files

172

Last publish

Collaborators

  • cryptotitan
  • vsubhuman
  • drkost
  • stackchain