Skip to content

Media queries transformations for device breakpoint preview to work with Tailwind CSS in Astro #16

@pshemek

Description

@pshemek

I just started my journey with the starter kit. I've added Tailwind CSS support to the Astro frontend (global.css file with @import "tailwindcss"). I tested by adding some classes to body tag in [...slug].astro like:

const bodyClass = 'text-base lg:text-lg';

and it works in general.

However, it doesn't work in responsive preview. I found documentation page about device breakpoint preview but I cannot get how to make media queries transformations to work with Tailwind CSS in Astro.

Is it possible? Could you point me to the right direction?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions