Methods
1 to 5 of 5
- Twenty_Twenty_One_Custom_Colors::__construct() – Instantiate the object.
- Twenty_Twenty_One_Custom_Colors::body_class() – Adds a class to <body> if the background-color is dark.
- Twenty_Twenty_One_Custom_Colors::custom_color_variables() – Customizer & frontend custom color variables.
- Twenty_Twenty_One_Custom_Colors::custom_get_readable_color() – Determine the luminance of the given color and then return #fff or #000 so that the text is always readable.
- Twenty_Twenty_One_Custom_Colors::get_relative_luminance_from_hex() – Get luminance from a HEX color.