Skip to content

fix(theme): support all TOML date and time variants - #644

Open
eduardoapatat wants to merge 1 commit into
catppuccin:mainfrom
eduardoapatat:feat/toml-token-colors
Open

fix(theme): support all TOML date and time variants#644
eduardoapatat wants to merge 1 commit into
catppuccin:mainfrom
eduardoapatat:feat/toml-token-colors

Conversation

@eduardoapatat

Copy link
Copy Markdown

Summary

Extend the existing TOML date highlighting rule to cover every date and time
variant emitted by Even Better TOML's TextMate grammar:

  • Offset date-time
  • Local date-time
  • Local date
  • Local time

All variants now use the existing Catppuccin pink palette color.

Motivation

The theme previously targeted only
constant.other.time.datetime.offset.toml.

The other valid TOML date and time scopes fell back to the generic source
foreground color:

  • constant.other.time.datetime.local.toml
  • constant.other.time.date.toml
  • constant.other.time.time.toml

Testing

Tested using Catppuccin Mocha and Even Better TOML in the Extension Development
Host.

  • Verified each scope with Developer: Inspect Editor Tokens and Scopes
  • Confirmed all four variants use the existing TOML date color
  • Ran pnpm lint successfully

Screenshots

Before

Screenshot From 2026-08-20 06-23-50

After

Screenshot From 2026-08-20 06-23-16

Color offset and local date-times, local dates, and local times consistently using the TOML date palette rule.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant