Skip to content

Instantly share code, notes, and snippets.

@mandaris
Created November 16, 2021 21:00
Show Gist options
  • Save mandaris/203f63c80140adb1cd5f5e6d065d7aac to your computer and use it in GitHub Desktop.
Save mandaris/203f63c80140adb1cd5f5e6d065d7aac to your computer and use it in GitHub Desktop.
Nord Colors for Marfa Micro blog theme
/*
* Copyright (c) 2016-present Arctic Ice Studio <development@arcticicestudio.com>
* Copyright (c) 2016-present Sven Greb <development@svengreb.de>
*
* Project: Nord
* Version: 0.2.0
* Repository: https://github.com/arcticicestudio/nord
* License: MIT
* References:
* https://www.w3.org/TR/css-variables
* https://www.w3.org/TR/selectors/#root-pseudo
* https://drafts.csswg.org/css-variables
* https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables
* http://warpspire.com/kss
* https://github.com/kss-node/kss-node
*/
/*
An arctic, north-bluish color palette.
Created for the clean- and minimal flat design pattern to achieve a optimal focus and readability for code syntax
highlighting and UI.
It consists of a total of sixteen, carefully selected, dimmed pastel colors for a eye-comfortable, but yet colorful
ambiance.
Styleguide Nord
*/
:root {
/*
Base component color of "Polar Night".
Used for texts, backgrounds, carets and structuring characters like curly- and square brackets.
Markup:
<div style="background-color:#2e3440; width=60; height=60"></div>
Styleguide Nord - Polar Night
*/
--nord0: #2e3440;
/*
Lighter shade color of the base component color.
Used as a lighter background color for UI elements like status bars.
Markup:
<div style="background-color:#3b4252; width=60; height=60"></div>
Styleguide Nord - Polar Night
*/
--nord1: #3b4252;
/*
Lighter shade color of the base component color.
Used as line highlighting in the editor.
In the UI scope it may be used as selection- and highlight color.
Markup:
<div style="background-color:#434c5e; width=60; height=60"></div>
Styleguide Nord - Polar Night
*/
--nord2: #434c5e;
/*
Lighter shade color of the base component color.
Used for comments, invisibles, indent- and wrap guide marker.
In the UI scope used as pseudoclass color for disabled elements.
Markup:
<div style="background-color:#4c566a; width=60; height=60"></div>
Styleguide Nord - Polar Night
*/
--nord3: #4c566a;
/*
Base component color of "Snow Storm".
Main color for text, variables, constants and attributes.
In the UI scope used as semi-light background depending on the theme shading design.
Markup:
<div style="background-color:#d8dee9; width=60; height=60"></div>
Styleguide Nord - Snow Storm
*/
--nord4: #d8dee9;
/*
Lighter shade color of the base component color.
Used as a lighter background color for UI elements like status bars.
Used as semi-light background depending on the theme shading design.
Markup:
<div style="background-color:#e5e9f0; width=60; height=60"></div>
Styleguide Nord - Snow Storm
*/
--nord5: #e5e9f0;
/*
Lighter shade color of the base component color.
Used for punctuations, carets and structuring characters like curly- and square brackets.
In the UI scope used as background, selection- and highlight color depending on the theme shading design.
Markup:
<div style="background-color:#eceff4; width=60; height=60"></div>
Styleguide Nord - Snow Storm
*/
--nord6: #eceff4;
/*
Bluish core color.
Used for classes, types and documentation tags.
Markup:
<div style="background-color:#8fbcbb; width=60; height=60"></div>
Styleguide Nord - Frost
*/
--nord7: #8fbcbb;
/*
Bluish core accent color.
Represents the accent color of the color palette.
Main color for primary UI elements and methods/functions.
Can be used for
- Markup quotes
- Markup link URLs
Markup:
<div style="background-color:#88c0d0; width=60; height=60"></div>
Styleguide Nord - Frost
*/
--nord8: #88c0d0;
/*
Bluish core color.
Used for language-specific syntactic/reserved support characters and keywords, operators, tags, units and
punctuations like (semi)colons,commas and braces.
Markup:
<div style="background-color:#81a1c1; width=60; height=60"></div>
Styleguide Nord - Frost
*/
--nord9: #81a1c1;
/*
Bluish core color.
Used for markup doctypes, import/include/require statements, pre-processor statements and at-rules (`@`).
Markup:
<div style="background-color:#5e81ac; width=60; height=60"></div>
Styleguide Nord - Frost
*/
--nord10: #5e81ac;
/*
Colorful component color.
Used for errors, git/diff deletion and linter marker.
Markup:
<div style="background-color:#bf616a; width=60; height=60"></div>
Styleguide Nord - Aurora
*/
--nord11: #bf616a;
/*
Colorful component color.
Used for annotations.
Markup:
<div style="background-color:#d08770; width=60; height=60"></div>
Styleguide Nord - Aurora
*/
--nord12: #d08770;
/*
Colorful component color.
Used for escape characters, regular expressions and markup entities.
In the UI scope used for warnings and git/diff renamings.
Markup:
<div style="background-color:#ebcb8b; width=60; height=60"></div>
Styleguide Nord - Aurora
*/
--nord13: #ebcb8b;
/*
Colorful component color.
Main color for strings and attribute values.
In the UI scope used for git/diff additions and success visualizations.
Markup:
<div style="background-color:#a3be8c; width=60; height=60"></div>
Styleguide Nord - Aurora
*/
--nord14: #a3be8c;
/*
Colorful component color.
Used for numbers.
Markup:
<div style="background-color:#b48ead; width=60; height=60"></div>
Styleguide Nord - Aurora
*/
--nord15: #b48ead;
}
body {
background-color: var(--nord0);
color: var(--nord5);
}
a {
color: var(--nord8);
}
a:visited {
color: var(--nord8);
}
a:hover {
color: var(--nord14);
}
a:active {
color: var(--nord12);
}
.microblog_post {
padding: 20px;
margin: 0 10px 20px 10px;
background: var(--nord3);
border-radius: 10px;
}
.microblog_time {
font-size: 0.7em;
padding-top: 10px;
}
h1, h2, h3 {
color: var(--nord4);
}
hr {
color: var(--nord9);
}
/* Nav */
nav.main-nav {
background-color: var(--nord1);
}
nav.main-nav a, #footer a, #post-nav a, p a {
color: var(--nord8);
box-shadow: inset 0 -2px 0 var(--nord14);
transition: all .35s;
transition-timing-function: cubic-bezier(.7, 0, .3, 1);
}
nav.main-nav a:hover, #footer a:hover, #post-nav a:hover, p a:hover {
box-shadow: inset 0 -25px 0 var(--nord14);
color: var(--nord6);
}
nav.main-nav a.cta {
background: var(--nord6);
color: var(--nord0);
padding: 6px 14px;
border: 2px solid var(--nord11);
border-radius: 20px;
box-shadow: inset 0 0 5px var(--nord11);
white-space: nowrap;
}
video {
margin-left: auto;
margin-right: auto;
content: ;
display: block;
}
nav.main-nav a.cta:hover {
background: var(--nord0);
color: var(--nord6);
box-shadow: inset 0 -2em 0 var(--nord0);
}
#post-meta div span.dark {
color: var(--nord6);
padding-top: 10px;
}
#post-meta {
padding-top: 20px;
}
#post-body {
margin-bottom: 10px;
}
hr {
margin: auto;
width: 50%;
}
span.p-name {
color: var(--nord14);
}
b, strong {
color: var(--nord12);
}
del {
text-decoration: var(--nord11);
text-decoration-line: line-through;
text-decoration-style: wavy;
text-decoration-thickness: 2pt;
}
ins {
text-decoration: var(--nord14);
text-decoration-line: underline;
text-decoration-style: double;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment