white-contrast.scss 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /**
  2. * White compact & high contrast reveal.js theme, with headers not in capitals.
  3. *
  4. * By Peter Kehl. Based on white.(s)css by Hakim El Hattab, http://hakim.se
  5. *
  6. * - Keep the source similar to black.css - for easy comparison.
  7. * - $mainFontSize controls code blocks, too (although under some ratio).
  8. */
  9. // Load utils
  10. @use 'sass:color';
  11. @use 'template/mixins' as mixins;
  12. $active-color: #2a76dd;
  13. // Inject theme variables (with some overrides)
  14. @use 'template/settings' with (
  15. $background-color: #fff,
  16. $main-font: "'Source Sans Pro', Helvetica, sans-serif",
  17. $main-font-size: 42px,
  18. $main-color: #000,
  19. $heading-color: #000,
  20. $heading-font: "'Source Sans Pro', Helvetica, sans-serif",
  21. $heading-font-weight: 600,
  22. $heading1-size: 2.5em,
  23. $heading2-size: 1.6em,
  24. $heading3-size: 1.3em,
  25. $heading4-size: 1em,
  26. $link-color: $active-color,
  27. $link-color-hover: color.scale($active-color, $lightness: 15%),
  28. $selection-color: #fff,
  29. $selection-background-color: $active-color,
  30. $overlay-element-bg-color: '0, 0, 0',
  31. $overlay-element-fg-color: '240, 240, 240'
  32. );
  33. // Inject the theme template
  34. @use 'template/theme';
  35. // Include theme-specific fonts
  36. @import url('./fonts/source-sans-pro/source-sans-pro.css');
  37. // Change text when the background is inverted
  38. @include mixins.dark-bg-text-color(#fff);