Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

pre-defined style fontFamily breaks Prism theme

Open
#319 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
react, typescript
Domain
frontend

Research direction

Start in src/components/Editor/index.js around line 51 and compare the predefined fontFamily with the referenced Prism theme CSS. Check how className and inline styles are currently handled; done means the predefined fontFamily no longer overrides the Prism theme and the requested style customization behavior is addressed.

Written by the indexing model from the issue text.

Description

Line 51 fontFamily: "inherit"

https://github.com/FormidableLabs/react-live/blob/e21fd338e61641b1960d1f3650d6ba7482ceae03/src/components/Editor/index.js#L48-L51

Will override Prism theme

https://github.com/PrismJS/prism/blob/0d4b6cb64e72a172fc64423c04aed4ac8b59cd0b/themes/prism.css#L12

Further, why not let users define all the style (margin, outline, padding, fontFamily) by themself through className? This way, React Live will become a true HeadlessUI component.

Dominant language
TypeScript
Stars
4.6k
Forks
260
Avg merge
2d 23h
Merged PRs (30d)
3

Getting set up

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 FormidableLabs/react-live

All issues in FormidableLabs/react-live

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.