# How do you set alternating colors in the list of topics

**URL:** <https://meta.discourse.org/t/how-do-you-set-alternating-colors-in-the-list-of-topics/46768>\
**Category:** Development\
**Created:** [2016年七月3日 10:52 UTC](https://meta.discourse.org/t/how-do-you-set-alternating-colors-in-the-list-of-topics/46768 "2016-07-03T10:52:26Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)\
**Post date:** [2018年三月22日 12:45 UTC](https://meta.discourse.org/t/how-do-you-set-alternating-colors-in-the-list-of-topics/46768/7 "2018-03-22T12:45:48Z")

</div>

I’ve run into the same problem. What solved it for me was adding this at the top:

```plaintext
@import "common/foundation/variables";

```

And then you can use those colors.

That’s the short story, the long story is here:

> [@Use Discourse Core Variables in your Theme](https://meta.discourse.org/t/how-to-use-discourse-core-variables-in-your-theme/77551):
>
> Discourse is incredibly customizable! The goal of this topic is to show you how make use of all the amazing options that are available to you as a theme developer. You know… so that you don’t have to reinvent the wheel smileVariables? What variables? Variables cover a large number of things, from font sizes to colors to z-index values. You can use and override the vast majority of variables in your theme editor. Colors There are many colors available for you to use or override in your them…

---

_[View the full topic](https://meta.discourse.org/t/how-do-you-set-alternating-colors-in-the-list-of-topics/46768)._
