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-vue

v1.8.2

Published

Vue wrapper components for BILD Design System

Readme

Vue 3 Wrappers for BILD Design System

Part of the BILD Design Ops Pipeline | Components | React

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

npm version


Installation

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

Peer Dependencies:

  • vue >= 3
  • @marioschmidt/design-system-components ^1.0.0 (optional, auto-loaded)

Usage

Basic Usage

<script setup>
import { DsButton, DsCard } from '@marioschmidt/design-system-vue';
</script>

<template>
  <div data-color-brand="bild" data-content-brand="bild" data-theme="light">
    <DsButton variant="primary" @click="handleClick">
      Click me
    </DsButton>

    <DsCard card-title="Hello World">
      <p>Card content goes here.</p>
    </DsCard>
  </div>
</template>

<style>
@import '@marioschmidt/design-system-tokens/css/bundles/bild.css';
</style>

With Theme Provider (Recommended)

<!-- ThemeProvider.vue -->
<script setup>
defineProps({
  colorBrand: { type: String, default: 'bild' },
  contentBrand: { type: String, default: 'bild' },
  theme: { type: String, default: 'light' },
  density: { type: String, default: 'default' },
});
</script>

<template>
  <div
    :data-color-brand="colorBrand"
    :data-content-brand="contentBrand"
    :data-theme="theme"
    :data-density="density"
  >
    <slot />
  </div>
</template>
<!-- App.vue -->
<script setup>
import { DsButton } from '@marioschmidt/design-system-vue';
import ThemeProvider from './ThemeProvider.vue';
</script>

<template>
  <ThemeProvider color-brand="bild" theme="light">
    <DsButton variant="primary">BILD Button</DsButton>
  </ThemeProvider>
</template>

Available Components

| Component | Props | Description | |-----------|-------|-------------| | DsButton | variant, disabled | Interactive button with hover/active states | | DsCard | surface, card-title | 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 card-title="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 | | card-title | string | - | Optional card title |

Note: In Vue templates, use kebab-case for props (e.g., card-title instead of cardTitle).


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

<script setup>
import { ref } from 'vue';
import { DsButton } from '@marioschmidt/design-system-vue';

const theme = ref('light');
const toggleTheme = () => {
  theme.value = theme.value === 'light' ? 'dark' : 'light';
};
</script>

<template>
  <div data-color-brand="bild" :data-theme="theme">
    <button @click="toggleTheme">Toggle Theme</button>
    <DsButton variant="primary">Themed Button</DsButton>
  </div>
</template>

How It Works

  1. Stencil builds Web Components with Shadow DOM
  2. Vue 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 Vue wrappers provide:

  • Full TypeScript support with proper prop types
  • Vue event handling (@click, @change, etc.)
  • v-model support where applicable
  • Tree-shakeable imports

TypeScript

Full TypeScript support is included:

<script setup lang="ts">
import { DsButton, DsCard } from '@marioschmidt/design-system-vue';
import type { JSX } from '@marioschmidt/design-system-components';

// Props are fully typed
const buttonVariant: JSX.DsButton['variant'] = 'primary';
</script>

<template>
  <DsButton :variant="buttonVariant">Typed Button</DsButton>
</template>

Vite Configuration

If using Vite, you may need to configure custom element handling:

// vite.config.ts
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';

export default defineConfig({
  plugins: [
    vue({
      template: {
        compilerOptions: {
          // Treat ds-* tags as custom elements
          isCustomElement: (tag) => tag.startsWith('ds-'),
        },
      },
    }),
  ],
});

Related

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


License

MIT