Skip to content

Conversation

@annawen1
Copy link
Member

@annawen1 annawen1 commented Dec 8, 2025

Contributes to carbon-design-system/carbon-ai-chat#549

Adds syntax highlighting tokens to the color tokens page

Elements > Color > Core Tokens > Syntax

Screenshot 2026-01-07 at 11 37 07 AM

Changelog

New

  • Add "Highlight" tokens

@annawen1
Copy link
Member Author

annawen1 commented Dec 8, 2025

We'll merge this in after carbon-design-system/carbon#21047 has been reviewed and merged into the Carbon repo

Copy link
Member

@laurenmrice laurenmrice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@annawen1 this looks great. One question about the heading and anchor link though, would you mind if we called this "Syntax highlight" instead? I only say this because we have a $highlight color token in our Misc section and want to be super specific that there is a difference.

Screenshot 2025-12-09 at 3 07 48 PM

@annawen1
Copy link
Member Author

annawen1 commented Jan 7, 2026

@laurenmrice I went ahead and just renamed it to Syntax instead

Pushed up changes with the additional tokens that were missed in the initial PRs!

$syntax-operator
$syntax-deref-operator
$syntax-arithmetic-operator
$syntax-logic-operator
$syntax-bitwise-operator
$syntax-compare-operator
$syntax-update-operator
$syntax-definition-operator
$syntax-type-operator
$syntax-control-operator
$syntax-modifier
$syntax-punctuation
$syntax-separator
$syntax-bracket
$syntax-angle-bracket
$syntax-square-bracket
$syntax-paren
$syntax-brace
$syntax-content
$syntax-list
$syntax-emphasis
$syntax-strong
$syntax-monospace
$syntax-strikethrough
$syntax-heading
$syntax-heading-1
$syntax-heading-2
$syntax-heading-3
$syntax-heading-4
$syntax-heading-5
$syntax-heading-6
$syntax-content-separator
$syntax-quote
$syntax-link
$syntax-invalid
$syntax-meta
$syntax-document-meta
$syntax-annotation
$syntax-processing-instruction
$syntax-definition
$syntax-constant
$syntax-function
$syntax-standard
$syntax-local
$syntax-special

@annawen1 annawen1 changed the title feat: highlighting tokens feat: syntax highlighting tokens Jan 7, 2026
Copy link
Member

@laurenmrice laurenmrice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@kodiakhq kodiakhq bot merged commit 7be6d7f into main Jan 7, 2026
6 checks passed
@kodiakhq kodiakhq bot deleted the feat/highlighting-tokens branch January 7, 2026 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants