benface / tailwindcss-typography

Tailwind CSS plugin to generate typography utilities and text style components
ISC License
244 stars 5 forks source link

Not working with @screen in TW 2 #30

Closed Kcko closed 2 years ago

Kcko commented 3 years ago

Code:

theme: {
        textStyles: theme => ({
            heading: {
                output: false, // this means there won't be a "heading" component in the CSS, but it can be extended
                fontWeight: theme('fontWeight.bold'),
                lineHeight: theme('lineHeight.tight'),
            },

            h5: {
                extends: 'heading',
                fontSize: theme('fontSize.4xl'),
                '@screen md': {
                    fontSize: theme('fontSize.3xl'),
                },
                '@screen sm': {
                    fontSize: theme('fontSize.2xl'),
                },
            },
            h6: {
                extends: 'heading',
                fontSize: theme('fontSize.xl'),
            },
        })

And output is SCREEN[]

How to solve it? is this plugin still maintained?

benface commented 3 years ago

is this plugin still maintained?

It's not abandoned but not actively maintained at the moment, as I haven't had a need for this plugin in a while. It definitely should work with Tailwind 2 though, so I'll try to fix this bug soon. If you need it sooner, PRs are more than welcome!

Kcko commented 3 years ago

Thx for answer. Ur plugin has more better config, more readable for me than official tailwind typo plugin. I hope that you solve in future :-)

Thx for fast answer.

benface commented 2 years ago

Hey @Kcko, I'm sorry but in the end, I decided to deprecate this plugin. I clearly don't have time to maintain it anymore, and Tailwind has added support for most of its features. It's only a matter of time for the rest of them. Please read the note at the top of the README. Thanks!