Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dark mode #293

Closed
nolanlawson opened this issue Mar 12, 2019 · 4 comments
Closed

Add dark mode #293

nolanlawson opened this issue Mar 12, 2019 · 4 comments

Comments

@nolanlawson
Copy link

It may be nice to have an optional dark mode.

@darwin2k
Copy link

darwin2k commented Dec 9, 2019

you can try to overwrite CSS:

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

@nolanlawson
Copy link
Author

fixed by #391

@santoshnaagula
Copy link

you can add darkmode true or false, it will reflect

[darkMode]="false"

@beqacrc
Copy link

beqacrc commented Jan 16, 2024

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;
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants