ice/packages/plugin-fusion
ClarkXia 7ae6af361d
chore: update versions (#6820)
2024-03-07 11:26:12 +08:00
..
src Feat: optimize theme package injection (#6822) 2024-03-07 10:04:11 +08:00
CHANGELOG.md chore: update versions (#6820) 2024-03-07 11:26:12 +08:00
README.md chore: optimize (#676) 2022-11-15 10:33:11 +08:00
package.json chore: update versions (#6820) 2024-03-07 11:26:12 +08:00
tsconfig.json feat: plugin fusion (#424) 2022-11-15 10:22:57 +08:00

README.md

@ice/plugin-fusion

ice.js plugin for using fusion components.

Usage

import { defineConfig } from '@ice/app';
import fusion from '@ice/plugin-fusion';

export default defineConfig(() => ({
  plugins: [fusion({
    importStyle: true,
    themePackage: '@alifd/theme-design-pro',
    theme: {
      'primary-color': '#fff',
    },
  })],
}));

Options

  • importStyle: Fusion component styles will be automatically imported after enabling.
  • themePackage: Fusion component theme package configuration, if set to an array, multi-theme capability is enabled.
  • theme: theme configuration, overwrite existing themes by setting sass variables.