The studio guide for mascot_colour_roles().
The same page is read in the mascot studio.
Try it live.
The mascot studio shows this function with live controls and the generated code. In an R session with the optional packages bslib and knitr installed, run:
mascot::mascot_studio(fn = "mascot_colour_roles")
It opens on this function's guide; change a control and watch the mascot.
Parts
Leaders adopt the colours you supply. Followers copy the first leader
you customise, in the same shade, lighter or darker, unless you
customise them directly. Low contrast against the page warns in
development mode and previews; the colour is kept. The
mascot.contrast_warnings option forces R warnings on or off.
mascot_colour_roles("tessa")
| role |
colour |
follows |
shade |
description |
brand |
| outline |
#14221B
|
leader
|
|
Ink outline of the body, hair and badge See the dark-mode outline tip on the mascot_theme page. |
NA |
| feature |
#14221B
|
leader
|
|
Eyes, brows and mouth |
NA |
| eye_white |
#FFFDF4
|
leader
|
|
Eye white |
NA |
| shine |
#FFFDF4
|
leader
|
|
Shine |
NA |
| teeth |
#FFFDF4
|
leader
|
|
Teeth |
NA |
| eyelid |
#079C9B
|
← body |
same |
Eyelid |
NA |
| tongue |
#F078C1
|
← blush |
same |
Tongue |
NA |
| body |
#079C9B
|
leader
|
|
Face colour of the hexagon |
primary |
| body_highlight |
#6FC6C5
|
← body |
lighter |
Body highlight |
NA |
| rim |
#CCDFE1
|
leader
|
|
Ring inside the hexagon, feet and badge edge |
secondary |
| limb |
#CCDFE1
|
← rim, body |
same |
Feet |
NA |
| sleeve |
#047166
|
← body_shade, body |
same |
Arms |
NA |
| blush |
#F078C1
|
leader
|
|
Cheeks |
NA |
| blush_strong |
#F078C1
|
← blush |
same |
Blush strong |
NA |
| accessory |
#DD89BA
|
leader
|
|
Bow |
NA |
| accessory_detail |
#9F6386
|
← accessory |
darker |
Bow ties |
NA |
| sparkle |
#E8F1F2
|
← rim |
lighter |
Sparkle |
NA |
| sparkle_outline |
#14221B
|
← outline |
same |
Sparkle outline |
NA |
| sweat |
#9BD8FF
|
leader
|
|
Sweat |
NA |
| shadow |
#000000
|
leader
|
|
Shadow |
NA |
| outline_second |
#FFFDF4
|
leader
|
|
Pale line outside the outline |
NA |
| hand |
#FFFDF4
|
leader
|
|
Hands |
NA |
| body_shade |
#047166
|
leader
|
|
Darker corner of the hexagon and the arms |
NA |
| rim_light |
#E8F1F2
|
← rim |
lighter |
Light end of the ring and its shimmer |
NA |
| rim_shade |
#9FAEB0
|
← rim |
darker |
Dark end of the ring |
NA |
| hair |
#1A3A3D
|
leader
|
|
Hair, light end |
NA |
| hair_shade |
#0F2427
|
leader
|
|
Hair, dark end and the hair behind |
NA |
| hair_light |
#536B6E
|
← hair |
lighter |
Hair strands |
NA |
| accessory_light |
#F0CAE0
|
← accessory |
lighter |
Bow, light parts |
NA |
| badge |
#155A5C
|
leader
|
|
Chest badge plate |
NA |
| badge_icon |
#8BEDFF
|
leader
|
|
Icon on the chest badge, which shows the mood |
NA |
| iris |
#048B7D
|
leader
|
|
Iris of the eyes |
NA |
| iris_tint |
#43A89E
|
← iris |
lighter |
Facet on the lower left of the face |
NA |
mascot_colour_roles("sela")
| role |
colour |
follows |
shade |
description |
brand |
| outline |
#1D1236
|
leader
|
|
Outline See the dark-mode outline tip on the mascot_theme page. |
NA |
| outline_second |
#FFF6E0
|
leader
|
|
Outline second |
NA |
| feature |
#1D1236
|
leader
|
|
Feature |
NA |
| eye_white |
#FFFDF4
|
leader
|
|
Eye white |
NA |
| shine |
#FFFFFF
|
leader
|
|
Shine |
NA |
| teeth |
#FFFDF4
|
leader
|
|
Teeth |
NA |
| tongue |
#FF6F8E
|
leader
|
|
Tongue |
NA |
| mouth_in |
#3A0B2E
|
leader
|
|
Mouth in |
NA |
| eyelid |
#D9C8F5
|
← body |
same |
Eyelid |
NA |
| iris |
#6B3FC4
|
leader
|
|
Iris |
NA |
| iris_dark |
#1F0F45
|
leader
|
|
Iris dark |
NA |
| blush |
#F58FB6
|
leader
|
|
Blush |
NA |
| blush_strong |
#F58FB6
|
leader
|
|
Blush strong |
NA |
| body |
#D9C8F5
|
leader
|
|
Body |
primary |
| body_shade |
#B9A0E8
|
← body |
darker |
Body shade |
NA |
| body_highlight |
#E8DEF9
|
← body |
lighter |
Body highlight |
NA |
| rim |
#C98FB0
|
leader
|
|
Rim |
secondary |
| rim_light |
#FFFDF4
|
leader
|
|
Rim light |
NA |
| rim_shade |
#91677F
|
leader
|
|
Rim shade |
NA |
| hair_purple |
#4B2A8C
|
leader
|
|
Hair purple |
NA |
| hair_dark |
#1F0F45
|
leader
|
|
Hair dark |
NA |
| fringe_pink |
#F0C14B
|
leader
|
|
Fringe pink |
NA |
| fringe_cyan |
#F3CD6F
|
leader
|
|
Fringe cyan |
NA |
| chip_a |
#F0C14B
|
leader
|
|
Chip a |
NA |
| chip_b |
#C9B2FF
|
leader
|
|
Chip b |
NA |
| chip_conflict |
#3A1F78
|
leader
|
|
Chip conflict |
NA |
| star |
#C9B2FF
|
leader
|
|
Star |
NA |
| arm |
#B9A0E8
|
← body |
darker |
Arm |
NA |
| arm_highlight |
#F0C14B
|
leader
|
|
Arm highlight |
NA |
| gold |
#C9B2FF
|
leader
|
|
Gold |
NA |
| shadow |
#1E103C
|
leader
|
|
Shadow |
NA |
| sweat |
#BDF3FF
|
leader
|
|
Sweat |
NA |
| sweat_deep |
#27B8F0
|
leader
|
|
Sweat deep |
NA |
mascot_colour_roles("knurl")
| role |
colour |
follows |
shade |
description |
brand |
| body |
#0E9AA7
|
leader
|
|
Body |
primary |
| body_shade |
#096D76
|
← body |
darker |
Body shade |
NA |
| body_shine |
#7FE6EE
|
← body |
lighter |
Body shine |
NA |
| copper |
#FF8A3D
|
leader
|
|
Copper |
secondary |
| copper_light |
#FFE0B8
|
← copper |
lighter |
Copper light |
NA |
| copper_shine |
#FFD1AA
|
leader
|
|
Copper shine |
NA |
| screen |
#06232A
|
leader
|
|
Screen |
NA |
| screen_glow |
#0C4A52
|
leader
|
|
Screen glow |
NA |
| feature |
#7CFFE0
|
leader
|
|
Feature |
NA |
| eye_glow |
#7CFFE0
|
leader
|
|
Eye glow |
NA |
| outline |
#1B1230
|
leader
|
|
Outline See the dark-mode outline tip on the mascot_theme page. |
NA |
| outline_light |
#FFF6E0
|
leader
|
|
Outline light |
NA |
| trim |
#24323F
|
leader
|
|
Trim |
NA |
| arm_body |
#0A8795
|
leader
|
|
Arm body |
NA |
| arm_socket |
#0A4650
|
leader
|
|
Arm socket |
NA |
| spanner_handle |
#C7D3E0
|
leader
|
|
Spanner handle |
NA |
| spanner_head |
#E3EBF5
|
leader
|
|
Spanner head |
NA |
| clamp_base |
#1F6F7A
|
leader
|
|
Clamp base |
NA |
| antenna |
#9FB4C0
|
leader
|
|
Antenna |
NA |
| lamp |
#00E5FF
|
← feature |
same |
Lamp |
NA |
| lamp_thinking |
#FF8A3D
|
leader
|
|
Lamp thinking |
NA |
| lamp_happy |
#26A065
|
leader
|
|
Lamp happy |
NA |
| lamp_worried |
#F03A55
|
leader
|
|
Lamp worried |
NA |
| lamp_celebrating |
#E64A9B
|
leader
|
|
Lamp celebrating |
NA |
| sweat |
#9DC3E6
|
leader
|
|
Sweat |
NA |
| sparkle |
#FFFFFF
|
leader
|
|
Sparkle |
NA |
| sparkle_outline |
#FF8A3D
|
leader
|
|
Sparkle outline |
NA |
| shadow |
#A2AEA7
|
leader
|
|
Shadow |
NA |
| shine |
#FFFFFF
|
leader
|
|
Shine |
NA |
| shine_translucent |
rgba(255, 255, 255, 0.6)
|
leader
|
|
Shine translucent |
NA |
| hub_spoke |
#26525E
|
leader
|
|
Hub spoke |
NA |
| hub_rim_light |
#E7FBFF
|
leader
|
|
Hub rim light |
NA |
| hub_rim_mid |
#7FB9C6
|
leader
|
|
Hub rim mid |
NA |
| hub_rim_dark |
#3A6E7C
|
leader
|
|
Hub rim dark |
NA |
| tyre_dark |
#10163A
|
leader
|
|
Tyre dark |
NA |
| tyre_mid |
#3A4580
|
leader
|
|
Tyre mid |
NA |
| tyre_tick |
#5C69B8
|
leader
|
|
Tyre tick |
NA |
mascot_colour_roles("neer")
| role |
colour |
follows |
shade |
description |
brand |
| outline |
#0E2240
|
leader
|
|
Outline See the dark-mode outline tip on the mascot_theme page. |
NA |
| feature |
#0E2240
|
leader
|
|
Feature |
NA |
| eye_white |
#FFFDF4
|
leader
|
|
Eye white |
NA |
| shine |
#FFFFFF
|
leader
|
|
Shine |
NA |
| teeth |
#FFFDF4
|
leader
|
|
Teeth |
NA |
| eyelid |
#2A74C0
|
leader
|
|
Eyelid |
NA |
| tongue |
#FF8A8A
|
leader
|
|
Tongue |
NA |
| body |
#2A74C0
|
leader
|
|
Body |
NA |
| body_light |
#6FC0FF
|
leader
|
|
Body light |
NA |
| body_deep |
#164C8A
|
leader
|
|
Body deep |
NA |
| band |
#9DCDF5
|
leader
|
|
Band |
NA |
| hand |
#9DC3E6
|
leader
|
|
Hand |
NA |
| ivory |
#FFF6E0
|
leader
|
|
Ivory |
NA |
| brow |
#FFFFFF
|
leader
|
|
Brow |
NA |
| iris |
#3B94D4
|
leader
|
|
Iris |
NA |
| blush |
#FF9A8A
|
leader
|
|
Blush |
NA |
| blush_strong |
#FF9A8A
|
leader
|
|
Blush strong |
NA |
| shell_light |
#FFF6E2
|
leader
|
|
Shell light |
NA |
| shell_base |
#F0B890
|
leader
|
|
Shell base |
NA |
| shell_foot |
#E8A878
|
leader
|
|
Shell foot |
NA |
| shell_rib |
rgba(120,60,30,0.55)
|
leader
|
|
Shell rib |
NA |
| shadow |
#A2AEA7
|
leader
|
|
Shadow |
NA |
| sweat |
#9DC3E6
|
leader
|
|
Sweat |
NA |
| sparkle |
#FFFFFF
|
leader
|
|
Sparkle |
NA |
| sparkle_outline |
#9DC3E6
|
leader
|
|
Sparkle outline |
NA |
| sweat_light |
#BDF3FF
|
leader
|
|
Sweat light |
NA |
| sweat_base |
#27B8F0
|
leader
|
|
Sweat base |
NA |
| water_top |
#14468C
|
leader
|
|
Water top |
NA |
| water_bottom |
#0A2864
|
leader
|
|
Water bottom |
NA |
Warnings, errors and common mistakes
mascot_colour_roles(mascot_character("tessa"))
Error: could not find function "mascot_colour_roles"