@nekobird/styled-chemistry
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

⚗️ styled-chemistry

Elements, Compounds, and Mixtures ➝ Theme

npm i @nekobird/styled-chemistry

Create Theme

import { createTheme } from '@nekobird/styled-chemistry';

const elements = Object.freeze({

});

const compounds = Object.freeze({

});

const mixtures = Object.freeze({

});

export const theme = createTheme(elements)(compounds)(mixtures);

Provide your theme to the rest.

import { StyledChemistryProvider } from '@nekobird/styled-chemistry';
import { theme } from './theme';

const App = () => (
  <StyledChemistryProvider theme={theme}>
    {
      // Your other components.
    }
  </StyledChemistryProvider>
);

Inspired By:

Readme

Keywords

Package Sidebar

Install

npm i @nekobird/styled-chemistry

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

152 kB

Total Files

33

Last publish

Collaborators

  • nekobird