@douyinfe/semi-foundation
| Install | |
|---|---|
npm install @douyinfe/semi-foundation |
|
| Latest Version: | 2.104.0 |
| License: | MIT |
| Last Updated: | Oct 9, 2026 |
| Links: | npm |
The infrastructure layer is used to build modern component libraries.
Semi UI adopts a set of cross-front-end framework technical solutions to split the JavaScript of each component into two parts: Foundation and Adapter.
This allows us to reuse Foundation code across frameworks by only re-implementing the adapter, e.g, React and Vue. Quickly build common component libraries on different platforms.
-
Foundation
Foundationcontains the business logic that best representsSemi Designwithout actually referencing any DOM elements.FoundationdelegatesAdaptermethods for any logic that requires DOM manipulation -
Adapter
Adapteris an interface that has all the methods needed byFoundationto implementSemi Designbusiness logic.Adaptercan have many implementations, allowing interoperability with different frameworks.
Directory Structure
├── semi-foundation // Foundation and Stylesheet of component
│ ├── utils
│ └── tooltip
│ ├── constants.js // Constant definition, including numbers, strings, cssClass
│ ├── foundation.js // Core foundation
│ ├── tooltip.scss // Stylesheet
│ ├── mixin.scss // Scss mixin
│ ├── rtl.scss // Rtl
│ ├── variables.scss // Scss variable
Related documents

License
MIT
Version History
| Version | Released | License |
|---|---|---|
| 2.104.0 | MIT | |
| 2.103.0 | MIT | |
| 2.102.0 | MIT | |
| 2.101.1 | MIT | |
| 2.101.0 | MIT | |
| 2.100.0 | MIT | |
| 2.99.3 | MIT | |
| 2.99.2 | MIT | |
| 2.99.1 | MIT | |
| 2.99.0 | MIT | |
| 2.98.0 | MIT | |
| 2.97.0 | MIT | |
| 2.96.1 | MIT | |
| 2.96.0 | MIT | |
| 2.95.1 | MIT | |
| 2.95.0 | MIT | |
| 2.94.1 | MIT | |
| 2.94.0 | MIT | |
| 2.93.0 | MIT | |
| 2.92.2 | MIT | |
| 2.92.1 | MIT | |
| 2.92.0 | MIT | |
| 2.91.0 | MIT | |
| 2.90.13 | MIT | |
| 2.90.12 | MIT | |
| 2.90.11 | MIT | |
| 2.90.10 | MIT | |
| 2.90.9 | MIT | |
| 2.90.8 | MIT | |
| 2.90.7 | MIT |
Showing the latest 30 of 282. See every release on npm
Pre-releases (334)
| Version | Released | License |
|---|---|---|
| 2.93.0-alpha.0 | MIT | |
| 2.91.0-beta.0 | MIT | |
| 2.90.1-alpha.2 | MIT | |
| 2.90.1-alpha.0 | MIT | |
| 2.90.0-beta.0 | MIT | |
| 2.89.2-alpha.3 | MIT | |
| 2.89.2-alpha.2 | MIT | |
| 2.89.2-alpha.1 | MIT | |
| 2.89.2-alpha.0 | MIT | |
| 2.89.0-beta.0 | MIT | |
| 2.89.0-alpha.0 | MIT | |
| 2.88.2-alpha.1 | MIT | |
| 2.88.2-alpha.0 | MIT | |
| 2.88.1-alpha.0 | MIT | |
| 2.88.0-beta.1 | MIT | |
| 2.88.0-beta.0 | MIT | |
| 2.88.0-alpha.8 | MIT | |
| 2.88.0-alpha.7 | MIT | |
| 2.88.0-alpha.5 | MIT | |
| 2.88.0-alpha.4 | MIT | |
| 2.88.0-alpha.3 | MIT | |
| 2.88.0-alpha.2 | MIT | |
| 2.88.0-alpha.1-exact | MIT | |
| 2.87.0-beta.0 | MIT | |
| 2.87.0-alpha.8 | MIT | |
| 2.87.0-alpha.7 | MIT | |
| 2.87.0-alpha.6 | MIT | |
| 2.87.0-alpha.5 | MIT | |
| 2.87.0-alpha.4 | MIT | |
| 2.87.0-alpha.3 | MIT |
Showing the latest 30 of 334. See every release on npm