diff --git a/data.toml b/data.toml index 81934cc..8c65277 100644 --- a/data.toml +++ b/data.toml @@ -2,6 +2,8 @@ name = "Vahid Al" description = "Software Developer, Currently working on nothing" keywords = "developer, python" image = "me.jpeg" +theme = "dark" +primary_color = "#00897b" [[sections]] title = "Projects" diff --git a/script.py b/script.py index 69e0fbd..1b1dbfd 100644 --- a/script.py +++ b/script.py @@ -38,6 +38,13 @@ h("meta", charset="utf-8"), h("link", rel="stylesheet", href="css/pico.min.css"), h("link", rel="stylesheet", href="css/style.css"), + h("style", rel="stylesheet")( + f""" + :root {{ + --primary: {data.get("primary_color", "#546e7a")}; + }} + """ + ), ), ) @@ -68,7 +75,7 @@ ), ) - output = html(lang="en")( + output = html(lang="en", data_theme=data.get("theme", "dark"))( head, h("body")( header,