返回 reveal.js
black.scss
根目录 / css / theme / black.scss
1 /**
2 * Black theme for reveal.js. This is the opposite of the 'white' theme.
3 *
4 * By Hakim El Hattab, http://hakim.se
5 */
6
7 // Load utils
8 @use 'sass:color';
9 @use 'template/mixins' as mixins;
10
11 $active-color: #42affa;
12
13 // Inject theme variables (with some overrides)
14 @use 'template/settings' with (
15 $background-color: #191919,
16
17 $main-font: "'Source Sans Pro', Helvetica, sans-serif",
18 $main-font-size: 42px,
19 $main-color: #fff,
20
21 $heading-color: #fff,
22 $heading-font: "'Source Sans Pro', Helvetica, sans-serif",
23 $heading-font-weight: 600,
24
25 $heading1-size: 2.5em,
26 $heading2-size: 1.6em,
27 $heading3-size: 1.3em,
28 $heading4-size: 1em,
29
30 $link-color: $active-color,
31 $link-color-hover: color.scale($active-color, $lightness: 15%),
32 $selection-color: #fff,
33 $selection-background-color: color.scale($active-color, $lightness: -35%)
34 );
35
36 // Inject the theme template
37 @use 'template/theme';
38
39 // Include theme-specific fonts
40 @import url('./fonts/source-sans-pro/source-sans-pro.css');
41
42 // Change text colors against light slide backgrounds
43 @include mixins.light-bg-text-color(#222);
44
44 lines Plain Text