nuxt-modules / nuxt-modules/tailwindcss

post css problem i guess

Open
#1,033 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
1.9k
Forks
192
PR merge metrics
No merged PRs in 30d

Description

Environment

"nuxt": "3.17.4",
"@nuxtjs/tailwindcss": "6.13.1",

Reproduction

No response

Describe the bug

Hi, with old version i was able to use like background-color: theme('colors.success.400') !important;

normally i am importing css files in
plugins like this
import '@/assets/css/toast.scss'

but after i upgrade the version

i get error like this

[postcss] /Users/Desktop/assets/css/toast.scss:10:3: 'colors.success.400' does not exist in your theme config. 'colors' has the following keys: 'inherit', 'current', 'transparent', 'black', 'white', 'slate', 'gray', 'zinc', 'neutral', 'stone', 'red', 'orange', 'amber', 'yellow', 'lime', 'green', 'emerald', 'teal', 'cyan', 'sky', 'blue', 'indigo', 'violet', 'purple', 'fuchsia', 'pink', 'rose'

what am i doing wrong normally i have success color in my tailwind file

Additional context

No response

Logs

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with assets/css/toast.scss and the Tailwind configuration used with Nuxt 3.17.4 and @nuxtjs/tailwindcss 6.13.1; compare the configured success color with the theme('colors.success.400') reference. Done means the stylesheet builds without the reported PostCSS error and the intended color is available.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxt, scss, tailwindcss
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.