Skip to content

Instantly share code, notes, and snippets.

@klickreflex
Created September 11, 2024 07:27
Show Gist options
  • Save klickreflex/e4f3c40760c8bc5c26ecb10806d4563b to your computer and use it in GitHub Desktop.
Save klickreflex/e4f3c40760c8bc5c26ecb10806d4563b to your computer and use it in GitHub Desktop.
sublime.app dirty dark mode
@media (min-width: 1024px) {
.lg\:w-84 {
width: auto;
max-width: 270px;
}
html :is(.lg\:max-w-\[min\(44\.375rem\,calc\(100dvw-35\.625rem\)\)\]) {
max-width: none !important;
width: 100%;
flex-wrap: wrap;
row-gap: 0.3125rem;
}
html :is(.lg\:shadow) {
box-shadow: 0px 1px 15px 4px rgba(255, 255, 255, 0.6);
border: inset 1px rgb(0 0 0 / 0.06)
}
html .lg\:shadow-none {
box-shadow: none !important;
border: none !important;
}
}
@media (prefers-color-scheme: dark) {
:root {
filter: invert(1) hue-rotate(180deg);
}
/* reset revert inversion and rotation for images and embeds */
img,
iframe,
video,
.tl-image {
filter: invert() hue-rotate(180deg);
}
body {
background-color: #f0ecf4;
}
/* Override imporant utilities */
.bg-white {
background-color: #f0ecf4 !important;
}
.bg-lime {
background-color: #d4ccdd !important;
}
.bg-lime.text-silver {
color: rgb(0 0 0 / 0.9) !important;
}
.text-silver {
color: rgb(0 0 0 / 0.7) !important
}
html :is(.shadow) {
box-shadow: 0px 1px 15px 4px rgba(255, 255, 255, 0.6);
border: inset 1px rgb(0 0 0 / 0.06);
}
html :is(.shadow-md) {
box-shadow: 0px 1px 12px 4px rgba(255, 255, 255, 0.8);
border: inset 1px rgb(0 0 0 / 0.06)
}
html :is(.hover\:shadow-md:hover) {
box-shadow: 0px 1px 20px 4px rgba(255, 255, 255, 0.9);
border: inset 1px rgb(0 0 0 / 0.15)
}
html :is(.shadow-md) {
box-shadow: 0px 3px 15px 0px rgba(255, 255, 255, .5);
}
nav[aria-label="Global"] a {
background-color: #e6e0ec;
}
/* Hacky icon overrides */
[aria-current="page"] svg {
filter: invert(0) hue-rotate(0);
}
a svg {
filter: invert(0) hue-rotate(180deg);
}
ul a svg {
opacity: 0.4;
}
nav a svg {
color: #000
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment