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
Ultraviolet Themes is a set of themes for the Ultraviolet UI library.
[!NOTE]
@ultraviolet/uiis using@ultraviolet/themeunder the hood, therefore you don't need to install it if you want to use the default theme (consoleLightThemeandconsoleDarkThemeare the default themes). This package is only usefull if you want to use only@ultraviolet/themeswithout@ultraviolet/uior 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/themesPure 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.