Last active
November 27, 2022 07:17
-
-
Save tanftw/1e6a71c486d9ccafe81604b648097853 to your computer and use it in GitHub Desktop.
Using Radix Colors with TailwindCSS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const colors = require('./colors'); | |
module.exports = { | |
content: [ | |
// app content | |
`src/**/*.{js,ts,jsx,tsx}`, | |
// include packages if not transpiling | |
// "../../packages/**/*.{js,ts,jsx,tsx}", | |
], | |
theme: { | |
colors: colors, | |
container: { | |
center: true | |
}, | |
extend: { | |
colors: { | |
transparent: 'transparent', | |
inherit: 'inherit', | |
current: 'currentColor', | |
black: '#000', | |
white: '#fff', | |
primary: 'blue' | |
}, | |
}, | |
}, | |
plugins: [ | |
require('@tailwindcss/typography'), | |
], | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.