sachinraja / trpc-playground

playground for running tRPC queries in the browser
MIT License
294 stars 22 forks source link

Customize theme #49

Closed XavierLeTohic closed 1 year ago

XavierLeTohic commented 1 year ago

Is there or will be a way to customize the code editor's theme? In the current version I can't see what I'm selecting because the highlight color is the same as the background. I'm on Chrome on Mac.

Let me know if you need help on that I could open a PR

MatsDK commented 1 year ago

Thanks for reporting this issue, I found a workaround that makes the highlighted text visible. Adding the following styles to a global CSS file worked for me.

.cm-activeLine {
  background-color: rgba(var(--secondary-color-triplet), .5)  !important;
}