codogo-utility-functions
v1.3.0
Published
Codogo's functions collection. Useful for styling, object mapping, etc.
Downloads
13
Readme
codogo-utility-functions
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