t3-oss / create-t3-app

The best way to start a full-stack, typesafe Next.js app
https://create.t3.gg
MIT License
25.07k stars 1.15k forks source link

feat: improved color scheme for docs #908

Open c-ehrlich opened 1 year ago

c-ehrlich commented 1 year ago

Is your feature request related to a problem? Please describe.

The current docs are fine, but compared to our landing page or the docs of some other projects, they just don't look very good. Beyond (subjective) aesthetics, there are also usability/accessibility issues related to this.

The current color scheme mostly comes from the t3-purple color that we have defined in the Tailwind config. This has a few problems:

Some references of docs that feel high quality to me:

Describe the solution you'd like to see

Keep it T3 but improve readability and aesthetics

It would be nice if it keeps some kind of reference to purple as this has become part of the T3 "brand" but other than that open to anything.

I would love if the dark mode could be similar to our landing page. Maybe a similar gradient background but a bit more dimmed? Maybe the contrast colors come from the "full-stack, typesafe Next.js" text? But feel free to disregard all of this if you come up with something better that still feels T3.

If you propose something for both light and dark mode, they should feel like they belong together.

This is fundamentally about the color scheme, but if your changes need something else (for example different spacing) to look good, that's ok.

Describe alternate solutions

.

Additional information

Please don't put in a bunch of work making a PR, which may not end up getting merged. If you want to make a proposal, I would suggest one or two screenshots (can be based on real code changes or mocked) of your intended changes, that can be commented on by the community.

gabrielelpidio commented 1 year ago

I was playing around with the colors and like the following combination; if it's a path that you think might work, I can make a draft PR and continue with it.

Current:

create t3 gg_en_introduction

Proposed:

Proposal 1: localhost_3000_en_introduction (1)

gabrielelpidio commented 1 year ago

Proposal 2:

localhost_3000_en_introduction (2)

ParasSolanki commented 1 year ago

Also was thinking if we can remove transition from elements when we toggle mode from light to dark and vice versa. Currently some elements change first and some after so imo its not looking good. Maybe something like this?

https://user-images.githubusercontent.com/62164346/205489750-2ee86ee3-e84b-4fc8-932b-483f207c8d90.mp4

I can make a PR if this is good

c-ehrlich commented 1 year ago

Also was thinking if we can remove transition from elements when we toggle mode from light to dark and vice versa. Currently some elements change first and some after so imo its not looking good. Maybe something like this? demo-mode-toggling-video.mp4

I can make a PR if this is good

this might be an issue specific to your OS/browser/etc? here's now it looks for me

https://user-images.githubusercontent.com/8353666/205495761-5f1917fb-091d-403d-b798-63b3a4e2f30d.mov

ParasSolanki commented 1 year ago

Also was thinking if we can remove transition from elements when we toggle mode from light to dark and vice versa. Currently some elements change first and some after so imo its not looking good. Maybe something like this? demo-mode-toggling-video.mp4

I can make a PR if this is good

this might be an issue specific to your OS/browser/etc? here's now it looks for me

https://user-images.githubusercontent.com/8353666/205495761-5f1917fb-091d-403d-b798-63b3a4e2f30d.mov

Yeah it could be

arunavabasucom commented 1 year ago

can i take this issue ??

gabrielelpidio commented 1 year ago

Moving around the accent color led to these. Unfortunately I wasn't able to keep the T3-purple like background due to it being too bright and any accent color on the pink/purple shade wouldn't look good

image

image

c-ehrlich commented 1 year ago

Thanks to everyone who has posted in here so far and sorry for the radio silence. We're currently evaluating whether we should stay on Astro for the site/docs or switch to a more batteries-included solution like Nextra or Docusaurus, so we've been hesitant to move forward on something like this that would likely be quite a bit of work. Will check back in here soon :)