Skip to content

Commit

Permalink
Fix light theme styling on refcard codeblocks (#929)
Browse files Browse the repository at this point in the history
  • Loading branch information
snehankekre authored Jan 11, 2024
1 parent 3a1b70a commit 7d20817
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions components/blocks/refCard.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
@apply text-white;
}

:global(.dark) .Container section div pre {
:global(.dark) .Container section div {
@apply bg-gray-90 text-white;
}

Expand Down Expand Up @@ -147,45 +147,42 @@

.Container section div {
@apply flex flex-col flex-1;
}

.Container section div pre {
@apply m-0 rounded-none p-4 h-full text-sm tracking-tight;
@apply bg-gray-10;
@apply text-gray-80;
}

/* Code block adjustments */
.Container section div pre code :global(.operator) {
.Container section div code :global(.operator) {
@apply text-yellow-90;
}

.Container section div pre code :global(.decorator) {
.Container section div code :global(.decorator) {
@apply text-yellow-100;
}

.Container section div pre code :global(.keyword) {
.Container section div code :global(.keyword) {
@apply text-darkBlue-70;
}

.Container section div pre code :global(.builtin) {
.Container section div code :global(.builtin) {
@apply text-lightBlue-80;
}

.Container section div pre code :global(.string) {
.Container section div code :global(.string) {
@apply text-green-80;
}

.Container section div pre code :global(.number) {
.Container section div code :global(.number) {
@apply text-red-90;
}

.Container section div pre code :global(.function) {
.Container section div code :global(.function) {
@apply text-red-60;
}

.Container section div pre code :global(.comment),
.Container section div pre code :global(.punctuation) {
.Container section div code :global(.comment),
.Container section div code :global(.punctuation) {
@apply text-gray-60;
}

Expand Down

0 comments on commit 7d20817

Please sign in to comment.