npm i @shoelace-style/shoelace -S
Add schemas: [CUSTOM_ELEMENTS_SCHEMA]
in app.module.ts
Add
{
"glob": "**/*.*",
"input": "node_modules/@shoelace-style/shoelace/cdn",
"output": "/assets/shoelace"
}
to the assets list in angular.json
In index.html
, add this to the html
tag:
class="sl-theme-dark"
And add the follwoing to the head:
<link rel="stylesheet" href="/assets/shoelace/themes/dark.css" />
<script type="module" src="/assets/shoelace/shoelace-autoloader.js"></script>