{# SPDX-License-Identifier: Apache-2.0 Copyright (c) 2026 evoila Group The style guide (P2.3). Every component in every surviving variant, on one page. Two readers, two reasons: * A developer, before writing new markup — so the answer to "is there already a component for this?" is a page rather than a grep. * A reviewer, after a theme change — so a regression is one page instead of twenty. It renders in two places. Locally in meho-ui, against the brand stylesheets, via `scripts/render_styleguide.py`. And inside meho for admins, where it renders against the app's own compiled bundle — a component can look right in isolation and wrong in the app, because the app's stylesheet is in the cascade with it. The second is the one that is evidence. The variant lists come from `meho_ui.shell.VARIANTS` and `SIZES`, not from this file. A style guide that hardcodes its own list silently stops showing a variant the moment one is added, which is the single failure it cannot be allowed to have. Context: variants -- meho_ui.shell.VARIANTS sizes -- meho_ui.shell.SIZES title -- optional heading, so meho can say where it is #} {% from "_components.html" import button, badge, alert, empty_state, dialog, field, table, pager, relative_time, icon %} {% macro _section(name, note) %}

{{ name }}

{{ note }}

{{ caller() }}
{% endmacro %}

{{ title | default("Component set") }}

Every component, every variant. The contract is docs/components.md. Before writing new markup, look here first.

{% call _section("button", "A real