0.1.2 โ€ข Published 2 years ago

emojitone v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

EmojiTone

๐Ÿ‘‹๐Ÿ‘‹๐Ÿฟ๐Ÿ‘‹๐Ÿพ๐Ÿ‘‹๐Ÿฝ๐Ÿ‘‹๐Ÿผ๐Ÿ‘‹๐Ÿป

Emoji are useful tools for communicating application behavior. I recently finished a project which heavily uses them and realized while building that I wanted to add an option for users of the project to customize the interface to their liking. There are plenty of packages to do this for theme, but I could not find any for emoji skin tone, so I decided to build EmojiTone.This package is a simple interface for building with tone-changing emojis. You can use this with state management on your end to allow users to set the tone as part of their user settings. You can then store that state on a server, in the browser, or however you like. This package is just here to help you with the long and complicated switch statements! Enjoy ๐Ÿ’“.

Install

$ npm install emojitone
# or
$ yarn add emojitone

Use

Using EmojiTone is as simple as importing it and passing in any supported emoji and an accepted tone.

import { et } from 'emojitone'

// Returns ๐Ÿ‘‹๐Ÿพ
et('๐Ÿ‘‹', 'medium-dark')

The accepted tones are:

  • dark
  • medium-dark
  • medium
  • medium-light
  • light

Recommended practices

It is a good idea to combine this package with simple state management on your end. I have built a simple example Next.js application which stores the state in the browser's localestorage to show you what this might look like. Here is a link to it running live.

Currently supported emoji:

๐Ÿ‘‹ ๐Ÿคš ๐Ÿ–๏ธ โœ‹ ๐Ÿ–– ๐Ÿซฑ ๐Ÿซฒ ๐Ÿซณ ๐Ÿซด ๐Ÿ‘Œ ๐ŸคŒ ๐Ÿค โœŒ๏ธ ๐Ÿคž ๐Ÿซฐ ๐ŸคŸ ๐Ÿค˜ ๐Ÿค™ ๐Ÿ‘ˆ ๐Ÿ‘‰ ๐Ÿ‘† ๐Ÿ–• ๐Ÿ‘‡ โ˜๏ธ ๐Ÿซต ๐Ÿ‘ ๐Ÿ‘Ž โœŠ ๐Ÿ‘Š ๐Ÿค› ๐Ÿคœ ๐Ÿ‘ ๐Ÿ™Œ ๐Ÿซถ ๐Ÿ‘ ๐Ÿคฒ ๐Ÿค ๐Ÿ™ โœ๏ธ ๐Ÿ’… ๐Ÿคณ ๐Ÿ’ช ๐Ÿฆต ๐Ÿฆถ ๐Ÿ‘‚ ๐Ÿฆป ๐Ÿ‘ƒ ๐Ÿ‘ถ ๐Ÿง’ ๐Ÿ‘ฆ ๐Ÿ‘ง ๐Ÿง‘ ๐Ÿ‘จ ๐Ÿ‘ฉ ๐Ÿง“ ๐Ÿ‘ด ๐Ÿ‘ต ๐Ÿ™ ๐Ÿ™โ€โ™‚๏ธ ๐Ÿ™โ€โ™€๏ธ ๐Ÿ™Ž ๐Ÿ™Žโ€โ™‚๏ธ ๐Ÿ™Žโ€โ™€๏ธ ๐Ÿ™… ๐Ÿ™…โ€โ™‚๏ธ ๐Ÿ™…โ€โ™€๏ธ ๐Ÿ™† ๐Ÿ™†โ€โ™‚๏ธ ๐Ÿ™†โ€โ™€๏ธ ๐Ÿ’ ๐Ÿ’โ€โ™‚๏ธ ๐Ÿ’โ€โ™€๏ธ ๐Ÿ™‹ ๐Ÿ™‹โ€โ™‚๏ธ ๐Ÿ™‹โ€โ™€๏ธ ๐Ÿง ๐Ÿงโ€โ™‚๏ธ ๐Ÿงโ€โ™€๏ธ ๐Ÿ™‡ ๐Ÿ™‡โ€โ™‚๏ธ ๐Ÿ™‡โ€โ™€๏ธ ๐Ÿคฆ ๐Ÿคฆโ€โ™‚๏ธ ๐Ÿคฆโ€โ™€๏ธ ๐Ÿคท ๐Ÿคทโ€โ™‚๏ธ ๐Ÿคทโ€โ™€๏ธ ๐Ÿง‘โ€โš•๏ธ ๐Ÿ‘จโ€โš•๏ธ ๐Ÿ‘ฉโ€โš•๏ธ ๐Ÿง‘โ€๐ŸŽ“ ๐Ÿ‘จโ€๐ŸŽ“ ๐Ÿ‘ฉโ€๐ŸŽ“ ๐Ÿง‘โ€๐Ÿซ ๐Ÿ‘จโ€๐Ÿซ ๐Ÿ‘ฉโ€๐Ÿซ ๐Ÿง‘โ€โš–๏ธ ๐Ÿ‘จโ€โš–๏ธ ๐Ÿ‘ฉโ€โš–๏ธ ๐Ÿง‘โ€๐ŸŒพ ๐Ÿ‘จโ€๐ŸŒพ ๐Ÿ‘ฉโ€๐ŸŒพ ๐Ÿง‘โ€๐Ÿณ ๐Ÿ‘จโ€๐Ÿณ ๐Ÿ‘ฉโ€๐Ÿณ ๐Ÿง‘โ€๐Ÿ”ง ๐Ÿ‘จโ€๐Ÿ”ง ๐Ÿ‘ฉโ€๐Ÿ”ง ๐Ÿง‘โ€๐Ÿญ ๐Ÿ‘จโ€๐Ÿญ ๐Ÿ‘ฉโ€๐Ÿญ ๐Ÿง‘โ€๐Ÿ’ผ ๐Ÿ‘จโ€๐Ÿ’ผ ๐Ÿ‘ฉโ€๐Ÿ’ผ ๐Ÿง‘โ€๐Ÿ”ฌ ๐Ÿ‘จโ€๐Ÿ”ฌ ๐Ÿ‘ฉโ€๐Ÿ”ฌ ๐Ÿง‘โ€๐Ÿ’ป ๐Ÿ‘จโ€๐Ÿ’ป ๐Ÿ‘ฉโ€๐Ÿ’ป ๐Ÿง‘โ€๐ŸŽค ๐Ÿ‘จโ€๐ŸŽค ๐Ÿ‘ฉโ€๐ŸŽค ๐Ÿง‘โ€๐ŸŽจ ๐Ÿ‘จโ€๐ŸŽจ ๐Ÿ‘ฉโ€๐ŸŽจ ๐Ÿง‘โ€โœˆ๏ธ ๐Ÿ‘จโ€โœˆ๏ธ ๐Ÿ‘ฉโ€โœˆ๏ธ ๐Ÿง‘โ€๐Ÿš€ ๐Ÿ‘จโ€๐Ÿš€ ๐Ÿ‘ฉโ€๐Ÿš€ ๐Ÿง‘โ€๐Ÿš’ ๐Ÿ‘จโ€๐Ÿš’ ๐Ÿ‘ฉโ€๐Ÿš’ ๐Ÿ‘ฎ ๐Ÿ‘ฎโ€โ™‚๏ธ ๐Ÿ‘ฎโ€โ™€๏ธ ๐Ÿ•ต๏ธ ๐Ÿ•ต๏ธโ€โ™‚๏ธ ๐Ÿ•ต๏ธโ€โ™€๏ธ ๐Ÿ’‚ ๐Ÿ’‚โ€โ™‚๏ธ ๐Ÿ’‚โ€โ™€๏ธ ๐Ÿฅท ๐Ÿ‘ท ๐Ÿ‘ทโ€โ™‚๏ธ ๐Ÿ‘ทโ€โ™€๏ธ ๐Ÿซ… ๐Ÿคด ๐Ÿ‘ธ ๐Ÿ‘ณ ๐Ÿ‘ณโ€โ™‚๏ธ ๐Ÿ‘ณโ€โ™€๏ธ ๐Ÿ‘ฒ ๐Ÿง• ๐Ÿคต ๐Ÿคตโ€โ™‚๏ธ ๐Ÿคตโ€โ™€๏ธ ๐Ÿ‘ฐ ๐Ÿ‘ฐโ€โ™‚๏ธ ๐Ÿ‘ฐโ€โ™€๏ธ ๐Ÿคฐ ๐Ÿซƒ ๐Ÿซ„ ๐Ÿคฑ ๐Ÿ‘ฉโ€๐Ÿผ ๐Ÿ‘จโ€๐Ÿผ ๐Ÿง‘โ€๐Ÿผ ๐Ÿ‘ผ ๐ŸŽ… ๐Ÿคถ ๐Ÿง‘โ€๐ŸŽ„ ๐Ÿฆธ ๐Ÿฆธโ€โ™‚๏ธ ๐Ÿฆธโ€โ™€๏ธ ๐Ÿฆน ๐Ÿฆนโ€โ™‚๏ธ ๐Ÿฆนโ€โ™€๏ธ ๐Ÿง™ ๐Ÿง™โ€โ™‚๏ธ ๐Ÿง™โ€โ™€๏ธ ๐Ÿงš ๐Ÿงšโ€โ™‚๏ธ ๐Ÿงšโ€โ™€๏ธ ๐Ÿง› ๐Ÿง›โ€โ™‚๏ธ ๐Ÿง›โ€โ™€๏ธ ๐Ÿงœ ๐Ÿงœโ€โ™‚๏ธ ๐Ÿงœโ€โ™€๏ธ ๐Ÿง ๐Ÿงโ€โ™‚๏ธ ๐Ÿงโ€โ™€๏ธ ๐Ÿ’† ๐Ÿ’†โ€โ™‚๏ธ ๐Ÿ’†โ€โ™€๏ธ ๐Ÿ’‡ ๐Ÿ’‡โ€โ™‚๏ธ ๐Ÿ’‡โ€โ™€๏ธ ๐Ÿšถ ๐Ÿšถโ€โ™‚๏ธ ๐Ÿšถโ€โ™€๏ธ ๐Ÿง ๐Ÿงโ€โ™‚๏ธ ๐Ÿงโ€โ™€๏ธ ๐ŸงŽ ๐ŸงŽโ€โ™‚๏ธ ๐ŸงŽโ€โ™€๏ธ ๐Ÿง‘โ€๐Ÿฆฏ ๐Ÿ‘จโ€๐Ÿฆฏ ๐Ÿ‘ฉโ€๐Ÿฆฏ ๐Ÿง‘โ€๐Ÿฆผ ๐Ÿ‘จโ€๐Ÿฆผ ๐Ÿ‘ฉโ€๐Ÿฆผ ๐Ÿง‘โ€๐Ÿฆฝ ๐Ÿ‘จโ€๐Ÿฆฝ ๐Ÿ‘ฉโ€๐Ÿฆฝ ๐Ÿƒ ๐Ÿƒโ€โ™‚๏ธ ๐Ÿƒโ€โ™€๏ธ ๐Ÿ’ƒ ๐Ÿ•บ ๐Ÿ•ด๏ธ ๐Ÿง– ๐Ÿง–โ€โ™‚๏ธ ๐Ÿง–โ€โ™€๏ธ ๐Ÿง— ๐Ÿง—โ€โ™‚๏ธ ๐Ÿง—โ€โ™€๏ธ ๐Ÿ‡ ๐Ÿ‚ ๐ŸŒ๏ธ ๐ŸŒ๏ธโ€โ™‚๏ธ ๐ŸŒ๏ธโ€โ™€๏ธ ๐Ÿ„ ๐Ÿ„โ€โ™‚๏ธ ๐Ÿ„โ€โ™€๏ธ ๐Ÿšฃ ๐Ÿšฃโ€โ™‚๏ธ ๐Ÿšฃโ€โ™€๏ธ ๐ŸŠ ๐ŸŠโ€โ™‚๏ธ ๐ŸŠโ€โ™€๏ธ โ›น๏ธ โ›น๏ธโ€โ™‚๏ธ โ›น๏ธโ€โ™€๏ธ ๐Ÿ‹๏ธ ๐Ÿ‹๏ธโ€โ™‚๏ธ ๐Ÿ‹๏ธโ€โ™€๏ธ ๐Ÿšด ๐Ÿšดโ€โ™‚๏ธ ๐Ÿšดโ€โ™€๏ธ ๐Ÿšต ๐Ÿšตโ€โ™‚๏ธ ๐Ÿšตโ€โ™€๏ธ ๐Ÿคธ ๐Ÿคธโ€โ™‚๏ธ ๐Ÿคธโ€โ™€๏ธ ๐Ÿคฝ ๐Ÿคฝโ€โ™‚๏ธ ๐Ÿคฝโ€โ™€๏ธ ๐Ÿคพ ๐Ÿคพโ€โ™‚๏ธ ๐Ÿคพโ€โ™€๏ธ ๐Ÿคน ๐Ÿคนโ€โ™‚๏ธ ๐Ÿคนโ€โ™€๏ธ ๐Ÿง˜ ๐Ÿง˜โ€โ™‚๏ธ ๐Ÿง˜โ€โ™€๏ธ ๐Ÿ›€ ๐Ÿ›Œ ๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘ ๐Ÿ‘ญ ๐Ÿ‘ซ ๐Ÿ‘ฌ ๐Ÿ’ ๐Ÿ‘ฉโ€โค๏ธโ€๐Ÿ’‹โ€๐Ÿ‘จ ๐Ÿ‘จโ€โค๏ธโ€๐Ÿ’‹โ€๐Ÿ‘จ ๐Ÿ‘ฉโ€โค๏ธโ€๐Ÿ’‹โ€๐Ÿ‘ฉ ๐Ÿ’‘ ๐Ÿ‘ฉโ€โค๏ธโ€๐Ÿ‘จ ๐Ÿ‘จโ€โค๏ธโ€๐Ÿ‘จ ๐Ÿ‘ฉโ€โค๏ธโ€๐Ÿ‘ฉ