enforce order
diff --git a/horizon/server/plugin.sls b/horizon/server/plugin.sls
index 0f38523..f2c7caa 100644
--- a/horizon/server/plugin.sls
+++ b/horizon/server/plugin.sls
@@ -18,6 +18,10 @@
 horizon_{{ plugin_name }}_package:
   pkg.installed:
   - name: {{ plugin.source.name }}
+  {%- if server.get('plugin', {}).horizon_theme is defined %}
+  - require:
+    - pkg: horizon_horizon_theme_package
+  {%- endif %}
   - watch_in:
     - service: horizon_services