@shikijs/types 3.4.2 → 3.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.d.mts +15 -1
  2. package/package.json +1 -1
package/dist/index.d.mts CHANGED
@@ -626,10 +626,24 @@ interface CodeOptionsMultipleThemes<Themes extends string = string> {
626
626
  * <span style="--shiki-light:#{light};--shiki-dark:#{dark};--shiki-custom:#{custom};">code</span>
627
627
  * ```
628
628
  *
629
+ * When set to `light-dark()`, the default color will be rendered as `light-dark(#{light}, #{dark})`.
630
+ *
631
+ * ```html
632
+ * <span style="color:light-dark(#{light}, #{dark});--shiki-dark:#{dark};--shiki-custom:#{custom};">code</span>
633
+ * ```
629
634
  *
630
635
  * @default 'light'
631
636
  */
632
- defaultColor?: StringLiteralUnion<'light' | 'dark'> | false;
637
+ defaultColor?: StringLiteralUnion<'light' | 'dark'> | 'light-dark()' | false;
638
+ /**
639
+ * The strategy to render multiple colors.
640
+ *
641
+ * - `css-vars`: Render the colors via CSS variables.
642
+ * - `none`: Do not render the colors, only use the default color.
643
+ *
644
+ * @default 'css-vars'
645
+ */
646
+ colorsRendering?: 'css-vars' | 'none';
633
647
  /**
634
648
  * Prefix of CSS variables used to store the color of the other theme.
635
649
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shikijs/types",
3
3
  "type": "module",
4
- "version": "3.4.2",
4
+ "version": "3.6.0",
5
5
  "description": "Type definitions for Shiki",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",