@kyralabs/m3e-css
v1.5.0
Published
Framework-free Material 3 Expressive component classes. No JavaScript.
Maintainers
Readme
@kyralabs/m3e-css
Framework-free Material 3 Expressive component classes. No JavaScript. The styles reference the
--m3e-* custom properties from @kyralabs/m3e-tokens.
npm install @kyralabs/m3e-css @kyralabs/m3e-tokensUsage
@import '@kyralabs/m3e-tokens/fonts.css';
@import '@kyralabs/m3e-tokens/tokens.css';
@import '@kyralabs/m3e-tokens/theme.css';
@import '@kyralabs/m3e-tokens/material-symbols.css';
@import '@kyralabs/m3e-css/index.css';<button type="button" class="m3e-button m3e-button--filled m3e-button--size-m">Save</button>
<button type="button" class="m3e-icon-button m3e-icon-button--filled" aria-label="Search">
<span class="m3e-icon" aria-hidden="true">search</span>
</button>Canonical layouts (layout.css): .m3e-layout is a size container; inside it
.m3e-pane-scaffold--list-detail / --supporting-pane show one, two or three panes by its width
(m3.material.io's counts: three from 1600px; add --compose for Compose's, three from 1200px;
data-destination picks the single pane) and .m3e-feed is the feed grid.
Import a single component with @kyralabs/m3e-css/<component>.css (for example button.css).
Classes follow .m3e-<component>, __<part> and --<modifier>.
Apache-2.0; see LICENSE and NOTICE.
