transfer.sh icon indicating copy to clipboard operation
transfer.sh copied to clipboard

Dark mode

Open ramonsmits opened this issue 10 months ago โ€ข 5 comments

I searched the code base for text listed on the front page like:

"Easy file sharing from the command line"

and

"Preview your files in the browser!"

but no hits... which is a bit surprising.

I want to modify the CSS coloring a bit to also support dark mode:

These are some of my current overrides

.body
{
	background-color:black;
	color:silver;
}
#features{
	background-color: #222
}
#reviews{
	background-color: #222
}

Where/how is this located in the repo so I can create a PR for it?

ramonsmits avatar Feb 17 '25 21:02 ramonsmits

Where/how is this located in the repo so I can create a PR for it?

the frontend is in a separate repo: https://github.com/dutchcoders/transfer.sh-web

you can develop locally (after generating the static content as describe the repo above) pointing to the static file with --web-path/ยดWEB_PATH``

if you are familiar with the stack in the other repo and you feel liking polishing stuff around your contribution would be more than welcomed :D

paolafrancesca avatar Feb 18 '25 08:02 paolafrancesca

beware that i won't accept a default/new frontend change with a dark mode. if you want to make the contribution part of the upstream code you'll have to add a light/dark mode switch ๐Ÿ™

paolafrancesca avatar Feb 18 '25 08:02 paolafrancesca

https://github.com/dutchcoders/transfer.sh/issues/303#issuecomment-618833984

this comment might be useful for you to develop the frontend

no breaking changes in the name of the go template placeholders will be admitted. beware :)

paolafrancesca avatar Feb 18 '25 08:02 paolafrancesca

frontend is in a separate repo: https://github.com/dutchcoders/transfer.sh-web

Doh.. hence why I could not find any css ๐Ÿ˜…

ramonsmits avatar Feb 18 '25 22:02 ramonsmits

if you want to make the contribution part of the upstream code you'll have to add a light/dark mode switch ๐Ÿ™

That would make sense. Ill check the frontend code. If it's just some css adding at minimum a dual light/dark mode should not be an issue. I'll see how I can contribute.

ramonsmits avatar Feb 18 '25 22:02 ramonsmits