0.2.2 • Published 3 years ago

@skui/style v0.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@skui/style

Common styles used by many components

Index

Colors

Grayscale

NameColor
GS00#ffffff#ffffff
GS10#e6e6e6#e6e6e6
GS20#cccccc#cccccc
GS45#8c8c8c#8c8c8c
GS70#6a6a6a#6a6a6a
GS90#323232#323232
GS100#000000#000000

Primary

NameColor
PURPLE#8000ff#8000ff
PINK#e60060#e60060
LIME#00bf60#00bf60
CYAN#1cc1c4#1cc1c4
BLUE#0073e6#0073e6
ORANGE#ff4f1a#ff4f1a
RED#d90036#d90036

Mid-dark colors

NameColor
MID_DARK_PURPLE#5900b3#5900b3
MID_DARK_PINK#990040#990040
MID_DARK_LIME#007339#007339
MID_DARK_CYAN#08888a#08888a
MID_DARK_BLUE#004d99#004d99
MID_DARK_ORANGE#a72600#a72600
MID_DARK_RED#b4002d#b4002d

Dark color

NameColor
DARK_PURPLE#2a0361#2a0361
DARK_PINK#3d041c#3d041c
DARK_LIME#00462c#00462c
DARK_CYAN#045463#045463
DARK_BLUE#012b68#012b68
DARK_ORANGE#36150c#36150c
DARK_RED#530015#530015

Fonts

NameFont-SizeFont-WeightColorText-decoration-line
H117pxnormalGS90none
H217px600GS90none
H314pxnormalGS90none
H414px600GS70none
H514px600GS90none
PRI17pxnormalGS90none
SEC14pxnormalGS70none
THI12pxnormalGS70none
LINK17pxboldGS90underline
BTN17pxnormalGS90none

Usage in scss

@import "node_modules/@skui/style/functions";

H2 {
  @include KaiOS_font(H4);
  color: KaiOS_color(ORANGE);
}

Usage in typescript

import type { KaiOS_color } from "@skui/types";
import { ORANGE } from "@skui/style";

const custom_color: KaiOS_color = ORANGE;

License

MIT License

Copyright (c) 2021 Wouter van der Wal