Theme

Start Here

Start from the smallest working snippet, then move to interactive examples and the full API contract below.

Styled quick start

Copy this entrypoint first. It includes the imports required to get the component on screen.

svelte
<script lang="ts">
  import '@dryui/ui/themes/default.css';
  import '@dryui/ui/themes/dark.css';
  import { Heading } from '@dryui/ui';
</script>

<Heading level={2}>Launch readiness</Heading>

Import options

Root package

ts
import { Heading } from '@dryui/ui'

Per-component subpath

ts
import { Heading } from '@dryui/ui/heading'

Customize

Use the interactive examples to see common variants, states, and composition patterns before building your own.

Scale

Studio Overview

Launch readiness

Open approvals

svelte
<script lang="ts">
  import { Heading, Stack } from '@dryui/ui';
</script>

<Stack gap="sm">
  <Heading level={1}>Studio Overview</Heading>
  <Heading level={2}>Launch readiness</Heading>
  <Heading level={3}>Open approvals</Heading>
</Stack>

Starter kit card title

Workspace summary

Use the standalone Heading export when you want starter-kit typography without the Typography namespace.

svelte
<script lang="ts">
  import { Card, Heading, Text } from '@dryui/ui';
</script>

<Card.Root>
  <Card.Content>
    <Heading level={3}>Workspace summary</Heading>
    <Text as="p" color="secondary" size="sm" style="line-height: 1.6">Use the standalone Heading export when you want starter-kit typography without the Typography namespace.</Text>
  </Card.Content>
</Card.Root>

Compose

The full API contract lives here: props, CSS variables, and the public data attributes you can target when styling.

Prop Type Default Required Bindable
level
123456
2
children
Snippet

Forwards <h*> attributes via rest props. Common examples: id, style, aria-label.