It may not be feasible to provide the oft-requested access to site CSS directly or indirectly through CSS variables. But it seems like it might be doable to offer dynamic styling for dynamic pages.
If a “styling” table were joined to a dynamic page datasource , might not css elements be dynamically styled? Thus, the dynamic page would have a “css pre-processor” function. I’m not the expert to specify exactly how to do this, but this is my notion:
The datasource for a dynamic page has a main field and fields that can be used to filter the content for the dynamic page, as for display in a repeater. Suppose this is a products table with product categories (men; women; unisex) and product types under each category and fields with product information. Join a “styling” table to the products table via the Category field and the Types field (multi-field join; but could be simplified to single join field).
The number of (Category-Type) rows in the styling table would equal the total number of Types across all Categories. The styling table fields/columns can have any CSS element name and the cells in each column would be the particular value of that CSS element for each Category-Type row.
When rendering the content for each dynamic page, the CSS elements would be pre-processed according to the styling table values of that element for the selected Category-Type.
Dynamic styling could give a distinctive look for each Category (or each Category-Type if multi-field join). More sophisticated CSS values could create distinctive functionality.
Wouldn’t this be a tremendous feature for Editor X?
Thanks for considering this.