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 { Container } from '@dryui/ui';
</script>

<Container>
  <p>Centered content</p>
</Container>

Import options

Root package

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

Per-component subpath

ts
import { Container } from '@dryui/ui/container'

Customize

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

Default Container

Default container with centered content and responsive padding.

svelte
<Container>
  <p>Default container with centered content and responsive padding.</p>
</Container>

Container sizes

Small container (max-width: sm)

Large container (max-width: lg)

Full-width container

svelte
<Container size="sm">
  <p>Small container (max-width: sm)</p>
</Container>

<Container size="lg">
  <p>Large container (max-width: lg)</p>
</Container>

<Container size="full">
  <p>Full-width container</p>
</Container>

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
size
smmdlgxlfull
Preset container width, not an arbitrary CSS length.
'lg'
padding
boolean
true
children
Snippet

Forwards <div> attributes via rest props. Common examples: id, style, role.