Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
lwjohnst86 committed Aug 16, 2023
2 parents 4e8134a + 52d6f65 commit f8b6e83
Show file tree
Hide file tree
Showing 7 changed files with 496 additions and 5 deletions.
60 changes: 60 additions & 0 deletions _extensions/rostools/r3-theme/_extension.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
title: r3-theme
author: Luke W. Johnston
version: 1.0.2
quarto-required: ">=1.2.0"
contributes:
format:
html:
df-print: tibble
code-overflow: scroll
from: markdown+emoji
code-link: true
theme:
- litera
- custom-site.scss

revealjs:
embed-resources: true
from: markdown+emoji
theme:
- simple
- custom-slides.scss
menu: true
progress: true
logo: favicon.ico

project:
project:
type: book
output-dir: public
execute-dir: project

book:
favicon: "favicon.ico"
repo-branch: main
repo-actions: [edit, issue, source]
search:
location: navbar
type: overlay

execute:
freeze: auto
warning: false

callout-appearance: minimal
reference-location: margin
citation-location: margin
crossref:
chapters: true

knitr:
opts_chunk:
class-output: sourceCode
comment: "#>"
fig-dpi: 72
fig-width: 5.5
fig-height: 5
fig-align: center
out-width: 100%

format: r3-theme-html
28 changes: 28 additions & 0 deletions _extensions/rostools/r3-theme/custom-site.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*-- scss:defaults --*/

@import url('https://fonts.googleapis.com/css2?family=Cabin');
@import url('https://fonts.googleapis.com/css2?family=Nanum+Gothic');
@import url('https://fonts.googleapis.com/css2?family=PT+Mono');

$font-family-monospace: "PT Mono", monospace !default;
$font-family-serif: "Nanum Gothic", sans-serif !default;
$font-family-sans-serif: "Nanum Gothic", sans-serif !default;
$headings-font-family: "Cabin", sans-serif !default;
$font-size-root: 18px !default;
$code-block-border-left: "grey60" !default;

/*-- scss:rules --*/

svg {
display: block;
max-width: 100%;
margin: 0 auto;
height: auto !important;
width: auto !important;
}

.slide-deck {
border: 3px solid #203C6E;
width: 100%;
height: 425px;
}
53 changes: 53 additions & 0 deletions _extensions/rostools/r3-theme/custom-slides.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/*-- scss:defaults --*/

@import url(https://fonts.googleapis.com/css?family=Quicksand&display=swap);
@import url(https://fonts.googleapis.com/css?family=Outfit&display=swap);
@import url(https://fonts.googleapis.com/css2?family=PT+Mono);

$font-family-serif: "Quicksand", sans-serif !default;
$font-family-sans-serif: "Quicksand", sans-serif !default;
$font-family-monospace: "PT Mono", monospace !default;
$presentation-heading-font: "Outfit", sans-serif !default;

/*
From litera:
$primary: #4582ec !default;
$secondary: #adb5bd !default;
*/

/*
# For background
monochromeR::generate_palette("#ffffff", "go_darker", n_colours = 20, view_palette = TRUE)
# For headers (primary)
monochromeR::generate_palette("#4582ec", "go_darker", n_colours = 4, view_palette = TRUE)
# For links
monochromeR::generate_palette("#4582ec", "go_lighter", n_colours = 4, view_palette = TRUE)
*/

$primary: #203C6E !default;
$secondary: #adb5bd !default;

$presentation-heading-color: $primary !default;

$presentation-font-size-root: 35px !default;
$presentation-h2-font-size: 2em !default;
$body-bg: #E9E9E9 !default;
$link-color: #4582ec !default;
/* sets color of controls as well as links */
/*
$body-color: #403E4A;
$highlight-color: #574997;
$selection-bg: #9A91C0;
*/

/*-- scss:rules --*/

.reveal .progress {
height: 8px;
color: $primary;
top: 0;
}

.reveal .slide-logo {
top: 0;
}
Binary file added _extensions/rostools/r3-theme/favicon.ico
Binary file not shown.
Loading

0 comments on commit f8b6e83

Please sign in to comment.