Soothing pastel theme for Last.fm
Hacker News Notd Theme by gonlad-x
Details
Authorgonlad-x
LicenseMIT
CategoryHN
Created
Updated
Size6.7 kB
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
Userstyle doesn't have notes.Source code
/* ==UserStyle==
@name Hacker News Notd Theme
@namespace https://github.com/nordtheme/nord
@homepageURL https://github.com/nordtheme/nord
@version 1.1.9
@supportURL https://github.com/nordtheme/nord
@description Soothing pastel theme for Last.fm
@author Mth
@license MIT
@preprocessor less
@var select lightFlavor "Light Flavor" ["latte:Latte*", "frappe:Frappé", "macchiato:Macchiato", "mocha:Mocha"]
@var select darkFlavor "Dark Flavor" ["latte:Latte", "frappe:Frappé", "macchiato:Macchiato", "mocha:Mocha*"]
@var select accentColor "Accent" ["rosewater:Rosewater", "flamingo:Flamingo", "pink:Pink", "mauve:Mauve*", "red:Red", "maroon:Maroon", "peach:Peach", "yellow:Yellow", "green:Green", "teal:Teal", "blue:Blue", "sapphire:Sapphire", "sky:Sky", "lavender:Lavender", "subtext0:Gray"]
==/UserStyle== */
@-moz-document domain("news.ycombinator.com") {
@media (prefers-color-scheme: light) {
#catppuccin(@lightFlavor, @accentColor);
}
@media (prefers-color-scheme: dark) {
#catppuccin(@darkFlavor, @accentColor);
}
#catppuccin(@lookup, @accent) {
@rosewater: @catppuccin[@@lookup][@rosewater];
@flamingo: @catppuccin[@@lookup][@flamingo];
@pink: @catppuccin[@@lookup][@pink];
@mauve: @catppuccin[@@lookup][@mauve];
@red: @catppuccin[@@lookup][@red];
@maroon: @catppuccin[@@lookup][@maroon];
@peach: @catppuccin[@@lookup][@peach];
@yellow: @catppuccin[@@lookup][@yellow];
@green: @catppuccin[@@lookup][@green];
@teal: @catppuccin[@@lookup][@teal];
@sky: @catppuccin[@@lookup][@sky];
@sapphire: @catppuccin[@@lookup][@sapphire];
@blue: @catppuccin[@@lookup][@blue];
@lavender: @catppuccin[@@lookup][@lavender];
@text: @catppuccin[@@lookup][@text];
@subtext1: @catppuccin[@@lookup][@subtext1];
@subtext0: @catppuccin[@@lookup][@subtext0];
@overlay2: @catppuccin[@@lookup][@overlay2];
@overlay1: @catppuccin[@@lookup][@overlay1];
@overlay0: @catppuccin[@@lookup][@overlay0];
@surface2: @catppuccin[@@lookup][@surface2];
@surface1: @catppuccin[@@lookup][@surface1];
@surface0: @catppuccin[@@lookup][@surface0];
@base: @catppuccin[@@lookup][@base];
@mantle: @catppuccin[@@lookup][@mantle];
@crust: @catppuccin[@@lookup][@crust];
@accent-color: @catppuccin[@@lookup][@@accent];
@orange: mix(@sky, @sapphire);
[bgcolor="#fafaf0"],
[bgcolor="#f6f6ef"] {
background-color: @base;
}
body {
background-color: @mantle;
}
td {
color: @text;
}
/* Header */
td[bgcolor="#ff6600"] {
background-color: @orange;
.pagetop,
.pagetop a {
color: @crust !important;
}
img[src="y18.svg"] {
@svg: escape(
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="18px" height="18px"><path d="M 5 5 L 5 27 L 27 27 L 27 5 Z M 7 7 L 25 7 L 25 25 L 7 25 Z M 11 10 L 15 17 L 15 22 L 17 22 L 17 17 L 21 10 L 19 10 L 16 15.25 L 13 10 Z" fill="@{crust}"/></svg>'
);
content: url("data:image/svg+xml,@{svg}");
border-color: @crust !important;
}
[color="#ffffff"] {
color: @crust;
}
}
td[bgcolor="#ffffaa"] {
background-color: @yellow;
td {
color: @crust;
}
}
.subtext,
.comhead {
&,
a:link,
a:visited {
color: @overlay2;
}
}
a:link {
color: @blue;
}
.hnmore a:link,
a:visited {
color: @lavender;
}
[color="#3c963c"] {
color: @green;
}
/* Story points */
.score {
color: @subtext0;
}
/* Story ranking number */
.title {
color: @lavender;
}
/* Comment text */
.commtext {
color: @text;
}
/* Comment hyperlinks */
.commtext a:link {
color: @sapphire;
}
/* Comment box */
input,
textarea,
select {
background-color: @mantle;
color: @text;
border-width: 1px;
border-style: solid;
border-color: @surface0;
border-radius: 2px;
}
input {
padding: 2px;
}
/* Poll questions */
td.comment > div > font {
color: @text;
}
/* Text post content */
.toptext {
color: @text;
}
.votearrow {
@svg: escape(
'<svg xmlns="http://www.w3.org/2000/svg" height="32" viewBox="0 0 32 16" width="32"><path d="M2 27 16-2l14 29z" fill="@{subtext0}"/></svg>'
);
background-image: url("data:image/svg+xml,@{svg}");
}
.yclinks {
color: @surface2;
}
b {
color: @text;
}
table[bgcolor="#ff6600"] {
background-color: @orange;
}
}
}
/* prettier-ignore */
@catppuccin: {
@latte: { @rosewater: #d08770; @flamingo: #bf616a; @pink: #b48ead; @mauve: #b48ead; @red: #bf616a; @maroon: #bf616a; @peach: #d08770; @yellow: #ebcb8b; @green: #a3be8c; @teal: #8fbcbb; @sky: #88c0d0; @sapphire: #88c0d0; @blue: #81a1c1; @lavender: #5e81ac; @text: #eceff4; @subtext1: #e5e9f0; @subtext0: #d8dee9; @overlay2: #eceff4; @overlay1: #e5e9f0; @overlay0: #d8dee9; @surface2: #4c566a; @surface1: #4c566a; @surface0: #434c5e; @base: #3b4252; @mantle: #2e3440; @crust: #2e3440; };
@frappe: { @rosewater: #d08770; @flamingo: #bf616a; @pink: #b48ead; @mauve: #b48ead; @red: #bf616a; @maroon: #bf616a; @peach: #d08770; @yellow: #ebcb8b; @green: #a3be8c; @teal: #8fbcbb; @sky: #88c0d0; @sapphire: #88c0d0; @blue: #81a1c1; @lavender: #5e81ac; @text: #eceff4; @subtext1: #e5e9f0; @subtext0: #d8dee9; @overlay2: #eceff4; @overlay1: #e5e9f0; @overlay0: #d8dee9; @surface2: #4c566a; @surface1: #4c566a; @surface0: #434c5e; @base: #3b4252; @mantle: #2e3440; @crust: #2e3440; };
@macchiato: { @rosewater: #d08770; @flamingo: #bf616a; @pink: #b48ead; @mauve: #b48ead; @red: #bf616a; @maroon: #bf616a; @peach: #d08770; @yellow: #ebcb8b; @green: #a3be8c; @teal: #8fbcbb; @sky: #88c0d0; @sapphire: #88c0d0; @blue: #81a1c1; @lavender: #5e81ac; @text: #eceff4; @subtext1: #e5e9f0; @subtext0: #d8dee9; @overlay2: #eceff4; @overlay1: #e5e9f0; @overlay0: #d8dee9; @surface2: #4c566a; @surface1: #4c566a; @surface0: #434c5e; @base: #3b4252; @mantle: #2e3440; @crust: #2e3440; };
@mocha: { @rosewater: #d08770; @flamingo: #bf616a; @pink: #b48ead; @mauve: #b48ead; @red: #bf616a; @maroon: #bf616a; @peach: #d08770; @yellow: #ebcb8b; @green: #a3be8c; @teal: #8fbcbb; @sky: #88c0d0; @sapphire: #88c0d0; @blue: #81a1c1; @lavender: #5e81ac; @text: #eceff4; @subtext1: #e5e9f0; @subtext0: #d8dee9; @overlay2: #eceff4; @overlay1: #e5e9f0; @overlay0: #d8dee9; @surface2: #4c566a; @surface1: #4c566a; @surface0: #434c5e; @base: #3b4252; @mantle: #2e3440; @crust: #2e3440; };
}
// vim:ft=less