Last active
September 26, 2023 19:00
-
-
Save viralhysteria/50dc9589f7e7135923d80d2564ae3e52 to your computer and use it in GitHub Desktop.
NextJS Docs - Light Mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ==UserStyle== | |
@name NextJS Docs - Light Mode | |
@namespace github.com/openstyles/stylus | |
@version 1.0.11 | |
@description Please don't standardize (high contrast!?) dark mode! :) | |
@author github.com/viralhysteria | |
==/UserStyle== */ | |
@-moz-document url-prefix("https://nextjs.org/docs") { | |
* { --bgc: #fff; | |
--ds-gray-100: var(--bgc); | |
--ds-gray-200: #eee; | |
--ds-gray-900: #333; | |
--ds-gray-1000: var(--ds-gray-900); | |
--ds-background-100: #eee; | |
--shiki-color-text: #333; | |
--shiki-token-keyword: #f14de3; | |
--shiki-token-function: #4c7bec; | |
--shiki-token-constant: #ec8c48; | |
--shiki-token-string-expression: #48c454; | |
border-color: #bbb!important; | |
} | |
.hover\:text-gray-1000:hover { | |
color: var(--ds-blue-700); | |
} | |
body, | |
[class^="code-block_pre"] { | |
background-color: var(--bgc); | |
color: var(--ds-gray-900); | |
} | |
a:hover { | |
color: #7d44cc | |
} | |
p strong { | |
color: var(--tw-prose-links); | |
font-weight: 500; | |
text-decoration: underline; | |
} | |
[data-state=open], | |
.data-\[state\=open\]\:bg-vercel-100[data-state=open] { | |
background-color: var(--bgc); | |
} | |
[aria-label="Open directory select"] { | |
padding: 0 10px; | |
} | |
[aria-label="Open directory select"]:hover { | |
background: var(--bgc)!important; | |
box-shadow: 0 0 3px rgba(0, 0, 0, 0.3); | |
} | |
[class^="code-block_header"], | |
[class*="langSwitcherTrigger"] { | |
background-color: #d7d7d7; | |
} | |
code, | |
code:not(pre code), | |
[class^="code-block_wrapper__"] { | |
background: var(--bgc)!important; | |
} | |
[class^="code-block_code__"] { | |
background: #f7f7f7; | |
} | |
[data-docs-container] code:not(pre code), | |
[data-docs-table-of-contents] code:not(pre code) { | |
font-size: 12px; | |
font-weight: 500; | |
border-radius: 3px; | |
padding: 2px 5px; | |
margin: 0 3px; | |
} | |
[class^="code-block_pre"] { | |
padding: 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
when i wrote this i didn't realize the nextjs docs had a color toggle at the bottom of the page
they should probably move it
.theme-switcher_root__LFmWp { position: fixed; top: 77px; left: calc(100vw - 10vw); }