Commit Graph

9 Commits

Author SHA1 Message Date
c321eb282e Refactor renderers to use template JSON 2024-05-01 11:15:27 +01:00
d90e4dc962 Fix element styles and scrollbars 2024-04-22 12:43:17 +01:00
af92fd9af3 Fix styles in preview 2024-04-22 12:43:17 +01:00
c415f1efce Move heading styles from CSS file to theme.json
Because we want to have all editor configurations in theme.json, I moved heading font sized to theme.json and removed redundant filters.
[MAILPOET-5640]
2024-03-15 16:57:41 +01:00
1eb0c07fed Add border color classes to CSS for the renderer
[MAILPOET-5919]
2024-03-12 08:38:56 +01:00
a7153d70c3 Add getVariablesValuesMap to the theme controller
This commit adds a method that returns map of CSS variables and their values defined based on the theme.json
It is a preparation step for a postprocessor that will use this map to replace variables with values in final HTML.
There are many clients that don't support CSS variables
[MAILPOET-5918]
2024-03-05 16:03:49 +01:00
5f2b5e4bd4 Add support for the site theme's color palette
[MAILPOET-5741]
2024-02-28 09:01:20 +01:00
e5d11f99d4 Cache WP_Theme_JSON instance
This is a slight improvement to avoid building WP_Theme_JSON instance repeatedly.
[MAILPOET-5741]
2024-02-28 09:01:20 +01:00
b724ef4ac2 Extract Theme related methods from SettingsController as ThemeController
I want to avoid the SettingsController becoming some kind of a god class
so in this step, I extracted themejson-related stuff to an extra class.

In the future, we should also move methods for manipulating CSS to a helper.
[MAILPOET-5741]
2024-02-28 09:01:20 +01:00