One of my most significant issues with Global Styles is that it’s just an embed wrapper with position: absolute
set to it. The organization is pretty good, but it could be better. Especially cause I add custom code to my stuff a lot, and want it to show up on all my pages without creating another component. Plus I fear the 10,000 character limit for an embed.
The style guide is divided into specific sections, so what if Global Styles was divided into separate embeds and wrapped into a div called global-styles
?
Classes would be organized as:
global-styles
(div wrapper)global-styles-typography
global-styles-spacing
global-styles-utility
global-styles-script
global-styles-custom
The above are just class ideas, what it really would allow, is for us to create whatever global-styles-
classes we’d like, and have it all wrapped in div, keeping everything better organized.