0.0.16 • Published 8 months ago

@odigos/ui-theme v0.0.16

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

8 months ago

0.0.15

8 months ago

0.0.14

8 months ago

0.0.13

8 months ago

0.0.12

8 months ago

0.0.11

8 months ago

0.0.10

8 months ago

0.0.9

8 months ago

0.0.8

8 months ago

0.0.7

8 months ago

0.0.6

8 months ago

0.0.5

8 months ago

0.0.4

9 months ago

0.0.3

9 months ago

0.0.2

9 months ago