Skip to content

Turning theme into regular values #176

@selbekk

Description

@selbekk

Can we implement a function that takes a set of Restyle styles (with design tokens), that turns the styles into "regular" styling values?

I.e. something like this:

const customStyles = {
  backgroundColor: "cardPrimary",
  borderRadius: "md",
};
const regularStyles = useStyles(customStyles)
// === { backgroundColor: "#abcabc", borderRadius: 12 }

How could I build a hook like this in userland?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions