Skip to content

feat: scoped color replacements#680

Merged
antfu merged 1 commit intoshikijs:mainfrom
QuentinRoy:scoped-color-replacements
May 18, 2024
Merged

feat: scoped color replacements#680
antfu merged 1 commit intoshikijs:mainfrom
QuentinRoy:scoped-color-replacements

Conversation

@QuentinRoy
Copy link
Contributor

Description

Add scoped color replacements to limit color replacements to a specific theme. This is useful when multiple themes are provided.

Linked Issues

Resolve #679

Additional context

@netlify
Copy link

netlify bot commented May 18, 2024

Deploy Preview for shiki-matsu ready!

Name Link
🔨 Latest commit e53e9fa
🔍 Latest deploy log https://app.netlify.com/sites/shiki-matsu/deploys/66491a2acbfaa60008c7cc22
😎 Deploy Preview https://deploy-preview-680--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.

@netlify
Copy link

netlify bot commented May 18, 2024

Deploy Preview for shiki-next ready!

Name Link
🔨 Latest commit e53e9fa
🔍 Latest deploy log https://app.netlify.com/sites/shiki-next/deploys/66491a2a1238f60008877f40
😎 Deploy Preview https://deploy-preview-680--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.

Copy link
Member

@antfu antfu left a comment

Choose a reason for hiding this comment

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

Looks very solid, thank you!

@antfu antfu merged commit ed31ee5 into shikijs:main May 18, 2024
renovate bot referenced this pull request in r4ai/r4ai.dev May 19, 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://github.com/shikijs/shiki)
([source](https://github.com/shikijs/shiki/tree/HEAD/packages/shiki))
| [`1.5.2` ->
`1.6.0`](https://renovatebot.com/diffs/npm/shiki/1.5.2/1.6.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/shiki/1.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/shiki/1.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/shiki/1.5.2/1.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/shiki/1.5.2/1.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

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

[Compare
Source](https://github.com/shikijs/shiki/compare/v1.5.2...v1.6.0)

#####    🚀 Features

- Scoped color replacements  -  by
[@&#8203;QuentinRoy](https://github.com/QuentinRoy) in
[https://github.com/shikijs/shiki/issues/680](https://github.com/shikijs/shiki/issues/680)
[<samp>(ed31e)</samp>](https://github.com/shikijs/shiki/commit/ed31ee55)
- New `regexp` grammar  -  by
[@&#8203;antfu](https://github.com/antfu)
[<samp>(8ea85)</samp>](https://github.com/shikijs/shiki/commit/8ea85136)

#####     [View changes on
GitHub](https://github.com/shikijs/shiki/compare/v1.5.2...v1.6.0)

</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:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNjMuNSIsInVwZGF0ZWRJblZlciI6IjM3LjM2My41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
diegohaz referenced this pull request in ariakit/ariakit May 21, 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://github.com/shikijs/shiki)
([source](https://github.com/shikijs/shiki/tree/HEAD/packages/shiki))
| [`1.5.2` ->
`1.6.0`](https://renovatebot.com/diffs/npm/shiki/1.5.2/1.6.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/shiki/1.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/shiki/1.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/shiki/1.5.2/1.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/shiki/1.5.2/1.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

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

[Compare
Source](https://github.com/shikijs/shiki/compare/v1.5.2...v1.6.0)

#####    🚀 Features

- Scoped color replacements  -  by
[@&#8203;QuentinRoy](https://github.com/QuentinRoy) in
[https://github.com/shikijs/shiki/issues/680](https://github.com/shikijs/shiki/issues/680)
[<samp>(ed31e)</samp>](https://github.com/shikijs/shiki/commit/ed31ee55)
- New `regexp` grammar  -  by
[@&#8203;antfu](https://github.com/antfu)
[<samp>(8ea85)</samp>](https://github.com/shikijs/shiki/commit/8ea85136)

#####     [View changes on
GitHub](https://github.com/shikijs/shiki/compare/v1.5.2...v1.6.0)

</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:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNjMuNSIsInVwZGF0ZWRJblZlciI6IjM3LjM2My41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

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.

Color replacement in multiple theme modes

2 participants