aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authoralyx <alyx@aleteoryx.me>2023-11-22 19:49:27 -0500
committeralyx <alyx@aleteoryx.me>2023-11-22 19:49:27 -0500
commit41a5fa81b5c12feb8aab0ad82d42c135e93065f7 (patch)
treebfc1f1e7ba3d35acff28df0c3e369a32d163dcfa /README.md
parentbe166d93b7aabb5b260e21c10b1b247704858193 (diff)
downloadlfm_embed-41a5fa81b5c12feb8aab0ad82d42c135e93065f7.tar.gz
lfm_embed-41a5fa81b5c12feb8aab0ad82d42c135e93065f7.tar.bz2
lfm_embed-41a5fa81b5c12feb8aab0ad82d42c135e93065f7.zip
Add custom font support.
Diffstat (limited to 'README.md')
-rw-r--r--README.md20
1 files changed, 18 insertions, 2 deletions
diff --git a/README.md b/README.md
index 739b94a..4d5ae8f 100644
--- a/README.md
+++ b/README.md
@@ -160,7 +160,15 @@ Themes should have, roughly, the structure below:
<html lang="en"> <!-- Or really whatever you want, but I speak English. -->
<head>
<meta charset="UTF-8">
- <style> /* styles */ </style>
+ <style>
+ {{#if font.css}}
+ {{{font.css}}}
+ {{/if}}
+ {{#if (or font.name font.css)}}
+ * { font-family: '{{#if font.name}}{{font.name}}{{/if}}{{#if font.url}}included_font{{/if}}' }
+ {{/if}}
+ /* actual styles */
+ </style>
</head>
<body>
{{#if error}}<p>{{error}}</p>{{else}}
@@ -225,7 +233,15 @@ If there was an error, the object will just be `{ error: String }`, otherwise it
// the most recently played track.
now_playing: Boolean,
},
-
+
+ // Custom font info.
+ font: {
+ // Set if the theme should replace the custom font with something.
+ name: String?
+ // Will contain CSS which includes a custom font as 'included_font'.
+ css: String?
+ }
+
// A set of extraneous query parameters.
//
// This should be considered UNTRUSTED, as the requester has full