Make it look the way you like
The look of mdgrid is set by the [look] and [display] sections of the config file (~/.config/mdgrid/config.toml). This page shows what each item changes, how they combine, and how to give one workspace or one table its own look. Every item is described exactly in Configuration.
- The default look
- Colors: themes
- Shapes of parts: style
- Cells as parts or as text
- Frames and selection
- What is shown around the table
- A look per workspace, table or view
- Terminals and fonts
- Recipes
The default look
With colors on, mdgrid starts in the quiet “sumi” set ([look] preset = "sumi"): rounded window frames, the selection as a tinted background instead of reverse video, headings in an accent color with a line under them, and cells shown as parts — a colored dot before values like status (● doing), lists separated by · (ui · web), and ✓ for booleans. Only the dot is colored; the value text stays in the plain, readable color.
Without colors (--no-color, NO_COLOR set, TERM=dumb, or [terminal] color = false), the screen is plain text with reverse video for the selection; nothing on screen depends on color alone.
Colors: themes
[look] theme picks a color set: "default" keeps your terminal’s colors; "nord", "solarized-light", "dracula", "gruvbox", "pink-monster", "dozy-pink" and the quieter "sumi", "slate", "saas", "saas-dark" and "paper" paint the whole screen. Only colors change. See Themes for screenshots.
[look]
theme = "nord"
A pair { light = ..., dark = ... } picks by the terminal’s background; "auto" is { light = "saas", dark = "sumi" }. mdgrid reads the background from COLORFGBG or asks the terminal; when it cannot tell, it assumes dark.
[look]
theme = { light = "paper", dark = "saas-dark" }
[look.colors] overrides single colors of the theme (accent, selection, …) and [look.colors.values] gives a value its own color (done = "green"). The color goes on the value’s chip in the cells, on the value in group headings and on kanban lane titles alike, so work = "blue" turns the heading of the work group blue too.
Themes and role colors can also be picked on screen: in the “Look” section of the view settings (o), choose a theme from the list, or pick Custom at the end of the list to change the current theme’s colors role by role. See Themes.
Shapes of parts: style
[look] preset picks a whole set of part shapes, and [look.style] overrides one part each.
| Preset | Feel |
|---|---|
sumi (default) | Dot and text, tags separated by ·, ✓, a line under headings, underlined tabs |
slate | Shapes (○ ◐ ● ⊘), #tags, ☑, filled tabs, heading marks |
saas | Soft tinted pills, segmented tabs |
paper | Colored text only, [x], column lines, square frames |
grid | Plain text, column and heading lines, keys on a tint |
classic | The 0.2.0 look (square chips, filled selection) |
dozy-pink | Soft round pills (pair it with the dozy-pink theme) |
[look]
preset = "saas"
[look.style]
select = "cross" # tint the selected row and column as a crosshair
The parts are status, tags, check, select, rules, tabs, frames, band, links and icons (all values in Configuration). Round pills ("pill") are drawn with Nerd Font glyphs. With the default [terminal] nerd_font = "auto" they are round on terminals that draw the rounded ends themselves (Ghostty, WezTerm) and clipped elsewhere; true always draws them round, false always clipped.
Catalog: open docs/catalog/index.html in a browser to compare themes and part shapes on a live sample. Select cells, pick values, search, filter, open details, the relation map and help — with clicks and keys. It also writes the settings to paste into config.toml.
Cells as parts or as text
[look] cells decides how values look in the table when colors are on:
| Value | cells = "rich" (default) | cells = "plain" |
|---|---|---|
done: true | ☑ | true |
tags: [ui, web] | chips ui web, each in its own color | [ui, web] |
status: doing (a column of short values that repeat) | a chip doing | doing |
project: "[[mdgrid]]" | mdgrid in the accent color | mdgrid |
| column headings | ◉ status, ◷ due, # priority, ☑ done, ⋮ tags | status, due, … |
The same value always gets the same chip color, in the table, in the value counts (%) and in the list of choices. The text of a value is always shown; color never stands in for it. Values written to notes, edited, searched and printed (--print) are the plain values.
Keep single parts as text with their plain shape, and choose column by column:
[look.style]
check = "text" # keep true / false as text
links = "plain" # links without the accent color
[look.columns]
memo = "plain" # this column as text
owner = "chip" # chips even if not detected (the setting for a column wins)
When a column is too narrow for all its chips, the chips that fit are shown whole and the rest are counted as +N.
Frames and selection
[look] mode = "classic"brings back the earlier look: reverse video for the selection, no accent colors. The text on screen is the same in both modes.[look.style] framespicks window frames:"rounded","square","heavy","ascii"or"none"(always ASCII with[terminal] ambiguous_wide = true, so columns stay aligned).
What is shown around the table
| Item | What it changes |
|---|---|
[display] tabs = "auto" | Hide the row of view tabs while there is only one view (a folder with no saved views). The row comes back when you save a view. |
[display] tabs = "never" | Hide the view tabs always; [ and ] still switch views. |
[display] search_bar = false | Hide the search bar above the table; \ still filters, typing on the bottom line. |
[display] chips = false | Hide the band of active view settings. |
[display] row_numbers = true | Number the rows 1, 2, 3… in the order shown. |
[display] zebra = true | Shade every other row (only with colors). |
[display] column_lines = true | Draw │ between columns. |
[display] group_gap = true | Leave an empty line above every group heading but the first. |
[display] row_extra_lines = 2 | Wrap long values and values with line breaks at the column width, growing a row up to 3 lines (only as tall as needed; what does not fit ends with …). 0 keeps one line. |
Each view can override the [display] items in its view settings (o, the “Display” section), and a saved mdgrid view keeps them.
A look per workspace, table or view
Everything on this page ([look], [display], and also [dates], [edit] and [new_note]) can be written per workspace, per table and per view, and the narrowest place wins. Write it by hand in the workspace marker .mdgrid/workspace.toml (shared with the notes, for example in git), or pick it on the screen:
# notes/.mdgrid/workspace.toml
name = "notes"
[look]
theme = "nord" # every table of this workspace
[[table]]
path = "tasks"
[table.look]
theme = "dracula" # only the tasks table
On the screen, open the view settings (o) and go to the “Look” section. “Save to” chooses where the theme and parts are kept: global (ui.toml), this workspace (workspaces.toml), this table (views.toml) or this view. Next to the theme and parts, (this table) and the like show where the current value comes from; a value from the marker shows (marker). “Remove the override of this place” goes back to the wider place. mdgrid never writes config.toml or the workspace marker; for a marker workspace, write the look into the marker by hand.
The [look] in a marker is the look the ledger’s author suggests. If a ledger you share says dozy-pink, the theme, parts and colors the people who open it chose in their own config.toml or on screen still win, whatever place they saved them to. When places are layered, a marker’s [look] counts as wider than global (just above the defaults). The other sections of a marker, such as [display], stay at the workspace level as before.
A preset in a narrower place drops the part shapes of wider places, and a theme drops their role colors, so a table that picks its own set gets that whole set. mdgrid <table> --print-config --resolved shows what applies to a table and where each value comes from.
Templates ([templates.<name>]) keep a look under a name; use = "<name>" in any place starts from it. The “Look” section can save the current theme and parts as a template.
Terminals and fonts
- If characters such as
○,※or the box lines look twice as wide as they should and columns drift, set[terminal] ambiguous_wide = true. The frames then use ASCII so that everything lines up. - Without true color (
COLORTERMis nottruecoloror24bit), mdgrid uses the nearest of the 256 colors. - The checkbox and type marks (
☑ ☐ ◉ ◷ ⋮) are ordinary text characters; if your font draws them badly, use[look.style] check = "text"andicons = false.
Recipes
Quiet and minimal:
[look]
cells = "plain"
[display]
tabs = "auto"
search_bar = false
chips = false
A dense table with guides:
[display]
row_numbers = true
zebra = true
column_lines = true
The earlier look:
[look]
mode = "classic"
cells = "plain"
[look.style]
frames = "ascii"