Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
enhance(theme): Add theme support for custom-units
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x committed Feb 16, 2021
1 parent 96974bf commit efbb13f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@
*/
add_theme_support('editor-font-sizes', []);

/**
* Register relative length units in the editor.
* @link https://developer.wordpress.org/block-editor/developers/themes/theme-support/#support-custom-units
*/
add_theme_support('custom-units', 'rem', 'vw');

/**
* Disable custom colors in the editor.
* @link https://developer.wordpress.org/block-editor/developers/themes/theme-support/#disabling-custom-colors-in-block-color-palettes
Expand Down

0 comments on commit efbb13f

Please sign in to comment.