Skip to content

owickstrom.github.io/the-monospace-web/ by myfonj

Details

Authormyfonj

LicenseCC0

Categoryowickstrom.github

Created

Updated

Size2.8 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Dimmed and JetBrains adjusted

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name           owickstrom.github.io/the-monospace-web/
@namespace      github.com/openstyles/stylus
@version        1.1.1
@description    Dimmed and JetBrains adjusted
@author         myf
@license        CC0
==/UserStyle== */
@-moz-document url-prefix("https://owickstrom.github.io/the-monospace-web/") {
:root {
 /*

  Character Variants settings for JetBrains Mono

  (All are off by default, left them here all for reference.)
  H/T https://wakamaifondue.com/ for the inspect!
  Officially documented at:
  https://github.com/JetBrains/JetBrainsMono/wiki/OpenType-features
  This set is pretty much like "ss01" but with "cv07" on
   or like "ss02" but with "cv05" off
  "id" state `affected glyphs` effect when enabled (my pref/ note)
  */
 font-feature-settings:
 "calt" 0, /* Contextual alternates a.k.a. "programming ligatures" (off/ better off) */
           /* 0 obliterates all of them including spacing adjustments of 1:2 and block comments */
 "ss19" 1, /* `=== !==` ligatures "normal": with gaps (on/ when "calt" 1) */
 "zero" 0, /* `0` slashed, instead of dotted */
 "cv01" 1, /* `l` flat bottom bar serif instead of curve (on!!)*/
 "cv02" 0, /* `t` bottom curve instead of hook */
 "cv03" 0, /* `g` double-storey (/ sadly not so nice) */
 "cv04" 0, /* `j` rounded bottom hook */
 "cv05" 0, /* `l` rounded bottom hook */
 "cv06" 1, /* `m` smaller middle apex (on!) */
 "cv07" 1, /* `W` smaller middle apex (on!!) */
 "cv08" 0, /* `K Ж` straight arms without horizontal joint */
 "cv09" 1, /* `f` flat bottom bar serif (on!!) */
 "cv10" 1, /* `r` flat bottom bar serif (on!!) */
 "cv11" 1, /* `y λ` rounded tails (on!!) */
 "cv12" 1, /* `u` spur (on!) */
           /* Triskaidekaphobia?? */
 "cv14" 1, /* `¢ $` broken strikes (on?) */
 "cv15" 0, /* `&` like 'ET' (/ probably too much)*/
 "cv16" 1, /* `Q` curved tail' */
 "cv17" 0, /* `f` rounded arm */
 "cv18" 1, /* `2,6,9 curved diagonals (on/ looks nice, but might be harder to read) */
 "cv19" 0, /* `8` symmetrical halves */
 "cv20" 1, /* `5` rounded bow, no horizontal midline (on) */
 "cv99" 0, /* `С с` inverted‽‽ (/ it's a cyrillic "es") */
 "liga" 0, /* has no effet, see "calt" and "ss19" */
 "ss00" 0; /* // Just a terminating bogus without comma. */
}

/*
Dimmer contrast, softer borders
*/ 
@media (prefers-color-scheme: dark) {
 :root {
 --text-color: #ccc;
 --text-color-alt: #999;
 --text-color-emphasize: #fff;
 --background-color: #111;
 --background-color-alt: #222;
 --border-color: color-mix(in oklab,
  currentcolor,
  var(--background-color));
 }
}


h1, h2, h3, h4, h5, h6,
th, dt, label,
strong, em, b, i {
 color: var(--text-color-emphasize, var(--text-color));
}
*:not(:focus):not(:any-link:hover) {
 &,
 &::before,
 &::after {
  border-color: var(--border-color);
  text-decoration-color: var(--border-color) !important;
 }
}

}

Reviews

No reviews yet.