mirror of
https://github.com/asciinema/asciinema.git
synced 2026-04-25 16:05:52 +03:00
[GH-ISSUE #305] Custom theme in .cast file is not used. #820
Labels
No labels
bug
compatibility
feature request
fit for beginners
help wanted
hosting
idea
improvement
packaging
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asciinema#820
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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!
@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).
@zefei commented on GitHub (Jun 8, 2018):
Thank you for the explanation and this wonderful tool!
@jakwings commented on GitHub (Dec 5, 2021):
voting for this feature @sickill
@uncenter commented on GitHub (May 24, 2025):
Can this be reopened since it isn't actually solved/completed?
@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!
@ku1ik commented on GitHub (Sep 12, 2025):
The player uses the saved theme since v3.7.0 (Feb 2024).
@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
@ku1ik commented on GitHub (Sep 29, 2025):
Looks good to me:
Does it look different for you?
@bonswouar commented on GitHub (Sep 29, 2025):
After digging a bit it seems there are only two tiny issues:
#121314instead of#24273a). I've just checked the cast file and there is"bg": "#24273a", not sure why it isn't applied?@ku1ik commented on GitHub (Sep 29, 2025):
@bonswouar you have a typo in your cast file - the color palette should be under key
palettewhile your file haspallete. This caused the whole theme to be ignored, resulting in default ("asciinema") theme being used.@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 :)