1.2.0 • Published 11 months ago

@myhealth-belgium/design-system v1.2.0

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

MyHealth.belgium.be Design System

The design system components to use when developing a web component to integrate with MyHealth.belgium.be.

By default, the design system components will be available on MyHealth.belgium.be. You don't need to load or package them in your own web component.

Using the design system components

Script tag

  • Put a script tag similar to this <script type='module' src='https://unpkg.com/@myhealth-belgium/design-system@1.0.0/dist/mijn-gezondheid-design-system/mijn-gezondheid-design-system.esm.js'></script> in the head of your index.html
  • Then you can use the element anywhere in your template, JSX, html etc

Node Modules

  • Run npm install @myhealth-belgium/design-system --save
  • Put a script tag similar to this <script type='module' src='node_modules/@myhealth-belgium/design-system/dist/mijn-gezondheid-design-system/mijn-gezondheid-design-system.esm.js'></script> in the head of your index.html
  • Make sure you import the _colors scss file as it adds all theme colors to the app :root styles as CSS custom properties.
  • Then you can use the element anywhere in your template, JSX, html etc

Loading it in your app

  • Run npm install @myhealth-belgium/design-system --save
  • Add this import in the main file of your app: import '@myhealth-belgium/design-system';
  • Make sure you import the _colors scss/css file as it adds all theme colors to the app :root styles as CSS custom properties.
  • Then you can use the element anywhere in your template, JSX, html etc

Importing the design system SASS styles

Import the styles from the design system package into your SASS files by using

@import '~@myhealth-belgium/design-system/dist/styles/colors'

@import '~@myhealth-belgium/design-system/dist/styles/fonts'

@import '~@myhealth-belgium/design-system/dist/styles/spacing'

@import '~@myhealth-belgium/design-system/dist/styles/table'

1.2.0

11 months ago

1.1.2

12 months ago

1.1.1

12 months ago

1.1.0

12 months ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago