Skip to content

Commit

Permalink
feat(ui): improve blog/til content style
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusfg7 committed Nov 30, 2023
1 parent f2ddbb2 commit 70edbd9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions src/styles/base.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
@tailwind base;

@layer base {
* {
@apply selection:bg-neutral-1000 selection:text-neutral-50 dark:selection:bg-neutral-50 dark:selection:text-neutral-1000;
}

body {
@apply bg-neutral-50 dark:bg-neutral-1000;
@apply font-sans text-neutral-900 dark:text-neutral-300;
@apply selection:bg-neutral-1000 selection:text-neutral-50 dark:selection:bg-neutral-50 dark:selection:text-neutral-1000;
}

/* Syntax Highlighting */
Expand Down
4 changes: 2 additions & 2 deletions src/styles/components.css
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@

div[data-rehype-pretty-code-fragment=''] {
@apply overflow-hidden rounded-lg;
@apply bg-black/5 dark:bg-white/5;
@apply bg-[rgb(240,240,240)] dark:bg-[rgb(15,15,15)];

pre {
@apply overflow-auto;
Expand All @@ -200,7 +200,7 @@
}

&.highlighted-word {
@apply bg-gray-500/10;
@apply rounded-lg bg-gray-500/10 p-1 leading-none;
}
}
}
Expand Down

0 comments on commit 70edbd9

Please sign in to comment.