@modkit-org/kompass
v0.0.3
Published
Accessible web components following WCAG 2.1 AA and Norwegian regulations
Maintainers
Readme
@modkit/kompass
⚠️ Work in Progress - This package is under active development. APIs may change.
Zero-dependency vanilla web components with accessibility in mind.
Installation
npm install @modkit/kompassUsage
Import and use components directly:
import '@modkit/kompass';Use in HTML:
<mk-button variant="primary">Click me</mk-button>
<mk-input label="Email" type="email"></mk-input>
<mk-alert variant="info" title="Note">This is an alert.</mk-alert>Customization
Components expose CSS custom properties for theming:
mk-button {
--mk-button-primary-bg: #1e3a5f;
--mk-button-border-radius: 0.5rem;
}Browser Support
Requires browsers with support for:
- Custom Elements v1
- Shadow DOM v1
- CSS Custom Properties
License
MIT © ModKit
