Skin Tone
Change emoji skin tones effortlessly. π§π§π»π§πΌπ§π½π§πΎπ§πΏ
π DEMO
Example of using the library: Random Emoji Generator
ποΈ Install
π NPM
npm install @qit.tools/skin-tone
π§ Bun
bun add @qit.tools/skin-tone
π PNPM
pnpm add @qit.tools/skin-tone
π§Ά Yarn
yarn add @qit.tools/skin-tone
π How to use
import skinTone from "@qit.tools/skin-tone";
console.log(skinTone("π§", "dark"));
console.log(skinTone("π§πΏβπ€βπ§πΏ", "light"));
API
skinTone(emoji, tone)
emoji
Type: string
tone
type SkinTone = '' | 'none' | 'light' | 'mediumLight' | 'medium' | 'mediumDark' | 'dark'
Type: SkinTone | undefined
Skin tone to use for emoji.
none
None skin tonelight
light skin tone, fitzpatrick type-1β2mediumLight
medium-light skin tone, fitzpatrick type-3medium
medium skin tone, fitzpatrick type-4mediumDark
medium-dark skin tone, fitzpatrick type-5dark
dark skin tone, fitzpatrick type-6
Unicode License Agreement
https://www.unicode.org/license.html