# Dot Nav (`.z-dotnav`)

> Dot-style indicator navigation for slideshows and lightboxes, horizontal or vertical.

- **Kind:** css
- **Category:** navigation

## CSS Variables

| Variable | Default | Scope | Affects | Description |
| --- | --- | --- | --- | --- |
| `--z-dotnav-dot-active-color` | `var(--z-primary)` | `.z-dotnav` | `background-color` | Active dot base color, mixed with transparency using `--z-dotnav-dot-active-o`. |
| `--z-dotnav-dot-active-length` | `1.5rem` | `.z-dotnav` | `height`, `width` | Length of the active dot (elongated pill). |
| `--z-dotnav-dot-active-o` | `100%` | `.z-dotnav` | `background-color` | Active dot opacity percentage used in the color mix. |
| `--z-dotnav-dot-color` | `var(--z-bg-f)` | `.z-dotnav` | `background-color` | Dot base color, mixed with transparency using `--z-dotnav-dot-o`. |
| `--z-dotnav-dot-hover-o` | `45%` | `.z-dotnav` | `background-color` | Dot opacity percentage while hovered. |
| `--z-dotnav-dot-o` | `25%` | `.z-dotnav` | `background-color` | Dot opacity percentage used in the color mix. |
| `--z-dotnav-dot-radius` | `9999px` | `.z-dotnav` | `border-radius` | Corner radius of dots. |
| `--z-dotnav-dot-size` | `0.5rem` | `.z-dotnav` | `height`, `width` | Diameter of inactive dots. |
| `--z-dotnav-gap` | `0.375rem` | `.z-dotnav` | `gap` | Gap between dots. |
| `--z-dotnav-transition` | `200ms cubic-bezier(0.16, 1, 0.3, 1)` | `.z-dotnav` | `transition` | Transition timing of the dots. |

## CSS Classes

| Class | Role | Applies to | Description |
| --- | --- | --- | --- |
| `.z-dotnav` | `root` | `.z-dotnav` | Root class of the dot navigation list. |
| `.z-dotnav-vertical` | `element` | `.z-dotnav` | Vertical dot orientation. |

## Accessibility

> When generated by slider/slideshow/lightbox, the list becomes a `role="tablist"` with roving tabindex; standalone dotnavs should label their links.

## Notes

- Dotnav is a CSS layer; carousels generate and manage the items (see `data-auto-nav-item`).

## Guides

- [Styling with cls and stl](https://next.0build.dev/docs/guides/styling.md)
- [Translating Components](https://next.0build.dev/docs/guides/i18n.md)
- [Icon Resolution](https://next.0build.dev/docs/guides/icons.md)
- [The data-source Convention](https://next.0build.dev/docs/guides/data-source.md)
- [Openers & Triggers](https://next.0build.dev/docs/guides/triggers.md)
- [Dialog Behavior](https://next.0build.dev/docs/guides/dialogs.md)
- [Utilities](https://next.0build.dev/docs/guides/utilities.md)
- [Runtime](https://next.0build.dev/docs/guides/runtime.md)

## Related

- [Slider](https://next.0build.dev/docs/components/slider.md)
- [Slideshow](https://next.0build.dev/docs/components/slideshow.md)
- [Lightbox](https://next.0build.dev/docs/components/lightbox.md)
- [Thumb Nav](https://next.0build.dev/docs/components/thumbnav.md)
