Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The following docs reference includes code that no longer works. #786

Closed
pmnzt opened this issue Jan 1, 2024 · 2 comments
Closed

The following docs reference includes code that no longer works. #786

pmnzt opened this issue Jan 1, 2024 · 2 comments
Labels
bug Something isn't working documentation

Comments

@pmnzt
Copy link
Contributor

pmnzt commented Jan 1, 2024

reference.

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
      }
    }
  }
}
@pmnzt pmnzt added the question Further information is requested label Jan 1, 2024
@ineshbose ineshbose added bug Something isn't working documentation and removed question Further information is requested labels Jan 1, 2024
@manniL
Copy link
Contributor

manniL commented Jan 2, 2024

@pmnzt PR to the docs welcome!

@pmnzt
Copy link
Contributor Author

pmnzt commented Jan 4, 2024

@manniL

@pmnzt PR to the docs welcome!

Sorry for being late!
Here is the PR #788

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation
Projects
None yet
Development

No branches or pull requests

3 participants