Skip to content

ratson/tachyons-in-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tachyons-in-js

Use tachyons with your favorite CSS-in-JS composition solution.

Differences

  • snake_cased rather than kebab-cased

Usage

Works great with aphrodite:

:root {
  // fill in all of the tachyons default variables,
  // or import 'tachyons-in-js/variables.css';
}
import { StyleSheet } from 'aphrodite';
import t from 'tachyons-in-js';

const styles = StyleSheet.create({
  foo: {
    ...t.ma2,
    ...t.ma2_ns,
    ...t.bg_black,
    ...t.ph2,
    ...t.ph3_m,
    ...t.ph3_l,
  },
});

Credit

Fork of tachyons-js, thanks @jongold for creating it.

About

Use tachyons with your favorite CSS-in-JS composition solution.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •