# Code blocks are unreadable in light mode

**URL:** <https://forums.pixeltailgames.com/t/code-blocks-are-unreadable-in-light-mode/50128>\
**Category:** Meta\
**Created:** [March 19, 2024, 1:54am UTC](https://forums.pixeltailgames.com/t/code-blocks-are-unreadable-in-light-mode/50128 "2024-03-19T01:54:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![physicsfox](https://forums.pixeltailgames.com/user_avatar/forums.pixeltailgames.com/physicsfox/32/71664_2.png) [@physicsfox](https://forums.pixeltailgames.com/u/physicsfox)\
**Post date:** [March 19, 2024, 1:54am UTC](https://forums.pixeltailgames.com/t/code-blocks-are-unreadable-in-light-mode/50128/1 "2024-03-19T01:54:10Z")

</div>

It is very hard to read code blocks in light mode

Demonstration:

```python
print('hello world')
foo = 'meow2'
baz = 'skeleton'
foo, baz = baz, foo

def main():
  for x in range(10):
    print(foo, baz) # Comment

if __name__ == ' __main__':
  main()

```

This looks great on dark mode, which I’m currently using:

 ![image](https://forums.pixeltailgames.com/uploads/default/original/3X/1/6/168395207722c226a7fbb4d0e84134e4c6fcd80b.png)

But not so good on light mode (default PIxelTail theme)

Update:  
This seems to only affect code embedded in a details (example screenshot):

 ![image](https://forums.pixeltailgames.com/uploads/default/original/3X/c/6/c6efc3ebf63a45a9a1c3b67349190c48780da6ca.png)

> **Like this!**
>
> ```python
> print('hello world')
> foo = 'meow2'
> baz = 'skeleton'
> foo, baz = baz, foo
> 
> def main():
> for x in range(10):
> print(foo, baz) # Comment
> 
> if __name__ == ' __main__':
> main()
> 
> ```

---

<div class="post-metadata">

**Author:** ![macdguy](https://forums.pixeltailgames.com/user_avatar/forums.pixeltailgames.com/macdguy/32/3448_2.png) [@macdguy](https://forums.pixeltailgames.com/u/macdguy)\
**Post date:** [March 19, 2024, 8:40am UTC](https://forums.pixeltailgames.com/t/code-blocks-are-unreadable-in-light-mode/50128/2 "2024-03-19T08:40:50Z")

</div>

This is now fixed.
