Expose styles via reagent atom in SCI

Open
#516 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
clojure

Research direction

The issue names SCI, Reagent atoms, Mafs, and MathBox but no files or tests. Start by locating the SCI integration and the code that exposes Clerk's active style, then determine how a dereferenceable style value can update viewers when dark/light mode changes. Done means the current style is exposed for components to consume and the requested viewer styling behavior works.

Written by the indexing model from the issue text.

Description

I'd love to be able to wrap my Mafs and MathBox viewers in a div that sets their styles based on the Clerk style active at the moment.

It would be great to expose the current style (as a map of variable => value, maybe?) in a reagent atom that I can deref, so my component will change when the user toggles dark/light mode.

Dominant language
Clojure
Stars
2.1k
Forks
87
Avg merge
3m
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nextjournal/clerk

All issues in nextjournal/clerk

Similar issues

More Clojure issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.