Path: blob/main/package/src/common/patches/revealjs-theme-0001-dracula.patch
6453 views
diff --git a/src/resources/formats/revealjs/themes/dracula.scss b/src/resources/formats/revealjs/themes/dracula.scss1index 5330fbc1b..fe068d9a8 1006442--- a/src/resources/formats/revealjs/themes/dracula.scss3+++ b/src/resources/formats/revealjs/themes/dracula.scss4@@ -1,106 +1,90 @@5/**6* Dracula Dark theme for reveal.js.7* Based on https://draculatheme.com8+ *9+ * Adapted for Quarto by Posit, PBC10+ * Copyright (C) 2024 Posit, PBC11*/1213-14-// Default mixins and settings -----------------15-@import "../template/mixins";16-@import "../template/settings";17-// ---------------------------------------------18-19-20+/*-- scss:defaults --*/2122// Include theme-specific fonts23-$systemFontsSansSerif: -apple-system,24- BlinkMacSystemFont,25- avenir next,26- avenir,27- segoe ui,28- helvetica neue,29- helvetica,30- Cantarell,31- Ubuntu,32- roboto,33- noto,34- arial,35- sans-serif;36-$systemFontsMono: Menlo,37- Consolas,38- Monaco,39- Liberation Mono,40- Lucida Console,41- monospace;42-43-/**44- * Dracula colors by Zeno Rocha45- * https://draculatheme.com/contribute46- */47-html * {48- color-profile: sRGB;49- rendering-intent: auto;50-}51-52-$background: #282A36;53-$foreground: #F8F8F2;54-$selection: #44475A;55-$comment: #6272A4;56-$red: #FF5555;57-$orange: #FFB86C;58-$yellow: #F1FA8C;59-$green: #50FA7B;60-$purple: #BD93F9;61-$cyan: #8BE9FD;62-$pink: #FF79C6;63-64-65-66-// Override theme settings (see ../template/settings.scss)67-$body-color: $foreground;68-$presentation-heading-color: $purple;69-$presentation-heading-text-shadow: none;70-$presentation-heading-text-transform: none;71-$body-bg: $background;72-$link-color: $pink;73-$link-color-hover: $cyan;74-$selection-bg: $selection;75-$code-color: $green;76-$presentation-list-bullet-color: $cyan;77-78-$font-family-sans-serif: $systemFontsSansSerif;79-$font-family-monospace: "Fira Code", $systemFontsMono;80+$systemFontsSansSerif: -apple-system, BlinkMacSystemFont, avenir next, avenir,81+ segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial,82+ sans-serif;83+$systemFontsMono: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console,84+ monospace;85+86+$background: #282a36;87+$foreground: #f8f8f2;88+$selection: #44475a;89+$comment: #6272a4;90+$red: #ff5555;91+$orange: #ffb86c;92+$yellow: #f1fa8c;93+$green: #50fa7b;94+$purple: #bd93f9;95+$cyan: #8be9fd;96+$pink: #ff79c6;97+98+// Override theme settings99+$body-color: $foreground !default;100+$presentation-heading-color: $purple !default;101+$presentation-heading-text-shadow: none !default;102+$presentation-heading-text-transform: none !default;103+$body-bg: $background !default;104+$link-color: $pink !default;105+$link-color-hover: $cyan !default;106+$selection-bg: $selection !default;107+$code-color: $green !default;108+$presentation-list-bullet-color: $cyan !default;109+110+$font-family-sans-serif: $systemFontsSansSerif !default;111+$font-family-monospace: "Fira Code", $systemFontsMono !default;112113// Change text colors against light slide backgrounds114-@include light-bg-text-color($background);115+$light-bg-text-color: $body-bg !default;116117-// Theme template ------------------------------118-@import "../template/theme";119-// ---------------------------------------------120+/*-- scss:rules --*/121122// Define additional color effects based on Dracula spec123// https://spec.draculatheme.com/124:root {125- --r-bold-color: #{$orange};126- --r-italic-color: #{$yellow};127- --r-inline-code-color: #{$inlineCodeColor};128- --r-list-bullet-color: #{$listBulletColor};129+ --r-bold-color: #{$orange};130+ --r-italic-color: #{$yellow};131+ --r-inline-code-color: #{$code-color};132+ --r-list-bullet-color: #{$presentation-list-bullet-color};133}134135.reveal {136- strong, b {137- color: var(--r-bold-color);138- }139- em, i, blockquote {140- color: var(--r-italic-color);141- }142- code {143- color: var(--r-inline-code-color);144- }145- // Dracula colored list bullets and numbers146- ul, ol {147- li::marker {148- color: var(--r-list-bullet-color);149- }150- }151+ strong,152+ b {153+ &:not(.callout-title strong, .callout-tile b) {154+ color: var(--r-bold-color);155+ }156+ }157+ em,158+ i,159+ blockquote {160+ color: var(--r-italic-color);161+ }162+ code {163+ color: var(--r-inline-code-color);164+ }165+ // Dracula colored list bullets and numbers166+ ul,167+ ol {168+ li::marker {169+ color: var(--r-list-bullet-color);170+ }171+ }172}173174+/**175+ * Dracula colors by Zeno Rocha176+ * https://draculatheme.com/contribute177+ */178+html * {179+ color-profile: sRGB;180+ rendering-intent: auto;181+}182183184