styled-tachyons
Mix tachyons into styled-components. Try it out in stackblitz.
Usages
Put tachyons class names in ty
template literal tag:
;; const Article = styledarticle` ; scroll-snap-type: x mandatory; overflow-x: scroll;`;
You can use kebab-cased bg-black
or snake_cased ph3_m
or camelCase bgBlue
.
don't forget to inject the variables
;; injectGlobal` ;`;
with other styled-components libs
Put function that returns a tachyons class names:
;;; const Article = styledarticle` ; scroll-snap-type: x mandatory; overflow-x: scroll;`;