athityakumar / athityakumar/colorls

Detect OS Dark/Light Mode?

Open
#523 0 comments 0 reactions 0 assignees View on GitHub
Hacktoberfest Up-For-Grabs
Dominant language
Ruby
Stars
5.1k
Forks
396
PR merge metrics
No merged PRs in 30d

Description

### Description

Hi!

I love that colorls supports and comes with themes for dark/light modes, if set by the user per-usage. I noticed an issue from some time ago #165, in which a commenter suggested using ANSI colors. The way I use my terminal mostly these days is with the integrated term in VSCode, which I've set to switch theme based on my daily OS (mac/windows) dark/light cycle. Unfortunately, I don't know how to auto set colorls to use the appropriate theme based on light/dark mode.

Would it possible to either bake-in such functionality to be configured as the user wishes, or does anyone have any easy scripts or aliases or something that can take of this?

The easiest option for me or anyone else really would be to support ANSI color names within the color.yaml files, and let the terminal themes take care of the rest

- Relevant Issues : #165 kinda
- Type of issue :
- [ ] Installation
- [ ] Font-related
- [x] Feature request
- [ ] Bug in existing feature
- [ ] Developer mode : Code quality / Tests / Documentation

Contributor guide

Open the contributing guide

Research direction

Start by inspecting how color.yaml themes are loaded and review related issue #165. Clarify whether the goal is OS dark/light detection, user-configurable switching, or ANSI color names; done means one defined approach works in the supported terminal environments and is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby, yaml
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.