---
title: "Highlight worked muscles in a fitness app"
description: "Highlight worked muscles in the exercise clip or on a body-map SVG: react-native-body-highlighter code, a slug mapping table, colours and accessibility."
canonical: "https://setskit.com/guides/highlight-worked-muscles"
updated: "2026-11-30"
---

# Highlight worked muscles in a fitness app

> To highlight worked muscles in a fitness app, either paint them into the exercise clip itself or draw a body map beside it. In React Native the usual muscle map is react-native-body-highlighter: map each exercise’s muscles to its slugs, give primary and secondary muscles two shades of one colour, and draw the front and the back. Name the muscles in text as well, so colour is never the only signal.

Updated 2026-11-30. Source: https://setskit.com/guides/highlight-worked-muscles

Paint them into the clip, or draw them on a body map.

Lifts shown: [Bent over dumbbell row](https://setskit.com/exercises/bent-over-dumbbell-row), [Hammer curl](https://setskit.com/exercises/hammer-curl), [Hanging leg raise](https://setskit.com/exercises/hanging-leg-raise)

## Two ways to highlight worked muscles

The first is to paint the working muscles into the exercise animation, so the highlight moves with the body. The second is a body map, an SVG of the front and back with the worked muscles filled in.

They suit different screens. The clip teaches the movement and shows where it is felt, while a body map is small, tappable and reads well in lists, history and weekly summaries.

|  | In the clip | Body-map SVG |
| --- | --- | --- |
| Shows the muscle moving | Yes | No |
| Recolour in code | No, it is rendered in | Yes |
| Primary and secondary shades | Only if rendered that way | Yes, two intensities |
| Tap a muscle | No | Yes, both packages below report taps |
| Works without video | No | Yes |

## The highlight in the clip

Setskit renders every lift this way: one clay lifter, the working muscles painted lime and the plates in cobalt. The colour is in the pixels, so it shows in any player with no code at all.

The cost is that it is fixed. You cannot recolour it to match a theme or let the user tap it, and a primary and secondary split exists only if the render has one.

Each Setskit lift also comes with its worked muscles as data, which is exactly what a body map needs. So the two approaches combine well, and the rest of this guide is about the map.

## Muscle map in React Native

react-native-body-highlighter is the most used React Native muscle map we found, with 18,787 npm downloads in the week to 29 November 2026. Version 3.2.0, from April 2026 and MIT licensed, draws male and female bodies, front and back, with react-native-svg.

Install it with npm install react-native-body-highlighter. In an Expo app, also run npx expo install react-native-svg so the SVG library matches your SDK.

Body takes a data array of slug and intensity, and intensity picks a colour from the colors prop: 1 is the first colour, 2 the second. Draw both views, because glutes, hamstrings, lats and the lower back exist only on the back.

Lifts: [Pull-up](https://setskit.com/exercises/pull-up), [Barbell row](https://setskit.com/exercises/barbell-row), [Cable row](https://setskit.com/exercises/cable-row). The lats lit on three pulls. A body map draws them on the back view only, which is why the code draws both sides.

```tsx
import { Text, View } from 'react-native';
import Body, { type ExtendedBodyPart, type Slug } from 'react-native-body-highlighter';
import { MUSCLE_TO_SLUG } from './muscle-map';

const UNWORKED = '#E6EAEA';
const SECONDARY = '#5A9420'; // intensity 1
const PRIMARY = '#1B4205'; // intensity 2

// One entry per slug: the package keeps only the last entry for a slug,
// and front, side and rear delts all draw as 'deltoids'.
function toBodyData(primary: string[], secondary: string[] = []): ExtendedBodyPart[] {
  const bySlug = new Map<Slug, number>();
  const add = (names: string[], intensity: number) => {
    for (const name of names) {
      const slug = MUSCLE_TO_SLUG[name];
      if (slug) bySlug.set(slug, Math.max(bySlug.get(slug) ?? 0, intensity));
    }
  };
  add(secondary, 1);
  add(primary, 2);
  return [...bySlug].map(([slug, intensity]) => ({ slug, intensity }));
}

export function WorkedMuscles({ primary, secondary = [] }: { primary: string[]; secondary?: string[] }) {
  const data = toBodyData(primary, secondary);
  const summary = `Works ${primary.join(', ')}` + (secondary.length ? `. Helps: ${secondary.join(', ')}` : '');
  return (
    <View accessible accessibilityLabel={summary}>
      <View style={{ flexDirection: 'row', justifyContent: 'center' }}>
        {(['front', 'back'] as const).map((side) => (
          <Body
            key={side}
            data={data}
            side={side}
            scale={0.8}
            colors={[SECONDARY, PRIMARY]}
            defaultFill={UNWORKED}
          />
        ))}
      </View>
      <Text>{summary}</Text>
    </View>
  );
}

// <WorkedMuscles primary={['quads', 'glutes']} secondary={['adductors']} />
```

## Map muscle names to slugs

Setskit’s data names 18 muscles, and version 3.2.0 of the package draws 23 slugs, read from its source on 30 November 2026. The table pairs them, with the number of Setskit lifts tagged with each muscle.

Front, side and rear delts all become one slug, deltoids, drawn on both views. The package keeps only the last entry it gets for a slug, which is why the code above merges them and keeps the higher intensity.

Lats map to upper-back, the closest part the package draws. The README also lists abductors, but the 3.2.0 source draws no such part, so leave it out.

Setskit lifts that work each muscle, the 12 most common

|  | lifts |
| --- | --- |
| glutes | 224 |
| quads | 169 |
| chest | 132 |
| triceps | 128 |
| lats | 127 |
| biceps | 115 |
| abs | 109 |
| front delts | 76 |
| obliques | 70 |
| hamstrings | 65 |
| forearms | 56 |
| traps | 41 |

A lift counts once for each muscle painted lime in it, so the rows add up to more than the library. The table below has all 18.

| Setskit muscle | Setskit lifts | Slug | View |
| --- | --- | --- | --- |
| chest | 132 | chest | Front |
| front delts | 76 | deltoids | Both |
| side delts | 34 | deltoids | Both |
| rear delts | 40 | deltoids | Both |
| triceps | 128 | triceps | Both |
| biceps | 115 | biceps | Front |
| forearms | 56 | forearm | Both |
| lats | 127 | upper-back | Back |
| traps | 41 | trapezius | Both |
| lower back | 11 | lower-back | Back |
| abs | 109 | abs | Front |
| obliques | 70 | obliques | Front |
| glutes | 224 | gluteal | Back |
| quads | 169 | quadriceps | Front |
| hamstrings | 65 | hamstring | Back |
| adductors | 12 | adductors | Both |
| calves | 33 | calves | Both |
| shins | 1 | tibialis | Front |

```ts
// muscle-map.ts
import type { Slug } from 'react-native-body-highlighter';

// Setskit muscle names to react-native-body-highlighter 3.2.0 slugs
export const MUSCLE_TO_SLUG: Record<string, Slug> = {
  chest: 'chest',
  'front delts': 'deltoids',
  'side delts': 'deltoids',
  'rear delts': 'deltoids',
  triceps: 'triceps',
  biceps: 'biceps',
  forearms: 'forearm',
  lats: 'upper-back',
  traps: 'trapezius',
  'lower back': 'lower-back',
  abs: 'abs',
  obliques: 'obliques',
  glutes: 'gluteal',
  quads: 'quadriceps',
  hamstrings: 'hamstring',
  adductors: 'adductors',
  calves: 'calves',
  shins: 'tibialis',
};
```

## On the web

react-body-highlighter is the React DOM version, built from the same artwork. Its latest npm release, 2.0.5, dates from July 2021, though its GitHub repository still gets commits.

We rendered it under React 19.3.1 and the fills came out as expected.

Its names differ from the React Native package. It has front-deltoids and back-deltoids but no side delt and no shin, and the inner thigh is adductor on the back view but abductors on the front view, so map adductors to both.

Colour comes from frequency, summed per muscle across the data, and the last colour covers anything higher. Secondary muscles at 1 and primary at 2 give two shades, and a muscle in both lists comes out primary.

Outside React, body-highlighter 3.0.2 is a framework-agnostic fork with the same names. For finer detail, body-muscles describes itself as covering more than 70 muscles, under the Apache 2.0 licence.

```jsx
import Model from 'react-body-highlighter';

// Setskit muscle names to react-body-highlighter 2.0.5 names
const WEB_MUSCLES = {
  chest: ['chest'],
  'front delts': ['front-deltoids'],
  'side delts': ['front-deltoids', 'back-deltoids'],
  'rear delts': ['back-deltoids'],
  triceps: ['triceps'],
  biceps: ['biceps'],
  forearms: ['forearm'],
  lats: ['upper-back'],
  traps: ['trapezius'],
  'lower back': ['lower-back'],
  abs: ['abs'],
  obliques: ['obliques'],
  glutes: ['gluteal'],
  quads: ['quadriceps'],
  hamstrings: ['hamstring'],
  adductors: ['abductors', 'adductor'], // the inner thigh, front view and back view
  calves: ['calves'],
  shins: [], // no shin part in this package
};

const toWeb = (names) => names.flatMap((name) => WEB_MUSCLES[name] ?? []);

export function WorkedMusclesWeb({ name, primary, secondary = [] }) {
  // frequency adds up per muscle, and the last colour covers anything above 2
  const data = [
    { name, muscles: toWeb(secondary), frequency: 1 },
    { name, muscles: toWeb(primary), frequency: 2 },
  ];
  const caption = `Works ${primary.join(', ')}` + (secondary.length ? `. Helps: ${secondary.join(', ')}` : '');

  return (
    <figure>
      <div aria-hidden="true" style={{ display: 'flex', gap: 16 }}>
        {['anterior', 'posterior'].map((type) => (
          <Model
            key={type}
            type={type}
            data={data}
            bodyColor="#E6EAEA"
            highlightedColors={['#5A9420', '#1B4205']}
            style={{ width: '8rem' }}
          />
        ))}
      </div>
      <figcaption>{caption}</figcaption>
    </figure>
  );
}
```

## Primary against secondary colours

Use one hue in two strengths rather than two different colours. A difference in lightness survives colour-vision deficiencies and greyscale, where a red and green pair can look the same.

WCAG 2.2 asks for a contrast of 3:1 for the parts of a graphic needed to understand it. The colours in the code meet that at each step: the secondary #5A9420 is 3.0:1 against the unworked #E6EAEA, and the primary #1B4205 is 3.1:1 against the secondary.

If your data has one list of worked muscles and no split, give them all the primary shade. Setskit’s data lists each lift’s worked muscles, and the clip paints them lime.

Lifts: [Barbell back squat](https://setskit.com/exercises/barbell-back-squat), [Romanian deadlift](https://setskit.com/exercises/romanian-deadlift), [Glute bridge](https://setskit.com/exercises/glute-bridge), [Leg extension](https://setskit.com/exercises/leg-extension). Quads and glutes on the back squat, hamstrings and glutes on the Romanian deadlift. Every worked muscle is the same lime, so on a body map they would all take the primary shade.

## Don’t rely on colour alone

WCAG 2.2 success criterion 1.4.1 says: "Color is not used as the only visual means of conveying information, indicating an action, prompting a response, or distinguishing a visual element."

So print the muscles beside the map, as both examples do. The words carry the primary and secondary split that the shades only suggest.

Screen readers need the same text. The React Native package’s README says it labels the whole body, such as male-body-front, but not each part, so put the label on the wrapping view.

On the web, hide the drawings from assistive technology and let the caption speak. The web package’s shapes take clicks but not keyboard focus, so offer any muscle filter as a list as well.

Lifts: [Dumbbell shoulder press](https://setskit.com/exercises/dumbbell-shoulder-press), [Cable lateral raise](https://setskit.com/exercises/cable-lateral-raise), [Rear delt fly](https://setskit.com/exercises/rear-delt-fly). Front, side and rear delts, all in the same lime. The words under each clip say which part of the shoulder works, as the text beside a body map should.

## Clip and map together

Most exercise screens can use both: the looping clip at the top, where the lime shows the muscle working, and a small map in the details or the history.

Every Setskit lift comes with its name, equipment and worked muscles as data, named as in the table above. The free sample has five lifts to try against this code, and the integration guide covers playback on each platform.

Lifts: [Barbell bench press](https://setskit.com/exercises/barbell-bench-press), [Incline dumbbell press](https://setskit.com/exercises/incline-dumbbell-press), [Dumbbell fly](https://setskit.com/exercises/dumbbell-fly), [Push-up](https://setskit.com/exercises/push-up). The chest lit on four lifts. Each clip opens its lift’s page, which lists the worked muscles a body map needs.

## Questions

**What is the best muscle map for React Native?**

react-native-body-highlighter is the most used, with front and back views, two body types and tap handling. It draws with react-native-svg and works in Expo.

**Can react-native-body-highlighter show front and side delts separately?**

No. Version 3.2.0 has one deltoids slug for the whole shoulder, drawn on both views, while react-body-highlighter on the web splits front-deltoids from back-deltoids.

**How do I show primary and secondary muscles?**

Give secondary muscles intensity 1 and primary muscles intensity 2, with two shades of one colour in the colors prop. Name both groups in text as well.

**Why does a muscle not light up on the body map?**

Usually the slug is wrong or the muscle is on the other view. Glutes, hamstrings, lats and the lower back appear only on the back of the body.

## Sources

- [react-native-body-highlighter on npm (3.2.0, read 30 November 2026)](https://www.npmjs.com/package/react-native-body-highlighter)
- [react-native-body-highlighter source and README on GitHub](https://github.com/HichamELBSI/react-native-body-highlighter)
- [npm downloads API, react-native-body-highlighter, last week](https://api.npmjs.org/downloads/point/last-week/react-native-body-highlighter)
- [react-body-highlighter on npm (2.0.5)](https://www.npmjs.com/package/react-body-highlighter)
- [react-body-highlighter source on GitHub](https://github.com/giavinh79/react-body-highlighter)
- [body-highlighter on npm (3.0.2)](https://www.npmjs.com/package/body-highlighter)
- [vulovix/body-muscles on GitHub](https://github.com/vulovix/body-muscles)
- [Expo, react-native-svg](https://docs.expo.dev/versions/latest/sdk/svg/)
- [W3C, Understanding WCAG 2.2 success criterion 1.4.1 Use of Color](https://www.w3.org/WAI/WCAG22/Understanding/use-of-color.html)
- [W3C, Understanding WCAG 2.2 success criterion 1.4.11 Non-text Contrast](https://www.w3.org/WAI/WCAG22/Understanding/non-text-contrast.html)
