Skip to content

Instantly share code, notes, and snippets.

@huylift
huylift / tachyons-to-tailwind-transform.js
Last active March 14, 2023 04:24 — forked from knoopx/tachyons-to-tailwind-transform.js
Transform tachyons classes to tailwind css (using babel-codemod)
// Installation:
// yarn add -D @codemod/cli @babel/plugin-syntax-jsx @babel/generator
import jsx from '@babel/plugin-syntax-jsx';
import generate from '@babel/generator';
const COLOR_MAP = {
'white': 'white',
'near-white': 'gray-100',
'light-gray': 'gray-200',