ringcentral / ringcentral/ringcentral-embeddable

Support to set theme by API

Open
#1,063 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
93
Forks
53
Avg merge
7d
Merged PRs (30d)
4

Description

Currently the embeddable only support to set dark them in user's settings.
Developer would like to change it by some API to follow host website's theme.

Maybe: ?theme=dark in query params.

Current quick solution:
When the widget's theme setting is set to follow system setting, developer can change the widget's them by set CSS of the widget iframe:

iframe {
  color-scheme: dark;
}

Contributor guide

Open the contributing guide

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.

Research direction

Start by tracing the embeddable's theme setting and iframe integration; the issue names no source files or tests. Compare the existing user/system theme behavior with the proposed query-parameter API and define how host-controlled themes should be applied, then verify that the widget follows the selected theme.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.