design-system icon indicating copy to clipboard operation
design-system copied to clipboard

Include CSS reset in published bundle

Open penx opened this issue 3 years ago • 0 comments

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.

penx avatar Feb 04 '22 16:02 penx