Hi - I'm trying to highlight an anchor tag in blue using tailwind css, which should be dead simple, but it is not working.
{{-- 1st step --}}
{{-- index.blade.php --}}
<a href="{{ route('admin.loginAs') }}" class="text-indigo-600">
Log In As...
</a>
I refresh the page, the link displays in dark indigo.
{{-- 2nd step --}}
{{-- index.blade.php --}}
<a href="{{ route('admin.loginAs') }}" class="text-blue-600">
Log In As..
</a>
I refresh the page, the link displays in black. I add a configuration into tailwind.config.js
{{-- 3rd step --}}
{{-- tailwind.config.js --}}
module.exports = {
theme: {
colors: {
'anchor-blue': 'text-blue-600',
}
}
{{-- index.blade.php --}}
<a href="{{ route('admin.loginAs') }}" class="text-anchor-blue">
Log In As...
</a>
I 'npm run dev' and refresh the page, the link displays in black even though text-anchor-blue displays as an option choice in my IDE (phpstorm). I remove the tailwind.config.js changes and re-run 'npm run dev'
{{-- 4th step --}}
{{-- index.blade.php --}}
<a href="{{ route('admin.loginAs') }}" style="color: blue;">
Log In As...
</a>
I refresh the page, the link displays in blue.
Tailwind css is great, so I'm sure that I'm just missing something. All help is appreciated!
Best - Rick