Skip to content

feat(code): refresh syntax theme, drop terminal titlebar, polish inline chip#11614

Open
jd wants to merge 1 commit into
mainfrom
devs/jd/feat/code-blocks-refresh/refresh-syntax-theme-drop-terminal-titlebar--672ba860
Open

feat(code): refresh syntax theme, drop terminal titlebar, polish inline chip#11614
jd wants to merge 1 commit into
mainfrom
devs/jd/feat/code-blocks-refresh/refresh-syntax-theme-drop-terminal-titlebar--672ba860

Conversation

@jd
Copy link
Copy Markdown
Member

@jd jd commented May 20, 2026

  • Switch Expressive Code themes: slack-ochin / slack-dark → github-light /
    github-dark — calmer, more familiar palette for developer readers
  • Hide the macOS-style window titlebar on terminal frames (we never
    use titled terminal blocks; the bar was decorative chrome). Restore
    the top border and corner radius on the bare
     underneath so the
    block remains a clean rounded card
  • Nudge the copy button position to align with the code's own padding
    now that the terminal header is gone
  • Inline <code> gets the Pass-A chip treatment: --theme-code-inline-bg
    fill, 1px --theme-border outline, 4px radius, 0.1em x 0.4em padding —
    replacing the flat-gray bg with no padding
  • Components rendering inline code via Astro's <Code inline /> now
    use dual themes (github-light / github-dark) and a .theme-dark
    CSS rule swaps the active shiki variable. Block code in those
    components uses Expressive Code's <Code> so it matches markdown
    blocks
  • Move the Expressive Code config out of astro.config.ts into a new
    ec.config.mjs (required for EC's runtime <Code> component because
    the themeCssSelector function isn't JSON-serializable)

Co-Authored-By: Claude Opus 4.7 noreply@anthropic.com

Copilot AI review requested due to automatic review settings May 20, 2026 14:09
@mergify mergify Bot had a problem deploying to Mergify Merge Protections May 20, 2026 14:10 Failure
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented May 20, 2026

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

🔴 👀 Review Requirements

Waiting for

  • #approved-reviews-by >= 2
This rule is failing.
  • any of:
    • #approved-reviews-by >= 2
    • author = dependabot[bot]
    • author = mergify-ci-bot

🔴 🔎 Reviews

Waiting for

  • #review-requested = 0
This rule is failing.
  • #review-requested = 0
  • #changes-requested-reviews-by = 0
  • #review-threads-unresolved = 0

🟢 🤖 Continuous Integration

Wonderful, this rule succeeded.
  • all of:
    • check-success = build
    • check-success = lint
    • check-success = test
    • any of:
      • check-success = test-broken-links
      • label = ignore-broken-links
    • any of:
      • check-success=Cloudflare Pages
      • -head-repo-full-name~=^Mergifyio/

🟢 Enforce conventional commit

Wonderful, this rule succeeded.

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert|ui)(?:\(.+\))?:

🟢 📕 PR description

Wonderful, this rule succeeded.
  • body ~= (?ms:.{48,})

@mergify mergify Bot requested a review from a team May 20, 2026 14:12
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refreshes the site’s code presentation by switching to GitHub-themed syntax highlighting, removing Expressive Code’s terminal titlebar chrome, and polishing inline code styling across Markdown and Astro components.

Changes:

  • Move Expressive Code theming/styling configuration into a new ec.config.mjs and switch EC themes to github-light / github-dark.
  • Hide the terminal frame header/titlebar and adjust copy button positioning/alignment to match the new frame layout.
  • Update inline code styling to use a bordered “chip” treatment, and update CI-related Astro components to use EC for block code while using Astro’s inline <Code /> with dual themes.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/styles/index.css Hides EC terminal header, tweaks copy button layout, and updates inline code chip styling + inline Shiki dark-mode swap.
src/components/MergifyCliUploadStep.astro Uses EC <Code> for block snippets and Astro <Code> for inline snippets with GitHub dual themes.
src/components/MergifyCIUploadStepMatrix.astro Switches block code rendering to Expressive Code component and drops per-snippet theme overrides.
src/components/MergifyCIUploadStep.astro Same rendering split as above (EC for blocks, Astro for inline) with GitHub dual themes.
src/components/BuildkiteCIUploadStepMatrix.astro Switches block code rendering to Expressive Code component and drops per-snippet theme overrides.
src/components/BuildkiteCIUploadStep.astro Uses EC <Code> for block snippets and Astro <Code> for inline snippets with GitHub dual themes.
ec.config.mjs Introduces centralized Expressive Code config including dual themes and style overrides.
astro.config.ts Simplifies the EC integration call to rely on the external EC config file.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/styles/index.css
Comment thread src/styles/index.css Outdated
@jd jd marked this pull request as ready for review May 20, 2026 14:16
…ne chip

- Switch Expressive Code themes: slack-ochin / slack-dark → github-light /
  github-dark — calmer, more familiar palette for developer readers
- Hide the macOS-style window titlebar on terminal frames (we never
  use titled terminal blocks; the bar was decorative chrome). Restore
  the top border and corner radius on the bare <pre> underneath so the
  block remains a clean rounded card
- Nudge the copy button position to align with the code's own padding
  now that the terminal header is gone
- Inline `<code>` gets the Pass-A chip treatment: --theme-code-inline-bg
  fill, 1px --theme-border outline, 4px radius, 0.1em x 0.4em padding —
  replacing the flat-gray bg with no padding
- Components rendering inline code via Astro's `<Code inline />` now
  use dual themes (github-light / github-dark) and a `.theme-dark`
  CSS rule swaps the active shiki variable. Block code in those
  components uses Expressive Code's `<Code>` so it matches markdown
  blocks
- Move the Expressive Code config out of astro.config.ts into a new
  ec.config.mjs (required for EC's runtime `<Code>` component because
  the `themeCssSelector` function isn't JSON-serializable)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Change-Id: I672ba86013bd3936026725c8910dd211b6208816
@jd jd force-pushed the devs/jd/feat/code-blocks-refresh/refresh-syntax-theme-drop-terminal-titlebar--672ba860 branch from 5902bd4 to c16d71b Compare May 20, 2026 14:18
@jd
Copy link
Copy Markdown
Member Author

jd commented May 20, 2026

Revision history

# Type Changes Reason Date
1 initial 5902bd4 2026-05-20 14:18 UTC
2 content 5902bd4 → c16d71b (raw) 2026-05-20 14:18 UTC

@mergify mergify Bot had a problem deploying to Mergify Merge Protections May 20, 2026 14:18 Failure
@mergify mergify Bot requested a review from a team May 20, 2026 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants