black-contrast.scss 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /**
  2. * Black compact & high contrast reveal.js theme, with headers not in capitals.
  3. *
  4. * By Peter Kehl. Based on black.(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: #42affa;
  13. // Inject theme variables (with some overrides)
  14. @use 'template/settings' with (
  15. $background-color: #000,
  16. $main-font: "'Source Sans Pro', Helvetica, sans-serif",
  17. $main-font-size: 42px,
  18. $main-color: #fff,
  19. $heading-color: #fff,
  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: color.scale($active-color, $lightness: -35%)
  30. );
  31. // Inject the theme template
  32. @use 'template/theme';
  33. // Include theme-specific fonts
  34. @import url('./fonts/source-sans-pro/source-sans-pro.css');
  35. // Change text colors against light slide backgrounds
  36. @include mixins.light-bg-text-color(#000);