Advanced · Customized Themes
Customized Themes
Build your own design system
Semi provides a complete theme configuration process, which not only maintains the uniformity and coherence of colors, fonts, rounded corners, shadows, layouts, etc. in the visual language, but also meets the diversified visual needs of the business and the brand.
You can go to Semi Design System Management Site (also known as DSM) to choose or create a theme style that meets your needs.
You can go to Semi Design System Management Site (also known as DSM) to choose or create a theme style that meets your needs.
Currently DSM supports global and component-level style customization, and keeps synchronization between Figma and online code. Use DSM to adapt Semi Design to Any Design
- 🎨 Global style variable management
Supports visual editing and previewing of color wheels, rounded corners, font layout, strokes, and shadows - 🔁 Two-way synchronization of design variables
Design variables can be synchronized in real time in both directions on the Web side and the Figma plug-in side. - 🧩 In-depth component style customization
In-depth customization of the style of a single component, such as the style customization of the height/spacing of the component.
Create a theme
You can also start from a published theme, or choose Create Now to create a new theme, or you can update a published theme. After selecting the main color, our color algorithm will generate a set of highly available color wheels for you. On this basis, you can modify common variables and produce corresponding theme packages. One-click publishing can be pushed to npm.




Access topic
After the theme is created and downloaded, the Semi plug-in can be used to quickly access the selected theme. For every build tool below, you can customize the theme in three ways, listed from lowest to highest priority:
- Through the npm theme package generated by DSM
- Through a local Scss file in your project
- Through key-value variables passed to the plugin
When using webpack as a build tool
For users who use webpack, the SemiWebpackPlugin can be used to apply a customized theme.
Install:
yarn add -D @douyinfe/semi-webpack-plugin or npm i -D @douyinfe/semi-webpack-pluginThrough an npm package
Through a local Scss file
Through key-value parameters
Replace CSS selector prefix
The CSS selectors used by Semi Design are prefixed with
semi by default (e.g. .semi-button). You can replace the prefix through prefixCls:The selectors then become
.custom-button.When using Vite as a build tool
For users who use Vite, the SemiVitePlugin can be used to apply a customized theme.
Install:
yarn add -D @douyinfe/semi-vite-plugin or npm i -D @douyinfe/semi-vite-pluginThrough an npm package
Through a local Scss file
Through key-value parameters
Replace CSS selector prefix
The selectors then become
.custom-button.cssLayer: trueis also supported (wrapping the compiled output in@layer semi { ... }), as isomitCss: true(comments out.cssimports inside semi packages, useful in scenarios like Next.js where global CSS cannot be imported fromnode_modules).
For more engineering setups (such as Next.js), see the DSM documentation.
Make changes to component-level variables take effect
If you modify the component-level variables in the process of customizing the theme, the
theme field needs to be configured with the following configuration to make the changes take effect:Update theme
During the development of Semi, it is possible to update or add some common variables for design considerations. If you are using a customized theme, when Semi has released a new universal variable (we will mark it in the update log), we recommend that you go to DSM to regenerate the theme.