# Customizing CSS via plugin

**URL:** https://meta.discourse.org/t/customizing-css-via-plugin/54142
**Category:** Development
**Created:** [December 12, 2016, 9:36pm UTC](https://meta.discourse.org/t/customizing-css-via-plugin/54142 "2016-12-12T21:36:10Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![swohlever](https://avatars.discourse-cdn.com/v4/letter/s/e9a140/32.png) [@swohlever](https://meta.discourse.org/u/swohlever)
#### Post date: [December 12, 2016, 9:36pm UTC](https://meta.discourse.org/t/customizing-css-via-plugin/54142/1 "2016-12-12T21:36:10Z")

</div>

I’ve successfully applied custom CSS using the Customize-\>CSS/HTML UI, but I would rather package the styling changes with my plugin. I’ve seen examples of plugins using register\_asset in plugin.rb to add CSS. I created a \*.scss file under my plugin assets directory, but when I restart the server, the styling is not applied even though the plugin is enabled and working. I believe the file is being loaded, as I originally had a typo in the path, and the server reported that it was unable to find the asset (fixing the path eliminated that error message). I’ve tried registering the asset as common and desktop (I am using a laptop) without luck. Are there additional steps needed to enable CSS customizations when using this approach?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [December 12, 2016, 9:52pm UTC](https://meta.discourse.org/t/customizing-css-via-plugin/54142/2 "2016-12-12T21:52:39Z")

</div>

Did you try this? 🙂

> [@Developing Discourse Plugins - Part 1 - Create a basic plugin](https://meta.discourse.org/t/developing-discourse-plugins-part-1-create-a-basic-plugin/30515/1):
>
> My changes weren’t picked up! ⚠
> 
> Sometimes the cache isn’t cleared fully, especially when you create new files or delete old files. To get around this issue, remove your tmp folder and start rails again. On a mac you can do it in one command: rm -rf tmp; bundle exec rails s.

---

<div class="post-metadata">

### Author: ![swohlever](https://avatars.discourse-cdn.com/v4/letter/s/e9a140/32.png) [@swohlever](https://meta.discourse.org/u/swohlever)
#### Post date: [December 12, 2016, 10:12pm UTC](https://meta.discourse.org/t/customizing-css-via-plugin/54142/3 "2016-12-12T22:12:23Z")

</div>

That did it. Thanks!.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [December 12, 2016, 10:38pm UTC](https://meta.discourse.org/t/customizing-css-via-plugin/54142/4 "2016-12-12T22:38:57Z")

</div>


