feat: add syntax highlighting

This commit is contained in:
kwaroran
2024-05-26 08:15:45 +09:00
parent 9e9f23b209
commit 93cba968b5
12 changed files with 402 additions and 58 deletions

View File

@@ -190,4 +190,29 @@ html, body{
.x-risu-risu-comment{
@apply border border-darkborderc bg-darkbg text-textcolor rounded-md shadow-sm focus:outline-none transition-colors duration-200 px-4 py-2 min-w-0
}
::highlight(cbsnest3) {
@apply text-amber-500;
}
::highlight(cbsnest2) {
@apply text-green-500;
}
::highlight(cbsnest1) {
@apply text-blue-500;
}
::highlight(cbsnest0) {
@apply text-purple-500;
}
::highlight(cbsnest4) {
@apply text-pink-500;
}
::highlight(decorator) {
color: var(--risu-theme-draculared);
}
::highlight(deprecated) {
color: var(--risu-theme-textcolor2);
text-decoration: line-through;
}