fix(deps): update dependency astro-expressive-code to ^0.23.0 (docs-v2) #217
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^0.22.2
->^0.23.0
⚠ Dependency Lookup Warnings ⚠
Warnings were logged while processing this repo. Please check the Dependency Dashboard for more information.
Release Notes
expressive-code/expressive-code (astro-expressive-code)
v0.23.0
Minor Changes
bfed62a
: Add config optioncustomizeTheme
.This optional function is called once per theme during engine initialization with the loaded theme as its only argument.
It allows customizing the loaded theme and can be used for various purposes:
name
property to influence its generated CSS class name (e.g.theme.name = 'dark'
will result in code blocks having the classec-theme-dark
).theme.applyHueAndChromaAdjustments()
.bfed62a
: Add plugin styles to thestyleOverrides
config option.So far, this object only contained core styles like colors, fonts, paddings and more. Now, plugins also contribute their own style settings to this object.
For example, if the
frames
plugin is installed, you can now override itsshadowColor
by settingstyleOverrides.frames.shadowColor
to a color value.bfed62a
: AddapplyHueAndChromaAdjustments
function toExpressiveCodeTheme
.You can now apply chromatic adjustments to entire groups of theme colors while keeping their relative lightness and alpha components intact. This can be used to quickly create theme variants that fit the color scheme of any website or brand.
Adjustments can either be defined as hue and chroma values in the OKLCH color space (range 0–360 for hue, 0–0.4 for chroma), or these values can be extracted from hex color strings (e.g.
#​3b82f6
).You can target predefined groups of theme colors (e.g.
backgrounds
,accents
) and/or use thecustom
property to define your own groups of theme colors to be adjusted.bfed62a
: Add outer wrapper when rendering multiple themes.When the
theme
option is set to an array containing multiple themes, the rendered code block groups are now wrapped inside<div class="ec-themes-wrapper">...</div>
. This encapsulates all rendered themes in a single element and thereby ensures their consistent positioning on sites that would otherwise add margins between them due to adjacent sibling combinators.bfed62a
: AddstyleOverrides
toExpressiveCodeTheme
.Themes can now provide their own
styleOverrides
, which take precedence over globalstyleOverrides
and the default styles.Patch Changes
bfed62a
]bfed62a
]bfed62a
]bfed62a
]bfed62a
]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.
This PR has been generated by Mend Renovate. View repository job log here.