@bernankez/theme
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

🎨 Cole's theme preset

Naming Rules (Temporary)

`themeType` `[dark]` `styleType` `[themeSeries]`

eg.

colorDarkBackgroundRed

layoutWidth


Usage

Use with js only

Import @bernankez/theme where you want to use theme color.

// named import
import { colorDefault, colorPrimaryGreen } from "@bernankez/theme";
// default import
import * as theme from "@bernankez/theme";

Use with CSS vars

Import @bernankez/theme/theme.css in main.js

import "@bernankez/theme/theme.css";

CSS variables will be injected into :root

:root {
  --color-default-dark: somecolor;
  /* ... */
}

You can also use in js.

import { colorDefault } from "@bernankez/theme/css";

console.log(colorDefault.DEFAULT);
// var(--color-default)

Color Priview

colorDefault

  • lighter
  • light
  • DEFAULT
  • dark
  • darker

colorDarkDefault

  • lighter
  • light
  • DEFAULT
  • dark
  • darker

colorDisabled

  • lighter
  • light
  • DEFAULT
  • dark
  • darker

colorBackground

  • lighter
  • light
  • DEFAULT
  • dark
  • darker

colorDarkBackground

  • lighter
  • light
  • DEFAULT
  • dark
  • darker

colorPrimaryGreen

  • lighter
  • light
  • DEFAULT
  • dark
  • darker

WIP

colorPrimaryRed

  • DEFAULT

Readme

Keywords

none

Package Sidebar

Install

npm i @bernankez/theme

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

16.5 kB

Total Files

11

Last publish

Collaborators

  • bernankez