The following docs reference includes code that no longer works.
pmnzt opened this issue · comments
Isaac Qadri commented
The following code
import defaultTheme from 'tailwindcss/defaultTheme'
export default {
theme: {
extend: {
colors: {
primary: defaultTheme.colors.green
}
}
}
}
no longer works the output of defaultTheme.colors.green is undefined.
after researching the tailwind docs i tried this instead and it worked.
import colors from 'tailwindcss/colors'
export default {
theme: {
extend: {
colors: {
primary: colors.green
}
}
}
}
Alexander Lichter commented
@pmnzt PR to the docs welcome!
Isaac Qadri commented