JSPM

  • Created
  • Published
  • Downloads 3227
  • Score
    100M100P100Q173638F
  • License Apache-2.0

Ultraviolet Themes

Package Exports

  • @ultraviolet/themes
  • @ultraviolet/themes/console/dark/__generated__
  • @ultraviolet/themes/console/darker/__generated__
  • @ultraviolet/themes/console/light/__generated__
  • @ultraviolet/themes/dark.css
  • @ultraviolet/themes/darker.css
  • @ultraviolet/themes/light.css

Readme

Ultraviolet Themes

npm version

Ultraviolet Themes is a set of themes for the Ultraviolet UI library.

[!NOTE]

@ultraviolet/ui is using @ultraviolet/theme under the hood, therefore you don't need to install it if you want to use the default theme (consoleLightTheme and consoleDarkTheme are the default themes). This package is only usefull if you want to use only @ultraviolet/themes without @ultraviolet/ui or if you want to create your own theme based on the existing ones.

Get Started

CDN

<link rel="stylesheet" href="https://assets.scaleway.com/themes/light.css"> 
// OR
<link rel="stylesheet" href="https://assets.scaleway.com/themes/dark.css"> 
// OR 
<link rel="stylesheet" href="https://assets.scaleway.com/themes/darker.css"> 

Using npm

$ pnpm add @ultraviolet/themes

Pure CSS file

import '@ultraviolet/themes/light.css'
import '@ultraviolet/themes/dark.css'
import '@ultraviolet/themes/darker.css'

With Provider and React

This is the recommended version for React application.

import { ThemeProvider, consoleLightTheme } from '@ultraviolet/themes' // Here we import the theme we want to use
// import { consoleLightTheme } from "@ultraviolet/themes/console/light" // Alternatively you can directly import the light theme if your bundler doesn't have tree-shaking capabilities

export const App = () => (
  <ThemeProvider theme={consoleLightTheme}>
    <YourApp />
  </ThemeProvider>
)

Documentation

Checkout our documentation website.