diff --git a/gtk/gen-gtk-gresources-xml.py b/gtk/gen-gtk-gresources-xml.py
index 9f3ea374ef..eb56d8e478 100644
--- a/gtk/gen-gtk-gresources-xml.py
+++ b/gtk/gen-gtk-gresources-xml.py
@@ -20,8 +20,8 @@ xml += '''
theme/Empty/gtk.css
theme/Adwaita/gtk.css
theme/Adwaita/gtk-dark.css
- theme/Adwaita/Adwaita.css
- theme/Adwaita/Adwaita-dark.css
+ theme/Adwaita/Adwaita.css
+ theme/Adwaita/Adwaita-dark.css
'''
for f in get_files('theme/Adwaita/assets', '.png'):
@@ -35,8 +35,8 @@ for f in get_files('theme/Adwaita/assets', '.svg'):
xml += '''
theme/HighContrast/gtk.css
theme/HighContrast/gtk-inverse.css
- theme/HighContrast/HighContrast.css
- theme/HighContrast/HighContrast-inverse.css
+ theme/HighContrast/HighContrast.css
+ theme/HighContrast/HighContrast-inverse.css
'''
for f in get_files('theme/HighContrast/assets', '.png'):
diff --git a/gtk/theme/Adwaita/gtk-dark.css b/gtk/theme/Adwaita/gtk-dark.css
index c22854d6e1..d6711af387 100644
--- a/gtk/theme/Adwaita/gtk-dark.css
+++ b/gtk/theme/Adwaita/gtk-dark.css
@@ -1 +1 @@
-@import url("resource:///org/gtk/libgtk/theme/Adwaita/gtk-contained-dark.css");
+@import url("resource:///org/gtk/libgtk/theme/Adwaita/Adwaita-dark.css");
diff --git a/gtk/theme/Adwaita/gtk.css b/gtk/theme/Adwaita/gtk.css
index fc3a3a6c9d..d99e088ea0 100644
--- a/gtk/theme/Adwaita/gtk.css
+++ b/gtk/theme/Adwaita/gtk.css
@@ -1 +1 @@
-@import url("resource:///org/gtk/libgtk/theme/Adwaita/gtk-contained.css");
+@import url("resource:///org/gtk/libgtk/theme/Adwaita/Adwaita.css");
diff --git a/gtk/theme/HighContrast/gtk-inverse.css b/gtk/theme/HighContrast/gtk-inverse.css
index deca145004..6649fc4ef3 100644
--- a/gtk/theme/HighContrast/gtk-inverse.css
+++ b/gtk/theme/HighContrast/gtk-inverse.css
@@ -1 +1 @@
-@import url("resource:///org/gtk/libgtk/theme/HighContrast/gtk-contained-inverse.css");
+@import url("resource:///org/gtk/libgtk/theme/HighContrast/HighContrast-inverse.css");
diff --git a/gtk/theme/HighContrast/gtk.css b/gtk/theme/HighContrast/gtk.css
index a568c7c11b..8dcda0018d 100644
--- a/gtk/theme/HighContrast/gtk.css
+++ b/gtk/theme/HighContrast/gtk.css
@@ -1 +1 @@
-@import url("resource:///org/gtk/libgtk/theme/HighContrast/gtk-contained.css");
+@import url("resource:///org/gtk/libgtk/theme/HighContrast/HighContrast.css");