快速搭建美观的 React 应用。由抖音前端与 UED 团队维护。 https://semi.design/

pointhalo 376aa70b0d test: chromatic viewport of locale 1 年之前
.codesandbox 7648406c76 chore: update codesandbox ci.json, node 16 -> 20 1 年之前
.github 463081d3b5 chore: remove multiple run command in test-cypress ci 1 年之前
.storybook ef8a3a5a97 fix: navigation number itemkey can't expand , close #2316 1 年之前
.vscode 8cf9de168f test: add test for hotKeys 1 年之前
content 0f3e0db873 docs: supplement missing changelog, adjust some classification of 2.66.0 1 年之前
cypress f399585b94 fix: upload addOnPasting can't work in Sidesheet, close #2478 (#2480) 1 年之前
packages 376aa70b0d test: chromatic viewport of locale 1 年之前
plugins 395ecb1b03 feat: add docs of lab icon (#1956) 1 年之前
scripts a6bda78613 Merge branch release into main 1 年之前
search 708df1978f chore: update search data 3 年之前
src 8946ef6145 Merge branch 'main' of github.com:DouyinFE/semi-design 1 年之前
static 7d72163a34 chore: add sitemap url to robots.txt 2 年之前
test 9671abc27a test: add react testing library, test without enzyme (#2471) 1 年之前
.commitlintrc.js f76bd5879d feat: init 4 年之前
.eslintignore f76bd5879d feat: init 4 年之前
.eslintrc.js f949aaf83d chore: format 1 年之前
.gitattributes 8337c6d90a Update .gitattributes 3 年之前
.gitignore f8d62f4c66 test: [Image] add test cases for Image (#1236) 2 年之前
.lighthouserc.js fb91638513 chore(ci): lighthouse (#380) 3 年之前
.npmrc 37f53d3a5e chore: update yarn.lock 3 年之前
.prettierrc.js f76bd5879d feat: init 4 年之前
.stylelintrc.js c5917caa93 chore: change stylelint rules 2 年之前
CODE_OF_CONDUCT.md 0e46959d60 Create CODE_OF_CONDUCT.md 4 年之前
CONTRIBUTING-en-US.md 6f68af1688 docs: Update CONTRIBUTING-en-US.md 1 年之前
CONTRIBUTING.md 5c37117b7a docs: update engine version 1 年之前
LICENSE 15deb4dd41 Update LICENSE 4 年之前
README-zh_CN.md 4fd8aaf421 chore: update home page description, add web component support content (#2323) 1 年之前
README.md 4fd8aaf421 chore: update home page description, add web component support content (#2323) 1 年之前
babel.config.js 73022d6c8a Plus/markdown render (#2196) 1 年之前
create_symlinks.sh 3a7a6d1e55 chore: update ci workflow node 16 -> node 20 (#2109) 1 年之前
cypress.config.ts f399585b94 fix: upload addOnPasting can't work in Sidesheet, close #2478 (#2480) 1 年之前
favicon.ico f76bd5879d feat: init 4 年之前
gatsby-browser.js f76bd5879d feat: init 4 年之前
gatsby-config.js 66559b4561 chore: add cdn config 2 年之前
gatsby-node.js 458a4dcbd2 feat: ConfigConsumer 1 年之前
gatsby-ssr.js f76bd5879d feat: init 4 年之前
jest.config.js 9671abc27a test: add react testing library, test without enzyme (#2471) 1 年之前
lerna.json 8c97448e5e v2.66.0 1 年之前
nyc.config.js 591051eb86 test: add istanbul ignore to some file and update jest exclude config 3 年之前
package.json 9671abc27a test: add react testing library, test without enzyme (#2471) 1 年之前
sitemap.xml 20a9044a1f chore: publish 2.66.0 1 年之前
syncRegistry.sh c3c2ae17f2 chore: add script to sync 1 年之前
tsconfig.eslint.json f76bd5879d feat: init 4 年之前
tsconfig.json a7dd89e4e1 chore: lint add space-infix-ops 1 年之前
yarn.lock 471280bf00 fix: improve translate of datepicker in ms_MY 1 年之前

README-zh_CN.md

Semi-UI

现代、全面、灵活的设计系统和 UI 库。 致力打通 DesignOps & DevOps ,快速搭建美观的 React 应用。

[![LICENSE][license-badge]][license-url] [![NPM][npm-badge]][npm-url] [![FIGMA][figma-badge]][figma-url] ![Design Token][Design Token] [![CODECOV][codecov-badge]][codecov-url] [![Chromatic][chromatic-badge]][chromatic-url] [![Cypress][cypress-badge]][cypress-url] [![Twitter Follow](https://img.shields.io/twitter/follow/SemiDesignUI?style=social)](https://twitter.com/SemiDesignUI)

简体中文 | English

🎉 特性

  • 💪 60+高质量组件
  • 💅 Code2Design,根据不同主题自动生成 Figma UI Kit,保持代码与设计同源
  • 🚀 强大的 D2C (Design2Code)支持,Figma 设计稿一键转出真实代码,快速构建应用
  • 💕 完善的无障碍支持,为所有组件提供遵循 W3C 标准的键盘交互、焦点管理和语义化
  • 🎨 设计系统管理工具 Semi DSM,多达2000+ Design Token,快速定制你的专属设计系统
  • 🌍 国际化支持 20+ 语言,提供完备的多语言、多时区、RTL支持
  • ⚙️ 稳定的质量保障,覆盖单元测试、E2E测试、视觉回归测试等多种测试手段
  • 🥳 支持 SSR
  • 👏 使用 TypeScript, 良好的类型定义,基于 Foundation / Adapter 架构,源码易于阅读 / 贡献
  • 📦 轻松兼容 web components,提供完整适配方案,更适合用于构建 SDK、浏览器插件等需要 DOM 隔离的场景

🔥 安装

npm install @douyinfe/semi-ui

👍 组件使用

这是一个快速开始的例子:

import React from 'react';
import { createRoot } from 'react-dom/client';
import { Button, Form } from '@douyinfe/semi-ui';

const App = () => (
    <Form>
        <Form.Input field='name' initValue='semi design'></Form.Input>
        <Button htmlType='submit'>submit</Button>
    </Form>
);

const root = createRoot(document.querySelector('#app'));
root.render(<App />);

Semi UI 官网 拥有上千个支持实时调试的例子,欢迎体验使用。

⚡️ D2C 设计稿转代码

安装插件 Semi Figma Plugin. 数秒内将 Figma 转为真实前端代码,支持多种出码格式: JSX + SCSS / Emotion/Tailwind、 JSON Schema DSL

  • 支持 Figma Devmode,选中图层后,右侧可直接查看对应的真实代码

design2code

  • 或跳转至 Codesandbox 进行二次编辑

codesandboxdemo

🎨 DSM 设计系统管理

基于 Semi UI 定制你的专属设计系统, 提供高达 2700+ Token 允许你定义每一处细节. 并时刻在 Figma 与主题商店间保持同步。

dsmintro

📰 关注我们的动态

📌 文档

👌 平台支持

Semi UI 支持所有主流浏览器。

|chrome
chrome|firefox
firefox|safari
safari|IE/Edge
IE/Edge|electron
Electron| |--|--|--|--|--| | latest 2 versions | latest 2 versions | latest 2 versions | Edge | latest 2 versions |

👨‍👨‍👧‍👦 交流群

有任何问题可以进群交流,我们会及时给予解答和反馈。

加入飞书用户群.

💖 Thanks

Chromatic

感谢 Chromatic 提供可视化测试平台,帮助我们审查 UI 更改和提供视觉回归测试。

Cypress

感谢 Cypress 提供 E2E 测试。

👐 参与共建

Semi Design 欢迎社区开发者参与共建,衷心感谢每一位协作者的付出

阅读贡献指南了解我们的开发流程,包括开发规范、测试规范和构建规范等: CONTRIBUTING

🎈 协议

Semi UI 使用 MIT 协议