Skip to content

Light theme #15

Description

@KockaAdmiralac

We extracted all colors as CSS variables here:

:root {
--background: #111;
--secondary-background: #080808;
--text-color: #CCC;
--link-color: #8AD;
--link-hover-color: #ADF;
--border-color: #999;
--junk-text-color: #666;
--selected-line-background-color: #333;
--lang-var-text-color: #c7d;
--lang-var-background-color: black;
--lang-var-border-color: #836;
--lang-text-text-color: #fbe;
--lang-text-background-color: black;
--lang-text-border-color: #969;
--wait-background-color: #555;
--wait-text-color: #fff;
--delay-background-color: #111;
--delay-text-color: #666;
--delay-collapsed-text-color: #aaa;
--close-background-color: #844;
--close-text-color: #fff;
--face-background-color: #252;
--face-text-color: #8c8;
--flag-not-found-text-color: #ec6;
--flag-found-text-color: #fd8;
--flag-found-background-color: black;
--flag-description-text-color: #ca4;
--room-text-color: #8f8;
--room-background-color: black;
--room-description-text-color: #494;
--alarm-link-text-color: #faa;
--alarm-link-text-color--hover: white;
--alarm-link-underline-color: #a66;
--alarm-box-border-color: #888;
--alarm-box-background-color: #222;
--alarm-connection-line-color: #444;
--alarm-background-color--hover: #400;
--alarm-border-color--hover: #f88;
--function-link-text-color: #8f8;
--function-link-underline-color: #292;
--function-link-background-color--hover: #272;
--function-link-text-color--hover: white;
--function-box-border-color: #8f8;
--function-box-background-color: rgba(30, 50, 30, 0.9);
}

The tasks to resolve this are:

  • Make a light color scheme using the above variables, rely on the prefers-color-scheme media query
  • Load the github-light instead of github-dark style when the light mode is preferred
  • Make a button for switching between the modes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions