# Is it possible to create child themes?

**URL:** <https://meta.discourse.org/t/is-it-possible-to-create-child-themes/98246>\
**Category:** Feature\
**Created:** [September 27, 2018, 11:21pm UTC](https://meta.discourse.org/t/is-it-possible-to-create-child-themes/98246 "2018-09-27T23:21:11Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![tshenry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tshenry/32/119495_2.png) [@tshenry](https://meta.discourse.org/u/tshenry)\
**Post date:** [September 28, 2018, 12:57am UTC](https://meta.discourse.org/t/is-it-possible-to-create-child-themes/98246/6 "2018-09-28T00:57:17Z")

</div>

> [@AstonJ](#):
>
> So could I do this…

Yes! That’s essentially what you’ll want to do for now, but ideally, you won’t want to “override the CSS in the component.” You want to take anything that is specific to light/dark **out** of the component and place it into the appropriate base theme. Hopefully that makes sense… It is a little confusing. This is just a generic example that will hopefully help illustrate:

### Current theme (You will be converting to a component)

```css
div {
    background: white; // Remove and place in "Light Theme" and "Dark Theme"
    width: 600px; // Leave here since it's common to all themes
}

```

  

In the end you want:

### Current theme (Now a component)

```css
div {
    width: 600px;
}

```

### Light Theme

```css
div {
    background: white; 
}

```

### Dark Theme

```css
div {
    background: black; 
}

```

  

> [@AstonJ](#):
>
> That would seem to be more or less the same as being able to have a child theme 🙂 but it all depends on whether the CSS in the theme, or the component takes precedence?

Components take precedence. The issue is that your users can’t select child themes (theme components) _yet_. You could technically have two uniquely named copies of your theme and add a “dark” component to one, but that would be a lot more redundant than the steps you laid out.

---

_[View the full topic](https://meta.discourse.org/t/is-it-possible-to-create-child-themes/98246)._
