[GH-ISSUE #305] Custom theme in .cast file is not used. #206

Closed
opened 2026-02-25 20:33:04 +03:00 by kerem · 11 comments
Owner

Originally created by @zefei on GitHub (May 21, 2018).
Original GitHub issue: https://github.com/asciinema/asciinema/issues/305

Hi, thank you for the wonderful tool that asciinema is!

I wanted to use some custom terminal color theme, and followed the v2 doc, manually added a "theme" attribute in my .cast file. But once the file is uploaded to asciinema.org, the player doesn't seem to use the color values. The file is uploaded to https://asciinema.org/a/y3oFQ2Tf5o61oLwPX4iEqI8CD and it should use a black on white theme.

Thank you!

Originally created by @zefei on GitHub (May 21, 2018). Original GitHub issue: https://github.com/asciinema/asciinema/issues/305 Hi, thank you for the wonderful tool that asciinema is! I wanted to use some custom terminal color theme, and followed the v2 doc, manually added a "theme" attribute in my .cast file. But once the file is uploaded to asciinema.org, the player doesn't seem to use the color values. The file is uploaded to https://asciinema.org/a/y3oFQ2Tf5o61oLwPX4iEqI8CD and it should use a black on white theme. Thank you!
kerem closed this issue 2026-02-25 20:33:04 +03:00
Author
Owner

@ku1ik commented on GitHub (Jun 7, 2018):

That's correct. asciicast v2 spec reserved a place for custom theme, but the web player doesn't support it yet.

When I finish work on SVG thumbnails I'll take a look at this (custom color themes should be honored by both the player and SVG).

<!-- gh-comment-id:395503430 --> @ku1ik commented on GitHub (Jun 7, 2018): That's correct. asciicast v2 spec reserved a place for custom theme, but the web player doesn't support it yet. When I finish work on [SVG thumbnails](https://github.com/asciinema/asciinema-server/pull/304) I'll take a look at this (custom color themes should be honored by both the player and SVG).
Author
Owner

@zefei commented on GitHub (Jun 8, 2018):

Thank you for the explanation and this wonderful tool!

<!-- gh-comment-id:395652203 --> @zefei commented on GitHub (Jun 8, 2018): Thank you for the explanation and this wonderful tool!
Author
Owner

@jakwings commented on GitHub (Dec 5, 2021):

voting for this feature @sickill

<!-- gh-comment-id:986165564 --> @jakwings commented on GitHub (Dec 5, 2021): voting for this feature @sickill
Author
Owner

@uncenter commented on GitHub (May 24, 2025):

Can this be reopened since it isn't actually solved/completed?

<!-- gh-comment-id:2906908243 --> @uncenter commented on GitHub (May 24, 2025): Can this be reopened since it isn't actually solved/completed?
Author
Owner

@bonswouar commented on GitHub (Sep 12, 2025):

I don't usually +1, but as I don't want to create a new issue, please reopen this one!

<!-- gh-comment-id:3284570732 --> @bonswouar commented on GitHub (Sep 12, 2025): I don't usually +1, but as I don't want to create a new issue, please reopen this one!
Author
Owner

@ku1ik commented on GitHub (Sep 12, 2025):

The player uses the saved theme since v3.7.0 (Feb 2024).

<!-- gh-comment-id:3285476169 --> @ku1ik commented on GitHub (Sep 12, 2025): The player uses the saved theme since v3.7.0 (Feb 2024).
Author
Owner

@bonswouar commented on GitHub (Sep 12, 2025):

Does it? It seems to not work for me, at least the main background stays black, causing some glitches, for example: https://asciinema.org/a/zIoij3HHAqUNPR14y74Hhq6JI
fyi I inserted the theme from https://github.com/catppuccin/asciinema/blob/main/themes/macchiato.json

<!-- gh-comment-id:3285612524 --> @bonswouar commented on GitHub (Sep 12, 2025): Does it? It seems to not work for me, at least the main background stays black, causing some glitches, for example: https://asciinema.org/a/zIoij3HHAqUNPR14y74Hhq6JI fyi I inserted the theme from https://github.com/catppuccin/asciinema/blob/main/themes/macchiato.json
Author
Owner

@ku1ik commented on GitHub (Sep 29, 2025):

Looks good to me:

Image

Does it look different for you?

<!-- gh-comment-id:3345986729 --> @ku1ik commented on GitHub (Sep 29, 2025): Looks good to me: <img width="1262" height="712" alt="Image" src="https://github.com/user-attachments/assets/5b942df8-44b0-4db0-b773-fa4a2e196bbb" /> Does it look different for you?
Author
Owner

@bonswouar commented on GitHub (Sep 29, 2025):

After digging a bit it seems there are only two tiny issues:

  • The colors were originally a bit wrong for me, but I've found out it was because of Darkreader extension. A global dark theme toggle for the website could fix that maybe (detected as dark theme by the extension, so that it won't try to override it)
  • The background shouldn't be almost black (it's #121314 instead of #24273a). I've just checked the cast file and there is "bg": "#24273a", not sure why it isn't applied?
<!-- gh-comment-id:3346059414 --> @bonswouar commented on GitHub (Sep 29, 2025): After digging a bit it seems there are only two tiny issues: - The colors were originally a bit wrong for me, but I've found out it was because of Darkreader extension. A global dark theme toggle for the website could fix that maybe (detected as dark theme by the extension, so that it won't try to override it) - The background shouldn't be almost black (it's `#121314` instead of `#24273a`). I've just checked the cast file and there is `"bg": "#24273a"`, not sure why it isn't applied?
Author
Owner

@ku1ik commented on GitHub (Sep 29, 2025):

@bonswouar you have a typo in your cast file - the color palette should be under key palette while your file has pallete. This caused the whole theme to be ignored, resulting in default ("asciinema") theme being used.

<!-- gh-comment-id:3346990081 --> @ku1ik commented on GitHub (Sep 29, 2025): @bonswouar you have a typo in your cast file - the color palette should be under key `palette` while your file has `pallete`. This caused the whole theme to be ignored, resulting in default ("asciinema") theme being used.
Author
Owner

@bonswouar commented on GitHub (Sep 29, 2025):

My bad, I totally didn't notice this typo! 😅
I've just pushed a PR to fix it in catppuccin repo, thanks for your help debugging this :)

<!-- gh-comment-id:3347870861 --> @bonswouar commented on GitHub (Sep 29, 2025): My bad, I totally didn't notice this typo! 😅 I've just pushed a PR to fix it in catppuccin repo, thanks for your help debugging this :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asciinema#206
No description provided.