1.3.0 • Published 5 years ago

codogo-utility-functions v1.3.0

Weekly downloads
6
License
MIT
Repository
-
Last release
5 years ago

codogo-utility-functions

npm version

A collection of functions that are useful for supporting development of websites in react. Particularly focused towards supporting development of styled-components.


Categories:

  • Breakpoints - For conditional styled components
  • Colors - Color space transformaitons, transparency
  • Shadows - Material design shadows
  • Sizing - For styled components - e.g. Contain
  • Styles - Clearfixes, background images
  • Utility - ObjectMap

Breakpoints

defaultBreakpoints

defaultBps

bp

xs

sm

md

lg

bpEach

bpEither


Colors

hexToColor

getColor

rgba

mixColors

darkenColor

lightenColor

transparent


Shadows

shadow

shadowProxy


Sizing

### wh

contained


Styles

truncate

bgImage

clearfix


Utility

objectMap

printObj

sentenceCase

bindMethods

path

removePx

num

addPx

px

addEm

em

1.3.0

5 years ago

1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago