0.0.12 • Published 2 years ago

@real-system/theme v0.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
2 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

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.12-rc.0

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.1

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.0

3 years ago