Skip to content

Commit ab05742

Browse files
committed
feat: add highlight wgsl name support
1 parent 37a6480 commit ab05742

1 file changed

Lines changed: 37 additions & 70 deletions

File tree

themes/LoveIt/assets/css/_variables.scss

Lines changed: 37 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44

55
@font-face {
66
font-family: Emoji;
7-
src: local("Apple Color Emoji"), local("Segoe UI Emoji"), local("Segoe UI Symbol"), local("Noto Color Emoji");
7+
src: local("Apple Color Emoji"), local("Segoe UI Emoji"),
8+
local("Segoe UI Symbol"), local("Noto Color Emoji");
89
unicode-range: U+1F000-1F644, U+203C-3299;
910
}
1011

1112
// ========== Global ========== //
1213
// Font and Line Height
13-
$global-font-family: system-ui, -apple-system, Segoe UI, Roboto, Emoji, Helvetica, Arial, sans-serif !default;
14+
$global-font-family: system-ui, -apple-system, Segoe UI, Roboto, Emoji,
15+
Helvetica, Arial, sans-serif !default;
1416
$global-font-size: 16px !default;
1517
$global-font-weight: 400 !default;
1618
$global-line-height: 1.5rem !default;
@@ -113,74 +115,43 @@ $pagination-link-hover-color-dark: #fff !default;
113115

114116
// ========== Code ========== //
115117
// Font family and size of the code
116-
$code-font-family: "Source Code Pro", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !default;
117-
$code-font-size: .875rem !default;
118+
$code-font-family: "Source Code Pro", Menlo, Monaco, Consolas, "Liberation Mono",
119+
"Courier New", monospace !default;
120+
$code-font-size: 0.875rem !default;
118121

119122
// Color of the code
120-
$code-color: #E74C3C !default;
121-
$code-color-dark: #E5BF78 !default;
123+
$code-color: #e74c3c !default;
124+
$code-color-dark: #e5bf78 !default;
122125

123126
// Color of the code background
124127
$code-background-color: #f5f5f5 !default;
125-
$code-background-color-dark: #272C34 !default;
128+
$code-background-color-dark: #272c34 !default;
126129

127130
$code-info-color: #9c9c9c !default;
128131
$code-info-color-dark: #b1b0b0 !default;
129132

130133
// Code type list
131-
$code-type-list:
132-
"language-bash" "Bash",
133-
"language-c" "C",
134-
"language-cs" "C#",
135-
"language-cpp" "C++",
136-
"language-clojure" "Clojure",
137-
"language-coffeescript" "CoffeeScript",
138-
"language-css" "CSS",
139-
"language-dart" "Dart",
140-
"language-diff" "Diff",
141-
"language-erlang" "Erlang",
142-
"language-go" "Go",
143-
"language-go-html-template" "Go HTML Template",
144-
"language-groovy" "Groovy",
145-
"language-haskell" "Haskell",
146-
"language-html" "HTML",
147-
"language-http" "HTTP",
148-
"language-xml" "XML",
149-
"language-java" "Java",
150-
"language-js" "JavaScript",
151-
"language-javascript" "JavaScript",
152-
"language-json" "JSON",
153-
"language-kotlin" "Kotlin",
154-
"language-latex" "LaTeX",
155-
"language-less" "Less",
156-
"language-lisp" "Lisp",
157-
"language-lua" "Lua",
158-
"language-makefile" "Makefile",
159-
"language-markdown" "Markdown",
160-
"language-matlab" "Matlab",
161-
"language-objectivec" "Objective-C",
162-
"language-php" "PHP",
163-
"language-perl" "Perl",
164-
"language-powershell" "PowerShell",
165-
"language-posh" "PowerShell",
166-
"language-pwsh" "PowerShell",
167-
"language-python" "Python",
168-
"language-r" "R",
169-
"language-ruby" "Ruby",
170-
"language-rust" "Rust",
171-
"language-scala" "Scala",
172-
"language-scss" "Scss",
173-
"language-shell" "Shell",
174-
"language-sql" "SQL",
175-
"language-swift" "Swift",
176-
"language-tex" "TeX",
177-
"language-toml" "TOML",
178-
"language-ts" "TypeScript",
179-
"language-typescript" "TypeScript",
180-
"language-vue" "Vue",
181-
"language-yml" "YAML",
182-
"language-yaml" "YAML",
183-
!default;
134+
$code-type-list: "language-bash" "Bash", "language-c" "C", "language-cs" "C#",
135+
"language-cpp" "C++", "language-clojure" "Clojure",
136+
"language-coffeescript" "CoffeeScript", "language-css" "CSS",
137+
"language-dart" "Dart", "language-diff" "Diff", "language-erlang" "Erlang",
138+
"language-go" "Go", "language-go-html-template" "Go HTML Template",
139+
"language-groovy" "Groovy", "language-haskell" "Haskell",
140+
"language-html" "HTML", "language-http" "HTTP", "language-xml" "XML",
141+
"language-java" "Java", "language-js" "JavaScript",
142+
"language-javascript" "JavaScript", "language-json" "JSON",
143+
"language-kotlin" "Kotlin", "language-latex" "LaTeX", "language-less" "Less",
144+
"language-lisp" "Lisp", "language-lua" "Lua", "language-makefile" "Makefile",
145+
"language-markdown" "Markdown", "language-matlab" "Matlab",
146+
"language-objectivec" "Objective-C", "language-php" "PHP",
147+
"language-perl" "Perl", "language-powershell" "PowerShell",
148+
"language-posh" "PowerShell", "language-pwsh" "PowerShell",
149+
"language-python" "Python", "language-r" "R", "language-ruby" "Ruby",
150+
"language-rust" "Rust", "language-scala" "Scala", "language-scss" "Scss",
151+
"language-shell" "Shell", "language-sql" "SQL", "language-swift" "Swift",
152+
"language-tex" "TeX", "language-toml" "TOML", "language-ts" "TypeScript",
153+
"language-typescript" "TypeScript", "language-vue" "Vue",
154+
"language-yml" "YAML", "language-yaml" "YAML", "language-wgsl" "WGSL" !default;
184155

185156
// Color map of the code highlight
186157
$code-highlight-color-map: (
@@ -256,7 +227,7 @@ $code-highlight-color-map: (
256227
/* GenericStrong */ "gs": #e72d40,
257228
/* GenericSubheading */ "gu": #e72d40,
258229
/* GenericTraceback */ "gt": #e72d40,
259-
/* TextWhitespace */ "w": #bbbbbb,
230+
/* TextWhitespace */ "w": #bbbbbb
260231
) !default;
261232
$code-highlight-color-map-dark: (
262233
/* Parentheses */ "p": #a9a9b3,
@@ -331,24 +302,20 @@ $code-highlight-color-map-dark: (
331302
/* GenericStrong */ "gs": #f16372,
332303
/* GenericSubheading */ "gu": #f16372,
333304
/* GenericTraceback */ "gt": #f16372,
334-
/* TextWhitespace */ "w": #bbbbbb,
305+
/* TextWhitespace */ "w": #bbbbbb
335306
) !default;
336307
// ========== Code ========== //
337308

338309
// ========== Admonition ========== //
339310
// Color list of admonition [$type $color $background-color, ... ]
340-
$admonition-color-list:
341-
"note" #448aff rgba(68, 138, 255, 0.1),
311+
$admonition-color-list: "note" #448aff rgba(68, 138, 255, 0.1),
342312
"abstract" #00b0ff rgba(0, 176, 255, 0.1),
343-
"info" #00b8d4 rgba(83, 211, 230, 0.1),
344-
"tip" #00bfa5 rgba(0, 191, 165, 0.1),
313+
"info" #00b8d4 rgba(83, 211, 230, 0.1), "tip" #00bfa5 rgba(0, 191, 165, 0.1),
345314
"success" #00c853 rgba(0, 200, 83, 0.1),
346315
"question" #64dd17 rgba(100, 221, 23, 0.1),
347316
"warning" #ff9100 rgba(255, 145, 0, 0.1),
348317
"failure" #ff5252 rgba(255, 82, 82, 0.1),
349-
"danger" #ff1744 rgba(68, 138, 255, 0.1),
350-
"bug" #f50057 rgba(255, 23, 68, 0.1),
318+
"danger" #ff1744 rgba(68, 138, 255, 0.1), "bug" #f50057 rgba(255, 23, 68, 0.1),
351319
"example" #651fff rgba(101, 31, 255, 0.1),
352-
"quote" #9e9e9e rgba(159, 159, 159, 0.1),
353-
!default;
320+
"quote" #9e9e9e rgba(159, 159, 159, 0.1) !default;
354321
// ========== Admonition ========== //

0 commit comments

Comments
 (0)