How to use the webpack-theme-color-replacer/client.varyColor function in webpack-theme-color-replacer

To help you get started, we’ve selected a few webpack-theme-color-replacer examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Jkanon / webmagician-ui / src / components / SettingDrawer / themeColorClient.ts View on Github external
getAntdSerials(color: string): string[] {
    const lightCount = 9;
    const divide = 10;
    // 淡化(即less的tint)
    let lightens = new Array(lightCount).fill(0);
    lightens = lightens.map((_, i) => client.varyColor.lighten(color, i / divide));
    const colorPalettes = generate(color);
    const rgb = client.varyColor.toNum3(color.replace('#', '')).join(',');
    return lightens.concat(colorPalettes).concat(rgb);
  },
  changeColor(color?: string): Promise {
github apache / submarine / submarine-workbench / workbench-web / src / components / SettingDrawer / themeColor.js View on Github external
const lightens = new Array(9).fill().map((t, i) => {
      return client.varyColor.lighten(color, i / 10)
    })
    // colorPalette变换得到颜色值
github crawlab-team / artipub / src / components / SettingDrawer / themeColorClient.ts View on Github external
    lightens = lightens.map((_, i) => client.varyColor.lighten(color, i / divide));
    const colorPalettes = generate(color);
github Jkanon / webmagician-ui / src / components / SettingDrawer / themeColorClient.ts View on Github external
    lightens = lightens.map((_, i) => client.varyColor.lighten(color, i / divide));
    const colorPalettes = generate(color);
github FE-Kits / m-fe-rtw / packages / rtw-host-app / src / skeleton / env / theme.ts View on Github external
lightens = lightens.map((_, i) =>
      client.varyColor.lighten(color, i / divide),
    );
github tangtanglove / fullstack-frontend / src / components / SettingDrawer / themeColorClient.ts View on Github external
    lightens = lightens.map((_, i) => client.varyColor.lighten(color, i / divide));
    const colorPalettes = generate(color);

webpack-theme-color-replacer

A webpack plugin designed to dynamicly change the theme colors at runtime. 实现运行时快速动态替换主题色的webpack插件.

MIT
Latest version published 4 months ago

Package Health Score

62 / 100
Full package analysis