Theme redirect #996
Answered
by
hasparus
atanasster
asked this question in
General
Theme redirect
#996
-
Great to see the discussions added, so first question :) Is it possible to redirect in the theme definitions for example, I wanted to do something like:
and use it
Thanks for the great work on system-ui/theme-ui, really enjoying it. |
Beta Was this translation helpful? Give feedback.
Answered by
hasparus
Jun 12, 2020
Replies: 1 comment 1 reply
-
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
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
atanasster
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
AFAIK this exact syntax is not supported, but you can always move styles to a separate variable and write the same thing without quotes: