Skip to content

peterpme/glamor-helpers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Glamor Helpers

A series of glamor helpers!

Getting Started

yarn install glamor-helpers

API

setAspectRatio

setAspectRatio (width: number, height: number);
setAspectRatio(400, 300);

setBackgroundUrl

setBackgroundUrl(url: string, fallBack: string);
setBackgroundUrl('/image.png', '#000');

em

em(size: number)
em(16)

makeFluid

makeFluid()

visuallyHideElement

visuallyHideElement()

createGradient [TBD]

createGradient()

About

Helper functions for Glamor, the CSS-in-JS library

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published