Replies: 1 comment 2 replies
-
Hey @Ashlc , Lets use one of the Tailwind colour defaults just to be sure the issue is not with the dynamic variables. You will probably need to add this at the top of the
Your file will end up looking something like below. import colors from 'tailwindcss/colors'
export default {
content: [
"./resources/**/*.blade.php",
"./vendor/mkocansey/bladewind/resources/views/**/*.blade.php",
"./resources/**/*.js",
],
theme: {
extend: {
colors: {
primary: colors.blue,
blue: colors.blue,
secondary: colors.gray,
dark: colors.gray,
green: '#2ecc71',
'hover': {
'primary': 'var(--primary-hover)',
},
},
textColor: {
'on': {
'primary': 'var(--text-on-primary)',
},
'primary': colors.blue,
'default': 'var(--text)',
},
},
},
plugins: [],
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So basically, I've followed the steps show in the documentation, but I've had no luck getting it to use my colors. I've imported both
animate.min
andbladewind-ui
css. The helper is also imported before the closing of the body tag. Tailwind works as expected in my project with the configurations below. I ranphp artisan vendor:publish --tag=bladewind-public --force
as well.This is my project's tailwind.config.js:
Beta Was this translation helpful? Give feedback.
All reactions