starlight-cannoli-plugins 2.5.2 → 2.5.3

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.
@@ -4,7 +4,6 @@ import {
4
4
  ExpressiveCodeAnnotation
5
5
  } from "@expressive-code/core";
6
6
  import { h } from "@expressive-code/core/hast";
7
- var css = String.raw;
8
7
  var EmphasisAnnotation = class extends ExpressiveCodeAnnotation {
9
8
  render({ nodesToTransform }) {
10
9
  return nodesToTransform.map((node) => h("span.fw-supreme", [node]));
@@ -21,18 +20,6 @@ function parseEmphTerms(meta) {
21
20
  function expressiveCodeEmphasis() {
22
21
  return definePlugin({
23
22
  name: "expressiveCodeEmphasis",
24
- baseStyles: css`
25
- @import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@700;800&display=swap");
26
-
27
- .fw-supreme {
28
- font-family: "Open Sans", sans-serif;
29
- font-weight: 800;
30
- }
31
-
32
- html:not([data-theme="light"]) .fw-supreme > span {
33
- color: var(--sl-color-white);
34
- }
35
- `,
36
23
  hooks: {
37
24
  preprocessCode: (context) => {
38
25
  const terms = parseEmphTerms(context.codeBlock.meta);
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  expressiveCodeEmphasis
3
- } from "./chunk-XYVZ5MOQ.js";
3
+ } from "./chunk-2Z7KWWVF.js";
4
4
  import {
5
5
  starlightIndexOnlySidebar
6
6
  } from "./chunk-N2I2GJW3.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  expressiveCodeEmphasis
3
- } from "../chunk-XYVZ5MOQ.js";
3
+ } from "../chunk-2Z7KWWVF.js";
4
4
  import "../chunk-QGM4M3NI.js";
5
5
  export {
6
6
  expressiveCodeEmphasis
@@ -0,0 +1,7 @@
1
+ @import url("https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap");
2
+
3
+ .fw-supreme {
4
+ font-family: "Source Code Pro", ui-monospace, monospace !important;
5
+ font-weight: 900 !important;
6
+ -webkit-text-stroke: 0.1px currentColor;
7
+ }
@@ -1,3 +1,4 @@
1
1
  @use "variables";
2
2
  @use "starlight";
3
3
  @use "utilities";
4
+ @use "expressive-code-emphasis";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "starlight-cannoli-plugins",
3
3
  "type": "module",
4
- "version": "2.5.2",
4
+ "version": "2.5.3",
5
5
  "description": "Starlight plugins for automatic sidebar generation and link validation",
6
6
  "license": "ISC",
7
7
  "main": "./dist/index.js",