# Nutrition infographic

> A single tall infographic, 1080 × 2160 px, for the side of a porridge pack: a bowl of oats seen from above, cut into slices by weight, with energy, a nutrition table and how to make it. Each slice is a vector with its own leader line and label, and the colours and fonts are tokens, so changing the portion means editing the grams in six labels.

- The design, as a .vd file: https://getv.design/library/nutrition-infographic.vd
- Its page: https://getv.design/library/nutrition-infographic

## How it was made

Drafted from this prompt:

> An infographic from Highfield Mill on what is in a 40 gram portion of oats: energy, fibre, protein, fat and sugar, with a note on how to make it.

Then refined:

- Added a soft shadow under the bowl so the pie reads as a bowl.
- Widened the intro line so it fits on two lines and moved the sections up to leave a clear margin at the foot.
- Renamed the water label to fit its column and lined the step numbers up with their text.

## Make it yours

- "Make a nutrition infographic for a 50 gram portion."
- "Add the vitamins to my nutrition infographic."
- "Use our colours and change the product to muesli."

## The source

```vd
version 12
kind design
title "Nutrition infographic"
$oat = #F2E3C6
$green = #5B7F3A
$brown = #6B4F36
$white = #FFFFFF
$starch = #E4C98F
$fat = #B08E66
$mist = #D5E3BF
$sugar = #3A5524
$m = 72
$cx = 390
$cy = 900

font display = Salsa
  fallback "Georgia, serif"
  face asset=salsa-400 weight=400

font body = ABeeZee
  fallback "system-ui, sans-serif"
  face asset=abeezee-400 weight=400

asset salsa-400 = font/woff2 hash=sha256-6571d7f061360158b646ffa38a0bda55f1e547e5fe344e375511b666d8659544 bytes=13548 license=OFL
asset abeezee-400 = font/woff2 hash=sha256-01e288101d78737f389bd9367dbff5ff73235ef2afc3eca13607b53d45f9deca bytes=17612 license=OFL

frame page x=0 y=0 w=1080 h=2160 background=oat
  text page.title x=$m y=80 w=936 h=226 font=display size=104 lineHeight=1.04 fill=brown
    "What is in 40 grams of oats"
  text page.sub x=$m y=(@page.title.bottom + 24) w=936 h=90 font=body size=34 lineHeight=1.3 fill=brown
    "One portion of Highfield Mill rolled oats, drawn as a bowl. Each slice is as wide as its weight."

  ellipse bowl.shadow x=($cx - 340) y=($cy - 330) w=704 h=704 fill="#E3D0A8"
  ellipse bowl.rim x=($cx - 352) y=($cy - 352) w=704 h=704 fill=brown
  ellipse bowl.lip x=($cx - 332) y=($cy - 332) w=664 h=664 fill="#8A6B4D"
  ellipse bowl.inner x=($cx - 316) y=($cy - 316) w=632 h=632 fill=white
  vector slice.starch x=($cx - 300) y=($cy - 300) w=600 h=600 view="0 0 600 600" d="M300 300 L383.70 588.09 A300 300 0 1 1 383.70 11.91 Z" fill=starch stroke=white strokeWidth=5 join=round
  vector slice.sugar x=($cx - 300) y=($cy - 300) w=600 h=600 view="0 0 600 600" d="M300 300 L383.70 11.91 A300 300 0 0 1 401.62 17.74 Z" fill=sugar stroke=white strokeWidth=5 join=round
  vector slice.fibre x=($cx - 300) y=($cy - 300) w=600 h=600 view="0 0 600 600" d="M300 300 L401.62 17.74 A300 300 0 0 1 548.12 131.37 Z" fill=green stroke=white strokeWidth=5 join=round
  vector slice.protein x=($cx - 300) y=($cy - 300) w=600 h=600 view="0 0 600 600" d="M300 300 L548.12 131.37 A300 300 0 0 1 598.67 328.23 Z" fill=brown stroke=white strokeWidth=5 join=round
  vector slice.fat x=($cx - 300) y=($cy - 300) w=600 h=600 view="0 0 600 600" d="M300 300 L598.67 328.23 A300 300 0 0 1 548.12 468.63 Z" fill=fat stroke=white strokeWidth=5 join=round
  vector slice.water x=($cx - 300) y=($cy - 300) w=600 h=600 view="0 0 600 600" d="M300 300 L548.12 468.63 A300 300 0 0 1 383.70 588.09 Z" fill=mist stroke=white strokeWidth=5 join=round
  text slice.starch.name x=($cx - 250) y=($cy - 70) w=300 h=40 font=body size=32 fill=brown
    "Starch"
  text slice.starch.g x=($cx - 250) y=($cy - 30) w=300 h=120 font=display size=96 fill=brown
    "23.6 g"
  connector lead.sugar x1=467.3 y1=662.2 x2=(790 - 16) y2=534 stroke=brown strokeWidth=2 start=dot
  text lead.sugar.name x=790 y=490 w=270 h=36 font=body size=28 fill=brown
    "Sugars"
  text lead.sugar.g x=790 y=520 w=270 h=76 font=display size=60 fill=green
    "0.4 g"
  connector lead.fibre x1=543.2 y1=702.5 x2=(790 - 16) y2=664 stroke=brown strokeWidth=2 start=dot
  text lead.fibre.name x=790 y=620 w=270 h=36 font=body size=28 fill=brown
    "Fibre"
  text lead.fibre.g x=790 y=650 w=270 h=76 font=display size=60 fill=green
    "4.0 g"
  connector lead.protein x1=632.1 y1=837.8 x2=(790 - 16) y2=824 stroke=brown strokeWidth=2 start=dot
  text lead.protein.name x=790 y=780 w=270 h=36 font=body size=28 fill=brown
    "Protein"
  text lead.protein.g x=790 y=810 w=270 h=76 font=display size=60 fill=green
    "4.4 g"
  connector lead.fat x1=625.2 y1=984.7 x2=(790 - 16) y2=994 stroke=brown strokeWidth=2 start=dot
  text lead.fat.name x=790 y=950 w=270 h=36 font=body size=28 fill=brown
    "Fat"
  text lead.fat.g x=790 y=980 w=270 h=76 font=display size=60 fill=green
    "3.2 g"
  connector lead.water x1=536.9 y1=1102.3 x2=(790 - 16) y2=1164 stroke=brown strokeWidth=2 start=dot
  text lead.water.name x=790 y=1120 w=270 h=36 font=body size=28 fill=brown
    "Water, minerals"
  text lead.water.g x=790 y=1150 w=270 h=76 font=display size=60 fill=green
    "4.4 g"

  rect facts.rule x=$m y=1320 w=936 h=6 fill=brown
  text facts.energy.big x=$m y=1360 w=540 h=170 font=display size=140 fill=brown
    "150 kcal"
  text facts.energy.kj x=$m y=1535 w=520 h=90 font=body size=32 lineHeight=1.3 fill=brown
    "628 kJ in each 40 g portion of dry oats"
  table facts.table x=630 y=1360 w=378 h=290 cols=3,2 font=body size=26 lines=rows stroke=brown strokeWidth=1 padding="7 0" text=brown
    row facts.t.fat
      cell "Fat"
      cell "3.2 g" align=right
    row facts.t.carb
      cell "Carbohydrate"
      cell "24.0 g" align=right
    row facts.t.sug
      cell "of which sugars"
      cell "0.4 g" align=right
    row facts.t.fib
      cell "Fibre"
      cell "4.0 g" align=right
    row facts.t.pro
      cell "Protein"
      cell "4.4 g" align=right
    row facts.t.salt
      cell "Salt"
      cell "0.01 g" align=right

  rect how.rule x=$m y=1700 w=936 h=6 fill=brown
  text how.title x=$m y=1730 w=936 h=80 font=display size=64 fill=brown
    "Porridge in four minutes"

  text how.n1 x=$m y=1810 w=80 h=96 font=display size=76 fill=green
    "1"
  text how.s1 x=170 y=1836 w=838 h=88 font=body size=32 lineHeight=1.3 fill=brown
    "Tip 40 g of oats into a pan with 250 ml of milk or water."
  text how.n2 x=$m y=1910 w=80 h=96 font=display size=76 fill=green
    "2"
  text how.s2 x=170 y=1936 w=838 h=88 font=body size=32 lineHeight=1.3 fill=brown
    "Simmer for 4 minutes, stirring now and then."
  text how.n3 x=$m y=2010 w=80 h=96 font=display size=76 fill=green
    "3"
  text how.s3 x=170 y=2036 w=838 h=88 font=body size=32 lineHeight=1.3 fill=brown
    "Or microwave for 2 minutes 30 seconds, stirring halfway."
```
