Skip to content

Styles can't be applied in projects with global reset #395

Open
@vitonsky

Description

@vitonsky

What version of @tailwindcss/typography are you using?

0.5.16

What version of Node.js are you using?

v22.12.0

What browser are you using?

Firefox, Chrome, Safari

What operating system are you using?

macOS, Ubuntu

Reproduction repository

https://stackblitz.com/edit/chakra-ui-v3-n5edsoww?file=src%2FApp.tsx

Describe your issue

I use ChakraUI that uses CSS reset, and styles of tailwindcss-typography is not applies on my project, because of low weight of rules that are scoped in layers.

You may check my example to see a problem of such approach with layers i copied of tailwindcss-typography.

I propose to add option like disableLayers to unwrap styles of layers and let define it with simple selector like .prose in global scope.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions