You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
EinGeist
changed the title
Missing export variant in index.js
Web: Missing export variant in index.js
Jul 30, 2024
this issue has actually been fixed but the owners haven't pushed a release in over 3 months. The last release was seemingly mere days before this issue was addressed.
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
The text was updated successfully, but these errors were encountered: