Appearance
Table Colors
Table colors decide how four parts of your table look: the search bar, the header row, the body rows (including hover and zebra stripes) and the pagination bar. Pick a ready-made scheme and the whole table is recolored in one click, or set each color yourself to match your brand exactly.
- Preset gives you 14 ready-made schemes. The Default scheme is free; the other 13 are Pro.
- Custom (Pro) lets you set every color of every part, one by one.
- Go to Ninja Tables › Tables and open a table.
- Click the Table Design tab.
- In the settings panel, click the Colors tab. (The panel opens on Styling.)
At the top of the tab, Color Mode has two choices: Preset and Custom (Pro). Every change shows in the live preview straight away. Click Save at the top of the editor to keep it.
Preset: ready-made color schemes
With Preset selected, the panel says "Pick a ready-made color scheme." and shows a grid of swatches. Each swatch is a tiny table drawn in that scheme's colors, with a header bar and rows, and its name underneath. Click one to apply it. The selected scheme gets a check mark.
A scheme recolors the whole table at once: the search bar, the header, the rows, the row under the pointer and the pagination bar. You don't have to set anything else.
The 14 schemes are:
Default, White, Red, Orange, Yellow, Olive, Green, Teal, Blue, Violet, Purple, Pink, Grey and Black.
- Default adds no colors of its own. The table follows your theme and the style library you chose in Rows & Borders. Pick it when your theme already looks the way you want. It is the scheme every new table starts with, and the only one on the free version.
- The other 13 schemes (Pro) give you a complete look with one click. Use them when you want a colored header and matching rows without choosing individual colors.
Custom: set each color yourself (Pro)
Select Custom when a ready-made scheme is close but not exact, or when you need your brand colors. The panel says "Set each color below. Switching back to Preset uses the scheme instead."
Custom colors are split into four sections, one for each part of the table: Search Bar Colors, Table Header Colors, Table Body Colors and Pagination Colors.
- One section open at a time. Click a section's heading to open it. Opening another one closes the first.
- Your edits are kept. Closing a section does not discard the colors you set in it.
- Every field starts as Default. A field that shows Default is empty, so that part keeps its normal color from your theme and style library. Set only the colors you want to change.
- Custom turns on by itself. The moment you change any color, the table switches to Custom mode, so your color takes effect without you touching the mode switch.
- Back to Preset. Choose Preset again and the table uses the scheme. The colors you typed are not applied while Preset is selected.
Search Bar Colors
The search bar is the strip above the table where visitors type to find a row. Turn it on or off, and change its texts, in Search Box.
- Background: the fill color of the search bar.
- Icon: the color of the search icon and its button.
- Border: the outline around the search bar. Leave it as Default for no visible border.
Table Header Colors
The header row holds your column titles. Color it to make the titles stand out from the data below.
- Background: the fill color behind the column titles.
- Text: the color of the column titles. Pick a color that contrasts with the background so the titles stay easy to read.
- Border: the color of the lines around the header cells.
If the header row is hidden, these colors have nothing to paint. Turn off Hide Header Row under Styling › Title & Header (see Title, Caption & Description).
Table Body Colors
This section colors the rows of data. It has more options than the others, so it is worth reading in full.
Default and Hover. At the top right of the section, a Default / Hover switch chooses which state you are coloring.
- Default, titled Rows: how every row looks normally. Set the Background, the Text color and the Border.
- Hover, titled Rows On Hover: how the row under the visitor's pointer looks. It has the same three colors. A hover color helps readers follow a row across a wide table.
Alternate rows (zebra stripes). Use Alternate Color Schema For Table Rows is off by default. Turn it on to give odd and even rows different colors, which makes long tables easier to scan. Two groups appear:
- Odd Row Colors: the 1st, 3rd, 5th row and so on. Set a Background, a Text color and a Hover Background.
- Even Row Colors: the 2nd, 4th, 6th row and so on. It has the same three colors.
While alternate colors are on, they take the place of the plain Rows colors for the body rows. Use the Rows colors when every row should look the same, and alternate colors when you want stripes.
TIP
A Border color only shows when the table has borders. Turn on Bordered Table under Styling › Rows & Borders.
Pagination Colors
The pagination bar sits under the table and holds the page numbers. Turn pagination on or off, and set rows per page, in Pagination.
- Background: the fill color of the pagination bar.
- Active Page: the color that marks the page the visitor is on. Pick something that stands out from the background.
- Border: the color of the lines around the pagination buttons.
Pick a color
Every color field works the same way. A small swatch sits next to a text box. A checkered swatch with the word Default means the color is not set.
- Click the swatch to open the picker. Choose from the ready-made colors, or drag in the color area and along the color strip to mix your own. Drag the transparency slider to make a color see-through. Click OK to apply the color, or Clear to go back to Default.
- Or type a value in the text box: a hex code such as
#14b8a6, a short hex such as#fff, a hex with transparency such as#14b8a680, orrgb()orrgba(). - Opaque colors are saved as a normal hex code. A color with transparency is saved as
rgba(). - Clear a color with Clear in the picker, or with the small x button that appears next to a set color. The field goes back to Default.
What the free version does
On the free version, Default is the only scheme. Clicking another scheme, Custom or a color field opens the upgrade popup and changes nothing. If a table still holds paid colors, they are reset to the Default scheme when you save.
Click Save to keep your colors.
Common questions
I set a border color but nothing changed.
A border color only shows when the table has borders. Turn on Bordered Table under Styling › Rows & Borders, then check the color again.
My custom colors don't show on my site.
Check three things. Custom must be selected at the top of the Colors tab, because custom colors are applied only in Custom mode. You must have clicked Save. And Custom colors need Pro: on the free version a color field opens the upgrade popup and changes nothing.
What happens to my custom colors when I click Preset?
While Preset is selected the table uses the scheme, and your custom colors are not applied. Select Custom again to apply them.
Why can't I change the color of one row or one cell?
Table colors apply to the whole table. To color a single row or cell, use Row & Cell Colors. To color cells by their value, use Conditional Formatting.
Related
- Color a single row or cell instead of the whole table: Row & Cell Colors.
- Color a column, or color cells by their value: Advanced Column Options and Conditional Formatting.
- Choose fonts and sizes: Table Fonts.
- Style the table with your own CSS: Custom CSS & JS.