j3w1 / theme

j3w1 / theme4.0.0

j3w1 / command

  • SPEC Overview
  • SPEC Foundations
  • SPEC Components
  • SPEC Patterns
  • SPEC Tokens
  • SPEC Tools
  • SPEC Workbench
  • SPEC Form builder
  • SPEC Task kit
  • SPEC Recipes
  • SPEC Figma bridge
  • SPEC Report an issue
  • SPEC Implement
  • SPEC For agents
  • SPEC Ports
  • SPEC Releases
  • SPEC Specification
  • DEMO Vue application demo

Progress

A native progress element with a label and value; determinate fills with the primary colour, indeterminate shows static 45° stripes, never an animation.

stable · light DOM · 4.0.0. Light DOM retains static content, native semantics, label relationships and host composition without duplicating controls.

Live variants

determinate

62%
62%
Markup
<j3w1-progress id="example-progress-determinate"><div class="progress">
  <div class="progress-header">
    <label class="progress-label" for="example-progress-determinate-pg-upload">Uploading theme.json<span class="progress-error-glyph" aria-hidden="true"> ✕</span></label>
    <span class="progress-value">62%</span>
  </div>
  <progress class="progress-bar" id="example-progress-determinate-pg-upload" max="100" value="62">62%</progress>
</div></j3w1-progress>

indeterminate

In progress
Markup
<j3w1-progress id="example-progress-indeterminate"><div class="progress">
  <div class="progress-header">
    <label class="progress-label" for="example-progress-indeterminate-pg-scan">Scanning fonts<span class="progress-error-glyph" aria-hidden="true"> ✕</span></label>
  </div>
  <progress class="progress-bar" id="example-progress-indeterminate-pg-scan" aria-valuetext="In progress, total unknown">In progress</progress>
</div></j3w1-progress>

with-label

14 of 67
14 of 67

Writing exports/components/date-picker.json

Markup
<j3w1-progress id="example-progress-with-label"><div class="progress">
  <div class="progress-header">
    <label class="progress-label" for="example-progress-with-label-pg-export">Exporting components<span class="progress-error-glyph" aria-hidden="true"> ✕</span></label>
    <span class="progress-value">14 of 67</span>
  </div>
  <progress class="progress-bar" id="example-progress-with-label-pg-export" max="67" value="14">14 of 67</progress>
  <p class="progress-detail">Writing exports/components/date-picker.json</p>
</div></j3w1-progress>

Install and register

Use the exact version. If npm publication is pending, install the release tarball from the installation guide.

npm install --save-exact @j3w1/ui@4.0.0
import '@j3w1/ui/tokens.css';
import '@j3w1/ui/styles/progress.css';
import '@j3w1/ui/register/progress';

Insert the maintained markup above after loading these imports. Its native children provide accessible names and form behavior; the empty custom tag alone does not create a control.

Vue SFC, React, Astro and plain HTML integration →

Copy the complete implementation

npx --package=@j3w1/ui@4.0.0 j3w1-ui copy progress --out ./vendor/j3w1/progress

The CLI verifies every file before writing and refuses overwrites. Serve the output over HTTP and open index.html. Keep its modules, CSS, tokens and licence notices together.

Public API

attributes

NameType / signatureMeaning
disabledCustomEventDisable the native controls owned by this instance.
loadingCustomEventMark the primary control busy and prevent duplicate activation.

properties

NameType / signatureMeaning
disabledbooleanDelegates disabled state to native children.
namestringNative control name; application form keys remain explicit.

methods

NameType / signatureMeaning
refresh(): voidReconnect behavior after replacing native child structure.
focus(options?: FocusOptions): voidFocus the first usable native control.

events

NameType / signatureMeaning

Dependencies and verification

Registered components: none. Style dependencies: none.

Package presence establishes an available implementation. Actual passes depend on the tested artifact and environment. Read specification execution evidence; read packed-consumer evidence; inspect the complete state matrix.

Full implementation manifest, API and token dependency closure

Canonical specification

Progress progress

  • Family: Feedback and overlays
  • Maturity: stable
  • Priority: R1
  • Since: 0.1.0
  • Native control: native <progress> labelled by <label for>; aria-valuetext for indeterminate work — APG pattern
  • specified
  • demonstrated

A native progress element with a label and value; determinate fills with the primary colour, indeterminate shows static 45° stripes, never an animation.

Report an issue with this component

Tokens

Focus a role to inspect its values; follow its link for persistent usage and source details.

PartRoleValueUse
track.bgcolor.interaction.pressed.bgobserveduse#420f0cPressed fill.
track.bordercolor.border.controlapproveduse#c81a1aD-041 owner correction: red control and floating-frame borders, distinct from rose text.
value.bgcolor.action.primary.bgapproveduse#7d1310Primary button fill; D-026 darkened it off color12, which stays fixed as heritage ANSI 12.
value.bg-errorcolor.status.danger.fillobserveduse#dc282eDanger fill.
stripe.acolor.action.primary.bgapproveduse#7d1310Primary button fill; D-026 darkened it off color12, which stays fixed as heritage ANSI 12.
stripe.bcolor.interaction.pressed.bgobserveduse#420f0cPressed fill.
label.textcolor.text.brightapproveduse#ffa2a7D-041 owner correction: rose is the default UI and reading foreground; near-white is reserved for document headings, highlights and contrast-critical fills.
value.textcolor.text.defaultapproveduse#e99499D-041 owner correction: rose is the default UI and reading foreground; near-white is reserved for document headings, highlights and contrast-critical fills.
detail.textcolor.text.mutedapproveduse#d4868bD-041 owner correction: rose is the default UI and reading foreground; near-white is reserved for document headings, highlights and contrast-critical fills.
error.textcolor.status.danger.textobserveduse#f07178D-041 readable error text on neutral surfaces and native warning tints.

State matrix

Every declared state and combination, statically rendered; the default cell is live. Sizes: compact, comfortable (switch with the density control above).

StateDeterminateIndeterminateWith detail line
default
62%
62%
In progress
14 of 67
14 of 67

Writing exports/components/date-picker.json

busy
error
reduced-motion

Purpose

Shows how far a known task has gone, or that an unbounded one is running. It reports; it never blocks. A cancellable task has a button beside the bar. A short wait with no bar is the loading indicator.

Anatomy

Parts as listed in the anatomy.

States

StateVisualNon-colour channel
defaultcolor.action.primary.bg fill on the track; the value textthe native value; the percentage text
busystatic 45° stripes of color.action.primary.bg on color.interaction.pressed.bg across the track; no value textaria-busy; aria-valuetext; the stripe pattern; no animation
errorfill → color.status.danger.fill; the label gains ✕ in color.status.danger.text; the detail line says what failedglyph; worded detail
reduced-motionidentical to default and busy: nothing animates in any stateprefers-reduced-motion

Indeterminate work is the busy state; the determinate variant enters it while the total is unknown and leaves it once known.

Keyboard

None; a cancel button beside the bar has its own tab stop.

Accessibility

The value is in the native value and repeated in text. Indeterminate bars set aria-valuetext (“Preparing”); the container sets aria-busy for the duration. Completion and failure are announced through a polite live region, not by the bar. Text meets 4.5:1; the track boundary and error fill 3:1. The primary fill against the track is waived because the value is stated in text.

Portability

A toolkit with a native bar maps the fill to the primary colour and disables pulse animation; one without gradients draws the stripes with a hatched brush or alternating characters.

Non-examples

A spinner. Animated or barber-pole stripes. A shimmering skeleton instead of a bar. A circular ring. A rounded pill bar. Colour-only failure without the glyph and text. A bar with no label. A bar that blocks input.

Contrast report

9 declared pairs measured on resolved sRGB values with the WCAG 2.x formula; 1 waived (decorative only), 0 failing. A pass is a design target for the named role, not an application-wide conformance claim.

PairStateKindForegroundBackgroundRatioMinResult
progress default textdefaulttextcolor.text.default #e99499color.surface.canvas #0000009.164.5pass
progress default borderdefaultuicolor.border.control #c81a1acolor.surface.canvas #0000003.623pass
progress error texterrortextcolor.status.danger.text #f07178color.surface.canvas #0000007.344.5pass
progress error bordererroruicolor.status.danger.border #e53935color.surface.canvas #0000004.973pass
label on the canvas—textcolor.text.bright #ffa2a7color.surface.canvas #00000010.984.5pass
detail line on the canvas—textcolor.text.muted #d4868bcolor.surface.canvas #0000007.584.5pass
value fill against the track—uicolor.action.primary.bg #7d1310color.interaction.pressed.bg #420f0c1.513waived: the fill falls below the floor against the track; the value is carried by the visible percentage text and the native value, and the track boundary (border.control) marks the full extent
stripes (decorative pattern)busyuicolor.action.primary.bg #7d1310color.interaction.pressed.bg #420f0c1.511pass
error fill against the trackerroruicolor.status.danger.fill #dc282ecolor.interaction.pressed.bg #420f0c3.363pass

Keys

KeyAction
TabNothing; progress is not focusable and never traps a person.
EscapeNothing; cancelling is a separate button next to the bar.

For agents

Component JSON ·Implementation brief ·Build a task kit ·

Related: loading-indicator file-input wizard toast

Stress fixtures: FX-LONG FX-320 FX-ZOOM-200 FX-I18N FX-RTL FX-RM FX-HC FX-STATE-MATRIX