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

Update CirceOrgSite Theme to have better contrast #84

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
26 changes: 18 additions & 8 deletions core/src/main/scala/io/circe/sbt/CirceOrgSitePlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,26 @@ object CirceOrgSitePlugin extends AutoPlugin {
/* See scaladoc on laika.helium.config.CommonConfigOps#themeColors()
* old circe website color theme reference point:
* https://github.com/circe/circe/blob/c666f32f3bd02644a927b624f7534fdeccbd62a6/build.sbt#L151
*
* The inline comments are because many editors recognize hex colors
* in the #4a4a4a format, so you should be able to see them at a glance.
*
*/
// format: off
.themeColors(
primary = Color.hex("222749"),
secondary = Color.hex("222749"),
primaryMedium = Color.hex("292E53"),
primaryLight = Color.hex("5B5988"),
text = Color.hex("5f5f5f"),
background = Color.hex("F4F3F4"),
bgGradient = (Color.hex("F4F3F4"), Color.hex("E5E5E6"))
primary = Color.hex("34324D"), // #34324D
secondary = Color.hex("262D52"), // #262D52
primaryMedium = Color.hex("8F8BD5"), // #8F8BD5
primaryLight = Color.hex("A29DF2"), // #A29DF2
text = Color.hex("4a4a4a"), // #4a4a4a
background = Color.hex("F8F5FF"), // #F8F5FF
// gradient not used in current configuraiton
bgGradient = (
Color.hex("F4F3F4"),
Color.hex("E5E5E6")
)
)
// format: on
.site
.favIcons(
Favicon.internal(Root / "images" / "circe_light_no_border_146x173.png", "32x32")
Expand All @@ -108,7 +118,7 @@ object CirceOrgSitePlugin extends AutoPlugin {
.topNavigationBar(
homeLink = ImageLink.external(
"https://github.com/circe/circe",
Image.internal(Root / "images" / "circe_light_no_border_146x173.png")
Image.internal(Root / "images" / "circe_light_no_border_146x173.png", alt = Some("circe logo"))
),
navLinks = Seq(
IconLink.external("https://discord.gg/XF3CXcMzqD", HeliumIcon.chat)
Expand Down
Loading