3.0.1 • Published 11 months ago

@myhealth-belgium/design-kit v3.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

MyHealth - Angular design kit

The MyHealth design kit is used for developing web components to integrate with MyHealth.belgium.be.

In this current version, the design kit only works with SCSS and Angular. The design kit is meant to be used with Angular Material and will modify the Angular Material system to fit MyHealth's style.

Installation

npm install @myhealth-belgium/design-kit @angular/material

Importing the Design Kit in SCSS

In your project's main SCSS file, include MH's core like so:

@use '@myhealth-belgium/design-kit' as mh;

@include mh.core($use-material: true, $use-local-fonts: true);

The options passed to mh.core() are $use-material & $use-local-fonts, which are defaulted to $use-material: true, $use-local-fonts: true if not specified.

If $use-material: true is added, the mixin will initialize Angular Material with MH's house style. Make sure to not import Angular Material into your application when this option is enabled. Including the mixin will include Angular Material for you.

If you add $use-local-fonts: true, the theme will use the woff2 font files provided instead of calling the Google Fonts CDN (resulting in a larger package size).

Mixins & optimization

To optimize the Design Kit and make packages as small as possible, you can choose to include a select amount of mixins to suit your application's needs.

For a full description on all the utilized mixins, please visit our Storybook mixins & optimization page.

MyHealth component overrides

You can override each component with MyHealth's styling individually. Or you can also import all these components at once with this SCSS mixin:

...

@include mh.override-all-mat-components();

For a full guide on how to add these components individually, please visit our Storybook components page.

MyHealth variables

For more information about how to use the MH design kit, please visit our Storybook.

3.0.1

11 months ago

3.0.0

11 months ago

2.3.0

1 year ago

2.2.0

1 year ago

2.5.0

11 months ago

2.4.1

12 months ago

2.3.2

1 year ago

2.4.0

12 months ago

2.3.1

1 year ago

2.3.4

1 year ago

2.3.3

1 year ago

2.1.0

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.1.0

2 years ago

1.0.0

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago