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 code separately in Tailwind Typography #45

Open
wants to merge 2 commits into
base: main
Choose a base branch
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 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?

Copy link

netlify bot commented Aug 24, 2024

Deploy Preview for astroplate ready!

Name Link
🔨 Latest commit 6074cd5
🔍 Latest deploy log https://app.netlify.com/sites/astroplate/deploys/66c9a11bb2d28a0008bfaf2f
😎 Deploy Preview https://deploy-preview-45--astroplate.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@imochoa imochoa changed the title 20240824 target inline and block code Target inline and block code separately in Tailwind Typography 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