material-color-utilities
material-color-utilities copied to clipboard
Web: Missing export variant in index.js
I was trying to use the example in make_schems.md in javascript const scheme = new DynamicScheme({ sourceColorArgb: 0xFFEB0057, variant: Variant.VIBRANT, isDark: false, contrastLevel: 0.0, primaryPalette: TonalPalette.fromInt(0xFFEB0057), secondaryPalette: TonalPalette.fromInt(0xFFF46B00), tertiaryPalette: TonalPalette.fromInt(0xFF00AB46), neutralPalette: TonalPalette.fromInt(0xFF949494), neutralVariantPalette: TonalPalette.fromInt(0xFFBC8877) });
but when I tried to import the Variant to use in the variant argument it returned an error that there is no export named Variant I added it to index.js and now it's working I just opened this issue so that any maintainer add this line of code and fix the problem in the repo itself
thank you