> For AI agents: the complete documentation index is available at https://wallarm.github.io/design-system/llms.txt, the full documentation bundle is available at https://wallarm.github.io/design-system/llms-full.txt.

# Foundations

The tokens and rules every component is built on: spacing, color, typography, radius, elevation, layering, focus and icons.


- [Tokens](https://wallarm.github.io/design-system/foundations/tokens.md): Wallarm design system tokens: color palettes, semantic light and dark colors, spacing, typography, radius, shadow, blur, focus and icon sizes, with their values.
- [Spacing](https://wallarm.github.io/design-system/foundations/spacing.md): Use when choosing a gap, padding or margin value, a Stack or Flex gap prop, or the inner spacing of a page, card, drawer or dialog.
- [Color](https://wallarm.github.io/design-system/foundations/color.md): Use when choosing a background, text, icon, border or hover color, so the value switches correctly between light and dark themes.
- [Typography](https://wallarm.github.io/design-system/foundations/typography.md): Use when you set text size, weight, line height or font family, or pick between Text, Heading and Code.
- [Radius and elevation](https://wallarm.github.io/design-system/foundations/radius-elevation.md): Use when choosing a border radius or a shadow for your own element, or when matching the corners and depth of a design-system surface.
- [Layering](https://wallarm.github.io/design-system/foundations/layering.md): Use when an overlay must paint above another one, or when you consider adding a z-index class to app code.
- [Focus](https://wallarm.github.io/design-system/foundations/focus.md): Use when an element must show keyboard focus, to pick the ring recipe, the focus color token, and where no ring goes.
- [Icons](https://wallarm.github.io/design-system/foundations/icons.md): Import icons from the icons entry point, size them and give meaningful icons a title.

