0.0.16 • Published 1 year ago

@odigos/ui-theme v0.0.16

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

Odigos UI Theme

This library contains the base theme for all Odigos UI libraries (ui-icons, ui-components, ui-containers).

Installation

Using npm:

npm i @odigos/ui-theme

Using yarn:

yarn add @odigos/ui-theme

Usage

Wrap your app with the theme provider:

import Theme from '@odigos/ui-theme'

const AppProviders = () => {
  return (
    <Theme.Provider>
      <App />
    </Theme.Provider>
  )
}

You can then access one of: useTheme, useDarkMode, ToggleDarkMode, animations, opacity, and styled (styled-components) from the Theme object:

import Theme from '@odigos/ui-theme'

const App = () => {
  const { darkMode } = Theme.useDarkMode()

  return (
    <div>
      {darkMode ? 'it is dark in here' : 'it is light in here'}
      <Theme.ToggleDarkMode />
    </div>
  )
}
0.0.16

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago