Unfortunately, Tableau doesn’t provide an easy way to customize the looks of its Workbook, Story, or Dashboard using CSS.
Although Tableau provides an open source JavaScript API, there’s no functionality in that API that helps you customize the visual style.
In the past, there was a utility Python tool that extracts the CSS applied to the Tableau dashboard and apply it back.
But the tool has been removed today, so you can only customize the visual style of Tableau in two ways:
You can learn more about customizing Tableau visualizations with the above tutorials.