# Add embedded CSS code as part of theme file

**URL:** https://meta.discourse.org/t/add-embedded-css-code-as-part-of-theme-file/74981
**Category:** Development
**Created:** [28 november 2017 om 21:53 UTC](https://meta.discourse.org/t/add-embedded-css-code-as-part-of-theme-file/74981 "2017-11-28T21:53:06Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Jane\_Jojo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jane_jojo/32/119485_2.png) [@Jane\_Jojo](https://meta.discourse.org/u/Jane_Jojo)
#### Post date: [28 november 2017 om 21:53 UTC](https://meta.discourse.org/t/add-embedded-css-code-as-part-of-theme-file/74981/1 "2017-11-28T21:53:06Z")

</div>

I use a fork of the [material stock theme](https://github.com/cherian/material-design-stock-theme) with my custom styling edit going into the forked version and then using the Github remote URL for pulling and using the theme.

I’ve not been successful in adding the embedding code to the theme source control. So I ended up adding it to admin/customize/themes/ → Edit CSS/HTML-\>Embedded CSS

 ![image](https://global.discourse-cdn.com/meta/original/3X/5/8/58913ba0d8cb14c63c2227906327360564cb1bc8.png)

The drawback here is that it gets overwritten with every source code pull.

**Is there a way to add this to the theme files in github and pull it over**? My attempts were unsuccessful.

Here’s my blog URL using the custom embedded CSS

> **[Pumpkin Chocolate Swirl Cheesecake](https://alittlebitofspice.com/pumpkin-chocolate-swirl-cheesecake-recipe)**
>
> Make this Pumpkin Chocolate Swirl Cheesecake Recipe with an Oreo crust. Rich, creamy, and full of pumpkin spice, it’s the perfect dessert!

and how embedding is configured.

 ![image](https://global.discourse-cdn.com/meta/original/3X/0/1/01bcfeb4dcc140ad3d1fb1907b65fa76eff67a98.png)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [28 november 2017 om 22:18 UTC](https://meta.discourse.org/t/add-embedded-css-code-as-part-of-theme-file/74981/2 "2017-11-28T22:18:20Z")

</div>

> [@Jane\_Jojo](#):
>
> Is there a way to add this to the theme files in github and pull it over?

Yeah absolutely, `common/embedded.scss` should work.
