CSS and dynamic styling

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.

Hi Doug,

Thank you for problem-solving with us and spending time to share with the community!

As Editor X evolves, we plan on creating more tools that would give our users control to create a unique design experience on their sites. This idea is not far from from that focus.
We agree this would be a very useful and powerful feature. We would need to investigate if it is possible to implement into our platform.

Currently, we do have the Corvid APIs which can override some style properties for elements, throw your own custom logic on top and you will have dynamic styling.

We hope to continue bringing to production more features that would give you more control over the design. We would love to hear more ideas from you or more on this in the future.