Загрузка видео...

Не удалось загрузить видео

На главную

🎉 Announcing Radix Themes—a beautiful, open source component library that’s built on top of the primitives so many developers love.

297,686 просмотров • 2 лет назад •via X (Twitter)

Комментарии: 13

Фото профиля Radix by WorkOS
Radix by WorkOS2 лет назад

Get Radix Themes here:

Фото профиля Radix by WorkOS
Radix by WorkOS2 лет назад

That’s 45 components, 100’s of variants, a handful of simple, yet powerful primitives for layout, and an extensive token system provided via CSS variables. We can’t wait to see what you will build with it.

Фото профиля Radix by WorkOS
Radix by WorkOS2 лет назад

As usual, we obsessed over the developer experience. It’s super easy to get started—just import the stylesheet, wrap your app in Theme provider, and go! No config is required.

Фото профиля Radix by WorkOS
Radix by WorkOS2 лет назад

Of course, you can customize your theme. Let’s start with colors. There’s more than 20 hues to choose from. We even allow you to pair your accent color with a tinted gray.

Фото профиля Radix by WorkOS
Radix by WorkOS2 лет назад

In fact, we just shipped a huge update to our color system, which powers Radix Themes: You automatically get beautiful light and dark mode palettes, a transparent version of any color, and accessible contrast ratios out of the box.

Фото профиля Radix by WorkOS
Radix by WorkOS2 лет назад

If you want to use your own brand colors, you can pop the hood and update the corresponding CSS variables in your app:

Фото профиля Radix by WorkOS
Radix by WorkOS2 лет назад

Here’s a cool detail for design nerds—components that sit on a panel, like Card or Table, are a little translucent, which lets some of the background through. Of course, you can turn it off if you are after a different look and feel.

Фото профиля Radix by WorkOS
Radix by WorkOS2 лет назад

You can also customize the border radius and scaling of your components. We built a playground with all components and theme options on a single page:

Фото профиля Radix by WorkOS
Radix by WorkOS2 лет назад

What about fonts? Out of the box, you get system fonts with no external dependencies. We value good typography, so there is a number of typographic components to choose from. Your main ones are Text, Heading, and Code. Each comes with a type scale and a set of weights.

Фото профиля Radix by WorkOS
Radix by WorkOS2 лет назад

Of course, we haven’t forgotten about the design details on some of the lesser typographic elements. Here’s a Kbd, representing a computer key or a shortcut, and Em, set in an italic font.

Фото профиля Radix by WorkOS
Radix by WorkOS2 лет назад

You can also use Radix Themes with your own fonts. Like with colors, there’s an extensive system of CSS variables that make it easy to swap the font, tweak the type scale, or even font metrics for a specific component:

Фото профиля Radix by WorkOS
Radix by WorkOS2 лет назад

Let’s talk about styles. 1️⃣ Is Radix Themes a styling solution? – No. 2️⃣ Are you expected to write styles? – Sometimes, more if you feel adventurous. 3️⃣ I want to use Radix Themes with my favourite CSS tech. Will it work? – Yes!

Фото профиля Radix by WorkOS
Radix by WorkOS2 лет назад

Here’re the tools that Radix Themes provides: ➡️ Ready-made components with sensible APIs and dozens of variations ➡️ Layout primitives to keep the layout responsibilities contained ➡️ Design tokens to build your own custom components with a similar look and feel

Похожие видео