Skip to content

Create style objects like makeStyles #23

Answered by Mokshit06
lvl-mattwells asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, I don't think adding makeStyles to macaron is a good choice, as makeStyles needs to be aware of the theme it is accessing and you can have multiple themeVars in an app for different purposes, so there's no real way for macaron to know which theme it should access. I think referring the theme by importing it normally is better since it helps keep track of which theme is being used and you can find all the references of it easily with typescript.

Replies: 1 comment

Comment options

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