From 10748e679b0a57ba289befc77c3d4860fe27877e Mon Sep 17 00:00:00 2001 From: lilith Date: Tue, 4 Mar 2025 22:45:31 +0100 Subject: [PATCH] Move syntax-theme explainer to typography --- styleguide/demopage/index.html | 13 ++---------- styleguide/typography/index.html | 36 ++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 11 deletions(-) diff --git a/styleguide/demopage/index.html b/styleguide/demopage/index.html index f182b9c..82ecc1e 100644 --- a/styleguide/demopage/index.html +++ b/styleguide/demopage/index.html @@ -182,18 +182,9 @@

Preformatted Text

- This example uses manual syntax highlighting using the following CSS - classes: + This example uses manual syntax highlighting using the predefined + CSS classes mentioned in the typography:

-
#include <stdlib.h>
diff --git a/styleguide/typography/index.html b/styleguide/typography/index.html
index 1e77bca..bfa9bc2 100644
--- a/styleguide/typography/index.html
+++ b/styleguide/typography/index.html
@@ -219,6 +219,42 @@
             
  • Code
  • +

    + If you want to add syntax highlighting to your code, you can use the + following formatting (also available as CSS classes using the same + name). If you need more granularity, feel free to add more colors and + decorations as needed. +

    +
      +
    • + comment: text-shade 4, italic +
    • +
    • + neutral: text-shade 2 +
    • +
    • + identifier: primary +
    • +
    • + function: accent 1, italic +
    • +
    • + keyword: accent 2 +
    • +
    • + number: accent 3 +
    • +
    • + string: accent 3, italic +
    • +

    Our custom font: Argon Glow