Skip to content

Commit

Permalink
Merge pull request #85 from CJSmith-0141/add_a_dark_theme
Browse files Browse the repository at this point in the history
Add a dark theme and dark theme syntax highlight colors
  • Loading branch information
hamnis authored Jan 3, 2025
2 parents 182d158 + f8ec027 commit b413c2a
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion core/src/main/scala/io/circe/sbt/CirceOrgSitePlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package io.circe.sbt

import laika.ast.Path.Root
import laika.ast._
import laika.helium.config.ColorQuintet
import laika.helium.config.Favicon
import laika.helium.config.HeliumIcon
import laika.helium.config.IconLink
Expand Down Expand Up @@ -111,7 +112,43 @@ object CirceOrgSitePlugin extends AutoPlugin {
)
.site
.darkMode
.disabled
// format: off
.themeColors(
primary = Color.hex("A6A6FF"), // #A6A6FF
secondary = Color.hex("DDD9FF"), // #DDD9FF
primaryMedium = Color.hex("8A8AD4"), // #8A8AD4
primaryLight = Color.hex("2F2F47"), // #2F2F47
text = Color.hex("D2E3FA"), // #D2E3FA
background = Color.hex("10101C"), // #10101C
// gradient not used in current configuraiton
bgGradient = (
Color.hex("F4F3F4"),
Color.hex("E5E5E6")
)
)
// format: on
.site
.darkMode
.syntaxHighlightingColors(
ColorQuintet(
// format: off
Color.hex("23232E"), // #23232E
Color.hex("BABACF"), // #BABACF
Color.hex("6B6BB5"), // #6B6BB5
Color.hex("E6E6FF"), // #E6E6FF
Color.hex("F2F2FF") // #F2F2FF
// format: on
),
ColorQuintet(
// format: off
Color.hex("FF6B57"), // #FF6B57
Color.hex("FFAD54"), // #FFAD54
Color.hex("FFE957"), // #FFE957
Color.hex("7EE6B4"), // #7EE6B4
Color.hex("968CFF") // #968CFF
// format: on
)
)
.site
.mainNavigation(appendLinks = Seq(relatedProjects.value))
.site
Expand Down

0 comments on commit b413c2a

Please sign in to comment.