Skip to content

Fixing dark mode#1214

Open
jen-reeve wants to merge 3 commits intomainfrom
dark-mode
Open

Fixing dark mode#1214
jen-reeve wants to merge 3 commits intomainfrom
dark-mode

Conversation

@jen-reeve
Copy link
Copy Markdown
Contributor

Making dark mode a bit more functional

@jen-reeve jen-reeve requested a review from CallumWalley March 27, 2026 03:50
@jen-reeve jen-reeve self-assigned this Mar 27, 2026
@jen-reeve jen-reeve linked an issue Mar 27, 2026 that may be closed by this pull request
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 27, 2026

Test deployment successful!! (2026-03-27T03:53:42Z)
Preview available at https://callumwalley.github.io/mkdocs-demo-deploy/nesi/support-docs/dark-mode

See all deployed demo sites

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

Ahoy! This patch brings the magic of automatic color schemes to the mkdocs.yml and adds specific styles for the slate theme in theme.css, along with fixing some embarrassing typos in the comments. However, the stylesheet be littered with commented-out lines and strange sorcery like /*-- that need to be cast overboard to keep the ship tidy. If a line serves no purpose, it should walk the plank instead of just being labeled as useless!

Comment on lines +25 to +33
/* --md-accent-bg-color: var(--reannz-orange); */ /* cannot figure what this one does */
/* --md-primary-fg-color--light: var(--reannz-orange); */ /* cannot figure what this one does */
/*--md-primary-bg-color: var(--reannz-orange); */ /* text/icon color for head bar */
/* --md-accent-fg-color--light: var(--reannz-orange); */ /* cannot figure what this one does */
/* --md-default-fg-color: var(--reannz-orange); */ /* main text color, sub H1 headers too */
/* --md-default-bg-color: var(--reannz-orange); */ /* main background color */
/* --md-code-fg-color: var(--reannz-orange); */ /* main color for code text */
/* --md-code-bg-color: var(--reannz-orange); */ /* main color for code background */
/* --md-typeset-color: var(--reannz-orange); */ /* main text color, sub H1 headers too */
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

low

Ahoy! This block be cluttered with commented-out lines, like barnacles on a hull. And that comment on line 27 starts with /*--... what kind of sorcery is that? If these styles are not needed, send 'em to Davy Jones' locker to keep the stylesheet shipshape. A tidy ship is a fast ship!

References
  1. As per the ship's articles, all feedback must be delivered in the tongue of a 17th-century pirate (Line 4). (link)

Comment on lines +40 to +48
/* --md-accent-bg-color: var(--reannz-orange); */ /* cannot figure what this one does */
/* --md-primary-fg-color--light: var(--reannz-orange); */ /* cannot figure what this one does */
/*--md-primary-bg-color: var(--reannz-orange); */ /* text/icon color for head bar */
/* --md-accent-fg-color--light: var(--reannz-orange); */ /* cannot figure what this one does */
/* --md-default-fg-color: var(--reannz-orange); */ /* main text color, sub H1 headers too */
/* --md-default-bg-color: var(--reannz-orange); */ /* main background color */
/* --md-code-fg-color: var(--reannz-orange); */ /* main color for code text */
/* --md-code-bg-color: var(--reannz-orange); */ /* main color for code background */
/* --md-typeset-color: var(--reannz-orange); */ /* main text color, sub H1 headers too */
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

low

Avast ye! More commented-out code clutterin' the deck. And that comment on line 42 starts with /*--... are ye daft? If these styles serve no purpose, cast 'em overboard!

References
  1. As per the ship's articles, all feedback must be delivered in the tongue of a 17th-century pirate (Line 4). (link)


.cards {
color: var(--md-typeset-color);
color: var(--md-typeset-color); /* I don't think this does anything */
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

low

Blast me eyes! The comment says 'I don't think this does anything'. If ye suspect this line is a stowaway with no purpose, don't just label it, make it walk the plank! Remove the line to keep the code clean.

References
  1. As per the ship's articles, all feedback must be delivered in the tongue of a 17th-century pirate (Line 4). (link)

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.

dark mode is a disaster

1 participant