Skip to content

alibaba-fusion/next

Folders and files

NameName
Last commit message
Last commit date
Jun 21, 2024
Aug 26, 2020
Mar 10, 2025
Dec 6, 2024
Dec 17, 2023
Oct 21, 2024
Jun 11, 2024
Mar 10, 2025
Dec 28, 2023
Mar 4, 2019
Dec 21, 2023
Mar 7, 2024
Aug 28, 2020
Mar 10, 2025
Dec 17, 2023
Nov 6, 2019
Dec 17, 2023
Dec 20, 2023
Nov 17, 2021
Mar 10, 2025
Mar 10, 2025
Jan 7, 2019
Apr 8, 2024
Jun 16, 2022
Feb 26, 2019
Dec 17, 2023
Jan 3, 2024
Dec 6, 2024
May 30, 2024
Jan 3, 2024
Jul 14, 2021
Apr 20, 2021
Aug 26, 2020
Mar 10, 2025
Jul 14, 2021
Mar 10, 2025
Mar 10, 2025
Jan 3, 2024
Jan 3, 2024
Dec 21, 2023
Jan 16, 2025
Dec 26, 2023
Jan 3, 2024
Dec 17, 2023

Repository files navigation

English | 简体中文

Fusion

An enterprise-class UI solution for backend system, aimed at settling the problems like cooperation between designers and front-developers, consistency of product experience and development efficiency.


You can customize your own DesignSystem via Collaboration Platform.💖 Designers will receive design materials by Fusion Cool - an easy to use plugin on sketch. Developers will get code fragment on IceWorks. At the same time, the consistency between code and visual manuscript is guaranteed. 😍

howtouse

🤔 Why use

@alifd/next usually used with Fusion Design to improving designer-developer collaboration and development efficiency. Designer can customize the UI of components and release an npm theme package. Developer can use this theme package directly, and don't need to care about the UI refactoring. It saves the workload of reductive degree review repeatedly with designers, and greatly improves the development efficiency.

💻 Browser Compatibility

Chrome Firefox Edge IE Safari Opera UC
9+ ✔

🚀 Quick Start

🛠 Install

1.Use NPM ( Recommend )

npm install @alifd/next --save

2.Import in Browser

Use the script and link tags in the browser to directly import the file and use the global variable Next. We provide files such as next.js/next.min.js and next.css/next.min.css in the @alifd/next/dist directory in the npm package, or via unpkg Download it.

<link rel="stylesheet" href="https://unpkg.com/@alifd/next/dist/next.css" />

<script src="https://unpkg.com/@alifd/next/dist/next.js"></script>

// The above ways import latest @alifd/next, we recommend you specify version.
<script src="https://unpkg.com/@alifd/next@1.8.6/dist/next.min.js"></script>

// Or import as your own static resource
<script src="../build/public/@alifd/next.js"></script>

☔️ Dependencies

  • @alifd/next is based on react@16 development and is currently not compatible with versions below react@16. react/react-dom is used as peerDependencies, which requires the user to manually install or import it.
  • @alifd/next use moment library to implement date-time related component. moment is also used as peerDependencies, which requires the user to manually install or import it.

🎯 Import

Import All

import '@alifd/next/dist/next.css';
// import '@alifd/next/index.scss';

import { Button, Input } from '@alifd/next';

Import module with plugin

1. Import module manually

import Button from '@alifd/next/lib/button';
import '@alifd/next/lib/button/style';

2. Use with babel-plugin-import ( Recommend )

// webpack babel loader option or .babelrc
{
    // ...
    plugins: [
        [
            'import',
            {
                libraryName: '@alifd/next',
                style: true,
            },
        ],
    ];
}

It will transform code as below

import { Button } from '@alifd/next';

To

import Button from '@alifd/next/lib/button';
import '@alifd/next/lib/button/style';

🔗 Advanced

🌈 Contributing

Use Gitpod, a free online dev environment for GitHub.

Open in Gitpod

Or clone locally:

📣 Join Group

Use Dingtalk App scan the Qrcode to join in Dingtalk Group : Join the chat at dingtalk