Skip to content

showPixelEquivalents not working with theme() #927

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
shuffgy opened this issue Mar 18, 2024 · 1 comment · Fixed by #935
Closed

showPixelEquivalents not working with theme() #927

shuffgy opened this issue Mar 18, 2024 · 1 comment · Fixed by #935

Comments

@shuffgy
Copy link

shuffgy commented Mar 18, 2024

What version of VS Code are you using?

v1.87.2

What version of Tailwind CSS IntelliSense are you using?

v0.10.5

What version of Tailwind CSS are you using?

v3.4.1

What package manager are you using?

npm

What operating system are you using?

macOS

Tailwind config

/* eslint-disable @typescript-eslint/no-var-requires */
const plugin = require('tailwindcss/plugin');

/** @type {import('tailwindcss').Config} */
module.exports = {
  content: [
    './src/build/javascript/**/*.js',
    './packages/**/*.{html,tsconfig,typoscript,php}'
  ],
  theme: {
    fontFamily: {
        'barlow': ['Barlow Semi Condensed', 'sans-serif'], // base font
        'iconfont': ['iconfont'] // Iconfont
    },
    extend: {
        colors: {
            'primary': '#2A2A2A',
            'sw-gray': '#6a6a69',
            'sw-green': '#36CD5E',
            'sw-yellow': '#FAF613',
            'sw-orange': '#FF6C31',
            'sw-cyan': '#5DDFD9',
            'sw-pink': '#FA67DC',
            'sw-red': '#EE2E4A',
            'sw-blue': '#EE2E4A'
        }
    },
  },
  plugins: [
    require('@tailwindcss/typography'),
    require('@tailwindcss/forms'),
    require('@tailwindcss/container-queries'),
    plugin(function ({ addBase }) {
        addBase({
            ':root': { fontSize: "16px" }, // base font size = 1rem
        })
    }),
  ],
}

VS Code settings

image

Describe your issue

tailwindCSS.showPixelEquivalents not working on theme() function in .css Files, but @appy works.

image

image

Same with font-size configs:
image

Maybe i'm missing something?

@thecrypticace
Copy link
Contributor

This has been updated and will be available in the pre-release version in a few.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants