# Getting a sass error when overwriting default minima theme

**URL:** <https://talk.jekyllrb.com/t/getting-a-sass-error-when-overwriting-default-minima-theme/1185>\
**Category:** Help\
**Created:** [November 19, 2017, 8:34am UTC](https://talk.jekyllrb.com/t/getting-a-sass-error-when-overwriting-default-minima-theme/1185 "2017-11-19T08:34:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![headfirst-pedicure](https://avatars.discourse-cdn.com/v4/letter/h/87869e/32.png) [@headfirst-pedicure](https://talk.jekyllrb.com/u/headfirst-pedicure)\
**Post date:** [November 19, 2017, 8:34am UTC](https://talk.jekyllrb.com/t/getting-a-sass-error-when-overwriting-default-minima-theme/1185/1 "2017-11-19T08:34:03Z")

</div>

Hi,  
I’m hoping there a friendly soul here who can help.

I’m using [https://forestry.io/](https://forestry.io/) as a CMS.

I’m trying to overwrite the default minima theme by converting it to a regular theme. I copied all the theme files from the gem folder, and pasted them in root of my site.

```
/assets
/_layouts
/_includes
/_sass

```

Removed the reference to minima in \_config.yml and the Gemfile. As described in the docs -\> [https://jekyllrb.com/docs/themes/](https://jekyllrb.com/docs/themes/)

I then renamed instances of “minima” in all directories, files and @import statements inside the .scss files from to “myTheme”.

And it works lovely serve the site locally with “Jekyll serve”. But when I commit and push the change to a repo Forestry builds the site, with no errors. But when I go to visit a preview or on the “live” site. I get this error from main.scss.

```
Error: Invalid CSS after "...t "myTheme"": expected "{", was ";"
        on line 5 of main.scss

1: ---
2: # Only the main Sass file needs front matter (the dashes are enough)
3: ---
4: 
5: @import "myTheme";

```

But I can’t see what is wrong. That import looks correct to me.  
Thanks.

---

<div class="post-metadata">

**Author:** ![yashumittal](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/yashumittal/32/1260_2.png) [@yashumittal](https://talk.jekyllrb.com/u/yashumittal)\
**Post date:** [November 19, 2017, 8:39am UTC](https://talk.jekyllrb.com/t/getting-a-sass-error-when-overwriting-default-minima-theme/1185/2 "2017-11-19T08:39:47Z")

</div>

If I am not wrong, I think you might have edited or delete the file `index.md` or `index.html` in the root directory.

---

<div class="post-metadata">

**Author:** ![headfirst-pedicure](https://avatars.discourse-cdn.com/v4/letter/h/87869e/32.png) [@headfirst-pedicure](https://talk.jekyllrb.com/u/headfirst-pedicure)\
**Post date:** [November 19, 2017, 8:59am UTC](https://talk.jekyllrb.com/t/getting-a-sass-error-when-overwriting-default-minima-theme/1185/3 "2017-11-19T08:59:18Z")

</div>

I actually had modified the [index.md](http://index.md). I had only removed the comments.

For good measure I reverted it back to the original and committed the changes. Unfortunately still the same result.

But if I go and delete that import statement, I get the error:

```
/usr/local/bin/scss --no-cache --update main.scss:main.css
      error main.scss (Line 3: Invalid CSS after "---": expected "{", was "")
```

---

<div class="post-metadata">

**Author:** ![mmistakes](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/mmistakes/32/2169_2.png) [@mmistakes](https://talk.jekyllrb.com/u/mmistakes)\
**Post date:** [November 19, 2017, 1:34pm UTC](https://talk.jekyllrb.com/t/getting-a-sass-error-when-overwriting-default-minima-theme/1185/4 "2017-11-19T13:34:17Z")

</div>

Did you rename these files and their `@import`s correctly too?

> **[jekyll/minima](https://github.com/jekyll/minima/tree/master/_sass)**
>
> Minima is a one-size-fits-all Jekyll theme for writers. - jekyll/minima

`assets/main.scss` imports `_sass/minima.scss` which imports partials in `_sass/minima/`. The error you’re getting tells me you have something named incorrectly in one or all those files.

---

<div class="post-metadata">

**Author:** ![headfirst-pedicure](https://avatars.discourse-cdn.com/v4/letter/h/87869e/32.png) [@headfirst-pedicure](https://talk.jekyllrb.com/u/headfirst-pedicure)\
**Post date:** [November 19, 2017, 4:49pm UTC](https://talk.jekyllrb.com/t/getting-a-sass-error-when-overwriting-default-minima-theme/1185/5 "2017-11-19T16:49:29Z")

</div>

I am sure I didn’t. But I went over it again and again, without finding the typo. So I gave up hours ago, reverted back to minima, and customized from there… Not very elegant 😃
