# What is the default code block theme?

**URL:** <https://forum.obsidian.md/t/what-is-the-default-code-block-theme/64772>\
**Category:** Help\
**Created:** [August 9, 2023, 5:55pm UTC](https://forum.obsidian.md/t/what-is-the-default-code-block-theme/64772 "2023-08-09T17:55:17Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![ariehen](https://forum.obsidian.md/user_avatar/forum.obsidian.md/ariehen/32/46932_2.png) [@ariehen](https://forum.obsidian.md/u/ariehen)\
**Post date:** [August 9, 2023, 11:35pm UTC](https://forum.obsidian.md/t/what-is-the-default-code-block-theme/64772/4 "2023-08-09T23:35:09Z")

</div>

The default theme is all in the `app.css` file. See the [Obsidian CSS guide](https://forum.obsidian.md/t/obsidian-css-quick-guide/58178).

These are the code properties defined, but the colors will vary depending on what language you define for the code block (and between editing and reading modes, as mentioned above). Maybe what you’re looking for?

```css
body {
  /* Code */
  --code-size: var(--font-smaller);
  --code-background: var(--background-primary-alt);
  --code-normal: var(--text-muted);
  --code-comment: var(--text-faint);
  --code-function: var(--color-yellow);
  --code-important: var(--color-orange);
  --code-keyword: var(--color-pink);
  --code-property: var(--color-cyan);
  --code-punctuation: var(--text-muted);
  --code-string: var(--color-green);
  --code-tag: var(--color-red);
  --code-value: var(--color-purple);
}

```

---

_[View the full topic](https://forum.obsidian.md/t/what-is-the-default-code-block-theme/64772)._
