diff --git a/components/src/ChartList/ChartList.mdx b/components/src/ChartList/ChartList.mdx index b66774bd..4064d0aa 100644 --- a/components/src/ChartList/ChartList.mdx +++ b/components/src/ChartList/ChartList.mdx @@ -6,7 +6,7 @@ import * as ChartListStories from './ChartList.stories.svelte'; # ChartList -Utility component for displaying a list of charts with associated embed URLs during development, typically at the `/` route of your Svelte project. +**Development-only** utility component for displaying a list of charts with associated embed, typically at the `/` route of your Svelte project. - `charts` is a list of `ChartSpec` objects of the following shape: @@ -19,6 +19,28 @@ Utility component for displaying a list of charts with associated embed URLs dur - `project` is a string of the shape `: `. +## Usage + +In your `+page.svelte`: + +```js + + + + + +``` + diff --git a/components/src/DevContainer/DevContainer.mdx b/components/src/DevContainer/DevContainer.mdx index b24cbdca..a2cdf838 100644 --- a/components/src/DevContainer/DevContainer.mdx +++ b/components/src/DevContainer/DevContainer.mdx @@ -6,7 +6,7 @@ import * as DevContainerStories from './DevContainer.stories.svelte'; # DevContainer -Development fixture for simulating the grid system and various UI features on [SWR.de](https://www.swr.de). Particularly useful for developing charts using the [breakout component](?path=/docs/layout-breakout--docs). +**Development-only** fixture for simulating the grid system and various UI features on [SWR.de](https://www.swr.de). Particularly useful for developing charts using the [breakout component](?path=/docs/layout-breakout--docs). @@ -14,18 +14,20 @@ Development fixture for simulating the grid system and various UI features on [S ## Usage +In your `+page.svelte`: + ```jsx {#if dev} - + {:else} {/if} -``` \ No newline at end of file +``` diff --git a/components/src/DevContainer/DevContainer.svelte b/components/src/DevContainer/DevContainer.svelte index 9caa4cd1..bedb7836 100644 --- a/components/src/DevContainer/DevContainer.svelte +++ b/components/src/DevContainer/DevContainer.svelte @@ -1,12 +1,13 @@ - -
+ +
{#if showHeader}
@@ -144,9 +151,8 @@ display: block; } .container { - --blue: hsl(221, 75%, 46%); - --blue-light: hsl(221, 100%, 95%); color: var(--blue); + background: var(--color-pageFill); font-family: 'SWR-VAR-Sans', sans-serif; } header {