Augeo AI Docs
Augeo Design SystemComponents

AchievementBadge

One badge on its own tile, with the art on a sunken square and its name and description under it. A person sees it earned, in progress or locked. An admin switches it on or off.

AchievementBadge

One badge a person holds or is working toward, as a tile in the badge archive or on a profile. The host draws the art through renderArt, and that includes a locked badge's art, because the unearned patch belongs to the host. A host that passes no art gets the medallion, muted when locked. AchievementDetailDialog measures the tile through its data attributes, so do not style against them. An admin's tile with a switch or a corner menu puts them beside the button in a wrapper, because neither can sit inside a button. The wrapper then takes the ref and the class name.

Storybook

Loading

Props

Prop

Type

Also takes the attributes of the element it renders.

Tokens

Derived from the component source at docs-generation time — these are the --augds-* variables it reads. Re-theme the colour slots by constructing a partner DesignSystemTheme and wrapping the consumer subtree in <ThemeProvider>, never by hard-coding values.

  • --augds-background-inverse
  • --augds-background-sunken-2
  • --augds-border-subtle
  • --augds-color-monochrome-pure-white
  • --augds-foreground-inverse
  • --augds-foreground-primary
  • --augds-foreground-secondary
  • --augds-foreground-tertiary
  • --augds-interaction-focus-ring
  • --augds-radius-primitive-10
  • --augds-radius-primitive-24
  • --augds-radius-primitive-999
  • --augds-shadow-2
  • --augds-shadow-sm-element
  • --augds-surface-current
  • --augds-surface-elevated
  • --augds-surface-page
  • --augds-surface-sunken-1
  • --augds-surface-sunken-2

Source

  • src/components/ui/achievement-badge/achievement-badge.tsx
  • src/components/ui/achievement-badge/achievement-state.tsx