Skip to content

Build your personal knowledge base with Trilium Notes

chore(presentation): vendor reveal.js theme sources without their fonts

Elian Doran437b1f130cbe
diff --git a/apps/client/src/widgets/collections/presentation/reveal-themes/LICENSE b/apps/client/src/widgets/collections/presentation/reveal-themes/LICENSE
new file mode 100644
index 0000000000..c512bcdc67
--- /dev/null
+++ b/apps/client/src/widgets/collections/presentation/reveal-themes/LICENSE
@@ -0,0 +1,19 @@
+Copyright (C) 2011-2026 Hakim El Hattab, http://hakim.se, and reveal.js contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
\ No newline at end of file
diff --git a/apps/client/src/widgets/collections/presentation/reveal-themes/README.md b/apps/client/src/widgets/collections/presentation/reveal-themes/README.md
new file mode 100644
index 0000000000..60febf2df6
--- /dev/null
+++ b/apps/client/src/widgets/collections/presentation/reveal-themes/README.md
@@ -0,0 +1,53 @@
+# reveal.js themes (vendored)
+
+Theme sources for the presentation collection view, vendored from
+[reveal.js](https://github.com/hakimel/reveal.js) **6.0.1** (`css/theme/`), MIT licensed — see
+`LICENSE`.
+
+Not yet wired up: `../themes.ts` still imports the prebuilt `reveal.js/theme/*.css?raw`.
+
+## Why these are vendored
+
+The prebuilt themes ship their fonts inline. Upstream builds them with Vite in library mode, where
+`build.assetsInlineLimit` is ignored and every asset becomes a base64 `data:` URI, so `black.css`
+and `white.css` are 564 KB each — 427 KB of that is four Source Sans Pro `.woff` faces. The themes
+that use Google Fonts instead keep an `@import url('https://fonts.googleapis.com/…')` at the top of
+the built CSS, which fetches at render time. Six of the ten themes the picker offers do that, and
+Trilium runs offline.
+
+Compiled from these sources, a theme is about 5 KB (1.4 KB gzipped).
+
+## What changed from upstream
+
+One deleted line per theme — the `@import url(…)` that pulls in a font — and nothing else. Twelve
+of the fourteen themes lost one or two; `serif.scss` and `dracula.scss` were already on system font
+stacks and are byte-identical to upstream.
+
+Removing a font leaves the rest of the stack. `black`, `white` and `beige` fall back to Helvetica;
+`solarized` and `moon` headings fall from League Gothic to Impact. The visible ones are `sky`
+(Quicksand) and `simple` (News Cycle), whose display headings drop to a generic sans.
+
+## Re-syncing after a reveal.js upgrade
+
+Diff `node_modules/reveal.js/css/theme` against this directory. Every hunk should be one of the
+`@import url(…)` lines below; anything else is a real upstream change to carry over.
+
+```
+@import url('./fonts/source-sans-pro/source-sans-pro.css'); black, black-contrast, white, white-contrast
+@import url('./fonts/league-gothic/league-gothic.css'); beige, league, moon, solarized
+@import url('https://fonts.googleapis.com/css?family=Lato:…'); beige, league, moon, solarized, simple
+@import url('https://fonts.googleapis.com/css?family=Ubuntu:…'); blood
+@import url('https://fonts.googleapis.com/css?family=Quicksand:…'); sky
+@import url('https://fonts.googleapis.com/css?family=Open+Sans:…'); night, sky
+@import url('https://fonts.googleapis.com/css?family=Montserrat:…'); night
+@import url('https://fonts.googleapis.com/css?family=News+Cycle:…'); simple
+```
+
+## Layout
+
+`template/settings.scss` declares the variables a theme overrides, `template/theme.scss` emits the
+rules from them, and `template/mixins.scss` holds `light-bg-text-color`. A theme file is 40 to 90
+lines: a `@use 'template/settings' with (…)` block of overrides, then `@use 'template/theme'`.
+
+`black-contrast` and `white-contrast` are the higher-contrast variants of `black` and `white`;
+`league` and `night` round out the upstream set. None of the four is in the picker today.
diff --git a/apps/client/src/widgets/collections/presentation/reveal-themes/beige.scss b/apps/client/src/widgets/collections/presentation/reveal-themes/beige.scss
new file mode 100644
index 0000000000..83a674d3f4
--- /dev/null
+++ b/apps/client/src/widgets/collections/presentation/reveal-themes/beige.scss
@@ -0,0 +1,54 @@
+/**
+ * Beige theme for reveal.js.
+ *
+ * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
+ */
+
+// Load utils
+@use 'sass:color';
+@use 'template/mixins' as mixins;
+
+$active-color: #8b743d;
+
+// Inject theme variables (with some overrides)
+@use 'template/settings' with (
+ $background-color: #f7f3de,
+ $background: radial-gradient(rgba(255, 255, 255, 1), rgba(247, 242, 211, 1)),
+ $main-font: "'Source Sans Pro', Helvetica, sans-serif",
+ $main-font-size: 42px,
+ $main-color: #333,
+
+ $heading-color: #333,
+ $heading-font: "'Source Sans Pro', Helvetica, sans-serif",
+ $heading-font-weight: 600,
+
+ $heading1-text-shadow: #{0 1px 0 #ccc,
+ 0 2px 0 #c9c9c9,
+ 0 3px 0 #bbb,
+ 0 4px 0 #b9b9b9,
+ 0 5px 0 #aaa,
+ 0 6px 1px rgba(0, 0, 0, 0.1),
+ 0 0 5px rgba(0, 0, 0, 0.1),
+ 0 1px 3px rgba(0, 0, 0, 0.3),
+ 0 3px 5px rgba(0, 0, 0, 0.2),
+ 0 5px 10px rgba(0, 0, 0, 0.25),
+ 0 20px 20px rgba(0, 0, 0, 0.15)},
+
+ $heading1-size: 2.5em,
+ $heading2-size: 1.6em,
+ $heading3-size: 1.3em,
+ $heading4-size: 1em,
+
+ $link-color: $active-color,
+ $link-color-hover: color.scale($active-color, $lightness: 20%),
+ $selection-color: #333,
+ $selection-background-color: color.scale($active-color, $lightness: 35%),
+ $overlay-element-bg-color: '0 0 0',
+ $overlay-element-fg-color: '240 240 240'
+);
+
+// Inject the theme template
+@use 'template/theme';
+
+// Change text colors against light slide backgrounds
+@include mixins.dark-bg-text-color(#fff);
diff --git a/apps/client/src/widgets/collections/presentation/reveal-themes/black-contrast.scss b/apps/client/src/widgets/collections/presentation/reveal-themes/black-contrast.scss
new file mode 100644
index 0000000000..aab762a1d2
--- /dev/null
+++ b/apps/client/src/widgets/collections/presentation/reveal-themes/black-contrast.scss
@@ -0,0 +1,43 @@
+/**
+ * Black compact & high contrast reveal.js theme, with headers not in capitals.
+ *
+ * By Peter Kehl. Based on black.(s)css by Hakim El Hattab, http://hakim.se
+ *
+ * - Keep the source similar to black.css - for easy comparison.
+ * - $mainFontSize controls code blocks, too (although under some ratio).
+ */
+
+// Load utils
+@use 'sass:color';
+@use 'template/mixins' as mixins;
+
+$active-color: #42affa;
+
+// Inject theme variables (with some overrides)
+@use 'template/settings' with (
+ $background-color: #000,
+
+ $main-font: "'Source Sans Pro', Helvetica, sans-serif",
+ $main-font-size: 42px,
+ $main-color: #fff,
+
+ $heading-color: #fff,
+ $heading-font: "'Source Sans Pro', Helvetica, sans-serif",
+ $heading-font-weight: 600,
+
+ $heading1-size: 2.5em,
+ $heading2-size: 1.6em,
+ $heading3-size: 1.3em,
+ $heading4-size: 1em,
+
+ $link-color: $active-color,
+ $link-color-hover: color.scale($active-color, $lightness: 15%),
+ $selection-color: #fff,
+ $selection-background-color: color.scale($active-color, $lightness: -35%)
+);
+
+// Inject the theme template
+@use 'template/theme';
+
+// Change text colors against light slide backgrounds
+@include mixins.light-bg-text-color(#000);
diff --git a/apps/client/src/widgets/collections/presentation/reveal-themes/black.scss b/apps/client/src/widgets/collections/presentation/reveal-themes/black.scss
new file mode 100644
index 0000000000..5485e65e5f
--- /dev/null
+++ b/apps/client/src/widgets/collections/presentation/reveal-themes/black.scss
@@ -0,0 +1,40 @@
+/**
+ * Black theme for reveal.js. This is the opposite of the 'white' theme.
+ *
+ * By Hakim El Hattab, http://hakim.se
+ */
+
+// Load utils
+@use 'sass:color';
+@use 'template/mixins' as mixins;
+
+$active-color: #42affa;
+
+// Inject theme variables (with some overrides)
+@use 'template/settings' with (
+ $background-color: #191919,
+
+ $main-font: "'Source Sans Pro', Helvetica, sans-serif",
+ $main-font-size: 42px,
+ $main-color: #fff,
+
+ $heading-color: #fff,
+ $heading-font: "'Source Sans Pro', Helvetica, sans-serif",
+ $heading-font-weight: 600,
+
+ $heading1-size: 2.5em,
+ $heading2-size: 1.6em,
+ $heading3-size: 1.3em,
+ $heading4-size: 1em,
+
+ $link-color: $active-color,
+ $link-color-hover: color.scale($active-color, $lightness: 15%),
+ $selection-color: #fff,
+ $selection-background-color: color.scale($active-color, $lightness: -35%)
+);
+
+// Inject the theme template
+@use 'template/theme';
+
+// Change text colors against light slide backgrounds
+@include mixins.light-bg-text-color(#222);
diff --git a/apps/client/src/widgets/collections/presentation/reveal-themes/blood.scss b/apps/client/src/widgets/collections/presentation/reveal-themes/blood.scss
new file mode 100644
index 0000000000..ec10a521a4
--- /dev/null
+++ b/apps/client/src/widgets/collections/presentation/reveal-themes/blood.scss
@@ -0,0 +1,89 @@
+/**
+ * Blood theme for reveal.js
+ * Author: Walther http://github.com/Walther
+ *
+ * Designed to be used with highlight.js theme
+ * "monokai_sublime.css" available from
+ * https://github.com/isagalaev/highlight.js/
+ *
+ * For other themes, change $codeBackground accordingly.
+ *
+ */
+
+// Load utils
+@use 'sass:color';
+@use 'template/mixins' as mixins;
+
+$coal: #222;
+$active-color: #a23;
+$code-background-color: #23241f;
+
+// Inject theme variables (with some overrides)
+@use 'template/settings' with (
+ $background-color: $coal,
+
+ $main-font: 'Ubuntu, sans-serif',
+ $main-color: #eee,
+
+ $heading-font: 'Ubuntu, sans-serif',
+ $heading-text-shadow: 2px 2px 2px $coal,
+
+ $heading1-text-shadow: #{0 1px 0 #ccc,
+ 0 2px 0 #c9c9c9,
+ 0 3px 0 #bbb,
+ 0 4px 0 #b9b9b9,
+ 0 5px 0 #aaa,
+ 0 6px 1px rgba(0, 0, 0, 0.1),
+ 0 0 5px rgba(0, 0, 0, 0.1),
+ 0 1px 3px rgba(0, 0, 0, 0.3),
+ 0 3px 5px rgba(0, 0, 0, 0.2),
+ 0 5px 10px rgba(0, 0, 0, 0.25),
+ 0 20px 20px rgba(0, 0, 0, 0.15)},
+
+ $link-color: $active-color,
+ $link-color-hover: color.scale($active-color, $lightness: 20%),
+ $selection-background-color: $active-color,
+ $selection-color: #fff
+);
+
+// Inject the theme template
+@use 'template/theme';
+
+// Fonts
+
+// Invert text color when the background is light
+@include mixins.light-bg-text-color(#222);
+
+.reveal p {
+ font-weight: 300;
+ text-shadow: 1px 1px $coal;
+}
+
+section.has-light-background {
+ p,
+ h1,
+ h2,
+ h3,
+ h4 {
+ text-shadow: none;
+ }
+}
+
+.reveal h1,
+.reveal h2,
+.reveal h3,
+.reveal h4,
+.reveal h5,
+.reveal h6 {
+ font-weight: 700;
+}
+
+.reveal p code {
+ background-color: $code-background-color;
+ display: inline-block;
+ border-radius: 7px;
+}
+
+.reveal small code {
+ vertical-align: baseline;
+}
diff --git a/apps/client/src/widgets/collections/presentation/reveal-themes/dracula.scss b/apps/client/src/widgets/collections/presentation/reveal-themes/dracula.scss
new file mode 100644
index 0000000000..f9b9d7f52f
--- /dev/null
+++ b/apps/client/src/widgets/collections/presentation/reveal-themes/dracula.scss
@@ -0,0 +1,94 @@
+/**
+ * Dracula Dark theme for reveal.js.
+ * Based on https://draculatheme.com
+ */
+
+// Load utils
+@use 'sass:color';
+@use 'template/mixins' as mixins;
+$systemFontsSansSerif: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui,
+ helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
+$systemFontsMono: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
+
+$background: #282a36;
+$foreground: #f8f8f2;
+$selection: #44475a;
+$comment: #6272a4;
+$red: #ff5555;
+$orange: #ffb86c;
+$yellow: #f1fa8c;
+$green: #50fa7b;
+$purple: #bd93f9;
+$cyan: #8be9fd;
+$pink: #ff79c6;
+
+$mainFont: $systemFontsSansSerif;
+$codeFont: 'Fira Code', $systemFontsMono;
+
+// Inject theme variables (with some overrides)
+@use 'template/settings' with (
+ $background-color: #191919,
+
+ $main-font: $mainFont,
+ $main-font-size: 42px,
+ $main-color: $foreground,
+
+ $code-font: $codeFont,
+
+ $heading-color: $purple,
+ $heading-font: $mainFont,
+ $heading-font-weight: 600,
+ $heading-text-transform: none,
+
+ $heading1-size: 2.5em,
+ $heading2-size: 1.6em,
+ $heading3-size: 1.3em,
+ $heading4-size: 1em,
+
+ $link-color: $pink,
+ $link-color-hover: $cyan,
+
+ $selection-color: #fff,
+ $selection-background-color: $selection
+);
+
+// Inject the theme template
+@use 'template/theme';
+
+// Change text colors against light slide backgrounds
+@include mixins.light-bg-text-color($background);
+
+// Define additional color effects based on Dracula spec
+// https://spec.draculatheme.com/
+:root {
+ --r-bold-color: #{$orange};
+ --r-italic-color: #{$yellow};
+ --r-inline-code-color: #{$green};
+ --r-list-bullet-color: #{$cyan};
+}
+
+/**
+ * Dracula colors by Zeno Rocha
+ * https://draculatheme.com/contribute
+ */
+.reveal {
+ strong,
+ b {
+ color: var(--r-bold-color);
+ }
+ em,
+ i,
+ blockquote {
+ color: var(--r-italic-color);
+ }
+ code {
+ color: var(--r-inline-code-color);
+ }
+ // Dracula colored list bullets and numbers
+ ul,
+ ol {
+ li::marker {
+ color: var(--r-list-bullet-color);
+ }
+ }
+}
diff --git a/apps/client/src/widgets/collections/presentation/reveal-themes/league.scss b/apps/client/src/widgets/collections/presentation/reveal-themes/league.scss
new file mode 100644
index 0000000000..5d1eb07722
--- /dev/null
+++ b/apps/client/src/widgets/collections/presentation/reveal-themes/league.scss
@@ -0,0 +1,35 @@
+/**
+ * League theme for reveal.js.
+ *
+ * This was the default theme pre-3.0.0.
+ *
+ * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
+ */
+
+// Load utils
+@use 'sass:color';
+@use 'template/mixins' as mixins;
+
+// Inject theme variables (with some overrides)
+@use 'template/settings' with (
+ $background: radial-gradient(rgba(85, 90, 95, 1), rgba(28, 30, 32, 1)),
+ $background-color: rgba(28, 30, 32, 1),
+ $heading-text-shadow: #{0px 0px 6px rgba(0, 0, 0, 0.2)},
+ $heading1-text-shadow: #{0 1px 0 #ccc,
+ 0 2px 0 #c9c9c9,
+ 0 3px 0 #bbb,
+ 0 4px 0 #b9b9b9,
+ 0 5px 0 #aaa,
+ 0 6px 1px rgba(0, 0, 0, 0.1),
+ 0 0 5px rgba(0, 0, 0, 0.1),
+ 0 1px 3px rgba(0, 0, 0, 0.3),
+ 0 3px 5px rgba(0, 0, 0, 0.2),
+ 0 5px 10px rgba(0, 0, 0, 0.25),
+ 0 20px 20px rgba(0, 0, 0, 0.15)}
+);
+
+// Inject the theme template
+@use 'template/theme';
+
+// Change text colors against light slide backgrounds
+@include mixins.light-bg-text-color(#222);
diff --git a/apps/client/src/widgets/collections/presentation/reveal-themes/moon.scss b/apps/client/src/widgets/collections/presentation/reveal-themes/moon.scss
new file mode 100644
index 0000000000..2fb7c1f8b8
--- /dev/null
+++ b/apps/client/src/widgets/collections/presentation/reveal-themes/moon.scss
@@ -0,0 +1,48 @@
+/**
+ * Solarized Dark theme for reveal.js.
+ * Author: Achim Staebler
+ */
+
+// Load utils
+@use 'sass:color';
+@use 'template/mixins' as mixins;
+
+// Solarized colors by Ethan Schoonover
+$base03: #002b36;
+$base02: #073642;
+$base01: #586e75;
+$base00: #657b83;
+$base0: #839496;
+$base1: #93a1a1;
+$base2: #eee8d5;
+$base3: #fdf6e3;
+$yellow: #b58900;
+$orange: #cb4b16;
+$red: #dc322f;
+$magenta: #d33682;
+$violet: #6c71c4;
+$blue: #268bd2;
+$cyan: #2aa198;
+$green: #859900;
+
+$active-color: $blue;
+
+// Inject theme variables (with some overrides)
+@use 'template/settings' with (
+ $background-color: $base03,
+
+ $main-color: $base1,
+ $heading-color: $base2,
+
+ $link-color: $active-color,
+ $link-color-hover: color.scale($active-color, $lightness: 20%),
+ $selection-color: #fff,
+ $selection-background-color: $magenta
+);
+
+// Inject the theme template
+@use 'template/theme';
+// Include theme-specific fonts
+
+// Change text colors against light slide backgrounds
+@include mixins.light-bg-text-color(#222);
diff --git a/apps/client/src/widgets/collections/presentation/reveal-themes/night.scss b/apps/client/src/widgets/collections/presentation/reveal-themes/night.scss
new file mode 100644
index 0000000000..5744533856
--- /dev/null
+++ b/apps/client/src/widgets/collections/presentation/reveal-themes/night.scss
@@ -0,0 +1,35 @@
+/**
+ * Black theme for reveal.js.
+ *
+ * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
+ */
+
+// Load utils
+@use 'sass:color';
+@use 'template/mixins' as mixins;
+
+$active-color: #e7ad52;
+
+// Inject theme variables (with some overrides)
+@use 'template/settings' with (
+ $background-color: #111,
+
+ $main-font: "'Open Sans', sans-serif",
+ $main-color: #fff,
+
+ $heading-color: #fff,
+ $heading-font: "'Montserrat', Impact, sans-serif",
+ $heading-text-transform: none,
+ $heading-letter-spacing: -0.03em,
+
+ $link-color: $active-color,
+ $link-color-hover: color.scale($active-color, $lightness: 20%),
+ $selection-color: #111,
+ $selection-background-color: $active-color
+);
+
+// Inject the theme template
+@use 'template/theme';
+
+// Change text colors against light slide backgrounds
+@include mixins.light-bg-text-color(#222);
diff --git a/apps/client/src/widgets/collections/presentation/reveal-themes/serif.scss b/apps/client/src/widgets/collections/presentation/reveal-themes/serif.scss
new file mode 100644
index 0000000000..5fab4596e5
--- /dev/null
+++ b/apps/client/src/widgets/collections/presentation/reveal-themes/serif.scss
@@ -0,0 +1,44 @@
+/**
+ * A simple theme for reveal.js presentations, similar
+ * to the default theme. The accent color is brown.
+ *
+ * This theme is Copyright (C) 2012-2013 Owen Versteeg, http://owenversteeg.com - it is MIT licensed.
+ */
+
+// Load utils
+@use 'sass:color';
+@use 'template/mixins' as mixins;
+
+$active-color: #51483d;
+
+// Inject theme variables (with some overrides)
+@use 'template/settings' with (
+ $background-color: #f0f1eb,
+
+ $main-font: "'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif",
+ $main-font-size: 42px,
+ $main-color: #000,
+
+ $heading-color: #383d3d,
+ $heading-font: "'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif",
+ $heading-font-weight: 600,
+ $heading-text-transform: none,
+
+ $link-color: $active-color,
+ $link-color-hover: color.scale($active-color, $lightness: 25%),
+ $selection-color: #fff,
+ $selection-background-color: $active-color,
+
+ $overlay-element-bg-color: '0 0 0',
+ $overlay-element-fg-color: '240 240 240'
+);
+
+// Inject the theme template
+@use 'template/theme';
+
+// Change text colors against light slide backgrounds
+@include mixins.dark-bg-text-color(#fff);
+
+.reveal a {
+ line-height: 1.3em;
+}
diff --git a/apps/client/src/widgets/collections/presentation/reveal-themes/simple.scss b/apps/client/src/widgets/collections/presentation/reveal-themes/simple.scss
new file mode 100644
index 0000000000..b796024160
--- /dev/null
+++ b/apps/client/src/widgets/collections/presentation/reveal-themes/simple.scss
@@ -0,0 +1,44 @@
+/**
+ * A simple theme for reveal.js presentations, similar
+ * to the default theme. The accent color is darkblue.
+ *
+ * This theme is Copyright (C) 2012 Owen Versteeg, https://github.com/StereotypicalApps. It is MIT licensed.
+ * reveal.js is Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
+ */
+
+// Load utils
+@use 'sass:color';
+@use 'template/mixins' as mixins;
+
+$active-color: #00008b;
+
+// Inject theme variables (with some overrides)
+@use 'template/settings' with (
+ $background-color: #fff,
+
+ $main-color: #000,
+ $main-font: "'Lato', sans-serif",
+
+ $heading-color: #000,
+ $heading-font: "'News Cycle', Impact, sans-serif",
+ $heading-font-weight: 600,
+
+ $heading1-size: 2.5em,
+ $heading2-size: 1.6em,
+ $heading3-size: 1.3em,
+ $heading4-size: 1em,
+
+ $link-color: $active-color,
+ $link-color-hover: color.scale($active-color, $lightness: 20%),
+ $selection-color: #fff,
+ $selection-background-color: $active-color,
+
+ $overlay-element-bg-color: '0, 0, 0',
+ $overlay-element-fg-color: '240, 240, 240'
+);
+
+// Inject the theme template
+@use 'template/theme';
+
+// Change text when the background is inverted
+@include mixins.dark-bg-text-color(#fff);
diff --git a/apps/client/src/widgets/collections/presentation/reveal-themes/sky.scss b/apps/client/src/widgets/collections/presentation/reveal-themes/sky.scss
new file mode 100644
index 0000000000..d3b0084372
--- /dev/null
+++ b/apps/client/src/widgets/collections/presentation/reveal-themes/sky.scss
@@ -0,0 +1,42 @@
+/**
+ * Sky theme for reveal.js.
+ *
+ * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
+ */
+
+// Load utils
+@use 'sass:color';
+@use 'template/mixins' as mixins;
+
+$active-color: #2a76dd;
+
+// Inject theme variables (with some overrides)
+@use 'template/settings' with (
+ $background: radial-gradient(#f7fbfc, #add9e4),
+ $background-color: #f7fbfc,
+
+ $main-color: #333,
+ $main-font: "'Open Sans', sans-serif",
+
+ $heading-color: #333,
+ $heading-font: "'Quicksand', sans-serif",
+ $heading-letter-spacing: -0.05em,
+
+ $link-color: $active-color,
+ $link-color-hover: color.scale($active-color, $lightness: 15%),
+ $selection-color: #fff,
+ $selection-background-color: $active-color,
+
+ $overlay-element-bg-color: '0 0 0',
+ $overlay-element-fg-color: '240 240 240'
+);
+
+// Inject the theme template
+@use 'template/theme';
+
+// Change text when the background is inverted
+@include mixins.dark-bg-text-color(#fff);
+
+.reveal a {
+ line-height: 1.3em;
+}
diff --git a/apps/client/src/widgets/collections/presentation/reveal-themes/solarized.scss b/apps/client/src/widgets/collections/presentation/reveal-themes/solarized.scss
new file mode 100644
index 0000000000..af1b8a4141
--- /dev/null
+++ b/apps/client/src/widgets/collections/presentation/reveal-themes/solarized.scss
@@ -0,0 +1,50 @@
+/**
+ * Solarized Light theme for reveal.js.
+ * Author: Achim Staebler
+ */
+
+// Load utils
+@use 'sass:color';
+@use 'template/mixins' as mixins;
+
+// Solarized colors by Ethan Schoonover
+$base03: #002b36;
+$base02: #073642;
+$base01: #586e75;
+$base00: #657b83;
+$base0: #839496;
+$base1: #93a1a1;
+$base2: #eee8d5;
+$base3: #fdf6e3;
+$yellow: #b58900;
+$orange: #cb4b16;
+$red: #dc322f;
+$magenta: #d33682;
+$violet: #6c71c4;
+$blue: #268bd2;
+$cyan: #2aa198;
+$green: #859900;
+
+$active-color: $blue;
+
+// Inject theme variables (with some overrides)
+@use 'template/settings' with (
+ $background-color: $base3,
+
+ $main-color: $base00,
+ $heading-color: $base01,
+
+ $link-color: $active-color,
+ $link-color-hover: color.scale($active-color, $lightness: 20%),
+ $selection-color: #fff,
+ $selection-background-color: $magenta,
+
+ $overlay-element-bg-color: '0 0 0',
+ $overlay-element-fg-color: '240 240 240'
+);
+
+// Inject the theme template
+@use 'template/theme';
+
+// Change text when the background is inverted
+@include mixins.dark-bg-text-color(#fff);
diff --git a/apps/client/src/widgets/collections/presentation/reveal-themes/template/mixins.scss b/apps/client/src/widgets/collections/presentation/reveal-themes/template/mixins.scss
new file mode 100644
index 0000000000..942f3f18ad
--- /dev/null
+++ b/apps/client/src/widgets/collections/presentation/reveal-themes/template/mixins.scss
@@ -0,0 +1,27 @@
+@mixin light-bg-text-color($color) {
+ section.has-light-background {
+ &,
+ h1,
+ h2,
+ h3,
+ h4,
+ h5,
+ h6 {
+ color: $color;
+ }
+ }
+}
+
+@mixin dark-bg-text-color($color) {
+ section.has-dark-background {
+ &,
+ h1,
+ h2,
+ h3,
+ h4,
+ h5,
+ h6 {
+ color: $color;
+ }
+ }
+}
diff --git a/apps/client/src/widgets/collections/presentation/reveal-themes/template/settings.scss b/apps/client/src/widgets/collections/presentation/reveal-themes/template/settings.scss
new file mode 100644
index 0000000000..1e57b154a6
--- /dev/null
+++ b/apps/client/src/widgets/collections/presentation/reveal-themes/template/settings.scss
@@ -0,0 +1,96 @@
+// Base settings for all themes that can optionally be
+// overridden by the super-theme
+
+@use 'sass:color';
+@use 'sass:meta';
+
+// Background of the presentation
+$background: #2b2b2b !default;
+$background-color: #bbb !default;
+
+// Primary/body text
+$main-font: 'Lato', sans-serif !default;
+$main-font-size: 40px !default;
+$main-color: #eee !default;
+
+// Vertical spacing between blocks of text
+$block-margin: 20px !default;
+
+// Headings
+$heading-margin: 0 0 20px 0 !default;
+$heading-font: 'League Gothic', Impact, sans-serif !default;
+$heading-color: #eee !default;
+$heading-line-height: 1.2 !default;
+$heading-letter-spacing: normal !default;
+$heading-text-transform: uppercase !default;
+$heading-text-shadow: none !default;
+$heading-font-weight: normal !default;
+$heading1-text-shadow: none !default;
+
+$heading1-size: 3.77em !default;
+$heading2-size: 2.11em !default;
+$heading3-size: 1.55em !default;
+$heading4-size: 1em !default;
+
+$code-font: monospace !default;
+
+// Links and actions
+$link-color: #13daec !default;
+$link-color-dark: color.scale($link-color, $lightness: -15%) !default;
+$link-color-hover: color.scale($link-color, $lightness: 20%) !default;
+
+// Text selection
+$selection-background-color: #0fadbb !default;
+$selection-color: #fff !default;
+
+// Colors used for UI elements that are overlaid on top of
+// the presentation
+$overlay-element-bg-color: 240, 240, 240 !default;
+$overlay-element-fg-color: 0, 0, 0 !default;
+
+// Expose all SCSS variables as CSS custom properties
+:root {
+ // Background of the presentation
+ --r-background: #{$background};
+ --r-background-color: #{$background-color};
+
+ // Primary/body text
+ --r-main-font: #{$main-font};
+ --r-main-font-size: #{$main-font-size};
+ --r-main-color: #{$main-color};
+
+ // Vertical spacing between blocks of text
+ --r-block-margin: #{$block-margin};
+
+ // Headings
+ --r-heading-margin: #{$heading-margin};
+ --r-heading-font: #{$heading-font};
+ --r-heading-color: #{$heading-color};
+ --r-heading-line-height: #{$heading-line-height};
+ --r-heading-letter-spacing: #{$heading-letter-spacing};
+ --r-heading-text-transform: #{$heading-text-transform};
+ --r-heading-text-shadow: #{$heading-text-shadow};
+ --r-heading-font-weight: #{$heading-font-weight};
+ --r-heading1-text-shadow: #{$heading1-text-shadow};
+
+ --r-heading1-size: #{$heading1-size};
+ --r-heading2-size: #{$heading2-size};
+ --r-heading3-size: #{$heading3-size};
+ --r-heading4-size: #{$heading4-size};
+
+ --r-code-font: #{$code-font};
+
+ // Links and actions
+ --r-link-color: #{$link-color};
+ --r-link-color-dark: #{$link-color-dark};
+ --r-link-color-hover: #{$link-color-hover};
+
+ // Text selection
+ --r-selection-background-color: #{$selection-background-color};
+ --r-selection-color: #{$selection-color};
+
+ // Colors used for UI elements that are overlaid on top of
+ // the presentation
+ --r-overlay-element-bg-color: #{$overlay-element-bg-color};
+ --r-overlay-element-fg-color: #{$overlay-element-fg-color};
+}
diff --git a/apps/client/src/widgets/collections/presentation/reveal-themes/template/theme.scss b/apps/client/src/widgets/collections/presentation/reveal-themes/template/theme.scss
new file mode 100644
index 0000000000..8940a37763
--- /dev/null
+++ b/apps/client/src/widgets/collections/presentation/reveal-themes/template/theme.scss
@@ -0,0 +1,331 @@
+// Base theme template for reveal.js
+
+/*********************************************
+ * GLOBAL STYLES
+ *********************************************/
+
+.reveal-viewport {
+ background: var(--r-background);
+ background-color: var(--r-background-color);
+}
+
+.reveal {
+ font-family: var(--r-main-font);
+ font-size: var(--r-main-font-size);
+ font-weight: normal;
+ color: var(--r-main-color);
+}
+
+.reveal ::selection {
+ color: var(--r-selection-color);
+ background: var(--r-selection-background-color);
+ text-shadow: none;
+}
+
+.reveal ::-moz-selection {
+ color: var(--r-selection-color);
+ background: var(--r-selection-background-color);
+ text-shadow: none;
+}
+
+.reveal .slides section,
+.reveal .slides section > section {
+ line-height: 1.3;
+ font-weight: inherit;
+}
+
+/*********************************************
+ * HEADERS
+ *********************************************/
+
+.reveal h1,
+.reveal h2,
+.reveal h3,
+.reveal h4,
+.reveal h5,
+.reveal h6 {
+ margin: var(--r-heading-margin);
+ color: var(--r-heading-color);
+
+ font-family: var(--r-heading-font);
+ font-weight: var(--r-heading-font-weight);
+ line-height: var(--r-heading-line-height);
+ letter-spacing: var(--r-heading-letter-spacing);
+
+ text-transform: var(--r-heading-text-transform);
+ text-shadow: var(--r-heading-text-shadow);
+
+ word-wrap: break-word;
+}
+
+.reveal h1 {
+ font-size: var(--r-heading1-size);
+}
+.reveal h2 {
+ font-size: var(--r-heading2-size);
+}
+.reveal h3 {
+ font-size: var(--r-heading3-size);
+}
+.reveal h4 {
+ font-size: var(--r-heading4-size);
+}
+
+.reveal h1 {
+ text-shadow: var(--r-heading1-text-shadow);
+}
+
+/*********************************************
+ * OTHER
+ *********************************************/
+
+.reveal p {
+ margin: var(--r-block-margin) 0;
+ line-height: 1.3;
+}
+
+/* Remove trailing margins after titles */
+.reveal h1:last-child,
+.reveal h2:last-child,
+.reveal h3:last-child,
+.reveal h4:last-child,
+.reveal h5:last-child,
+.reveal h6:last-child {
+ margin-bottom: 0;
+}
+
+/* Ensure certain elements are never larger than the slide itself */
+.reveal img,
+.reveal video,
+.reveal iframe {
+ max-width: 95%;
+ max-height: 95%;
+}
+.reveal strong,
+.reveal b {
+ font-weight: bold;
+}
+
+.reveal em {
+ font-style: italic;
+}
+
+.reveal ol,
+.reveal dl,
+.reveal ul {
+ display: inline-block;
+
+ text-align: left;
+ margin: 0 0 0 1em;
+}
+
+.reveal ol {
+ list-style-type: decimal;
+}
+
+.reveal ul {
+ list-style-type: disc;
+}
+
+.reveal ul ul {
+ list-style-type: square;
+}
+
+.reveal ul ul ul {
+ list-style-type: circle;
+}
+
+.reveal ul ul,
+.reveal ul ol,
+.reveal ol ol,
+.reveal ol ul {
+ display: block;
+ margin-left: 40px;
+}
+
+.reveal dt {
+ font-weight: bold;
+}
+
+.reveal dd {
+ margin-left: 40px;
+}
+
+.reveal blockquote {
+ display: block;
+ position: relative;
+ width: 70%;
+ margin: var(--r-block-margin) auto;
+ padding: 5px;
+
+ font-style: italic;
+ background: rgba(255, 255, 255, 0.05);
+ box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2);
+}
+.reveal blockquote p:first-child,
+.reveal blockquote p:last-child {
+ display: inline-block;
+}
+
+.reveal q {
+ font-style: italic;
+}
+
+.reveal pre {
+ display: block;
+ position: relative;
+ width: 90%;
+ margin: var(--r-block-margin) auto;
+
+ text-align: left;
+ font-size: 0.55em;
+ font-family: var(--r-code-font);
+ line-height: 1.2em;
+
+ word-wrap: break-word;
+
+ box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
+}
+
+.reveal code {
+ font-family: var(--r-code-font);
+ text-transform: none;
+ tab-size: 2;
+}
+
+.reveal pre code {
+ display: block;
+ padding: 5px;
+ overflow: auto;
+ max-height: 400px;
+ word-wrap: normal;
+}
+
+.reveal .code-wrapper {
+ white-space: normal;
+}
+
+.reveal .code-wrapper code {
+ white-space: pre;
+}
+
+.reveal table {
+ margin: auto;
+ border-collapse: collapse;
+ border-spacing: 0;
+}
+
+.reveal table th {
+ font-weight: bold;
+}
+
+.reveal table th,
+.reveal table td {
+ text-align: left;
+ padding: 0.2em 0.5em 0.2em 0.5em;
+ border-bottom: 1px solid;
+}
+
+.reveal table th[align='center'],
+.reveal table td[align='center'] {
+ text-align: center;
+}
+
+.reveal table th[align='right'],
+.reveal table td[align='right'] {
+ text-align: right;
+}
+
+.reveal table tbody tr:last-child th,
+.reveal table tbody tr:last-child td {
+ border-bottom: none;
+}
+
+.reveal sup {
+ vertical-align: super;
+ font-size: smaller;
+}
+.reveal sub {
+ vertical-align: sub;
+ font-size: smaller;
+}
+
+.reveal small {
+ display: inline-block;
+ font-size: 0.6em;
+ line-height: 1.2em;
+ vertical-align: top;
+}
+
+.reveal small * {
+ vertical-align: top;
+}
+
+.reveal img {
+ margin: var(--r-block-margin) 0;
+}
+
+/*********************************************
+ * LINKS
+ *********************************************/
+
+.reveal a {
+ color: var(--r-link-color);
+ text-decoration: none;
+ transition: color 0.15s ease;
+}
+.reveal a:hover {
+ color: var(--r-link-color-hover);
+ text-shadow: none;
+ border: none;
+}
+
+.reveal .roll span:after {
+ color: #fff;
+ // background: darken( var(--r-link-color), 15% );
+ background: var(--r-link-color-dark);
+}
+
+/*********************************************
+ * Frame helper
+ *********************************************/
+
+.reveal .r-frame {
+ border: 4px solid var(--r-main-color);
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
+}
+
+.reveal a .r-frame {
+ transition: all 0.15s linear;
+}
+
+.reveal a:hover .r-frame {
+ border-color: var(--r-link-color);
+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
+}
+
+/*********************************************
+ * NAVIGATION CONTROLS
+ *********************************************/
+
+.reveal .controls {
+ color: var(--r-link-color);
+}
+
+/*********************************************
+ * PROGRESS BAR
+ *********************************************/
+
+.reveal .progress {
+ background: rgba(0, 0, 0, 0.2);
+ color: var(--r-link-color);
+}
+
+/*********************************************
+ * PRINT BACKGROUND
+ *********************************************/
+@media print {
+ .backgrounds {
+ background-color: var(--r-background-color);
+ }
+}
diff --git a/apps/client/src/widgets/collections/presentation/reveal-themes/white-contrast.scss b/apps/client/src/widgets/collections/presentation/reveal-themes/white-contrast.scss
new file mode 100644
index 0000000000..3510455562
--- /dev/null
+++ b/apps/client/src/widgets/collections/presentation/reveal-themes/white-contrast.scss
@@ -0,0 +1,46 @@
+/**
+ * White compact & high contrast reveal.js theme, with headers not in capitals.
+ *
+ * By Peter Kehl. Based on white.(s)css by Hakim El Hattab, http://hakim.se
+ *
+ * - Keep the source similar to black.css - for easy comparison.
+ * - $mainFontSize controls code blocks, too (although under some ratio).
+ */
+
+// Load utils
+@use 'sass:color';
+@use 'template/mixins' as mixins;
+
+$active-color: #2a76dd;
+
+// Inject theme variables (with some overrides)
+@use 'template/settings' with (
+ $background-color: #fff,
+
+ $main-font: "'Source Sans Pro', Helvetica, sans-serif",
+ $main-font-size: 42px,
+ $main-color: #000,
+
+ $heading-color: #000,
+ $heading-font: "'Source Sans Pro', Helvetica, sans-serif",
+ $heading-font-weight: 600,
+
+ $heading1-size: 2.5em,
+ $heading2-size: 1.6em,
+ $heading3-size: 1.3em,
+ $heading4-size: 1em,
+
+ $link-color: $active-color,
+ $link-color-hover: color.scale($active-color, $lightness: 15%),
+ $selection-color: #fff,
+ $selection-background-color: $active-color,
+
+ $overlay-element-bg-color: '0, 0, 0',
+ $overlay-element-fg-color: '240, 240, 240'
+);
+
+// Inject the theme template
+@use 'template/theme';
+
+// Change text when the background is inverted
+@include mixins.dark-bg-text-color(#fff);
diff --git a/apps/client/src/widgets/collections/presentation/reveal-themes/white.scss b/apps/client/src/widgets/collections/presentation/reveal-themes/white.scss
new file mode 100644
index 0000000000..8b83bc47ae
--- /dev/null
+++ b/apps/client/src/widgets/collections/presentation/reveal-themes/white.scss
@@ -0,0 +1,43 @@
+/**
+ * White theme for reveal.js. This is the opposite of the 'black' theme.
+ *
+ * By Hakim El Hattab, http://hakim.se
+ */
+
+// Load utils
+@use 'sass:color';
+@use 'template/mixins' as mixins;
+
+$active-color: #2a76dd;
+
+// Inject theme variables (with some overrides)
+@use 'template/settings' with (
+ $background-color: #fff,
+
+ $main-color: #222,
+ $main-font: "'Source Sans Pro', Helvetica, sans-serif",
+ $main-font-size: 42px,
+
+ $heading-color: #222,
+ $heading-font: "'Source Sans Pro', Helvetica, sans-serif",
+ $heading-font-weight: 600,
+
+ $heading1-size: 2.5em,
+ $heading2-size: 1.6em,
+ $heading3-size: 1.3em,
+ $heading4-size: 1em,
+
+ $link-color: $active-color,
+ $link-color-hover: color.scale($active-color, $lightness: 15%),
+ $selection-color: #fff,
+ $selection-background-color: $active-color,
+
+ $overlay-element-bg-color: '0 0 0',
+ $overlay-element-fg-color: '240 240 240'
+);
+
+// Inject the theme template
+@use 'template/theme';
+
+// Change text when the background is inverted
+@include mixins.dark-bg-text-color(#fff);