Skip to content

Theme redirect #996

Answered by hasparus
atanasster asked this question in General
Jun 10, 2020 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

AFAIK this exact syntax is not supported, but you can always move styles to a separate variable and write the same thing without quotes:

import { Theme, ThemeStyles } from '@theme-ui/css';

const styles: ThemeStyles = {
  h1: { color: "hotpink" }
}

const theme: Theme = {
  text: {
    title: styles.h1
  }
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@atanasster
Comment options

atanasster Jun 12, 2020
Collaborator Author

Answer selected by atanasster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants