Skip to content

How to specify additional CSS #610

Answered by zampino
larsen asked this question in Q&A
Jan 13, 2024 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

Hi @larsen, what we're doing in some projects of ours, is to alter the var root of the functions you mention, like:

(alter-var-root #'nextjournal.clerk.view/include-css+js
                  (fn [include-fn]
                    (fn [state]
                      (concat (include-fn state)
                              (list (hiccup.page/include-css "https://unpkg.com/[email protected]/dist/leaflet.css"))))))

this works well enough until we find a dedicated mechanism to allow for 3rd party css additions.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@larsen
Comment options

Answer selected by larsen
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@larsen
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants