¥Usage
如何将 Radix 颜色与各种样式解决方案结合使用。
Radix Colors 色阶只是简单的 JavaScript 对象,因此你可以轻松地将它们与你喜欢的样式方案结合使用。你可以在下面找到一些常用样式解决方案的使用示例。
¥Radix Colors scales are just simple JavaScript objects, so you can use them with your preferred styling solution easily. Below you can find usage examples for popular styling solutions.
¥Vanilla CSS
Radix Colors 将颜色打包为原始 CSS 文件。你可以在使用打包器(例如 Parcel 或 Webpack)时直接将它们导入到文件中。
¥Radix Colors provides the colors bundled as raw CSS files. You can import them directly in your files when using a bundler, such as Parcel or Webpack.
除了导入方式不同之外,使用 和 组件渲染标题和正文几乎与上述 styled-components 文档相同。
¥Usage with emotion is almost identical to the styled-components docs above, aside from the different imports.