Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to have dark code schema ? #781

Closed
wants to merge 1 commit into from

Conversation

Thorium
Copy link
Member

@Thorium Thorium commented Nov 18, 2022

I was using this project to replace generate.fsx docs for SQLProvider. Worked pretty well, but the default colour schema is a bit "from 70s sofa" theme and I missed the dark more-VS-style-editor theme. So I added this theme file, it's not perfect, but feel free to improve.

I don't know how this project works, but I just run --parameters fsdocs-theme darkcode and even though all the docs says not supported, when I copied the file to my output content directory, behold!

The darkcode, this PR:
image

...versus the default scheme:
image

But as this was initial version, I definitely want to keep the original too, because it might feel comfy for some.

@TheAngryByrd
Copy link

TheAngryByrd commented Mar 3, 2023

So I expanded on your work a bit and extracted css variables for the colors you changed. (I didn't do the Font but that can be an exercise for later).

Example of changing light/dark dynamically

@nojaf nojaf mentioned this pull request Sep 11, 2023
@nojaf
Copy link
Collaborator

nojaf commented Nov 3, 2023

Closing in favour of #861

@nojaf nojaf closed this Nov 3, 2023
@Thorium
Copy link
Member Author

Thorium commented Nov 3, 2023

Ok, does the "modern" support a dark theme, or should I re-work similar PR?

@nojaf
Copy link
Collaborator

nojaf commented Nov 3, 2023

It does out of the box.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants