0.0.12 • Published 3 years ago

@real-system/theme v0.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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>
  );
};
0.0.10

3 years ago

0.0.11

3 years ago

0.0.12

3 years ago

0.0.12-rc.0

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.1

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.5

3 years ago

0.0.4

4 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.0

4 years ago