This package has been deprecated

Author message:

This package is deprecated use @ultraviolet/themes instead.

@scaleway/themes
TypeScript icon, indicating that this package has built-in type declarations

1.5.0 • Public • Published

Scaleway Themes

npm version

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

Note

@scaleway/ui is using @scaleway/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).

Installation

$ pnpm add @scaleway/ui @scaleway/themes @emotion/react @emotion/styled

Usage

import { normalize, Button } from '@scaleway/ui'
import { consoleDarkTheme } from '@scaleway/themes' // << Here we import the theme we want to use
import { Global, css, ThemeProvider } from '@emotion/react'

const App = () => (
  <ThemeProvider theme={consoleDarkTheme}>
    <Global styles={css`${normalize()}`}>
    <Button variant="primary" onClick={() => console.log('clicked')}>
      Click Me
    </Button>
  </ThemeProvider>
)

Documentation

Checkout our documentation website.

/@scaleway/themes/

    Package Sidebar

    Install

    npm i @scaleway/themes

    Weekly Downloads

    4

    Version

    1.5.0

    License

    Apache-2.0

    Unpacked Size

    73.1 kB

    Total Files

    8

    Last publish

    Collaborators

    • scaleway-serverless-team
    • codelax
    • quantumsheep
    • scaleway-bot
    • mprost
    • imanu
    • vincentaudebert
    • maliszewskid
    • phiphi