@ultraviolet/icons
TypeScript icon, indicating that this package has built-in type declarations

3.5.0 • Public • Published

Ultraviolet Icons

npm version

Ultraviolet Icons is a set of components based on SVG icons. It provides a set of icons that can be used in your projects.

Get Started

For icons to work you will need to install some extra dependencies, such as @ultraviolet/themes and @emotion/react.

$ pnpm add @ultraviolet/icons @ultraviolet/themes @emotion/react

You can then add ThemeProvider to your applications and use the provided theme from @ultraviolet/themes or use your own.

import { ThemeProvider } from '@emotion/react'
import { SdkGoProductIcon } from '@ultraviolet/icons/product'
import { consoleLightTheme } from '@ultraviolet/themes'

const App = () => (
  <ThemeProvider theme={consoleLightTheme}>
    <SdkGoProductIcon size="medium" variant="primary"/>
  </ThemeProvider>
)

Note: To generate your own theme easily you can check the theme generator.

N.B. To allow typescript theme typings with @emotion/styled components, you'll have to define the @emotion/react module Theme interface in your project.

Example, in a emotion.d.ts file:

import '@emotion/react'
import type { consoleLightTheme } from '@ultraviolet/themes'

type UltravioletUITheme = typeof consoleLightTheme

declare module '@emotion/react' {
  export interface Theme extends UltravioletUITheme {}
}

Documentation

Checkout our documentation website.

Contributing

📝 You can participate in the development and start contributing to it.

Readme

Keywords

Package Sidebar

Install

npm i @ultraviolet/icons

Weekly Downloads

3,002

Version

3.5.0

License

Apache-2.0

Unpacked Size

2.64 MB

Total Files

1703

Last publish

Collaborators

  • phiphi
  • mprost
  • scaleway-bot