A frontend module for adding custom style to Kapsiki Healthcare 3.x apps and Distributions.
The purpose of this microfrontend is to inject the custom style into the <head></head>
tag of the application's HTML file.
Using a script, it creates a <link rel="" href=""></link>
tag whose href="" attribute points either:
- to the CSS file
mandara.css
build result of the SCSS files - the link to a css file specified in OpenMRS configurations.
# Clone the repository
git clone https://github.com/kapsiki/kapsiki-esm-styleguide-app.git
# to install dependencies
yarn
# to run the dev server
yarn start
# OR to start on a specified port eg 5000
yarn start --port 5000
Once it is running, a browser window
should open with the OpenMRS 3 application. Log in and then navigate to
/openmrs/spa/home
.
yarn run test