{% load i18n %}

{% trans "Badge" %}

{% trans "Rectangular label for type tags, counts, and category markers. Always uppercase. Use in tables, KV rows, and anywhere data needs a compact inline label." %}

{% trans "Tinted" %}
default success warning danger info muted purple indigo
{% trans "Solid" %}
default success warning danger info muted purple indigo

{% trans "Usage" %}

<!-- Tinted (default) -->
<span class="dcr-badge dcr-badge--warning">hash</span>

<!-- Solid -->
<span class="dcr-badge dcr-badge--solid dcr-badge--danger">culprit</span>

<!-- Variants: (none) · success · warning · danger · info · muted · purple · indigo -->

{% trans "Pill" %}

{% trans "Fully-rounded chip for live status and state indicators. Sentence-case - write naturally, not in ALL CAPS. Add " %}__dot{% trans " for a coloured dot that always matches the pill's current colour." %}

{% trans "Tinted · with dot" %}
{% trans "Connected" %} {% trans "Degraded" %} {% trans "Error" %} {% trans "Syncing" %} {% trans "Idle" %} {% trans "Queued" %} {% trans "Scheduled" %}
{% trans "Solid" %}
{% trans "Active" %} {% trans "Retrying" %} {% trans "Critical" %} {% trans "Running" %} {% trans "Pending" %} {% trans "Disabled" %}

{% trans "Usage" %}

<!-- Tinted with dot -->
<span class="dcr-pill dcr-pill--success">
  <span class="dcr-pill__dot"></span>Connected
</span>

<!-- Tinted without dot -->
<span class="dcr-pill dcr-pill--warning">Degraded</span>

<!-- Solid -->
<span class="dcr-pill dcr-pill--solid dcr-pill--success">Active</span>

<!-- Variants: (none) · success · warning · danger · info · muted · purple · indigo -->

{% trans "Button" %}

{% trans "Solid fill by default. Add " %}--ghost{% trans " for transparent background + coloured border. Place any " %}<svg class=\"dcr-btn__icon\">{% trans " as a direct child - flex gap handles spacing automatically." %}

{% trans "Solid (default)" %}

{% trans "Ghost (--ghost)" %}

{% trans "Sizes, icons, disabled" %}

{% trans "Usage" %}

<!-- Solid (default) -->
<button class="dcr-btn dcr-btn--primary">Search</button>
<button class="dcr-btn dcr-btn--danger">Delete</button>

<!-- Ghost / outlined -->
<button class="dcr-btn dcr-btn--primary dcr-btn--ghost">Cancel</button>
<button class="dcr-btn dcr-btn--ghost">Reset all filters</button>

<!-- With icon -->
<button class="dcr-btn dcr-btn--primary">
  <svg class="dcr-btn__icon" …></svg> Search
</button>

<!-- Icon-only -->
<button class="dcr-btn dcr-btn--ghost dcr-btn--icon-only" aria-label="Refresh">
  <svg class="dcr-btn__icon" …></svg>
</button>

<!-- Small -->
<button class="dcr-btn dcr-btn--primary dcr-btn--sm">Save</button>