diff --git a/src/HtmlBuilder.php b/src/HtmlBuilder.php
index ec953546..17da19f5 100755
--- a/src/HtmlBuilder.php
+++ b/src/HtmlBuilder.php
@@ -94,7 +94,7 @@ public function style($url, $attributes = [], $secure = null)
{
$defaults = ['media' => 'all', 'type' => 'text/css', 'rel' => 'stylesheet'];
- $attributes = array_merge($attributes, $defaults);
+ $attributes = array_merge($defaults, $attributes);
$attributes['href'] = $this->url->asset($url, $secure);