返回 reveal.js
white.scss
根目录 / css / theme / white.scss
1 /**
2 * White theme for reveal.js. This is the opposite of the 'black' 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: #2a76dd;
12
13 // Inject theme variables (with some overrides)
14 @use 'template/settings' with (
15 $background-color: #fff,
16
17 $main-color: #222,
18 $main-font: "'Source Sans Pro', Helvetica, sans-serif",
19 $main-font-size: 42px,
20
21 $heading-color: #222,
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: $active-color,
34
35 $overlay-element-bg-color: '0 0 0',
36 $overlay-element-fg-color: '240 240 240'
37 );
38
39 // Inject the theme template
40 @use 'template/theme';
41
42 // Include theme-specific fonts
43 @import url('./fonts/source-sans-pro/source-sans-pro.css');
44
45 // Change text when the background is inverted
46 @include mixins.dark-bg-text-color(#fff);
47
47 lines Plain Text