Skip to content

Instantly share code, notes, and snippets.

@tuto1902
Last active May 1, 2024 00:59
Show Gist options
  • Save tuto1902/65360f9841da2b3dabe492e718eb207a to your computer and use it in GitHub Desktop.
Save tuto1902/65360f9841da2b3dabe492e718eb207a to your computer and use it in GitHub Desktop.
Shiki Markdown Classes
.shiki .highlight {
@apply bg-gray-600 py-1;
}
.shiki .add {
@apply bg-green-600/50 py-1 rounded-sm;
}
.shiki .del {
@apply bg-red-600/50 py-1 rounded-sm;
}
.shiki.focus .line:not(.focus) {
@apply transition-all blur-[2px]
}
.shiki.focus:hover .line {
@apply transition-all blur-0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment