@modyra/styles
v0.4.0
Published
Framework-agnostic style themes for modyra components.
Maintainers
Readme
@modyra/styles
Framework-agnostic CSS themes for Modyra
UI components — one class structure, five themes, every adapter (Angular
renderers, Lit elements, custom renderers built on @modyra/widgets).
Install
npm install @modyra/stylesStyle entry points
@modyra/styles/default.css@modyra/styles/material.css@modyra/styles/ios.css@modyra/styles/ionic.css@modyra/styles/base.css— structural styles only, bring your own look
// angular.json
"styles": ["@modyra/styles/default.css", "src/styles.scss"]// any bundler / web component app
import "@modyra/styles/default.css";Theming
Components render a documented, stable class structure (mdy-input,
mdy-control--invalid, mdy-overlay-panel, … — enforced by a parity
check across renderers). Override via CSS custom properties exposed by the
theme, or restyle the classes directly:
:root {
--mdy-color-primary: #7067ff;
--mdy-radius-md: 10px;
}The full token list and class contract: UI toolkit guide.
License
MIT © Lorenzo Muscherà
