You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just expanding on the second and third points for clarity:
Typography.js current generates a style object that is more inline with standard CSS syntax, with nested selectors and media queries. When using a library like Emotion, child selectors, pseudoclasses, and media queries tend to be nested within a single component's style object. I think it would be nice if the styles generated by Typography.js could support both style object shapes for different approaches.
// current, more-CSS like object
styles: {'ol, ul': {listStylePosition: 'outside',listStyleImage: 'none',},li: {marginBottom: `calc(${blockMarginBottom} / 2)`,},'ol li, ul li': {paddingLeft: 0,}}
The second style object is a little more verbose but helps with style encapsulation, and would mean that theme-ui can ditch its style object transformation utility
Hey all, going to finally get my PR merged for v2.
I'm talking to @jxnblk, @johno, and @fk about a possible v2 with better integration with https://github.com/system-ui/theme-ui
Some ideas in no particular order:
rem
topx
which should work but needs testedblockquote:last-child
andli > p
as these are hard to override in css-in-js as those tend to only style elementsThe text was updated successfully, but these errors were encountered: