milandekruijf / pandacss-preset-typography

Typography preset for PandaCSS
https://milandekruijf.com/work/pandacss-preset-typography
MIT License
24 stars 2 forks source link

0.0.16 support #4

Closed NiklasPor closed 1 year ago

NiklasPor commented 1 year ago

I've installed it into my Qwik project with @pandacss/dev and it just doesn't seem to generate the code for the matching selector.

The recipe is generated, but the styling is not applied. In my tries it worked neither with or without a size.

import { component$, Slot } from '@builder.io/qwik';
import { Box, Container, prose } from '@fancypage/styles';

export const MdxPage = component$(() => (
  <Container maxW="page" px="16">
    <Box class={prose({ size: 'lg' })}>
      <Slot />
    </Box>
  </Container>
));
milandekruijf commented 1 year ago

It's working fine on my end. Make sure you configured it correctly. Also, I am not sure how panda handles re-exports, so it might not even be able to detect that you have a prose call there.

NiklasPor commented 1 year ago

Interesting, I do everything via re-export – but maybe it's not working for recipes. I'll investigate further and add an update here if I manage to get it working.

NiklasPor commented 1 year ago

My bad, it was the reexport 🤦 Would have expected it to work, as it's also working for the defaults. Thanks!