Closed JoshuaBrest closed 3 days ago
I've exported variant as you suggested. To construct a DynamicScheme in most case, you can use one of the constructors in https://github.com/material-foundation/material-color-utilities/tree/main/typescript/scheme.
In the current TypeScript implementation, it is impossible to construct a
DynamicScheme
. The constructor forDynamicScheme
requires theVariant
enum, which is not a const enum. This enum is not exported. Additionally, no functionality is available to auto-generate a DynamicScheme from a given color or image, which limits dynamic usability.Fix
File: typescript/index.ts