dracula.scss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. /**
  2. * Dracula Dark theme for reveal.js.
  3. * Based on https://draculatheme.com
  4. */
  5. // Default mixins and settings -----------------
  6. @import "../template/mixins";
  7. @import "../template/settings";
  8. // ---------------------------------------------
  9. // Include theme-specific fonts
  10. @import url(./fonts/league-gothic/league-gothic.css);
  11. @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
  12. $systemFontsSansSerif: -apple-system,
  13. BlinkMacSystemFont,
  14. avenir next,
  15. avenir,
  16. segoe ui,
  17. helvetica neue,
  18. helvetica,
  19. Cantarell,
  20. Ubuntu,
  21. roboto,
  22. noto,
  23. arial,
  24. sans-serif;
  25. $systemFontsMono: Menlo,
  26. Consolas,
  27. Monaco,
  28. Liberation Mono,
  29. Lucida Console,
  30. monospace;
  31. /**
  32. * Dracula colors by Zeno Rocha
  33. * https://draculatheme.com/contribute
  34. */
  35. html * {
  36. color-profile: sRGB;
  37. rendering-intent: auto;
  38. }
  39. $background: #282A36;
  40. $foreground: #F8F8F2;
  41. $selection: #44475A;
  42. $comment: #6272A4;
  43. $red: #FF5555;
  44. $orange: #FFB86C;
  45. $yellow: #F1FA8C;
  46. $green: #50FA7B;
  47. $purple: #BD93F9;
  48. $cyan: #8BE9FD;
  49. $pink: #FF79C6;
  50. // Override theme settings (see ../template/settings.scss)
  51. $mainColor: $foreground;
  52. $headingColor: $purple;
  53. $headingTextShadow: none;
  54. $headingTextTransform: none;
  55. $backgroundColor: $background;
  56. $linkColor: $pink;
  57. $linkColorHover: $cyan;
  58. $selectionBackgroundColor: $selection;
  59. $inlineCodeColor: $green;
  60. $listBulletColor: $cyan;
  61. $mainFont: $systemFontsSansSerif;
  62. $codeFont: "Fira Code", $systemFontsMono;
  63. // Change text colors against light slide backgrounds
  64. @include light-bg-text-color($background);
  65. // Theme template ------------------------------
  66. @import "../template/theme";
  67. // ---------------------------------------------
  68. // Define additional color effects based on Dracula spec
  69. // https://spec.draculatheme.com/
  70. :root {
  71. --r-bold-color: #{$orange};
  72. --r-italic-color: #{$yellow};
  73. --r-inline-code-color: #{$inlineCodeColor};
  74. --r-list-bullet-color: #{$listBulletColor};
  75. }
  76. .reveal {
  77. strong, b {
  78. color: var(--r-bold-color);
  79. }
  80. em, i, blockquote {
  81. color: var(--r-italic-color);
  82. }
  83. code {
  84. color: var(--r-inline-code-color);
  85. }
  86. // Dracula colored list bullets and numbers
  87. ul, ol {
  88. li::marker {
  89. color: var(--r-list-bullet-color);
  90. }
  91. }
  92. }