Skip to content

Commit

Permalink
feature: render a theme upon using its className
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathantneal committed Aug 23, 2021
1 parent 537ce03 commit f75e0a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/src/features/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ export const createThemeFunction = (

return {
...themeObject,
className,
get className() {
return render()
},
selector,
toString: render,
}
Expand Down

0 comments on commit f75e0a8

Please sign in to comment.