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
- Enqueue Stylesheet on the front end and in the block editor Conditionally
- Load RTL CSS using block.json for block development
- Remove Open Sans from Twenty Twelve theme
- Enqueue Google Web Fonts Without Messing Up Symbols In URL
- 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)?
- Are there Gutenberg container blocks?
- Is it possible to enqueue a raw CSS string directly from within a template file?
- Use wp_enqueue_scripts, not wp_print_styles?
- Why isn’t my theme processing SASS?
- What CSS rules are introduced to core blocks through wp-block-styles?
- How to combine multiple CSS files and concatenate JavaScripts if WordPress recommends enqueuing them?
- Adding style sheet to specific page
- 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
- Gutenberg Block Editor Match Admin Styles & Frontend Styles
- When enqueing a stylesheet, is it possible to remove the type attribute? [duplicate]
- Enqueue style for Password Reset page
- The correct way to include JavaScript and CSS in my WordPress Themes
- Is it possible to change the path of a css file that is registered through wp_enqueue_style()?
- is it possible to use post-type as part of a css selector in block editor stylesheet?
- get_stylesheet_uri returns wrong path
- Override load-styles.php with admin screen css
- CSS file not registering through add_action
- Custom Admin CSS styles to style media uploader?
- getting url in wp_enqueue_style
- Gutenberg Additional CSS Class without modifying theme?
- How the Css File is Linked without calling it in header.php?
- Use wp_add_inline_style to add code to before wp_head?
- How to insert html/css/javascript code to wordpress plugin
- Adding external stylesheet after ALL other styles
- Different ways to load child theme css
- 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
- How to organize priority of plugins CSS files?
- 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?
- Faster fonts on mobile
- Display Something in the Header After All Styles are Loaded
- My CSS suddenly doesn’t load anymore [closed]
- How can I force Dynamic CSS via ACF values to update on page load?
- 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
- CSS getting injected into index from somewhere after theme/custom CSS is loaded, overriding all of my CSS [closed]
- enqueing Javascript and CSS
- Including CSS files in HEAD based on page content
- 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
- Dequeue styles with query doesn’t work
- Save custom option in CSS file
- How to enqueue stylesheets in child-theme functions.php?
- Add inline CSS to login page with wp_add_inline_style
- Gutenberg CSS Issue
- 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
- 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?
- Replacing parent theme’s IE-specific CSS
- Use of CSS classes in editor-blocks.css file
- Bootstrap 4 Optimization
- 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?
- Enqueue MCE Editor CSS in admin page
- plugin not loading my css and js
- Custom theme – Bootstrap CSS not loading via wp_enqueue_style or otherwise
- How do I change search input padding for blockbase child theme?
- Insert a group block inside a list item
- How enqueue CSS out of theme folder?
- Full Site Editing Non-editble global styles?
- Block content rendered with inline CSS. How do I reuse it in a headless setup?
- How to add arbitrary custom CSS to a WordPress Block Theme using Site Editor?
- Custom block style not working in the editor
- Customize margin between paragraphs using the Gutenberg Style editor
- How to add a class to a core block in both admin editor and frontend?
- Separate typography controls for titles and meta in a custom block?
- Block editor: can’t change format of inline code blocks
- Problem with spacing sizes in theme.json
- Twenty Twenty Four child theme stylesheet is not being enqueued in admin panel when editing pages
- grid overlapping problem