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

Implement dark mode on homepage and tutorial search page #2069

Merged
merged 9 commits into from Feb 27, 2024

Conversation

oyenuga17
Copy link
Contributor

@SaySayo please review.

@oyenuga17
Copy link
Contributor Author

oyenuga17 commented Feb 20, 2024

@sabine i really don't know where tutorial_search.eml appears on the website so I only changed the legacy colours I am familiar with, maybe you can please point me to it. Thank you.

@sabine
Copy link
Collaborator

sabine commented Feb 20, 2024

It is here:

https://ocaml.org/docs/search?q=function

People arrive there from the documentation search bar.

@oyenuga17
Copy link
Contributor Author

oyenuga17 commented Feb 20, 2024

Screenshot 2024-02-20 at 11 37 10

I don't think this tertiary colour looks good on an orange text for the dark mode @sabine please what do you suggest.

@sabine
Copy link
Collaborator

sabine commented Feb 20, 2024

@sabine sabine changed the title Implement dark mode on home page and eml pages (toc and tutorial_search) Implement dark mode on homepage and tutorial search page Feb 20, 2024
@@ -1,6 +1,6 @@
let package_card ~href ~img_path ~name description =
<a href="<%s href %>" target="_blank"
class="bg-legacy-default dark:bg-legacy-dark-default text-legacy-default dark:text-legacy-dark-default p-4 rounded-xl flex md:gap-2 items-center legacy-card-hover">
class="bg-legacy-default dark:bg-legacy-dark-default text-title dark:text-dark-title p-4 rounded-xl flex md:gap-2 items-center legacy-card-hover">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
class="bg-legacy-default dark:bg-legacy-dark-default text-title dark:text-dark-title p-4 rounded-xl flex md:gap-2 items-center legacy-card-hover">
class="bg-white dark:bg-dark-background text-title dark:text-dark-title p-4 rounded-xl flex md:gap-2 items-center legacy-card-hover">

</div>
<div>
<div class="text-base text-legacy-default">
<p class="text-base text-content dark:text-dark-content">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<p class="text-base text-content dark:text-dark-content">
<p class="text-base text-title dark:text-dark-title">

<h2 class="font-bold">OCaml Packages</h2>
<p class="text-lg text-legacy-lighter">
<h2 class="font-bold text-title dark:text-dark-title">OCaml Packages</h2>
<p class="text-lg text-title dark:text-dark-title">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<p class="text-lg text-title dark:text-dark-title">
<p class="text-lg text-content dark:text-dark-content">

@oyenuga17
Copy link
Contributor Author

@sabine I am now ready for a review, thank you.

Copy link
Collaborator

@sabine sabine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sabine sabine merged commit 73bf067 into ocaml:main Feb 27, 2024
3 checks passed
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.

None yet

3 participants