File: wp-includes/class-wp-theme-json.php
-
Replaces CSS variables with their values in place.
-
Resolves the values of CSS variables in the given styles.
-
This is used to convert the internal representation of variables to the CSS representation.
-
Given a tree, converts the internal representation of variables to the CSS representation.
-
Returns the selectors metadata for a block.
-
Generates all the element selectors for a block.
-
Generates style declarations for a node’s features e.g., color, border, typography etc. that have custom selectors in their related block’s metadata.
-
Prepends a sub-selector to an existing one.
-
Removes indirect properties from the given input node and sets in the given output node.
-
Returns a filtered declarations array if there is a separator block with only a background style defined in theme.json by adding a color attribute to reflect the changes in the front.
-
Processes the CSS, to apply nesting.
-
Returns the global styles custom CSS.
-
Sets the spacingSizes array based on the spacingScale values from theme.json.
-
Gets the CSS rules for a particular block from theme.json.
-
Outputs the CSS for layout rules on the root.
-
Filters the list of style nodes with metadata.
-
A public helper to get the block nodes from a theme.json file.
-
An internal method to get the block nodes from a theme.json file.
-
Gets the CSS layout rules for a particular block from theme.json layout definitions.
-
Returns a class name by an element name.
-
Returns the current theme’s wanted patterns(slugs) to be registered from Pattern Directory.
-
Returns a valid theme.json as provided by a theme.
-
Converts all filter (duotone) presets into SVGs.
-
For metadata values that can either be booleans or paths to booleans, gets the value.
-
Determines whether a presets should be overridden or not.
-
Returns the default slugs for all the presets in an associative array whose keys are the preset paths and the leafs is the list of slugs.
-
Gets a `default`’s preset name by a provided slug.
-
Removes the preset values whose slug is equal to any of given slugs.
-
Removes insecure data from theme.json.
-
Processes a setting node and returns the same node without the insecure settings.