The theme tokens and core components in Figma, matching the Rust code.
The design file is built from the same tokens the components draw with. A designer who picks primary in Figma gets the color that theme.primary paints in GPUI.
Free
- hyuskui Design System by hyuskui: the variables, text styles and core components, kept in step with
registry/theme.rs.
What's in the File
- Variables. Every color in
registry/theme.rs, in aTheme / Lightand aTheme / Darkcollection with the same names, plus the five chart colors and the radii. Dev Mode shows the Rust for each one, such astheme.primaryortheme.radius * 1.5. - Text Styles. Geist and Geist Mono at the sizes the components use, from
text_xs()totext_4xl(). - Components. Button (every variant and size), Badge, Input, Checkbox, Switch, Card, Avatar and Alert. They are bound to the variables, so a token change reaches every instance.
Light and Dark
The components are bound to Theme / Light. For dark designs, use the variables in Theme / Dark, which hold Theme::dark(). Both themes are on the Foundations page.
Your Own Theme
If you edit the colors in your copy of theme.rs, duplicate the file and change the same variables. The names match the fields of Theme one to one. See Theming for the tokens.