Skip to content

Commit a2935c7

Browse files
committed
Enhance CodeViewer component styles for syntax highlighting. Added custom styles for parameters, functions, titles, and punctuation to improve code readability and visual appeal.
1 parent 7582397 commit a2935c7

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/components/CodeViewer.vue

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,25 @@ code {
7878
white-space: pre-wrap;
7979
word-wrap: break-word;
8080
}
81+
82+
:deep(.hljs-params) {
83+
color:#24292e;
84+
font-weight: 500;
85+
}
86+
87+
:deep(.hljs-function) {
88+
color: #6f42c1;
89+
font-weight: bold;
90+
}
91+
92+
/* :deep(.hljs-title), */
93+
/* :deep(.hljs-title.function_), */
94+
:deep(.hljs-title) {
95+
color: #0550ae !important;
96+
font-weight: bold;
97+
}
98+
99+
:deep(.hljs-punctuation) {
100+
color: #24292e;
101+
}
81102
</style>

0 commit comments

Comments
 (0)