# Keep Custom HTML/CSS when Updating Theme Components

**URL:** https://meta.discourse.org/t/keep-custom-html-css-when-updating-theme-components/159918
**Category:** Support
**Created:** [August 5, 2020, 1:57pm UTC](https://meta.discourse.org/t/keep-custom-html-css-when-updating-theme-components/159918 "2020-08-05T13:57:50Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![AntiMetaman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/antimetaman/32/186978_2.png) [@AntiMetaman](https://meta.discourse.org/u/AntiMetaman)
#### Post date: [August 5, 2020, 1:57pm UTC](https://meta.discourse.org/t/keep-custom-html-css-when-updating-theme-components/159918/1 "2020-08-05T13:57:50Z")

</div>

Hi,

I have a lot of custom css in some of my theme components. Is there an easy way to update theme components without having all my custom css being wiped?

 ![image](https://global.discourse-cdn.com/meta/original/3X/0/5/05a609de7c03b9bdaf447ae58dacd2ed8236fd4e.png)

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [August 5, 2020, 2:20pm UTC](https://meta.discourse.org/t/keep-custom-html-css-when-updating-theme-components/159918/2 "2020-08-05T14:20:17Z")

</div>

The best way is to put your customization in a separate theme component. Another possibility is to fork them and manage your customization with git.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [September 4, 2020, 2:20pm UTC](https://meta.discourse.org/t/keep-custom-html-css-when-updating-theme-components/159918/3 "2020-09-04T14:20:30Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
