Skip to content
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

Target inline and block codes with tailwind typography #2

Closed
wants to merge 2 commits into from

Conversation

imochoa
Copy link

@imochoa imochoa commented Aug 24, 2024

Before

Screenshot from 2024-08-24 10-21-20

After

Screenshot from 2024-08-24 10-43-09

Tailwind Typography cannot currently distinguish between inline and block code.

There is also a PR open upstring to get this plugin into upstream typography, so adding it like will probably not required at some point

What is kind of annoying is that in astro Class-based modifiers do not work with @apply directives

That means that you cannot just add @apply prose-inline-code:p-[.2em_.4em] to the src/styles/components.scss, but have to put the styles inline. That's what the astro documentation recommends anyway, but it does not look great

Can you think of a better solution here?

@imochoa imochoa self-assigned this Aug 24, 2024
@imochoa imochoa closed this Aug 24, 2024
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 this pull request may close these issues.

1 participant