2021-04-14 10:53:23 +02:00
|
|
|
<script>
|
|
|
|
import "@spectrum-css/typography/dist/index-vars.css"
|
|
|
|
|
|
|
|
// Sizes
|
|
|
|
export let xxxl = false;
|
|
|
|
export let xxl = false;
|
|
|
|
export let xl = false;
|
|
|
|
export let l = false;
|
|
|
|
export let m = false;
|
|
|
|
export let s = false;
|
|
|
|
export let xs = false;
|
|
|
|
export let xxs = false;
|
|
|
|
|
|
|
|
export let serif = false;
|
2021-04-21 13:21:43 +02:00
|
|
|
$: useDefault = ![xxxl, xxl, xl, l, m, s, xs, xxs].includes(true)
|
2021-04-14 10:53:23 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<p class="spectrum-Body"
|
|
|
|
class:spectrum-Body--serif={serif}
|
|
|
|
class:spectrum-Body--sizeXXXL={xxxl}
|
|
|
|
class:spectrum-Body--sizeXXL={xxl}
|
|
|
|
class:spectrum-Body--sizeXL={xl}
|
|
|
|
class:spectrum-Body--sizeL={l}
|
2021-04-21 13:21:43 +02:00
|
|
|
class:spectrum-Body--sizeM={m || useDefault}
|
2021-04-14 10:53:23 +02:00
|
|
|
class:spectrum-Body--sizeS={s}
|
|
|
|
class:spectrum-Body--sizeXS={xs}
|
|
|
|
class:spectrum-Body--sizeXXS={xxs}>
|
|
|
|
<slot />
|
|
|
|
</p>
|