missive / emoji-mart

🏪 One component to pick them all
https://missiveapp.com/open/emoji-mart
MIT License
8.67k stars 835 forks source link

Add dark mode #293

Closed nolanlawson closed 4 years ago

nolanlawson commented 5 years ago

It may be nice to have an optional dark mode.

darwin2k commented 4 years ago

you can try to overwrite CSS:

.emoji-mart, .emoji-mart-category-label span {
  @include themify($themes) {
    background-color: themed('colorBackground');
    color: themed('colorText');
  }
}
nolanlawson commented 4 years ago

fixed by https://github.com/missive/emoji-mart/pull/391

santoshnaagula commented 4 years ago

you can add darkmode true or false, it will reflect

[darkMode]="false"

beqacrc commented 10 months ago

at the end you can use this solution

@use "../../abstract/palette.scss" as *;

@mixin emoji-mart-on-dark {
  .emoji-mart {
    background-color: $clr-main-primary;

    .emoji-mart-preview-name {
      color: #ccc;
    }

    .emoji-mart-category-label {
      background-color: unset;
    }

    .emoji-mart-category .emoji-mart-emoji:hover:before,
    .emoji-mart-emoji-selected:before {
      background-color: $clr-blue-primary;
    }
  }
}