I'm doing zebra striping in a table. Should I start with the darker ("gray") or the lighter color ("white")?
Is there an accepted theory or standard practice regarding this matter?
Examples:
I'm doing zebra striping in a table. Should I start with the darker ("gray") or the lighter color ("white")?
Is there an accepted theory or standard practice regarding this matter?
Examples:
I've always gone with white first for a few reasons.
Regardless of which you choose I'd recommend that the alternating gray rows be super subtle. The objective is to make it clear where the row separation is (esp if rows can have different heights)... but darker gray rows are harder to read (less contrast) and the pattern becomes visual noise vs an aide.
If your table heading row is dark then starting the first row light will probably provide better contrast. However, I think there are many answers you can find on UXSE that provides guidance on zebra striping for data tables, and also arguments against zebra striping in general.
To use or not to use "Zebra Stripes", or Alternating Row Colors for Tables
What is the best practice for data table cell content alignment