All Projects → ye-will → next-plugin-antd

ye-will / next-plugin-antd

Licence: MIT license
A @zeit/next-less patch with full support for Ant Design, Less and CSS modules

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to next-plugin-antd

next-plugin-antd-less
🎩 Use Antd (Less) with Next.js v12, Zero Dependency on other Next-Plugins.
Stars: ✭ 338 (+1151.85%)
Mutual labels:  less, css-modules, ant-design, next-plugin
Sku
Front-end development toolkit
Stars: ✭ 403 (+1392.59%)
Mutual labels:  less, css-modules
React Antd
基于react + redux + immutable + less + ES6/7 + webpack2.0 + fetch + react-router + antd实现的SPA后台管理系统模板
Stars: ✭ 321 (+1088.89%)
Mutual labels:  less, ant-design
React Antd Todo
A simple todo list app built with React, Redux and Antd - Ant Design
Stars: ✭ 42 (+55.56%)
Mutual labels:  less, ant-design
jess
If you like CSS, Less, Sass, and/or CSS modules, you're gonna want to star this repo.
Stars: ✭ 26 (-3.7%)
Mutual labels:  less, css-modules
webpack-typescript-react
Webpack 5 boilerplate with support of most common loaders and modules (see tags and description)
Stars: ✭ 185 (+585.19%)
Mutual labels:  less, css-modules
Rollup Plugin Postcss
Seamless integration between Rollup and PostCSS.
Stars: ✭ 507 (+1777.78%)
Mutual labels:  less, css-modules
Ant Design Dark Theme
🌚 Dark theme variables of Ant Design
Stars: ✭ 431 (+1496.3%)
Mutual labels:  less, ant-design
React Antd Multi Tabs Admin
ts+react+antd-多页签后台模板(纯净版,非 antd pro!)
Stars: ✭ 73 (+170.37%)
Mutual labels:  less, ant-design
Moo Css
模块化面向对象的css写法规范策略。适用于大中小型C端项目样式开发,旨在提高开发和维护效率。
Stars: ✭ 79 (+192.59%)
Mutual labels:  less, css-modules
Rollup Plugin Styles
🎨 Universal Rollup plugin for styles: PostCSS, Sass, Less, Stylus and more.
Stars: ✭ 116 (+329.63%)
Mutual labels:  less, css-modules
react-antd
基于react + redux + immutable + less + ES6/7 + webpack2.0 + fetch + react-router + antd实现的SPA后台管理系统模板
Stars: ✭ 320 (+1085.19%)
Mutual labels:  less, ant-design
React Native Css Modules
Style React Native components using CSS, PostCSS, Sass, Less or Stylus.
Stars: ✭ 207 (+666.67%)
Mutual labels:  less, css-modules
Seek Style Guide
Living style guide for SEEK, powered by React, webpack, CSS Modules and Less.
Stars: ✭ 302 (+1018.52%)
Mutual labels:  less, css-modules
pokedex-nextjs
Get to know the different render methods that the Next.js framework provides by exploring Pokemons
Stars: ✭ 39 (+44.44%)
Mutual labels:  less, ant-design
React Redux Antdesign Webpack Starter
react + redux + ant design + react-router 4 + webpack 4 starter
Stars: ✭ 44 (+62.96%)
Mutual labels:  less, ant-design
React Admin
🎉 A magical react admin
Stars: ✭ 149 (+451.85%)
Mutual labels:  less, ant-design
Ant Design Aliyun Theme
⚙ Ant Design Theme for console.aliyun.com
Stars: ✭ 237 (+777.78%)
Mutual labels:  less, ant-design
website
Website source for Jikan.moe
Stars: ✭ 28 (+3.7%)
Mutual labels:  less
react-css-modules-intellij-plugin
React CSS Modules support in IntelliJ IDEA and WebStorm for components written in JavaScript and TypeScript.
Stars: ✭ 41 (+51.85%)
Mutual labels:  css-modules

Next.js & Ant Design (& Less) Made Easy

A @zeit/next-less patch with full support for Ant Design, Less and CSS modules

Version compatibility

  • for antd: <4.0.0, use next-plugin-antd: ~0.1.3
  • for antd: >=4.0.0, use next-plugin-antd: ^0.2.0

create-next-app example

npm init next-app -e https://github.com/ye-will/next-plugin-antd/tree/master/examples/with-ant-design-less with-ant-design-less

or

yarn create next-app -e https://github.com/ye-will/next-plugin-antd/tree/master/examples/with-ant-design-less with-ant-design-less

Installation

npm install --save next-plugin-antd less antd

Configuring

Create/Edit next.config.js in your project

// next.config.js
const withPluginAntd = require("next-plugin-antd")
module.exports = withPluginAntd({
  /* config options here */
})

Add a .babelrc

{
  "presets": ["next/babel"],
  "plugins": [
    [
      "import", {
        "libraryName": "antd",
        "style": true
      }
    ]
  ]
}

Congratulations 🎉🎉🎉

Options

antdThemeVariables: less-vars-to-js config to customize ant design theme

All @zeit/next-less options are supported, such as cssModules, cssLoaderOptions, lessLoaderOptions, postcssLoaderOptions

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].