Skip to content

Is it possible to use globalCss with variables? #996

Answered by mattp0123
igortullio asked this question in Help
Discussion options

You must be logged in to vote

I can do this:

import { createStitches } from '@stitches/react';

const { globalCss } = createStitches({
  // Your config here
})

// Create global CSS with theme
const useGlobalStyles = globalCss({
  // Your global styles with theme variable
})

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by igortullio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants