codogo-utility-functions

1.3.0 • Public • Published

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

Package Sidebar

Install

npm i codogo-utility-functions

Weekly Downloads

20

Version

1.3.0

License

MIT

Unpacked Size

12.8 kB

Total Files

9

Last publish

Collaborators

  • mcclowes