[Paper] Google Docs Dark Mode

Google Docs Dark Mode - Paper

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

/* ==UserStyle==
@name         [Paper] Google Docs Dark Mode
@version      1.5.0
@namespace    theusaf.org
@license      MIT
@description  Google Docs Dark Mode - Paper
@author       theusaf
==/UserStyle== */

@-moz-document url-prefix("https://docs.google.com/document") {
  :root {
    --gray-50: #dddddd;
    --gray-100: #bdbdbd;
    --gray-150: #646464;
    --gray-200: #555555;
    --gray-300: #444444;
    --gray-400: #313131;
    --gray-500: #1C1C1C;
    --gray-600: #171717;
    --white-100: #f5f5f5;
    --white-200: #ededed;
    --white-300: #e3e3e3;
  }

  /* background/text */
  .kix-zoomdocumentplugin-outer,
  .kix-appview-editor > div {
    background-color: var(--gray-100) !important;
    filter: invert(1);
  }

  .kix-appview-clipped-ui-elements-container {
    filter: invert(1);
  }

  /* images */
  .kix-lineview-text-block image,
  .kix-lineview-text-block img,
  #link-bubble-thumbnail-image,
  .docs-link-bubble-favicon img {
    filter: invert(1);
  }

  /* grammarly support */
  [data-grammarly-shadow-root="true"] {
    mix-blend-mode: normal !important;
  }
}