# Term.jl color scheme for light background

**URL:** https://discourse.julialang.org/t/term-jl-color-scheme-for-light-background/86912
**Category:** General Usage
**Tags:** repl
**Created:** [September 7, 2022, 8:51pm UTC](https://discourse.julialang.org/t/term-jl-color-scheme-for-light-background/86912 "2022-09-07T20:51:26Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![goerz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/goerz/32/3269_2.png) [@goerz](https://discourse.julialang.org/u/goerz)
#### Post date: [September 7, 2022, 8:51pm UTC](https://discourse.julialang.org/t/term-jl-color-scheme-for-light-background/86912/1 "2022-09-07T20:51:26Z")

</div>

The default colors in Term.jl are clearly designed for a dark background terminal:

 ![Term.jl screenshot](https://global.discourse-cdn.com/julialang/original/3X/6/9/6968cd703e7e79e5c2fce1df3b7e5559b52003a5.png)

Does anyone have a good Term.jl color scheme for a white background terminal?

---

<div class="post-metadata">

### Author: ![goerz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/goerz/32/3269_2.png) [@goerz](https://discourse.julialang.org/u/goerz)
#### Post date: [September 7, 2022, 9:20pm UTC](https://discourse.julialang.org/t/term-jl-color-scheme-for-light-background/86912/2 "2022-09-07T21:20:10Z")

</div>

Hmmm… looking at the package code, it seems there are lots of hardcoded colors that aren’t even part of the colorscheme: [Support white background terminals · Issue #156 · FedeClaudi/Term.jl · GitHub](https://github.com/FedeClaudi/Term.jl/issues/156)

While `Term.jl` looks like an amazing library, I really take issue with the modern fad of everyone using dark background terminals and baking that in as an assumption. Julia itself is very guilty of this. Please do not design terminal applications assuming the user will have a dark background!

---

<div class="post-metadata">

### Author: ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)
#### Post date: [September 7, 2022, 9:35pm UTC](https://discourse.julialang.org/t/term-jl-color-scheme-for-light-background/86912/3 "2022-09-07T21:35:50Z")

</div>

Indeed, it’s something I always have to remind myself to do - “check for both light and dark backgrounds”.

Julia seems to allow for colour customization - [The Julia REPL · The Julia Language](https://docs.julialang.org/en/v1/stdlib/REPL/#Customizing-Colors) -…

---

<div class="post-metadata">

### Author: ![goerz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/goerz/32/3269_2.png) [@goerz](https://discourse.julialang.org/u/goerz)
#### Post date: [September 7, 2022, 9:44pm UTC](https://discourse.julialang.org/t/term-jl-color-scheme-for-light-background/86912/4 "2022-09-07T21:44:35Z")

</div>

Yes, but Julia also still hardcodes colors (especially in `Pkg`), see my comments on the relevant issue: [color scheme support · Issue #41435 · JuliaLang/julia · GitHub](https://github.com/JuliaLang/julia/issues/41435)

I considered trying to work on a fix in [Add namedstyle argument to printstyled by goerz · Pull Request #41910 · JuliaLang/julia · GitHub](https://github.com/JuliaLang/julia/pull/41910), but I guess I ultimately just learned to live with it and didn’t pursue it any further

---

<div class="post-metadata">

### Author: ![FedeClaudi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fedeclaudi/32/33490_2.png) [@FedeClaudi](https://discourse.julialang.org/u/FedeClaudi)
#### Post date: [November 30, 2022, 10:53pm UTC](https://discourse.julialang.org/t/term-jl-color-scheme-for-light-background/86912/5 "2022-11-30T22:53:52Z")

</div>

Hey folks,

I know this discussion is a bit old at this point, but I just wanted to point out that Term.jl now has a [default light theme](https://github.com/FedeClaudi/Term.jl/blob/b4d45b0001d9678248febf58a72ec17ea3d707d5/src/theme.jl#L114) available and lots of customization options to create your own theme.  
This happen after @goerz opened an issue on the repo, so thank you for getting that started.

Hope you find it useful, and if you make your own theme and you’re happy with the color scheme I’d love to see it and perhaps add it to a library of themes to distribute among users 🙏

---

<div class="post-metadata">

### Author: ![goerz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/goerz/32/3269_2.png) [@goerz](https://discourse.julialang.org/u/goerz)
#### Post date: [November 30, 2022, 11:11pm UTC](https://discourse.julialang.org/t/term-jl-color-scheme-for-light-background/86912/6 "2022-11-30T23:11:17Z")

</div>

Thanks so much! Sorry for disappearing on this issue, I just got super busy with other things…

Next time I do something where I’m using `Term.jl`, I’ll make PRs for anything that might need improvements on a light background.

In any case, your work on this and your responsiveness are absolutely amazing! 👍👍
