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

0.0.12 • Public • Published

@real-system/theme

Real System's theming components and helpers.

npm version minified size

Usage

Installation

# install peer dependencies

# npm
$ npm install --save @real-system/styling react react-dom
# yarn
$ yarn add @real-system/styling react react-dom

# install theme

# npm
$ npm install --save @real-system/theme
# yarn
$ yarn add @real-system/theme

Code Example

import { ThemeProvider, useToken } from '@real-system/theme';

const OtherComponent = () => {
  const token = useToken('color-background');
  return (
    <div style={{ backgroundColor: token }}>...</div>
  );
};

const MyComponent = () => {
  return (
    <ThemeProvider>
      <OtherComponent />
    </ThemeProvider>
  );
};

Package Sidebar

Install

npm i @real-system/theme

Weekly Downloads

2

Version

0.0.12

License

MIT

Unpacked Size

407 kB

Total Files

56

Last publish

Collaborators

  • bigwoof91