The Templates section provides flexible layout patterns meant to accelerate design and development. Unlike components, templates focus on structure, not behavior.
What is a Template?#
- A template is a structural pattern that illustrates how components can be composed in a layout.
- It includes spacing, alignment, and responsive behaviors based on design tokens (spacings and intentional tokens).
- Templates are useful for building a complex UI without reinventing layouts.
Who should use it?#
- Designers: To quickly create structured screens using pre-built, customizable layouts.
- Developers: To copy-paste a layout scaffold using our predefined classes.
In Figma#
The Templates section provides flexible layout patterns meant to accelerate design and development. Unlike components, templates focus on structure, not behavior.
In Figma
- All templates are available in the Templates section of the design system Figma library.
- Built using partial components and Nova components, meaning:
- Token-based color, spacing, and typography ensure consistency across all themes and modes.
Design Guidelines
- Use templates as a starting point, not as fixed solutions.
- Always detach instances if further customization is needed.
- Follow atomic design logic: templates are compositions of components, not replacements.
Naming conventions
- A template will always be written like this: [Template name]
- And can contain partial components:
<Template name | Partial name> - Designers can detach and customize a [Template].
- Core layout principles are retained (grid, spacing, alignment).
In code#
The Templates section provides flexible layout patterns meant to accelerate design and development. Unlike components, templates focus on structure, not behavior.
For Developers
- Templates are markup-only: they don’t include JavaScript logic.
- Ideal for quickly scaffolding a layout using design system conventions.
Key Concepts
- Uses prefilled classes like
nv-sidebar,nv-link, etc. - Based on intentional design tokens:
JavaScript
- No JS logic is included in templates.
- You must implement:
- Automatically adapts to themes and modes (light/dark)
- Stays consistent with the Nova components’ look and feel.
- Navigation item selection
- Menu toggles
- Interactive behaviors (e.g., dropdowns, modals)