---
title: mdless gets all the colors
date: 2023-11-30 10:47
slug: mdless-gets-all-the-colors
categories:
- Code
tags:
- mdless
- taskpaper
- themes
- productivity
- markdown
- terminal
---

[mdless]: https://brettterpstra.com/projects/mdless/ "mdless, terminal markdown viewer"

I just pushed v2.1.6 of [mdless]. Once all these 2.0 changes are confirmed to be stable, I'll let this project go for a while, but right now there's lots to improve on and I'm enjoying it as a way to blow off steam.

The biggest change in 2.1.6 is the ability to use hex codes when theming. If you didn't know, the first time `mdless` is run, it saves a theme file to `~/.config/mdless/mdless.theme`. You can [edit this file](https://brettterpstra.com/projects/mdless/#customization) to change what colors different elements display as. You can also create additional `NAME.theme` files and trigger them with `--theme NAME`, or set the `:theme:` setting in your `~/.config/mdless/config.yml`.

With the latest version, you can use 3 or 6-digit RGB codes in addition to color names. Where previously you were limited to the default ANSI colors like red, blue, magenta, cyan, etc., you can now insert something like `eccc87` where a color name would usually go. You can affect background colors by prefixing with `bg` or `on_`, e.g. `bgeccc87`. The depth of color that can be displayed depends on your terminal, but at minimum this opens up 256 colors for theming, a 32x increase in options. 

I also fixed a couple of issues where span elements in list items would cause the coloration to change. And when there's a space between list items, they get rendered as paragraphs _within_ list items (standard for most Markdown parsers), causing the coloring to be unexpectedly the same as regular paragraphs. Now `mdless` strips out regular paragraph coloring on paragraphs contained in list items, so every paragraph within a list gets the list item coloring.

In TaskPaper rendering, documents will now respond to `--list` to list projects, and `--section` to list just certain project(s) contents. These no longer have to be numeric (for Markdown or TaskPaper); fuzzy text matching can pick a section (or multiple sections) for you. I also improved the TaskPaper auto-detection by adding a routine that removes all lines that match project or task regular expressions, and if there's nothing left, it assumes it's a TaskPaper document. Let me know how this works in the real world.

Lastly, I added a `--changes` flag that will display the changelog (using mdless for readability), so when you update you can see what changed just by running `mdless --changes`.

Check out the [project page][mdless] for the full changelog and more details!

## mdless

Project: [mdless](https://brettterpstra.com/projects/mdless.md)

- [Apex as Terminal Markdown Renderer](https://brettterpstra.com/2026/02/18/apex-as-terminal-markdown-renderer.md): 2026-02-18
- [Strikethrough and emojis for mdless](https://brettterpstra.com/2025/01/13/strikethrough-and-emojis-for-mdless.md): 2025-01-13
- [mdless with document transclusion](https://brettterpstra.com/2023/12/06/mdless-with-document-transclusion.md): 2023-12-06
- [mdless gets all the colors](https://brettterpstra.com/2023/11/30/mdless-gets-all-the-colors.md): 2023-11-30
- [mdless updates for Thanksgiving weekend](https://brettterpstra.com/2023/11/26/mdless-updates-for-thanksgiving-weekend.md): 2023-11-26
- [mdless 2.0](https://brettterpstra.com/2023/11/23/mdless-2-dot-0.md): 2023-11-23
- [Getting started with Howzit](https://brettterpstra.com/2022/08/09/getting-started-with-howzit.md): 2022-08-09
- [Project Updates July 2022](https://brettterpstra.com/2022/07/31/project-updates-july-2022.md): 2022-07-31
- [mdless one dot oh my](https://brettterpstra.com/2019/09/13/mdless-1-dot-0.md): 2019-09-13
- [mdless: Better Markdown in Terminal](https://brettterpstra.com/2015/08/21/mdless-better-markdown-in-terminal.md): 2015-08-21

---

Brett is a writer and developer living in Minnesota, USA. You can follow him as ttscoff. This content is supported by readers like you. [More about Brett](https://brettterpstra.com/contact.md), including social links.

Copyright © 2026 Brett Terpstra. All rights reserved.
