Custom Colors. Format rows with any color.
By using Hex Values for color stops, you can format your table using any colors you want, not just the ones available in the Conditional Formatting editor. In this example, we map each row on the color lookup table with a color stop.
👀 See the formula
Show me a demo!
Give it a try! Click the button to add a card with a random color.
Hundreds of Rules. Without pulling an all-nighter.
In this example, we have 148 unique colors, one for each of the available HTML Named Colors. You don’t have to use Hex Values, color stops also support HTML named colors like “Blue”, “Red”, “Tomato” or “HotPink”. You can see the named color at the top of each card.
Imagine setting that up in the editor one rule at a time 🤯
👀 See the formula
Show me a demo!
Give it a try! Drag the slider on each card to update the card’s color.
Color Scales. Adding meaning with color
The default Color Scales are great, but being able to fully control color stops means we can create really meaningful formatting. In this table, cards are formatted based on the city’s annual rainfall. We emphasize cities that have dramatically high or low annual rainfall with bold colors.
What we’re trying to achieve.
A useful application for this technique is to smoothly gradate the color of rows when their values are within an expected range, but dramatically highlight rows that are “outliers”.
For this example, Cities with low rainfall are light blue, and cities with higher rainfall are darker blue. To highlight cities that have dramatically high or low annual rainfall, we add bold color stops at either end of the spectrum.
Cities with rainfall below 10 inches have a color stop that is a sandy brown color. On the other end of the scale, cities with more than 70 inches of rainfall are navy blue, and cities over 80 inches are highlighted purple.
The result is that the user is able to easily see outliers by their card color alone.
Here’s an illustration of what we’re going for. The numbers at the top of the gradient bar are the color stops we’ve got setup. We use the Rainfall in inches column to determine the card’s color relative to the color stops.
👀 See the formula
Show me a demo!
Coda Colors... Applying Coda’s own colors to your table
Coda’s internal colors consist of eight colors in five shades (as far as I know... there could be more). Using these colors in your conditional formatting means your row colors will match up with other colors in your doc, but this can also be used to yield quite interesting results...
What we’re trying to achieve.
Users can select a Preferred Color and their row will be highlighted in that color. The Actions Bar on the right then adopts these colors for its buttons, so you end up with quite a cool look where the buttons fade into the rest of the row’s color and you just see the icon.
To achieve this, we use Coda’s Medium shade, which is the shade used on buttons.
👀 See the formula
Show me a demo!
Give it a try! Change a user’s preferred color using the dropdown at the end of each row, and watch the row’s color and the button colors both change to suit their preferences.
Note the button’s don’t actually do anything, they’re just there as a demo.
Next Up. The Formula