# Change bullet point color in editor view (obsidianite theme)

**URL:** <https://forum.obsidian.md/t/change-bullet-point-color-in-editor-view-obsidianite-theme/23706>\
**Category:** Basement\
**Tags:** custom-css\
**Created:** [September 5, 2021, 10:14am UTC](https://forum.obsidian.md/t/change-bullet-point-color-in-editor-view-obsidianite-theme/23706 "2021-09-05T10:14:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steelskin](https://forum.obsidian.md/user_avatar/forum.obsidian.md/steelskin/32/19322_2.png) [@Steelskin](https://forum.obsidian.md/u/Steelskin)\
**Post date:** [September 5, 2021, 10:14am UTC](https://forum.obsidian.md/t/change-bullet-point-color-in-editor-view-obsidianite-theme/23706/1 "2021-09-05T10:14:35Z")

</div>

Hi all,

This may be a relatively simple problem to solve but i’ve been at it for a day now and i can’t find a solution, not on the forum nor on the internet. I guess the issue is too specific.

### What I’m trying to do

I would like to change the color of the bullet point list (so ul if i’m not mistaken) in the editor mode ! i’ve managed to customize it with other lists types and in preview mode.  
I’m modifying the obsidianite theme for my personal use, so i’m basically working on a bunch of code i’m not entirely understanding but i managed until now.

Here’s the code segment managing the lists:

 ![image](https://forum.obsidian.md/uploads/default/original/3X/8/8/88fdbd4116983779710784549d7cae2fc1726dd8.png)  
 ![image](https://forum.obsidian.md/uploads/default/original/3X/e/d/ed2fef1d9f77e7313122f458cb77be7d05a41356.png)  
 ![image](https://forum.obsidian.md/uploads/default/original/3X/a/2/a24879be539f80ab9a59eade802ec799fe6d5365.png)

I would like the bullet points to use var(text-sub-accent) but they’re stuck with var(text-accent)…

i don’t have anything in my snippets influencing these, and i tried to use the solutions given in [this post](https://forum.obsidian.md/t/css-code-to-change-color-and-size-of-bullet-points/15230) already but to no avail.

thank you for your help !

---

<div class="post-metadata">

**Author:** ![anon12638239](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/a/2bfe46/32.png) [@anon12638239](https://forum.obsidian.md/u/anon12638239)\
**Post date:** [September 5, 2021, 12:44pm UTC](https://forum.obsidian.md/t/change-bullet-point-color-in-editor-view-obsidianite-theme/23706/2 "2021-09-05T12:44:46Z")

</div>

Have you tried changing…

`--text-accent`

to

`--text-sub-accent`

…in the following lines? You might only want to change the first line:

**FROM 1** :

```auto
div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-formatting-list-ul::after {
  position: absolute;
  content: '•';
  color: var(--text-accent);
  top: 0;
  left: 0.65em;
  font-weight: bold;
  text-shadow: 0 0 0.5em var(--accent-2);
}

```

**TO 1** :

```auto
div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-formatting-list-ul::after {
  position: absolute;
  content: '•';
  color: var(--text-sub-accent);
  top: 0;
  left: 0.65em;
  font-weight: bold;
  text-shadow: 0 0 0.5em var(--accent-2);
}

```

**And FROM 2** :

```auto
.cm-s-obsidian span.cm-formatting-list {
  color: var(--text-accent);
}

```

**TO 2** :

```auto
.cm-s-obsidian span.cm-formatting-list {
  color: var(--text-sub-accent);
}

```

Angel

---

<div class="post-metadata">

**Author:** ![Steelskin](https://forum.obsidian.md/user_avatar/forum.obsidian.md/steelskin/32/19322_2.png) [@Steelskin](https://forum.obsidian.md/u/Steelskin)\
**Post date:** [September 5, 2021, 3:54pm UTC](https://forum.obsidian.md/t/change-bullet-point-color-in-editor-view-obsidianite-theme/23706/3 "2021-09-05T15:54:47Z")

</div>

> [@anon12638239](#):
>
> `.cm-s-obsidian span.cm-formatting-list {`

wow, that was it !  
Thank you for this !

---

<div class="post-metadata">

**Author:** ![anon12638239](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/a/2bfe46/32.png) [@anon12638239](https://forum.obsidian.md/u/anon12638239)\
**Post date:** [September 6, 2021, 7:27am UTC](https://forum.obsidian.md/t/change-bullet-point-color-in-editor-view-obsidianite-theme/23706/4 "2021-09-06T07:27:29Z")

</div>

Great to hear it is working for you.

Angel

---

<div class="post-metadata">

**Author:** ![system](https://forum.obsidian.md/uploads/default/original/3X/b/e/bec35fbd23ab28909bb6bfe62cb32eb82dd34019.png) [@system](https://forum.obsidian.md/u/system)\
**Post date:** [September 7, 2021, 7:27am UTC](https://forum.obsidian.md/t/change-bullet-point-color-in-editor-view-obsidianite-theme/23706/5 "2021-09-07T07:27:55Z")

</div>

Closed on September 7, 2021, 7:27am UTC

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