Next.js Discord

Discord Forum

Tailwind CSS + Nextjs

Answered
Cursinu posted this in #help-forum
Open in Discord
Avatar
CursinuOP
Just started using nextjs got it to work somewhat but forsome reason i cant seem to get the
<h1 class="text-3xl font-bold underline text-white-300">Hello world!</h1>
text-white-300 to work. Im not sure if its something im missing i have a docker section and even taking docker out of the equation it still does not seem to turn the text white.
export default function Home() {
  return (
  <h1 className="text-3xl font-bold underline text-white-300">
    Hello world!
  </h1>
  )
}

1. i have played around with lots of configs.
2. I have looked at offical docs for Tailwind & nextjs and cant get it to work with there base info.



https://github.com/Grasume/titex
Answered by KINXZ
There is no text-white-300 in tailwind
https://tailwindcss.com/docs/text-color
what you are looking for might be text-neutral-300
View full answer

2 Replies

Avatar
KINXZ
There is no text-white-300 in tailwind
https://tailwindcss.com/docs/text-color
what you are looking for might be text-neutral-300
Answer
Avatar
CursinuOP
@KINXZ i feel dumb thanks prob threw me off since there is a text-white just no number options which in retro makes sense lol