Skip to content
This repository was archived by the owner on Apr 6, 2021. It is now read-only.

gradientColorStops behaves differently #122

Closed
jayars opened this issue Mar 20, 2021 · 1 comment · Fixed by #127
Closed

gradientColorStops behaves differently #122

jayars opened this issue Mar 20, 2021 · 1 comment · Fixed by #127

Comments

@jayars
Copy link

jayars commented Mar 20, 2021

What version of @tailwindcss/jit are you using?

v0.1.4

What version of Node.js are you using?

14.10.1

What browser are you using?

Chrome

What operating system are you using?

Windows 10

Reproduction repository

https://github.com/jayars/tailwindcss-jit-gradientcolorstop

Hi,

gradientColorStops seems to behave differently when using @tailwindcss/jit.

  • tailwindcss: Custom gradient stops work
  • @tailwindcss/jit: Custom gradient stops don't work

image

Not sure if this is as-designed or a bug.

postcss.config.js

module.exports = {
  plugins: {
    '@tailwindcss/jit': {},
    autoprefixer: {},
  },
}

tailwind.config.js

module.exports = {
  ...
  theme: {
    extend: {
      gradientColorStops: {
        x: '#b1eafc',
        y: '#fbd7f8'
      }
    }
  }
  ...
}

Thanks

@jayars jayars changed the title gradientColorStops not working gradientColorStops behaves differently Mar 20, 2021
@adamwathan
Copy link
Member

Fixed in v0.1.5, thanks for reporting!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants