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

Helium - minor tweaks for default colours #660

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private[helium] object HeliumDefaults {
info = Color.hex("ebf6f7"),
infoLight = Color.hex("007c99"),
warning = Color.hex("fcfacd"),
warningLight = Color.hex("b1a400"),
warningLight = Color.hex("817800"),
error = Color.hex("ffe9e3"),
errorLight = Color.hex("d83030")
)
Expand Down Expand Up @@ -128,7 +128,7 @@ private[helium] object HeliumDefaults {
primary = Color.hex("007c99"),
secondary = Color.hex("931813"),
primaryMedium = Color.hex("a7d4de"),
primaryLight = Color.hex("ebf6f7"),
primaryLight = Color.hex("eef5f6"),
text = Color.hex("5f5f5f"),
background = Color.hex("ffffff"),
bgGradient = (Color.hex("095269"), Color.hex("007c99"))
Expand Down
6 changes: 3 additions & 3 deletions io/src/test/scala/laika/helium/HeliumEPUBCSSSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class HeliumEPUBCSSSpec extends CatsEffectSuite with InputBuilder with ResultExt

test("defaults") {
val expected = s"""--primary-color: #007c99;
|--primary-light: #ebf6f7;
|--primary-light: #eef5f6;
|--primary-medium: #a7d4de;
|--secondary-color: #931813;
|--text-color: #5f5f5f;
Expand Down Expand Up @@ -160,7 +160,7 @@ class HeliumEPUBCSSSpec extends CatsEffectSuite with InputBuilder with ResultExt
}

private val customFonts = s"""--primary-color: #007c99;
|--primary-light: #ebf6f7;
|--primary-light: #eef5f6;
|--primary-medium: #a7d4de;
|--secondary-color: #931813;
|--text-color: #5f5f5f;
Expand Down Expand Up @@ -422,7 +422,7 @@ class HeliumEPUBCSSSpec extends CatsEffectSuite with InputBuilder with ResultExt

test("layout") {
val expected = s"""--primary-color: #007c99;
|--primary-light: #ebf6f7;
|--primary-light: #eef5f6;
|--primary-medium: #a7d4de;
|--secondary-color: #931813;
|--text-color: #5f5f5f;
Expand Down
2 changes: 1 addition & 1 deletion io/src/test/scala/laika/helium/HeliumHTMLHeadSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ class HeliumHTMLHeadSpec extends CatsEffectSuite with InputBuilder with ResultEx
|theme: "base",
|themeVariables: {
|'darkMode': dark,
|'primaryColor': dark ? '#125d75' : '#ebf6f7',
|'primaryColor': dark ? '#125d75' : '#eef5f6',
|'primaryTextColor': dark ? '#a7d4de' : '#007c99',
|'primaryBorderColor': dark ? '#a7d4de' : '#a7d4de',
|'lineColor': dark ? '#a7d4de' : '#007c99',
Expand Down
2 changes: 1 addition & 1 deletion io/src/test/scala/laika/helium/HeliumSiteCSSSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class HeliumSiteCSSSpec extends CatsEffectSuite with InputBuilder with ResultExt
}

private val defaultColors = """--primary-color: #007c99;
|--primary-light: #ebf6f7;
|--primary-light: #eef5f6;
|--primary-medium: #a7d4de;
|--secondary-color: #931813;
|--text-color: #5f5f5f;
Expand Down