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
When starting this project, I chose Tailwind for a few reasons:
I love it
I'm already familiar with it, so I don't need the extra time to learn other frameworks
I want to see how far I can get by creating my own styles (and a few other small libraries, e.g. github-syntax-light) to match GitHub's design.
However, when I started adding support for themes and other complex Markdown features (e.g. permalink code snippets), it started to become trickier to apply the correct style. It's not Tailwind's fault, it's just that the generated HTML is optimized for use with @primer's utilities, e.g. @primer/components, @primer/css, @primer/primitives.
Downsides to switching the frameworks/libraries used are:
I need more time to learn @primer stuff
I need time to rework the components
Increased bundle size.
I tried just including @primer/css and it increased the build output by tens of kilobytes. Considering that the current size is only ~30KB and we managed to get it running quite beautifully, I really want to keep it small.
The text was updated successfully, but these errors were encountered:
When starting this project, I chose Tailwind for a few reasons:
github-syntax-light
) to match GitHub's design.However, when I started adding support for themes and other complex Markdown features (e.g. permalink code snippets), it started to become trickier to apply the correct style. It's not Tailwind's fault, it's just that the generated HTML is optimized for use with
@primer
's utilities, e.g. @primer/components, @primer/css, @primer/primitives.Downsides to switching the frameworks/libraries used are:
@primer
stuffI tried just including
@primer/css
and it increased the build output by tens of kilobytes. Considering that the current size is only ~30KB and we managed to get it running quite beautifully, I really want to keep it small.The text was updated successfully, but these errors were encountered: