This is a Web Component with Shadow DOM.
Styles are scoped and can't conflict!
Left border automatically applied.
All design tokens available via CSS variables.
Click the header to collapse this card.
Smooth animations built-in.
Works in both light and dark mode.
/assets/
styles/
tokens.css ← Design tokens only
components/
index.js ← Main export
base.js ← Base class & utilities
Card.js ← Card component
Button.js ← Button component
DashboardLayout.js ← Layout component
<!-- Import components --> <script type="module"> import '/assets/components/index.js'; </script> <!-- Use them in HTML --> <wr-card title="My Card" variant="glass"> Content here </wr-card> <wr-button variant="primary" icon="rocket"> Click Me </wr-button>
ES Modules work natively in browsers.
No Webpack, Vite, or bundler required.
Shadow DOM scopes styles.
CSS can't conflict between components.
Browser only loads what you import.
Unused components aren't downloaded.
Web Components are a standard.
Works with any framework or none.
Each component is self-contained.
One file per component.
Native browser API.
Will work forever.
Grid Item 1
Grid Item 2
Grid Item 3