Skip to content

Commit

Permalink
Merge pull request #77 from wp-graphql/fix/dark-mode-styles
Browse files Browse the repository at this point in the history
Add white links with underlines in dark mode
  • Loading branch information
jasonbahl authored Sep 20, 2024
2 parents 9a4309a + c6a1b0b commit 22e8078
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions styles/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,13 @@ h1, h2, h3, h4, h5, h6 {
font-weight: 500 !important;
}
}

/* White links with underline in dark mode */
[data-theme="dark"] .prose :where(a):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
@apply text-white;
@apply border-b-2 border-white;
}

[data-theme="dark"] .prose :where(strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
@apply text-gray-300;
}

1 comment on commit 22e8078

@headless-platform-by-wp-engine

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check out the recent updates to your Headless WordPress environment:

App Environment URL Build
acf.wpgraphql.com main https://hb…wered.com ✅ (logs)

Learn more about building on Headless WordPress in our documentation.

Please sign in to comment.