¥Getting started
安装 Radix 主题并在几分钟内开始构建。
Radix Themes 是一个预先设置好样式的组件库,旨在以极少的配置开箱即用。如果你需要无样式组件,请转到 Radix 基础组件。
¥Radix Themes is a pre-styled component library that is designed to work out of the box with minimal configuration. If you are looking for the unstyled components, go to Radix Primitives.
¥Installation
快速上手。
¥Getting up and running is quick and easy.
¥ Install Radix Themes
从命令行安装软件包。
¥Install the package from your command line.
¥ Import the CSS file
在应用的根目录下导入全局 CSS 文件。
¥Import the global CSS file at the root of your application.
¥ Add the Theme component
将 Theme
添加到你的应用,将根组件包裹在 body
内部。
¥Add Theme
to your application, wrapping the root component inside of body
.
¥ Start building
现在,你可以使用 Radix Themes 组件了。
¥You are now ready to use Radix Themes components.
¥Customizing your theme
配置通过 主题 组件进行管理和应用。
¥Configuration is managed and applied via the Theme component.
¥Basic configuration
将 configuration 传递给 Theme
以自定义外观。
¥Pass configuration to the Theme
to customize appearance.
¥Using the theme panel
ThemePanel
是一个嵌入式组件,可让你实时预览主题。访问 组件游乐场 查看实际效果。
¥ThemePanel
is a drop-in component that allows you to preview the theme in real time. Visit the component playground to see it in action.
要将 ThemePanel
添加到你的应用,请将其从包中导入并放入你的根 Theme
中。
¥To add ThemePanel
to your app, import it from the package and drop it inside your root Theme
.
¥Take it further
探索更多概念和功能,充分利用 Radix Themes。
¥Get the most out of Radix Themes by exploring more concepts and features.
Learn how to approach styling and overrides with Radix Themes.
Get to know the layout primitives and their available properties.
Anatomy of a theme and how to create the perfect style for your app.
Understand the color system and its application in your theme.
Integrate a great looking dark mode into your app using appearances.
Add custom typefaces and fine tune typographic details.