Skip to content

Commit

Permalink
fix(components): add icons and palettes to the playground (#4134)
Browse files Browse the repository at this point in the history
  • Loading branch information
alizedebray authored Dec 4, 2024
1 parent 354aa2e commit 37c2c7b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"@floating-ui/dom": "1.6.8",
"@oddbird/popover-polyfill": "0.3.7",
"@swisspost/design-system-styles": "workspace:9.0.0-next.7",
"@swisspost/design-system-icons": "workspace:9.0.0-next.7",
"ally.js": "1.4.1",
"long-press-event": "2.5.0"
},
Expand Down
2 changes: 2 additions & 0 deletions packages/components/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
name="viewport"
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0"
/>
<meta name="design-system-settings" data-post-icon-base="/assets/icons" />
<title>Stencil Component Starter</title>

<link id="tokens" rel="stylesheet" href="/assets/css/post-tokens-external.css" />
<link id="palette" rel="stylesheet" href="/assets/css/post-palettes.css" />
<link rel="stylesheet" href="/assets/css/index.css" />
<script type="module" src="/build/post-components.esm.js"></script>
<script nomodule src="/build/post-components.js"></script>
Expand Down
8 changes: 8 additions & 0 deletions packages/components/stencil.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ export const config: Config = {
src: '../node_modules/@swisspost/design-system-styles/*.css',
dest: 'assets/css',
},
{
src: '../node_modules/@swisspost/design-system-styles/palettes/*.css',
dest: 'assets/css',
},
{
src: '../node_modules/@swisspost/design-system-icons/public/post-icons/*.svg',
dest: 'assets/icons',
},
],
serviceWorker: null, // disable service workers,
},
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 37c2c7b

Please sign in to comment.