elk-zone / elk

A nimble Mastodon web client
https://elk.zone
MIT License
5.51k stars 566 forks source link

Add dim Color Mode #1723

Open ronilaukkarinen opened 1 year ago

ronilaukkarinen commented 1 year ago

I prefer "dim" color schemes for many dark themes, in my opinion #111 or 17, 17, 17 rgb is a bit too dark.

Here's a quick proof of concept "Dim" Color Mode which uses the default Mastodon web UI background rgb(25, 27, 34). This could be a setting "Dim" like on Twitter.

Before: elk mementomori social_settings_interface (1)

After: elk mementomori social_home

elk mementomori social_settings_interface (2)

stackblitz[bot] commented 1 year ago

Solve in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

Nive9 commented 1 year ago

I agree, and maybe the Catppuccin colour scheme would be an option?

ronilaukkarinen commented 1 year ago

I agree, and maybe the Catppuccin colour scheme would be an option?

That looks really nice! Didn't know there's already a dim-ish themes out there for Elk.

theotherlinh commented 1 year ago

definitely agree with a dim mode. I'd go a notch lighter still, but anything works :)

ronilaukkarinen commented 1 year ago

Here are the CSS variables, this uses the official colors from the default Mastodon UI , I kinda like them.

:root {
  --c-bg-base: #191b22;
  --rgb-bg-base: 25, 27, 34;
  --c-border: rgba(45, 53, 56, .44);
  --c-bg-active: rgba(85, 93, 100, .18);
}

You can test them out for instance by using Live editor (for both Chrome and Firefox) and pinning the styles with the pin icon.

image

I'm not exactly sure how to create a selection for this, but if anyone is not already attempting this, I could try and send a PR later.

ronilaukkarinen commented 1 year ago

I have not yet figured out a way to fix "Show more" button as it desaturates the background. So I'm just forcing the styles without the filter.

Current process to add these to a canary build:

  1. Get latest build
  2. nano $HOME/elk/styles/global.css
  3. Add to first line:
:root {
  --c-bg-base: #191b22;
  --rgb-bg-base: 25, 27, 34;
  --c-border: rgba(45, 53, 56, .44);
  --c-bg-active: rgba(85, 93, 100, .18);
}

/* Fix "Show more" button background color */
button.filter-saturate-0:not(:hover) {
  color: #858585;
  filter: unset;
}
  1. Replace #111111 with #191b22 to get mobile PWA header and status bar to the right color:
nano $HOME/elk/modules/pwa/i18n.ts
nano $HOME/elk/plugins/color-mode.ts
  1. Rebuild
Dricc123 commented 1 year ago

Yes, we need dim colors. dark is too dark and bright is too bright. Many thanks

Dricc123 commented 6 months ago

This feature request is so old! Has it been abandoned? It's the only reason I don't use Elk.

Dricc123 commented 3 months ago

How come nobody cares? It's the one thing that would transform the app from unusable to great