Skip to content

Commit

Permalink
refactor: replace SCSS stylesheets with equivalent Quarto extension
Browse files Browse the repository at this point in the history
  • Loading branch information
njlyon0 committed Aug 13, 2024
1 parent 1d4d4f2 commit 41109a6
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 5 deletions.
10 changes: 10 additions & 0 deletions _extensions/njlyon0/lyon_theme/_extension.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
title: Lyon's Quarto Stylesheet
author: Nick J Lyon
version: 1.1.0
quarto-required: ">=1.2.0"
contributes:
formats:
revealjs:
theme:
light: lyon_light.scss
dark: lyon_dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,14 @@ $navbar-hl: $blue-3; // highlight color when on a page
$body-bg: $gray-4; // page background
$body-color: $cream; // page text
$footer-bg: $blue-3; // footer
$footer-text: $cream; // footer text
$link-color: $blue-2; // hyperlinks

// Inline code
$code-bg: $gray-3; // inline code background color
$code-color: $cream; // inline code text color

// Code blocks
$code-block-bg: $blue-3; // code block background color
$code-block-bg: $blue-4; // code block background color

/*-- scss:rules --*/

Expand All @@ -57,3 +56,9 @@ pre code:not(.sourceCode) { background-color: $gray-0; }
--bs-dropdown-link-hover-color: #191919;
--bs-dropdown-link-hover-bg: #077DC2;
}

// Code language semantic text colors
.r { color: $orange-3; }
.py { color: $blue-3; }
.sql { color: $blue-4; }
.cli {color: $orange-4; }
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ $navbar-hl: $blue-3; // highlight color when on a page
$body-bg: $cream; // page background
$body-color: $black; // page text
$footer-bg: $blue-2; // footer
$footer-text: $cream; // footer text
$link-color: $blue-2; // hyperlinks

// Inline code
Expand All @@ -57,3 +56,9 @@ pre code:not(.sourceCode) { background-color: $blue-1; }
--bs-dropdown-link-hover-color: #F4F3EE;
--bs-dropdown-link-hover-bg: #01BAEF;
}

// Code language semantic text colors
.r { color: $orange-3; }
.py { color: $blue-3; }
.sql { color: $blue-4; }
.cli {color: $orange-4; }
4 changes: 2 additions & 2 deletions _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ format:
code-line-numbers: false
code-copy: hover
theme:
light: lyonlight.scss
dark: lyondark.scss
light: _extensions/njlyon0/lyon_theme/lyon_light.scss
dark: _extensions/njlyon0/lyon_theme/lyon_dark.scss
mainfont: Open Sans
toc: true
link-external-newwindow: true
Expand Down

0 comments on commit 41109a6

Please sign in to comment.