@sentropic/design-system-vue
v0.37.0
Published
Vue 3 components for the Sentropic design system.
Readme
@sentropic/design-system-vue
Vue 3 implementation of the Sentropic design-system component catalog. The package ships ESM JavaScript, TypeScript declarations, and the shared component CSS.
Installation
npm install @sentropic/design-system-vue @sentropic/design-system-themesVue 3 is a peer dependency:
npm install vueUsage
Import the package CSS once at the app or preview boundary, then render components inside ThemeProvider.
<script setup>
import { Button, Card, ThemeProvider } from "@sentropic/design-system-vue";
import "@sentropic/design-system-vue/styles.css";
</script>
<template>
<ThemeProvider>
<Card>
<strong>Release plan</strong>
<Button>Open plan</Button>
</Card>
</ThemeProvider>
</template>ThemeProvider defaults to the Sent Tech theme. Tenant themes can be supplied from @sentropic/design-system-themes, @sentropic/design-system-theme-dsfr, @sentropic/design-system-theme-canada, or @sentropic/design-system-theme-quebec.
<script setup>
import { ThemeProvider } from "@sentropic/design-system-vue";
import { dsfrTheme } from "@sentropic/design-system-theme-dsfr";
</script>
<template>
<ThemeProvider :theme="dsfrTheme">
<!-- your content -->
</ThemeProvider>
</template>Exports
@sentropic/design-system-vue: all public Vue components and TypeScript props.@sentropic/design-system-vue/styles.css: component CSS consumed by every theme.
The package includes declarations through dist/index.d.ts and marks dist/styles.css as a side effect so bundlers keep the stylesheet import.
Build
npm --workspace @sentropic/design-system-vue run build
npm --workspace @sentropic/design-system-vue run testPublishing is handled by .github/workflows/vue-publish.yml with a vue-v* tag.
