diff --git a/src/content/contributor-docs/en/fes_contribution_guide.mdx b/src/content/contributor-docs/en/fes_contribution_guide.mdx index c68ad15c30..625c034555 100644 --- a/src/content/contributor-docs/en/fes_contribution_guide.mdx +++ b/src/content/contributor-docs/en/fes_contribution_guide.mdx @@ -7,7 +7,8 @@ description: > --- {/* An overview of the Friendly Error System codebase and a reference for developers. */} - +import { Image } from 'astro:assets'; +import fesDiagram from '../images/fes.svg'; The `core/friendly_errors` folder contains the code for the p5js’ Friendly Error Systems (FES) responsible for generating Friendly Error messages or Friendly Errors. You may have seen Friendly Error messages starting with “`🌞 p5.js says:`” in your console, supplementing default, browser-generated error messages. @@ -26,7 +27,11 @@ The main functions for generating the Friendly Error messages are: Here is a diagram that outlines the location of all functions in FES and how they connect to others: -![A diagram of the files used in FES and their uses](src/content/contributor-docs/images/fes.svg) +A diagram of the files used in FES and their uses Individual files contain the following main FES functions: diff --git a/styles/global.scss b/styles/global.scss index 5f34f2ec78..facdfac4c2 100644 --- a/styles/global.scss +++ b/styles/global.scss @@ -409,6 +409,10 @@ pre.code-box, } } +.dark-theme .invert-in-dark { + filter: invert(100%); +} + // Grid that switches from 2 to 3 to 4 columns as screen gets bigger // Usually used with items that have a column width of 3 .content-grid {