# Do I miss something with Sass plugin?

**URL:** <https://forum.getkirby.com/t/do-i-miss-something-with-sass-plugin/6010>\
**Category:** Questions\
**Tags:** v2\
**Created:** [December 9, 2016, 1:51pm UTC](https://forum.getkirby.com/t/do-i-miss-something-with-sass-plugin/6010 "2016-12-09T13:51:53Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![edi0th](https://avatars.discourse-cdn.com/v4/letter/e/e480ec/32.png) [@edi0th](https://forum.getkirby.com/u/edi0th)\
**Post date:** [December 9, 2016, 1:51pm UTC](https://forum.getkirby.com/t/do-i-miss-something-with-sass-plugin/6010/1 "2016-12-09T13:51:53Z")

</div>

Hello everyone,

I come here because I’ve got a problem with the sass plugin. It’s not working despite the fact that I feel like I’ve done everything required.

1. ‘scssphp’ folder is inside ‘plugins’ Kirby’s folder.
2. 'scss.php’ is inside ‘snippets’ Kirby’s folder.
3. The SCSS snippet \<?php snippet('scss') ?\> is in my HTML head.
4. There is a folder ‘scss’ inside Kirby’s assets folder.
5. I’ve created a file ‘default.scss’ and place it inside ‘assets/scss’.
6. The folder ‘assets/css’ exists on the server.
7. I added c::set(‘scssNestedCheck’, true); to the config. (The site/config/config.php file, right ?)

Then. How do I call the scss file in the page ? Like a normal css file, by its url ? Or do I have to link to an .css with the same name that the .scss file, and the plugin understand that in fact, it has to transform the scss to css ? But in that case, should all the css/scss rules be in the .scss file or the .css ?

I’m a bit lost, on surely, the easiest part, but since it’s not described in the doc I can’t really figure out what I’m doing wrong.

Thanks in advance : )

---

<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:** [December 9, 2016, 2:17pm UTC](https://forum.getkirby.com/t/do-i-miss-something-with-sass-plugin/6010/2 "2016-12-09T14:17:13Z")

</div>

According to the docs, the plugin should actually compile the SASS files to a default.css file in `'assets/css/default.css`.

This is then the file you have to include in the head of your project:

```auto
<?= css('assets/css/default.css') ?>

```

---

<div class="post-metadata">

**Author:** ![edi0th](https://avatars.discourse-cdn.com/v4/letter/e/e480ec/32.png) [@edi0th](https://forum.getkirby.com/u/edi0th)\
**Post date:** [December 9, 2016, 2:29pm UTC](https://forum.getkirby.com/t/do-i-miss-something-with-sass-plugin/6010/3 "2016-12-09T14:29:19Z")

</div>

Ok, thanks, i’m going to try this right now. : ) two last newbie questions, does this mean that I have to already create an empty default.css ? & Can I change the “default” name by something else without modify the plugin itself ?

---

<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:** [December 9, 2016, 2:31pm UTC](https://forum.getkirby.com/t/do-i-miss-something-with-sass-plugin/6010/4 "2016-12-09T14:31:08Z")

</div>

I’m not quite sure, the documentation says it will overwrite an existing file, but I would assume that it created a new file if it doesn’t exist yet.

---

<div class="post-metadata">

**Author:** ![edi0th](https://avatars.discourse-cdn.com/v4/letter/e/e480ec/32.png) [@edi0th](https://forum.getkirby.com/u/edi0th)\
**Post date:** [December 13, 2016, 10:01am UTC](https://forum.getkirby.com/t/do-i-miss-something-with-sass-plugin/6010/5 "2016-12-13T10:01:21Z")

</div>

Hi again !

So, I’ve tried once more, and it still don’t work 😕  
The sass file is not compiled. If i check in the browser the default.css file, it’s empty.

Is it a problem from the server itself ?

---

<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:** [December 13, 2016, 10:06am UTC](https://forum.getkirby.com/t/do-i-miss-something-with-sass-plugin/6010/6 "2016-12-13T10:06:24Z")

</div>

Maybe a problem with permissions or ownership so that the file can’t be written? I have never used the plugin, so it’s hard to tell. I’ll invite the developer to this discussion.

---

<div class="post-metadata">

**Author:** ![mauricehh](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/mauricehh/32/13439_2.png) [@mauricehh](https://forum.getkirby.com/u/mauricehh)\
**Post date:** [December 13, 2016, 12:06pm UTC](https://forum.getkirby.com/t/do-i-miss-something-with-sass-plugin/6010/7 "2016-12-13T12:06:17Z")

</div>

I know this is not answering your question, but why don’t you “compile” the sass-files locally using grunt or gulp? What’s the advantage of doing this with php on your server?

---

<div class="post-metadata">

**Author:** ![anon77445132](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@anon77445132](https://forum.getkirby.com/u/anon77445132)\
**Post date:** [December 13, 2016, 4:26pm UTC](https://forum.getkirby.com/t/do-i-miss-something-with-sass-plugin/6010/8 "2016-12-13T16:26:30Z")

</div>

@edi0th:  
I can confirm, if you have done the steps 1 to 7 in your initial post, this would run.

So I agree that this is:

> [@texnixe](#):
>
> a problem with permissions or ownership

I guess, that your webserver can not write in the directory “`\assets\css\`”. I recommend to check this, possibly with the hoster.

What is your PHP version?  
What your KIrby version?  
Which webserver are you using?  
What is his OS?

@mauricehh:  
I use this solution since Jun 3 to implement my strategy [HowTo: Start Kirby development on a PC](https://forum.getkirby.com/t/howto-start-kirby-development-on-a-pc/469).

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 4:50pm UTC](https://forum.getkirby.com/t/do-i-miss-something-with-sass-plugin/6010/9 "2025-02-06T16:50:36Z")

</div>

Archived on February 6, 2025, 4:50pm UTC


