Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

theme editor #840

Open
Open
@mydearxym

Description

@mydearxym

use css-variable in styled-component

image

then we can let user to edit those css-variables in bowser, export the data as a theme skin

Get/Set css-variable in javascript

// get
getComputedStyle(document.documentElement)
    .getPropertyValue('--theme-hello')

// set
document.documentElement.style
    .setProperty('--theme-hello', 'pink');

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions