jxnblk / tachyons-components

React UI components powered by Tachyons with a styled-components like API
MIT License
411 stars 15 forks source link

Classe Style not insert on the compilation #5

Closed Flavien-Pensato closed 7 years ago

Flavien-Pensato commented 7 years ago

I try to use the styled method for my body element for a nextjs application:

render() { const Body = ({ className, children }) => (

{children}
);

const StyledBody = styled(Body)w-100 sans-serif bg-white`;

return (
  <html>
    <Head>
      <script type="text/javascript" src="something"></script>
    </Head>
    <StyledBody>
      <Main />
      <NextScript />
    </StyledBody>
  </html>
)

} } `

So classes are correctly insert but the css is missing. Strange thing, this work fine for my buttons.

Can you help me?

Flavien-Pensato commented 7 years ago

The answer here