pyRevit can colorize Revit tabs by the open document. Open pyRevit Settings, and activate the Tab Colorizer under UI/UX section.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/691b6903-d5f7-4eac-aff2-98dfa9ad3594/Revit_y57ZkxV9zQ.png

Save settings and the open tabs will be colored by document

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/89f5f7f0-b1d3-4ac8-ae26-5e65480242d4/Revit_z7XZjIEs6Z.png

You can use the Toggle Coloring tool to activate, deactivate the coloring in your current session.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/44e0e0be-532f-4794-b53d-7fc1d37f90a9/2019-09-07_12_29_33-Autodesk_Revit_2019.2_-_Project1.rvt_-_Floor_Plan__Level_1.png

Setting Colorizer Theme

Select the styling option for Project and Family tabs separately:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/fd3978b4-754f-4e09-87a1-592e6777c432/Revit_CX0HCE9V6f.png

You can select a series of color swatches under the "By Order" section to colorize the document tabs as they open:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/b9e51f59-31c0-4072-b505-1c64b00f35bd/Revit_6hgqPaZvaN.png

Under "By Filter", you can select a series of colors and Regular expression patterns to colorize tabs by their title. In the example below, all the tabs that match the regex pattern Level \\d, will be colorized with magenta:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/234619b2-7400-47a5-8f54-74da3465ca2e/Revit_r8fBzzEWEp.png

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/a36db597-e40c-4afa-9521-8717749b6bc5/Revit_aVQufSmSFH.png

Developer Tip

If you want to know the id and assigned color for each document, SHIFT-Click on the Tab Coloring tool

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/f6571aed-df55-4590-92cc-73b1c5df90e0/2019-09-07_12_32_08-Tab_Coloring.png