# Fortschrittsstreifen statisch (B 182)

Kategorie: Buttons  
Tags: progress, rectangle, fill, custom-property, percentage  
Seite: https://designforai.dev/de/snippet/btn-182

## Prompt

Ein Fortschritts-Button, dessen Füllstand über eine --p Custom Property am Element gesetzt wird (Inline-Style, z.B. 64%): ein hartkantiger Zweifarb-Gradient zeigt grün #86efac bis zu diesem Punkt und grau #f1f5f9 danach, 1px #cbd5e1 Rahmen, 6px Radius, Monospace 14px semibold #0f172a Text, 13px mal 22px Padding. Hover und Active dimmen nur leicht. Focus: 2px grüne Outline. --p per JS oder Klasse ändern, um voranzuschreiten.

## HTML

```html
<button class="btn-182" style="--p:64%">Uploading 64%</button>
```

## CSS

```css
.btn-182 {
  --p: 0%;
  position: relative;
  font: 600 14px/1 ui-monospace,Menlo,monospace;
  color: #0f172a;
  background: linear-gradient(90deg,#86efac var(--p),#f1f5f9 var(--p));
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 13px 22px;
  cursor: pointer;
  transition: filter .2s
}
.btn-182:hover {
  filter: brightness(.97)
}
.btn-182:focus-visible {
  outline: 2px solid #16a34a;
  outline-offset: 3px
}
.btn-182:active {
  filter: brightness(.93)
}
```
