Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add CSS variables for markup diff tokens #698

Merged
merged 1 commit into from
Jun 11, 2024
Merged

Conversation

SamyPesse
Copy link
Contributor

This PR fixes #697. The CSS variables theme had no definition for these tokens.

Description

This PR introduces a set of new CSS variables:

  • --shiki-token-inserted
  • --shiki-token-deleted
  • --shiki-token-changed

Linked Issues

#697

Additional context

Copy link

netlify bot commented Jun 10, 2024

Deploy Preview for shiki-matsu ready!

Name Link
🔨 Latest commit 0f33b10
🔍 Latest deploy log https://app.netlify.com/sites/shiki-matsu/deploys/66671b8e16f05100089d120b
😎 Deploy Preview https://deploy-preview-698--shiki-matsu.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jun 10, 2024

Deploy Preview for shiki-next ready!

Name Link
🔨 Latest commit 0f33b10
🔍 Latest deploy log https://app.netlify.com/sites/shiki-next/deploys/66671b8e51209e0008724b47
😎 Deploy Preview https://deploy-preview-698--shiki-next.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@antfu antfu changed the title Add CSS variables for markup diff tokens feat: add CSS variables for markup diff tokens Jun 11, 2024
@antfu antfu merged commit 84c0b53 into shikijs:main Jun 11, 2024
11 checks passed
renovate bot added a commit to r4ai/r4ai.dev that referenced this pull request Jun 11, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [shiki](https://togithub.com/shikijs/shiki)
([source](https://togithub.com/shikijs/shiki/tree/HEAD/packages/shiki))
| [`1.6.3` ->
`1.6.4`](https://renovatebot.com/diffs/npm/shiki/1.6.3/1.6.4) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/shiki/1.6.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/shiki/1.6.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/shiki/1.6.3/1.6.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/shiki/1.6.3/1.6.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>shikijs/shiki (shiki)</summary>

### [`v1.6.4`](https://togithub.com/shikijs/shiki/releases/tag/v1.6.4)

[Compare
Source](https://togithub.com/shikijs/shiki/compare/v1.6.3...v1.6.4)

#####    🚀 Features

- Add CSS variables for markup diff tokens  -  by
[@&#8203;SamyPesse](https://togithub.com/SamyPesse) in
[shikijs/shiki#698
[<samp>(84c0b)</samp>](https://togithub.com/shikijs/shiki/commit/84c0b539)
- **rehype**: Support default language option  -  by
[@&#8203;fuma-nama](https://togithub.com/fuma-nama) and
[@&#8203;antfu](https://togithub.com/antfu) in
[shikijs/shiki#692
[<samp>(724b4)</samp>](https://togithub.com/shikijs/shiki/commit/724b410e)

#####     [View changes on
GitHub](https://togithub.com/shikijs/shiki/compare/v1.6.3...v1.6.4)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/r4ai/r4ai.dev).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zOTMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjM5My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
diegohaz pushed a commit to ariakit/ariakit that referenced this pull request Jun 12, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [shiki](https://togithub.com/shikijs/shiki)
([source](https://togithub.com/shikijs/shiki/tree/HEAD/packages/shiki))
| [`1.6.1` ->
`1.6.4`](https://renovatebot.com/diffs/npm/shiki/1.6.1/1.6.4) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/shiki/1.6.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/shiki/1.6.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/shiki/1.6.1/1.6.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/shiki/1.6.1/1.6.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>shikijs/shiki (shiki)</summary>

### [`v1.6.4`](https://togithub.com/shikijs/shiki/releases/tag/v1.6.4)

[Compare
Source](https://togithub.com/shikijs/shiki/compare/v1.6.3...v1.6.4)

#####    🚀 Features

- Add CSS variables for markup diff tokens  -  by
[@&#8203;SamyPesse](https://togithub.com/SamyPesse) in
[shikijs/shiki#698
[<samp>(84c0b)</samp>](https://togithub.com/shikijs/shiki/commit/84c0b539)
- **rehype**: Support default language option  -  by
[@&#8203;fuma-nama](https://togithub.com/fuma-nama) and
[@&#8203;antfu](https://togithub.com/antfu) in
[shikijs/shiki#692
[<samp>(724b4)</samp>](https://togithub.com/shikijs/shiki/commit/724b410e)

#####     [View changes on
GitHub](https://togithub.com/shikijs/shiki/compare/v1.6.3...v1.6.4)

### [`v1.6.3`](https://togithub.com/shikijs/shiki/releases/tag/v1.6.3)

[Compare
Source](https://togithub.com/shikijs/shiki/compare/v1.6.2...v1.6.3)

#####    🚀 Features

- **twoslash**: Add line query rendering option for twoslash renderer
 -  by [@&#8203;hddhyq](https://togithub.com/hddhyq) and
[@&#8203;antfu](https://togithub.com/antfu) in
[shikijs/shiki#695
[<samp>(aea25)</samp>](https://togithub.com/shikijs/shiki/commit/aea25115)

#####     [View changes on
GitHub](https://togithub.com/shikijs/shiki/compare/v1.6.2...v1.6.3)

### [`v1.6.2`](https://togithub.com/shikijs/shiki/releases/tag/v1.6.2)

[Compare
Source](https://togithub.com/shikijs/shiki/compare/v1.6.1...v1.6.2)

#####    🚀 Features

- **markdown-it**: Support default and fallback lang
[#&#8203;687](https://togithub.com/shikijs/shiki/issues/687)  -  by
[@&#8203;Only566](https://togithub.com/Only566) and **winnliu** in
[shikijs/shiki#689
and
[shikijs/shiki#687
[<samp>(3281b)</samp>](https://togithub.com/shikijs/shiki/commit/3281bf5b)

#####     [View changes on
GitHub](https://togithub.com/shikijs/shiki/compare/v1.6.1...v1.6.2)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/ariakit/ariakit).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNzcuOCIsInVwZGF0ZWRJblZlciI6IjM3LjM5My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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.

Diff syntax highlighting doesn't work with css variables theme
3 participants