@marvalt/dstyler
v0.1.53
Published
Zero-config design system package for styling WordPress content in DigiVAlt applications
Downloads
890
Readme
@marvalt/dstyler
Zero-config design system for styling WordPress Gutenberg content in DigiValt React apps. Maps WP theme tokens to CSS variables and provides section/block templates (StyledPage, AutoSection, heroes, footers).
When you need it
Use with @marvalt/wparser when you want automatic layout and typography from WordPress theme_styles in static JSON. Enable in digivalt-core via VITE_USE_DSTYLER=true.
Installation
npm install @marvalt/dstylerPeers: React 18+, React DOM 18+.
Entry points
import { ThemeProvider, StyledPage, AutoSection } from '@marvalt/dstyler';Environment (summary)
| Variable | Required | Notes |
|----------|----------|-------|
| VITE_USE_DSTYLER | App-level | Set true in digivalt-core apps to load dstyler theme pipeline |
| VITE_THEME | Optional | Theme name (default digivalt_core) |
See docs/ENVIRONMENT.md.
Documentation
- After install:
node_modules/@marvalt/dstyler/docs/README.md - WordPress blocks:
@marvalt/wparser - Orchestration:
@marvalt/digivalt-core
