You could try to increase specificity with something like html:root
html:root {
@media (min-width: 1020px) {
--wp--preset--font-size--xxl: 3.25rem;
/* etc */
}
}
Or you could get your styles to load after the global styles as an option as you mentioned if you want to leave it as just :root
Related Posts:
- Enqueue styles in new site editor in WordPress 5.9
- The Global Styles missing
- Narrow paragraph block aligned to left of “wrapper”
- Gutenberg: where to find style settings
- Style priority in theme.json
- Inbuilt style for jquery-ui-datepicker
- Why is style.css not being enqueued?
- How to conditionally enqueue a stylesheet only for a certain page(s)?
- How to enqueue style before style.css
- Are there Gutenberg container blocks?
- What is the correct way to enqueue multiple CSS files?
- show classes as dropdown in guttenberg`s additional css classes input box
- Remove wp_add_inline_style
- Style new block-editor alignfull class without scrollbars or overflow
- Use wp_enqueue_scripts, not wp_print_styles?
- How Can I Use A Child Theme Effectively When Parent’s CSS Is Located in a ‘CSS folder’?
- Disable child theme css on certain pages
- When enqueing a stylesheet, is it possible to remove the type attribute? [duplicate]
- Load custom css after bootstrap
- Enqueue style for Password Reset page
- If I dequeue Gutenberg Stylesheet will that have any effect on WordPress 5.0.1?
- is it possible to use post-type as part of a css selector in block editor stylesheet?
- Remove WordPress/Gutenberg button styles for ACF blocks
- Relative path instead of absolute for wp_enqueue_script
- Override load-styles.php with admin screen css
- CSS file not registering through add_action
- Relative path in wp_register_style not working
- Custom Admin CSS styles to style media uploader?
- getting url in wp_enqueue_style
- Gutenberg Additional CSS Class without modifying theme?
- How to override Gutenberg admin CSS
- Loading different stylesheet on WordPress pages?
- Use wp_add_inline_style to add code to before wp_head?
- why enqueued styles in header.php shows in footer?
- Different css rules for TinyMCE and Gutenberg while using add_editor_style()
- Adding external stylesheet after ALL other styles
- Different ways to load child theme css
- How to enqueue a random css style?
- Can you edit WP gutenberg block css without a plugin?
- How to override Bootstrap css with my child theme css in wordpress?
- How to stop Gutenberg from outputting inline CSS for specific blocks?
- How to check if a WordPress core block is active in sidebar
- create bootstrap columns inside editor group block
- why this media query is not working / not loading when I put it in child theme?
- How do I make header.php use different css for different pages?
- Load CSS in footer, like your can with JS?
- Child theme stylesheet not always overriding “index”
- Child Theme CSS not showing at all
- My CSS suddenly doesn’t load anymore [closed]
- How can I force Dynamic CSS via ACF values to update on page load?
- functions.php – inject inline css from file
- Append style tag in head while shortcode runs
- How can I move my custom css to the very bottom of the head section?
- Add Custom Alignment Option to WordPress Blocks/Gutenberg
- Simple way to add custom class and ids to individual Gutenberg blocks
- CSS getting injected into index from somewhere after theme/custom CSS is loaded, overriding all of my CSS [closed]
- Load custom CSS before admin CSS
- How would one set or override a Fallback font for characters in second language?
- First element/selector of enqueued CSS file breaks
- ACF Gut block broke wordpress default style?
- Scroll code block instead of wrapping text
- Default paragraph block styles just for pages NOT for posts?
- Custom CSS in Widget editor (Gutenberg) gets stripped out
- Custom Gutenberg color classes naming convention
- Adding a new block editor color option to a theme
- Save custom option in CSS file
- How to enqueue stylesheets in child-theme functions.php?
- Dequeing Parent Fontawesome Deques Parent Styles
- Why can’t blocks be hidden with jQuery?
- Add inline CSS to login page with wp_add_inline_style
- Gutenberg CSS Issue
- Trying to make an image a circle in Gutenberg
- What is the cleanest way to shrink Gutenberg Blocks to container width?
- Gutenberg Editor: display error with a combination of transform and background-attachment:fixed
- Bootstrap Integtration
- Default Gutenberg CSS on frontend
- Set different css stylesheet for specific pages [duplicate]
- Customizing the CSS for the post/page editor?
- My Child Theme CSS Isn’t Working
- Font size decreases when child theme is created from parent theme?
- How to make CSS load live based on options clicked in the theme customizer?
- Replacing parent theme’s IE-specific CSS
- Use of CSS classes in editor-blocks.css file
- Browser stacks different versions of style.css
- Images at the same vertical position in multiple columns
- How do I make my block-editor styles match my front-end styles?
- Dequeue classic-themes.min.css
- How can I add a section with a different background color?
- plugin not loading my css and js
- adding additional css classes have no effect within block editor
- Custom theme – Bootstrap CSS not loading via wp_enqueue_style or otherwise
- How enqueue CSS out of theme folder?
- How to add arbitrary custom CSS to a WordPress Block Theme using Site Editor?
- How to remove class=”wp-block-heading” from Heading tags?
- How to add a class to a core block in both admin editor and frontend?
- How to force Gutenberg to follow all custom CSS styling in preview?
- Disable WP-Elements Class Creation (Gutenberg)
- Block editor: can’t change format of inline code blocks
- Problem with spacing sizes in theme.json
- grid overlapping problem