Dark Reader
Metadata
Section titled “Metadata”| Repo | https://github.com/firefox-extensions-declarative/darkreader-declarative |
| Extension ID | addon@darkreader.org |
Building
Section titled “Building”Run npm install and then npm run build:firefox. The XPI is located at build/release/darkreader-firefox.xpi.
Custom theme.
brightness
Section titled “brightness”How bright to make things (0 to 100+).
Type: number
Default: 100
contrast
Section titled “contrast”How much contrast to add (0 - 100+).
Type: number
Default: 100
grayscale
Section titled “grayscale”How much grayscale to add (0 - 100).
Type: number
Default: 0
How much sepia to add (0 - 100).
Type: number
Default: 0
useFont
Section titled “useFont”Whether to use the custom font.
Type: boolean
Default: false
fontFamily
Section titled “fontFamily”The font family to use.
Type: string
textStroke
Section titled “textStroke”Makes text look bolder (0 - 1 pixels).
Type: number
Default: 0
engine
Section titled “engine”The theme engine to use.
Type: "cssFilter" | "svgFilter" | "staticTheme" | "dynamicTheme"
Default: "dynamicTheme"
stylesheet
Section titled “stylesheet”Additional CSS to add.
Type: string
Default: ""
darkSchemeBackgroundColor
Section titled “darkSchemeBackgroundColor”Background color to use for dark mode.
Type: string
Default: "#181a1b"
darkSchemeTextColor
Section titled “darkSchemeTextColor”Text color to use for dark mode.
Type: string
Default: "#e8e6e3"
lightSchemeBackgroundColor
Section titled “lightSchemeBackgroundColor”Background color to use for light mode.
Type: string
Default: "#dcdad7"
lightSchemeTextColor
Section titled “lightSchemeTextColor”Text color to use for light mode.
Type: string
Default: "#181a1b"
scrollbarColor
Section titled “scrollbarColor”Scrollbar color.
Type: string
Default: "auto"
selectionColor
Section titled “selectionColor”Selection color.
Type: string
Default: "auto"
styleSystemControls
Section titled “styleSystemControls”Specifies if it has to style system controls.
Type: boolean
Default: true
darkColorScheme
Section titled “darkColorScheme”I don’t know. Just put default, that works.
Type: string
lightColorScheme
Section titled “lightColorScheme”I don’t know. Just put default, that works.
Type: string
CustomSiteConfig
Section titled “CustomSiteConfig”Custom site configuration.
builtIn
Section titled “builtIn”Should be false.
Type: boolean
URLs to enable the theme for.
Type: Array<string>
The theme to apply to the site.
Type: Theme
ThemePreset
Section titled “ThemePreset”Theme preset.
ID of the preset.
Type: string
Name of the preset.
Type: string
The theme to apply to the site.
Type: Theme
URLs to enable the theme preset for.
Type: Array<string>
Options
Section titled “Options”automation.enabled
Section titled “automation.enabled”Whether to enable Automation.
Type: boolean
Default: false
automation.behavior
Section titled “automation.behavior”The automation behavior. OnOff means automation will enable/disable Dark Reader, while Scheme means it will change between Light Reader and Dark Reader.
Type: "OnOff" | "Scheme"
Default: OnOff
automation.mode
Section titled “automation.mode”The automation mode.
Type: "" | "time" | "system" | "location"
Default: ""
changeBrowserTheme
Section titled “changeBrowserTheme”Whether to change the browser theme to sync with the Dark Reader theme.
Type: boolean
Default: false
customThemes
Section titled “customThemes”Custom site configurations.
Type: Array<CustomSiteConfig>
Default: []
detectDarkTheme
Section titled “detectDarkTheme”Whether to auto-detect dark themes and disable Dark Reader.
Type: boolean
Default: true
disabledFor
Section titled “disabledFor”List of custom sites to disable Dark Reader on.
Type: Array<string>
Default: []
enableContextMenus
Section titled “enableContextMenus”Whether to enable the Dark Reader context menus.
Type: boolean
Default: true
enableForPDF
Section titled “enableForPDF”Whether to enable Dark Reader on PDF files.
Type: boolean
Default: true
enableForProtectedPages
Section titled “enableForProtectedPages”Whether to enable Dark Reader on browser-protected pages.
Type: boolean
Default: false
enabled
Section titled “enabled”Whether to enable Dark Reader.
Type: boolean
Default: true
enabledByDefault
Section titled “enabledByDefault”Whether to enable Dark Reader by default for sites.
Type: boolean
Default: true
enabledFor
Section titled “enabledFor”Sites to enable Dark Reader on.
Type: Array<string>
Default: []
fetchNews
Section titled “fetchNews”Whether to fetch news for Dark Reader.
Type: boolean
Default: true
location.latitude
Section titled “location.latitude”The latitude (for automation).
Type: number | null
Default: null
location.longitude
Section titled “location.longitude”The longitude (for automation).
Type: number | null
Default: null
presets
Section titled “presets”Theme presets.
Type: Array<ThemePreset>
Default: []
previewNewDesign
Section titled “previewNewDesign”Preview the new Dark Reader design.
Type: boolean
Default: false
previewNewestDesign
Section titled “previewNewestDesign”Preview the newest Dark Reader design.
Type: boolean
Default: false
syncSettings
Section titled “syncSettings”Whether to sync Dark Reader settings.
Type: boolean
Default: false
syncSitesFixes
Section titled “syncSitesFixes”Whether to sync Dark Reader site fixes.
Type: boolean
Default: false
The Dark Reader theme to use.
Type: Theme
Default: DEFAULT_THEME
time.activation
Section titled “time.activation”Activation time for automation.
Type: string
Default: "18:00"
time.deactivation
Section titled “time.deactivation”Deactivation time for automation.
Type: string
Default: "9:00"