Skip to content

Use forwards theme #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ website:
format:
html:
theme:
light: cosmo
dark: [darkly, theme-dark.scss] #cosmo
light: forwards-light.scss
dark: forwards-dark.scss
highlight-style: forwards.theme
css: styles.css
toc: true
email-obfuscation: references
Expand Down
79 changes: 79 additions & 0 deletions forwards-dark.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
/*-- scss:defaults --*/
// Forwards colours
$darkpurple: #200F48;
$darkpurple30: #bcb7c8;
$verydarkpurple: #0C0721;

$plum: #A5317D;
$pink: #D2436F;
$red: #E95A61;
$orange: #FD9567;
$peach: #FDC88D;
$yellow: #FEE4A7;

$blue: #3143A5;
$green: #31A559;
$purple: #5931A5;

$blue_dark: #222f73;
$green_dark: #22733e;
$red_dark: #a33f44;
$orange_dark: #b16848;
$peach_dark: #b18c63;
$darkpurple_light: $darkpurple30;

$gray: #58595B;
$gray_dark: #383838; // this is text colour used on main Warwick site
$black: #000000;
$gray20: #cccccc; // % of black
$gray10: #e6e6e6; // % of black
$gray05: #f2f2f2; // % of black
$white: #ffffff;

$primary: $pink !default;

$body-color: $white;
$body-bg: $verydarkpurple;
$link-color: $pink;
$code-color: $orange;
$navbar-bg: $darkpurple;
$navbar-fg: $yellow;

// Code blocks
$code-block-bg: $white;

// Callouts
$callout-color-note: $blue;
$callout-color-caution: $peach;
$callout-color-tip: $green;
$callout-color-warning: $orange;
$callout-color-important: $red;

div.callout.callout-style-default.callout-note.callout-titled > div.callout-header {
background-color: $blue_dark !important;
}

div.callout.callout-style-default.callout-warning.callout-titled > div.callout-header {
background-color: $orange_dark !important;
}

div.callout.callout-style-default.callout-important.callout-titled > div.callout-header {
background-color: $red_dark !important;
}

div.callout.callout-style-default.callout-tip.callout-titled > div.callout-header {
background-color: $green_dark !important;
}

div.callout.callout-style-default.callout-caution.callout-titled > div.callout-header {
background-color: $peach_dark !important;
}

// white icons in inverse mode
.callout-icon::before {
filter: brightness(0) invert(1);
}

.callout-title p {
color: $white !important;
}
130 changes: 130 additions & 0 deletions forwards-light.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
/*-- scss:defaults --*/

@import url("https://fonts.googleapis.com/css?family=Atkinson+Hyperlegible+Next:400,700&display=swap");
@import url("https://fonts.googleapis.com/css?family=Atkinson+Hyperlegible+Mono");

// fonts
$font-family-sans-serif: "Atkinson Hyperlegible Next", Helvetica, sans-serif !default;
$font-family-monospace: "Atkinson Hyperlegible Mono", monospace;
$headings-font-family: "Atkinson Hyperlegible Next", Helvetica, sans-serif !default;

// Forwards colours
$darkpurple: #200F48;
$darkpurple30: #bcb7c8;

$plum: #A5317D;
$pink: #D2436F;
$red: #E95A61;
$orange: #FD9567;
$peach: #FDC88D;
$yellow: #FEE4A7;

$blue: #3143A5;
$green: #31A559;
$purple: #5931A5;

$blue_dark: #222f73;
$green_dark: #22733e;
$red_dark: #a33f44;
$orange_dark: #b16848;
$peach_dark: #b18c63;
$darkpurple_light: $darkpurple30;

$gray: #58595B;
$gray_dark: #383838; // this is text colour used on main Warwick site
$black: #000000;
$gray20: #cccccc; // % of black
$gray10: #e6e6e6; // % of black
$gray05: #f2f2f2; // % of black
$white: #ffffff;

$primary: $darkpurple !default;

$body-color: $gray_dark;
$link-color: $pink;
$code-color: $plum;
$navbar-bg: $primary;
$navbar-fg: $yellow;

$callout-color-note: $blue;
$callout-color-caution: $peach;
$callout-color-tip: $green;
$callout-color-warning: $orange;
$callout-color-important: $red;

/*-- scss:rules --*/

// color classes
.primary {
color: $primary;
}

#quarto-header > nav > div > div.navbar-brand-container.mx-auto > a:hover {
color: $orange;
}

#navbarCollapse > ul > li > a:hover {
color: $orange;
}

#navbarCollapse > ul > li > a.active {
color: $orange;
}

// code
pre.sourceCode {
border-radius: 0;
border-left-color: $gray;
}

h1, h2 {
//text-transform: uppercase;
font-weight: 700;
}

#quarto-header {
//text-transform: uppercase;
font-family: $headings-font-family;
font-weight: 700;
}

// iframes for slides embedded in talks pages
iframe.slide-deck {
border: 3px solid $gray;
width: 100%;
}

.ar4x3 {
aspect-ratio: 4 / 3;
}

.ar3x2 {
aspect-ratio: 3 / 2;
}

.ar16x9 {
aspect-ratio: 16 / 9;
}

// icon-links
.icon-link {
background-color: transparent;
color: $primary;
border: 2px solid !important;
border-color: $primary;
padding: 5px .4rem 5px .4rem !important;
margin-top: 4px;
margin-right: 8px;
margin-bottom: 4px;
border-radius: 5px;
display: inline-block;
text-decoration: none;
}

.icon-link:hover{
background-color: $primary;
border-color: $primary;
color: $body-bg;
text-decoration: none;
}

Loading