npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@marioschmidt/design-system-react

v1.8.2

Published

React wrapper components for BILD Design System

Readme

React Wrappers for BILD Design System

Part of the BILD Design Ops Pipeline | Components | Vue

React wrapper components for the BILD Design System, auto-generated from Stencil Web Components using @stencil/react-output-target.

npm version


Installation

npm install @marioschmidt/design-system-react @marioschmidt/design-system-tokens

Peer Dependencies:

  • react >= 17
  • react-dom >= 17
  • @marioschmidt/design-system-components ^1.0.0 (optional, auto-loaded)

Usage

Basic Usage

import { DsButton, DsCard } from '@marioschmidt/design-system-react';
import '@marioschmidt/design-system-tokens/css/bundles/bild.css';

function App() {
  return (
    <div data-color-brand="bild" data-content-brand="bild" data-theme="light">
      <DsButton variant="primary" onClick={() => alert('Clicked!')}>
        Click me
      </DsButton>

      <DsCard cardTitle="Hello World">
        <p>Card content goes here.</p>
      </DsCard>
    </div>
  );
}

With Theme Provider (Recommended)

import { DsButton, DsCard } from '@marioschmidt/design-system-react';
import '@marioschmidt/design-system-tokens/css/bundles/bild.css';

function ThemeProvider({ children, colorBrand, contentBrand, theme, density }) {
  return (
    <div
      data-color-brand={colorBrand}
      data-content-brand={contentBrand}
      data-theme={theme}
      data-density={density}
    >
      {children}
    </div>
  );
}

function App() {
  return (
    <ThemeProvider colorBrand="bild" contentBrand="bild" theme="light" density="default">
      <DsButton variant="primary">BILD Button</DsButton>
    </ThemeProvider>
  );
}

Available Components

| Component | Props | Description | |-----------|-------|-------------| | DsButton | variant, disabled | Interactive button with hover/active states | | DsCard | surface, cardTitle | Content container with shadow and padding |

DsButton

<DsButton variant="primary">Primary Button</DsButton>
<DsButton variant="secondary">Secondary Button</DsButton>
<DsButton variant="tertiary">Tertiary Button</DsButton>
<DsButton disabled>Disabled Button</DsButton>

Props: | Prop | Type | Default | Description | |------|------|---------|-------------| | variant | 'primary' \| 'secondary' \| 'tertiary' | 'primary' | Button style variant | | disabled | boolean | false | Disabled state |

DsCard

<DsCard cardTitle="Card Title">
  <p>Card content</p>
</DsCard>

<DsCard surface="secondary">
  <p>Secondary surface card</p>
</DsCard>

Props: | Prop | Type | Default | Description | |------|------|---------|-------------| | surface | 'primary' \| 'secondary' | 'primary' | Card surface variant | | cardTitle | string | - | Optional card title |


Theming

Components automatically adapt to design tokens via CSS Custom Properties.

Data Attributes

Set these on a parent element (usually <body> or a wrapper div):

| Attribute | Values | Purpose | |-----------|--------|---------| | data-color-brand | bild, sportbild | Colors & effects | | data-content-brand | bild, sportbild, advertorial | Typography & spacing | | data-theme | light, dark | Color mode | | data-density | default, dense, spacious | Spacing density |

Runtime Theme Switching

function App() {
  const [theme, setTheme] = useState('light');

  return (
    <div data-color-brand="bild" data-theme={theme}>
      <button onClick={() => setTheme(t => t === 'light' ? 'dark' : 'light')}>
        Toggle Theme
      </button>
      <DsButton variant="primary">Themed Button</DsButton>
    </div>
  );
}

How It Works

  1. Stencil builds Web Components with Shadow DOM
  2. React output target generates wrapper components during build
  3. Wrappers use defineCustomElement to lazy-load the actual Web Component
  4. CSS Custom Properties inherit through the Shadow DOM for theming

The React wrappers provide:

  • Full TypeScript support with proper prop types
  • React event handling (onClick, onChange, etc.)
  • Ref forwarding to the underlying Web Component
  • Tree-shakeable imports

TypeScript

Full TypeScript support is included:

import { DsButton, DsCard } from '@marioschmidt/design-system-react';
import type { JSX } from '@marioschmidt/design-system-components';

// Props are fully typed
const buttonProps: JSX.DsButton = {
  variant: 'primary',
  disabled: false,
};

Related

| Package | Description | |---------|-------------| | @marioschmidt/design-system-components | Core Stencil Web Components | | @marioschmidt/design-system-vue | Vue 3 wrapper components | | @marioschmidt/design-system-tokens | Design tokens (CSS, JS, iOS, Android) |


License

MIT