Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a dark theme and dark theme syntax highlight colors #85

Merged
merged 2 commits into from
Jan 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -101,7 +102,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
Loading