aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Ángel Moreno <mail@migalmoreno.com>2023-02-20 14:42:18 +0100
committerMiguel Ángel Moreno <mail@migalmoreno.com>2023-02-20 14:42:18 +0100
commit9a2c5c8724bcc99296c95a20ea2d84208cc5e038 (patch)
tree3ea8a7cf6ace0203b7ba5d91f710f0bc59c675b7
parentcc3370f00108525d61c969e314174129143e7e6f (diff)
chore: Update with-style example to LASS
-rw-r--r--README14
1 files changed, 7 insertions, 7 deletions
diff --git a/README b/README
index 4568080..98844c1 100644
--- a/README
+++ b/README
@@ -96,13 +96,13 @@ Now, if you want to tweak Nyxt's appearance further than its color palette by ch
(define-configuration status-buffer
((style
(tailor:with-style 'status-buffer
- ("#container"
- :background theme:primary
- :color (if (theme:dark-p theme:theme)
- theme:on-background
- theme:on-accent))
- ("#controls"
- :background "inherit")))))
+ `("#container"
+ :background ,theme:primary
+ :color ,(if (theme:dark-p theme:theme)
+ theme:on-background
+ theme:on-accent))
+ `("#controls"
+ :background "inherit")))))
#+end_src
By doing this, we'll allow =nx-tailor= to handle the styling of the interface element (=nyxt:status-buffer= in the above case).