Skip to content

Dark Sublime Text Doc by hyrious

Screenshot of Dark Sublime Text Doc

Details

Authorhyrious

LicenseCC0

Categorysublimetext

Created

Updated

Size2.5 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Adds dark theme to Sublime Text docs.

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name           Dark Sublime Text Doc
@namespace      sublime-doc.hyrious.me
@version        1.1.0
@description    Please my eyes
@author         hyrious
==/UserStyle== */
@-moz-document url-prefix("https://www.sublimetext.com/docs/"),
url-prefix("https://www.sublimemerge.com/docs/") {
	@media (prefers-color-scheme: dark) {
		html {
			color-scheme: dark;
		}
		h1 div.background,
		header {
			background: rgba(32, 32, 32, 0.929)
		}
		h1 > span {
			background-color: rgba(255, 255, 255, .05);
			color: #ccc;
		}
		p.available_since span.added {
			background-color: #225a6d;
			color: #eee;
		}
		p.available_since span.version,
		span.updated {
			background-color: #2e7b94;
			color: #eee;
		}
		body {
			background-color: #111;
			color: #ccc;
		}
		h2 {
			color: #999;
			border-bottom-color: #555;
		}
		h3 {
			color: #999;
		}
		aside #callout a {
			color: #ddd;
		}
		span.build {
			background-color: #225a6d;
		}
		div.note {
			background-color: #1a1b1c;
		}
		a {
			color: #73bcd4;
		}
		a:hover {
			color: #add8e6;
		}
		span.keys b {
			background-color: #444;
			border-color: #555;
			box-shadow: 0 0 0 rgb(0 0 0 / 20%), 0 0 0 1px #666 inset;
			color: #eee;
		}
		main {
			background: linear-gradient(180deg, #232323 0%, #222 250px);
		}
		pre,
		dl.properties dd > code,
		dl.attributes dd > code,
		dl.enum.properties dd > code,
		dl.enum.attributes dd > code,
		dl.enum dd dl {
			background-color: #1a1b1c;
		}
		dl.enum dt {
			color: #ddd;
			font-family: monospace;
		}
		tt,
		code,
		span.setting,
		span.command,
		span.key,
		span.property,
		span.attribute,
		span.element,
		span.method,
		span.attribute {
			font-family: monospace;
			background-color: #333;
		}
		dt.sig {
			font-family: monospace;
		}
		div.versions a.ver-sel {
			background-color: #777;
		}
		span.menu,
		span.data-type,
		kbd {
			background-color: #333;
			color: #eee;
		}
		#git_status_bar,
		table.docutils thead th {
			background-color: #2a2b2c;
			color: #eee;
		}
		table.docutils th,
		table.docutils td,
		table.docutils,
		dl.enum > dd {
			border-color: #555;
		}
		.token.punctuation {
			color: #ccc;
		}
		#branch-icon path.stroked {
			stroke: #eee;
		}
		#branch-icon path,
		#branch-icon rect {
			fill: #eee;
		}
		#git_status_bar .changes {
			color: #eee;
			border-color: #ccc;
		}
		footer > section {
			filter: hue-rotate(180deg) invert(.875);
		}
		:target {
			scroll-padding-block-start: 5em;
			outline: -webkit-focus-ring-color auto 1px;
		}
	}
}

Reviews

No reviews yet.