Skip to content

Color rules: paint the records that match a condition

Color every record that matches a condition, with a solid marker and a light wash. Twelve colors, first match wins, saved per view, built like a filter.

Updated November 2026

A filter removes records. A color rule keeps them all and makes the ones that match easy to spot. Deliver by before today → pomegranate turns the overdue records red without hiding anything. You still see every record, and the late ones are the first thing you notice.

The Color panel over the Orders grid: a blue rule reading when Status is New, with the three new orders washed behind it.

Make a rule

  1. Open Color in the view bar.
  2. Click Add rule. Each rule is a swatch plus a condition, written as color when field · operator · value. It's the same row you'd build in the filter, with the same operators per field type and the same value editors. Some examples: when Status is Cancelled, when Total is at least 1000, when Photo is empty.
  3. Pick the swatch. There are twelve colors: pomegranate, henna, saffron, ochre, olive, emerald, verdigris, nile, lapis, indigo, violet, rose.

Rules are checked top to bottom and the first match wins. A record is one color, never a blend. Put the most important rule first, because the order in the panel is the order of precedence.

Like everything in the view bar, rules belong to the view. The button reads Color · 2 when two rules are set, and another view of the same table can have different rules or none at all.

What the color looks like

In the grid, a matching record gets two marks. The row marker at the far left fills with the solid color, and the row itself gets a light wash of it. The wash is strong enough to pick out when you scan the grid and light enough that chips, text and checkboxes stay readable on top.

The other layouts show the same rule in their own way. Gallery and board cards get the wash over the entire card. Calendar entries are painted in the picked color itself, and the calendar's swatch picker adds light and dark rows of each color, because on a calendar the shade you pick is the same shade you see. On a grouped grid the Color button also has a Groups section ("when group is X") for coloring entire sections instead of single records.

A public view link keeps the rules, and its visitors see the wash too.

How rules behave

  • Renames don't break rules. A rule on a select stores the choice's id, so renaming New to Incoming leaves the rule pointing at the same choice. A rule whose choice is deleted stops matching, and it never matches the wrong thing.
  • Rules on computed fields work. Conditions are evaluated against the values the view is showing, so a rule on a rollup or lookup (when Items is greater than 5) paints correctly as those values change.
  • A rule with an unfinished value matches nothing.
  • Coloring is not filtering. Every record still shows. When you also want to hide the others, use the same condition in the filter, where the row you build is identical.
  • Rules are included in an export. Exporting your database writes every view, color rules included, into the zip's manifest, and restoring that zip brings them back.

The questions people ask

How many rules can a view hold? There's no fixed cap. But since the first match wins, a long list mostly means the later rules never apply. Two or three rules that each mean something work better than ten that overlap.

Can I color one cell, or a whole field? No. A rule colors records. Select choice colors already give you color per value, since each choice has its own color wherever it appears.

About Tabla

Tabla is a no-code database with Postgres underneath. Every feature is on every plan, you get a million records per database, and you can export your whole database in one file any day.

More guides