ZOYKU火線榜

skydiver/nextjs-semantic技術文件

Next.js + Fomantic-UI + Styled Components

多語言回退提示:當前倉庫原作者暫未發布在地化文件,已為您無縫切換至官方英文原版(English),排版及程式碼實例完整保真。
npm i nextjs-semantic

Logo

Notice

Since version 2.0.0 (of this package), Semantic UI was replaced by Fomantic-UI.

Current Versions

  • Next.js 12
  • React 17
  • Fomantic-UI 2.8
  • Styled Components 5.3

Setup

  1. clone repo
  2. npm install
  3. npm run semantic:build
  4. npm run dev

Semantic UI React

Semantic UI

  • you can remove components to reduce css size on semantic.json
  • .semantic folder includes source file, from here it's possible to customize default theme
  • change default Google font (Lato) on .semantic/src/themes/default/globals/site.variables
  • run npm run semantic:watch to watch for changes while customizing theme

Why switching to Fomantic-UI?

Here are some reasons for the change:

  • Semantic UI requires Node 10
  • Fomantic-UI is actively developed
  • Adds more components
  • Fixes several security vulnerabilities

If you still want to use Semantic UI, get release 1.1.0

Deploy with Vercel

Deploy with Vercel

文件鏡像歸檔自 GitHub 官方源路徑 · 造訪原專案 GitHub
最後同步快照:2026-11-09