Title: style.css and theme.css?
Last modified: April 28, 2020

---

# style.css and theme.css?

 *  [cramdesign](https://wordpress.org/support/users/cramdesign/)
 * (@cramdesign)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/style-css-and-theme-css/)
 * I see that two stylesheets are loading that I didn’t enqueue:
 * theme.css and style.css
 * Likely these are triggered by Gutenberg but in many cases they apply more specificity
   than needed and I have to hunt down what/why and use more specificity than I 
   care for to override.
 * How to disable or control this?
 * It looks like theme.css comes from `add_theme_support( 'wp-block-styles' )` but
   what about style.css? Looks like a lot of that is just what makes the things 
   from Gutenberg work but again, there is a lot in there I don’t want like specific
   colors, social icon styling, and non-relative font sizing.
 * Also they sometimes use the `:root` selector. Why? This adds a higher level of
   specificity than seems needed and that pseudo-selector carries more weight than
   a typical element like body or just html. This seems like a bad practice for 
   a default stylesheet as I have to outweigh the selector to override something
   like the colors and font-sizes they use.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [potentdevelopment](https://wordpress.org/support/users/potentdevelopment/)
 * (@potentdevelopment)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/style-css-and-theme-css/#post-12747599)
 * Did you check the header.php(or other theme files) file to see if its being loaded
   directly in the head? Themes all work differently so we really need to know what
   theme your using.
 *  Thread Starter [cramdesign](https://wordpress.org/support/users/cramdesign/)
 * (@cramdesign)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/style-css-and-theme-css/#post-12748130)
 * style.css is being loaded into the head.
 * I am using a custom theme. The base is here but not yet updated for all the stuff
   I am learning about Gutenberg (I made the original before then):
 * [https://github.com/cramdesign/supersimple](https://github.com/cramdesign/supersimple)
 *  [potentdevelopment](https://wordpress.org/support/users/potentdevelopment/)
 * (@potentdevelopment)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/style-css-and-theme-css/#post-12748498)
 * [@cramdesign](https://wordpress.org/support/users/cramdesign/) your main style.
   css file is NOT being loaded. In the functions.php file, there is code written
   to only load a style.css if it is a child theme.
 * The main style.css inside your theme directory just has to be there. It does 
   not have to be loaded.
 *  [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/style-css-and-theme-css/#post-12748532)
 * Take a look at [https://github.com/WordPress/gutenberg/issues/12299](https://github.com/WordPress/gutenberg/issues/12299)
   
   and [https://github.com/WordPress/gutenberg/issues/11779](https://github.com/WordPress/gutenberg/issues/11779)
   It seems like there is another one also, but I don’t know right now. Notice that
   the dates are old and still not fixed. They tend to work on changes, not fixes.
   Please leave comments or new issues if you think you can make a compelling argument.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘style.css and theme.css?’ is closed to new replies.

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 4 replies
 * 3 participants
 * Last reply from: [Joy](https://wordpress.org/support/users/joyously/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/style-css-and-theme-css/#post-12748532)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
