Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

AndySong's avatar

Add a dark theme to Laracasts?

Add a dark theme to Laracasts?

0 likes
6 replies
Sam T.'s avatar

I like the blue too but a dark theme with the blue in tact would look cool. It would be nice if Laracast could toggle regular/dark theme the way youtube does. @jefferyway

1 like
Cronix's avatar

I did this with the stylus (inject custom css into websites) plugin for firefox. There were only 3 css rules to really change/override. It doesn't look the prettiest (it could if I spent more time), but the main background is really dark grey and the text is light grey. It pleases my eyes at night.

I also got rid of the right sidebar that takes up 1/3 the page so that text/code doesn't wrap as much and is a lot more readable with formatting, when viewing threads. I find that a lot more valuable than knowing "where" in the thread I currently am viewing.

https://addons.mozilla.org/en-US/firefox/addon/styl-us/

fylzero's avatar

@jlrdw You could like the blue and keep it, just add dark themes as selectable as an option.

A fun trick, since Apple has dark mode... you can actually even use that preference in CSS now.

@media (prefers-color-scheme: dark) {
  .day.dark-scheme   { background:  #333; color: white; }
  .night.dark-scheme { background: black; color:  #ddd; }
}

@media (prefers-color-scheme: light) {
  .day.light-scheme   { background: white; color:  #555; }
  .night.light-scheme { background:  #eee; color: black; }
}

https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme

24 likes

Please or to participate in this conversation.