Skip to content

Commit

Permalink
fix: markdown code color
Browse files Browse the repository at this point in the history
  • Loading branch information
osmancoskun committed May 21, 2024
1 parent ae555a4 commit 55b5d70
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
59 changes: 59 additions & 0 deletions src/lib/github-markdown-code.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/* Style for .token */
.token {
color: #d2691e; /* Chocolate color for tokens */
}

/* Style for .function */
.function {
color: #ff4500; /* Orange red color for functions */
}

/* Style for .property */
.property {
color: #2e8b57; /* Sea green color for properties */
}

/* Style for .directive */
.directive {
color: #b22222; /* Firebrick color for directives */
}

/* Style for .macro */
.macro {
color: #8a2be2; /* Blue violet color for macros */
}

/* Style for .string */
.string {
color: #4682b4; /* Steel blue color for strings */
}

/* Style for .keyword */
.keyword {
color: #1e90ff; /* Dodger blue color for keywords */
}

/* Style for .operator */
.operator {
color: #ff1493; /* Deep pink color for operators */
}

/* Style for .number */
.number {
color: #cd853f; /* Peru color for numbers */
}

/* Style for .parameter */
.parameter {
color: #9370db; /* Medium purple color for parameters */
}

/* Style for .variable */
.variable {
color: #ff00ff; /* Magenta color for variables */
}

/* Style for .comment */
.comment {
color: #32cd32; /* Lime green color for comments */
}
1 change: 1 addition & 0 deletions src/routes/wiki/_module.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script>
import { Navigation } from "$layout";
import "$lib/github-markdown.css";
import "$lib/github-markdown-code.css";
</script>

<!-- routify:meta reset -->
Expand Down

0 comments on commit 55b5d70

Please sign in to comment.