Skip to content

OptiDark - OptiFine Dark Theme by pabli

Screenshot of OptiDark - OptiFine Dark Theme

Details

Authorpabli

LicenseMIT

Categoryoptifine

Created

Updated

Size8.9 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Notes

I made this style a long time ago but never uploaded lol. I don't even use optifine anymore. Sodium is better 👍

Source code

/* ==UserStyle==
@name           OptiDark
@namespace      https://github.com/pabli24
@version        1.0.0
@description    Dark Theme for optifine.net
@author         Pabli (https://github.com/pabli24)
@homepageURL    https://userstyles.world/style/7035/optidark-optifine-dark-theme
@supportURL     https://userstyles.world/style/7035/optidark-optifine-dark-theme
@license        MIT
@preprocessor   stylus
@var            checkbox  navbar    "Floating navbar"          1
@var            color     t1        "Text"                     #fff
@var            color     link      "Link"                     #fff888
@var            color     bg        "Background"               #111
@var            select    bgimg     "Background image"         ["coal_block", "black_wool", "blackstone", "deepslate", "custom"]
@var            text      custom2   "if custom"                ''https://i.imgur.com/Gzji5Cb.jpg''
@var            select    bga       "Background attachment"    ["fixed", "scroll"]
@var            color     t2        "Header text"              #fff
@var            color     hbg       "Header gradient top"      #832c2bff
@var            color     hbg2      "Header gradient bottom"   #5c1d1cff
@var            color     btnhover  "Button hover"             #441616ff
@var            number    widthsite "Width Site (px)"          ['px', 900, 850, null, 1]
@var            checkbox  scrollbar "Scroll Bar"               1
@var            range     fsize     "Font size"                ['px', 16, 5, 30, 1]
==/UserStyle== */

@-moz-document domain("optifine.net") {
:root {color-scheme: dark}
.footerIcon::after {
	content: ("OptiDark by Pabli v1.0.0");
}
// https://www.cdnfonts.com/minecraftia.font
@font-face {
	font-family: 'Minecraftia';
	font-style: normal;
	font-weight: 400;
	src: local('Minecraftia'), url('https://fonts.cdnfonts.com/s/31977/Minecraftia.woff') format('woff');
}
.headerTitle {
	font-family: 'Minecraftia', sans-serif;
	padding-right: 0;
}
.headerTitle A {
	text-shadow: 0px 6px #441616ff;
	color: #e29f00ff;
}

//
if navbar  {
	.header {
		position: fixed;
		width: widthsite;
	}
	.content {
		display: block;
		margin: unset;
		margin-top: 70px;
	}
}

.headerNav {
	background-color: transparent;
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
}
.header,
.footer {
	background-color: hbg;
	background-image: linear-gradient(hbg, hbg2);
}
.header {
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	align-content: center;
	justify-content: space-between;
}
.headerNav A,
.footerText A {
	color: t2;
}
.headerNav A:hover,
.footerText A:hover,
.downloadLineMain:first-child .colDownload A:hover, .downloadButton A:hover {
	background-color: btnhover;
	color: t2;
}
.downloadLineMain:first-child .colDownload A, .downloadButton A {
	color: t2;
	background-color: hbg;
	border: 1px solid hbg;
}
.downloadLine .colDownload A, .downloadButton A {
	border: 1px solid hbg;
}
.downloadLineMain:first-child,
.downloadLinePreview {
	background-color: rgba(255, 255, 255, .1);
}

.tableRoot {
	background-color: bg;
	box-shadow: 0px 0px 20px #000;
	width: widthsite;
}
.downloadLine .colFile {
	width: 270px + widthsite - 850px;
}
body {
	color: t1;
	background-image: bgimg;
	background-attachment: bga;
	background-color: bg;
	font-size: fsize;
	margin: 0 0 40px 0;
}
h2 {
	color: t1;
}
a {
	color: link;
	text-decoration: none;
}
.content a:hover:not(.colDownload A) {
	text-decoration: underline;
}

// background images
// https://dopiaza.org/tools/datauri/index.php
black_wool = url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAIAAAAlC+aJAAAACXBIWXMAAAsSAAALEgHS3X78AAADNElEQVRoge2aTW/bMAyGK9tx4s9k/S7WAduhh/3/XzWsaWMnceI4dnYa+QSQz64AvSdapgUTIqWXpExe3t78RxiEIp/PZ5GNMSLP57HKscrb3d6qnyQLkQOMb6pax8NA5HSh+kRzPIo8DBf91qrtELwBUyNaxHN5COGL5cO99YOmaUQehkEnijR+LtDf71W/h/5sNhOZMVAjlvg/s0j1w1jHnV8Bb8DUiLivc//+u16LzP17WZQid+dOJ4oijOsZUuSZyGFoP2eI29XKqr/b7URm7Dm/At6A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A9IAbgFuZmsBxdK9O+aA6LlB1a9Q+rIfANIAbgFufgF5+RZ/683DtQAAAABJRU5ErkJggg==")
custom = url(custom2)
//input
input, select {
	background: #1c1c1c;
	border-color: #000;
	color: t1;
}
input[type="submit"] {
	cursor: pointer;
}

//footer
.footer {
	padding-left: 1.3em;
	padding-right: 1.3em;
	padding-top: 1.5em;
	padding-bottom: 1.5em;
}
.footerIcon {
	float: left;
}
// https://imgur.com/a/GNlRiKJ
imgsize = 20px
img[alt="Discord"] {
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	background: url("https://i.imgur.com/9pLAbmQ.png") no-repeat;
	background-size: imgsize;
	width: imgsize;
	height: imgsize;
	padding-left: imgsize;
}
img[alt="Twitter"] {
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	background: url("https://i.imgur.com/hfkR9nd.png") no-repeat;
	background-size: imgsize;
	width: imgsize;
	height: imgsize;
	padding-left: imgsize;
}
img[alt="Reddit"] {
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	background: url("https://i.imgur.com/znuV9IB.png") no-repeat;
	background-size: imgsize;
	width: imgsize;
	height: imgsize;
	padding-left: imgsize;
}
if scrollbar {
	//chrome
	::-webkit-scrollbar {
		width: 8px;
		background-color: rgba(0, 0, 0, 0);
	} 
	::-webkit-scrollbar-thumb {
		background-color: #444;
	}
	::-webkit-scrollbar-thumb:hover {
		background: #777 !important;
	}
	::-webkit-scrollbar-corner {
		background: #444;
	}
	//firefox
	html {
		scrollbar-color: #444 bg !important;
		scrollbar-width: thin !important;
	}
}
}

Reviews

No reviews yet.