# Css(‘@auto’) doesnt work (using merx)

**URL:** <https://forum.getkirby.com/t/css-auto-doesnt-work-using-merx/23688>\
**Category:** Questions\
**Tags:** v3\
**Created:** [October 16, 2021, 12:19pm UTC](https://forum.getkirby.com/t/css-auto-doesnt-work-using-merx/23688 "2021-10-16T12:19:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mafleig](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/mafleig/32/15806_2.png) [@mafleig](https://forum.getkirby.com/u/mafleig)\
**Post date:** [October 16, 2021, 12:19pm UTC](https://forum.getkirby.com/t/css-auto-doesnt-work-using-merx/23688/1 "2021-10-16T12:19:24Z")

</div>

Hi there,

i’ve set up merx with kirby and now the “css(‘@auto’)” doesn’t work anymore.

CSS files are inside /assets/css/templates and the link tag looks like this inside my header:

```auto
<?= css([
    'assets/css/index.css',
    '@auto'
  ]) ?>

```

btw: “js(‘@auto’)” seems to work fine.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [October 17, 2021, 2:38pm UTC](https://forum.getkirby.com/t/css-auto-doesnt-work-using-merx/23688/2 "2021-10-17T14:38:33Z")

</div>

At first sight, I can’t see anything in the merx plugin that should make @auto stop working, there is nothing CSS related at all in that plugin?

Have you installed merx as a plugin into your own project? And did the auto styles work before you installed merx?

---

<div class="post-metadata">

**Author:** ![mafleig](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/mafleig/32/15806_2.png) [@mafleig](https://forum.getkirby.com/u/mafleig)\
**Post date:** [October 17, 2021, 2:42pm UTC](https://forum.getkirby.com/t/css-auto-doesnt-work-using-merx/23688/3 "2021-10-17T14:42:12Z")

</div>

Found it 🙂  
I had to add the assets to the index.php inside the public folder:

```auto
<?php
include '../kirby/bootstrap.php';
$kirby = new Kirby([
    'roots' => [
        'index' => __DIR__ ,
        'content' => __DIR__. '/../content',
        'site' => __DIR__. '/../site',
        'assets' => __DIR__. '/../assets',
    ],
]);
echo $kirby->render();

```
