Skip to content

Conflict with @angular/material mixins #688

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

Closed
NicholaAlkhouri opened this issue Jan 4, 2023 · 0 comments · Fixed by #689
Closed

Conflict with @angular/material mixins #688

NicholaAlkhouri opened this issue Jan 4, 2023 · 0 comments · Fixed by #689
Assignees

Comments

@NicholaAlkhouri
Copy link

What version of Tailwind CSS IntelliSense are you using?

0.9.2

What version of Tailwind CSS are you using?

3.2.4

What package manager are you using?

yarn

What operating system are you using?

macOS

Tailwind config

module.exports = {
  content: [
    "./apps/**/*.{html,ts}",
    "./libs/**/*.{html,ts}",
  ],
  darkMode: 'media', // or 'media' or 'class'
  theme: {
    extend: {},
  },
  plugins: [],
}

Describe your issue

After updating to Tailwind CSS IntelliSense v0.9.2, the extension start complaining about material theme/config mixins as if they are tailwind functions. could be the RegEx used to detect the tailwind functions is not correct.
for example for the following:

$my-custom-typography-config: mat.define-typography-config(
  $font-family: 'var(--font-family-sans)'
);

$my-theme: mat.define-light-theme(
  (
    typography: $my-custom-typography-config,
  )
);

I get two errors:

'$font-family: 'var(--font-family-sans' does not exist in your theme config. Did you mean 'prefix'?
typography: $my-custom-typography-config,' does not exist in your theme config.
@bradlc bradlc self-assigned this Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants