Skip to content

Commit

Permalink
theme(metropolis): decoupled text color and fixed #45
Browse files Browse the repository at this point in the history
  • Loading branch information
OrangeX4 committed May 27, 2024
1 parent ed66fbf commit 1f7cb3f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions themes/metropolis.typ
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
title: if title == auto { self.m-title = title } else { title },
setting: body => {
show: _saved-align.with(align)
set text(fill: self.colors.primary-dark)
set text(fill: self.colors.neutral-dark)
show: args.named().at("setting", default: body => body)
body
},
Expand All @@ -52,7 +52,7 @@
self = utils.empty-page(self)
let info = self.info + args.named()
let content = {
set text(fill: self.colors.primary-dark)
set text(fill: self.colors.neutral-dark)
set align(horizon)
block(width: 100%, inset: 2em, {
text(size: 1.3em, text(weight: "medium", info.title))
Expand Down Expand Up @@ -125,6 +125,7 @@
self = (self.methods.colors)(
self: self,
neutral-lightest: rgb("#fafafa"),
neutral-dark: rgb("#23373b"),
primary-dark: rgb("#23373b"),
secondary-light: rgb("#eb811b"),
secondary-lighter: rgb("#d6c6b7"),
Expand Down Expand Up @@ -155,9 +156,9 @@
set align(bottom)
set text(size: 0.8em)
pad(.5em, {
text(fill: self.colors.primary-dark.lighten(40%), utils.call-or-display(self, self.m-footer))
text(fill: self.colors.neutral-dark.lighten(40%), utils.call-or-display(self, self.m-footer))
h(1fr)
text(fill: self.colors.primary-dark, utils.call-or-display(self, self.m-footer-right))
text(fill: self.colors.neutral-dark, utils.call-or-display(self, self.m-footer-right))
})
if self.m-footer-progress {
place(bottom, block(height: 2pt, width: 100%, spacing: 0pt, utils.call-or-display(self, self.m-progress-bar)))
Expand Down

0 comments on commit 1f7cb3f

Please sign in to comment.