0.0.16 • Published 10 months ago

@odigos/ui-theme v0.0.16

Weekly downloads
-
License
-
Repository
github
Last release
10 months 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

10 months ago

0.0.15

10 months ago

0.0.14

10 months ago

0.0.13

10 months ago

0.0.12

10 months ago

0.0.11

10 months ago

0.0.10

10 months ago

0.0.9

10 months ago

0.0.8

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago