summaryrefslogtreecommitdiff
path: root/tests/typ/text
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-06-30 22:32:24 +0200
committerGitHub <noreply@github.com>2021-06-30 22:32:24 +0200
commit17e89468847735df10381c47c46c7d82d33cc463 (patch)
treeb0ce55f7d62aac399717aac3ab5a76c981c66f65 /tests/typ/text
parent911b5818344e85a58da9db895a333d22484b7ae7 (diff)
Remove color literals (#39)
Diffstat (limited to 'tests/typ/text')
-rw-r--r--tests/typ/text/decorations.typ13
-rw-r--r--tests/typ/text/font.typ2
2 files changed, 6 insertions, 9 deletions
diff --git a/tests/typ/text/decorations.typ b/tests/typ/text/decorations.typ
index 3e298ece..247178b2 100644
--- a/tests/typ/text/decorations.typ
+++ b/tests/typ/text/decorations.typ
@@ -3,17 +3,14 @@
---
#strike[Statements dreamt up by the utterly deranged.]
-Sometimes, we work #strike(extent: 5%, strength: 10pt)[in secret].
-There might be #strike(extent: 5%, strength: 10pt, color: #abcdef88)[redacted]
-things.
+Sometimes, we work #strike(extent: 5%, strength: 10pt)[in secret]. There might
+be #strike(extent: 5%, strength: 10pt, color: rgb("abcdef88"))[redacted] things.
---
-#underline(color: #fc0030)[Critical information is conveyed here.]
-#underline[
- Still important, but not #underline(strength: 0pt)[mission ]critical.
-]
+#underline(color: rgb("fc0030"))[Critical information is conveyed here.]
+#underline[Still important, but not #underline(strength: 0pt)[mission ]critical.]
-#font(color: #fc0030, underline[Change with the wind.])
+#font(color: rgb("fc0030"), underline[Change with the wind.])
---
#overline(underline[Running amongst the wolves.])
diff --git a/tests/typ/text/font.typ b/tests/typ/text/font.typ
index d6161c81..9bfeb684 100644
--- a/tests/typ/text/font.typ
+++ b/tests/typ/text/font.typ
@@ -30,7 +30,7 @@ Emoji: 🐪, 🌋, 🏞
]
// Colors.
-#font(color: eastern)[This is #font(color: #FA644B)[way more] colorful.]
+#font(color: eastern)[This is #font(color: rgb("FA644B"))[way more] colorful.]
---
// Test top and bottom edge.