radix-ui / design-system

Design system that was used by @modulz. It’s now archived and superceded by Radix Themes. (See https://github.com/radix-ui/themes)
https://design-system.modulz-deploys.com/
MIT License
2.28k stars 176 forks source link

Include CSS reset in published bundle #368

Open penx opened 2 years ago

penx commented 2 years ago

Part of the CSS reset styles.css is important in order for some components to render correctly (e.g. an icon within a button needs the SVG to be display: block).

This file is not currently included in the published bundle.

I notice that you currently reimplement this reset when the design system is used, e.g.

https://github.com/radix-ui/website/blob/8b967e9506182ffb721eaaa2344fcd11f9f17310/pages/_app.tsx#L15-L50

I think it would be good to include most of the contents of the styles.css (i.e. without the next js specifics) in the published bundle so that it could optionally be used directly without re implementing the reset.