Angular UI kit with shared md-* components and SCSS entry points.
The library exposes a CSS variables theme layer:
Example :@use '@natec/mef-dev-ui-kit/styles/core' as *;core includes only the default theme and its CSS custom properties.
All other style layers are optional. Import only the styles used by the application:
Example :@use '@natec/mef-dev-ui-kit/styles/fonts';
@use '@natec/mef-dev-ui-kit/styles/typography';
@use '@natec/mef-dev-ui-kit/styles/buttons';
@use '@natec/mef-dev-ui-kit/styles/form-elements';
@use '@natec/mef-dev-ui-kit/styles/grid-bordered';
@use '@natec/mef-dev-ui-kit/styles/grid-table';styles/buttons contains only the class-based .btn* styles. Components using an md-*-button
attribute include their own styles through MDButtonModule and do not require this Sass entry point.
For theme tokens only:
Example :@use '@natec/mef-dev-ui-kit/styles/theme' as *;The default theme is light and is applied to :root, .md-theme, and .md-theme-light.
Use .md-theme-dark on a container to switch a subtree to the dark theme:
<div class="md-theme-dark">
<md-card>Dark themed content</md-card>
</div>Override tokens globally or inside a scoped theme container:
Example ::root {
--md-color-primary: #6d5cae;
--md-color-danger: #cf0106;
--md-font-body: 'Open Sans', Arial, sans-serif;
--md-button-radius: 5px;
}The theme layer also bridges the main Bootstrap variables (--bs-primary, --bs-danger, --bs-body-font-family, and related tokens) to the --md-* values.
npm run build