Style whisk/ui
Apply the foundation tokens through component props, responsive values, interaction states, and recipes.
Styling model
Whisk/UI turns literal component props and recipes into static CSS shared by React and Octane.
Start with a semantic component. Apply foundation tokens through its props, add a responsive or interaction value when needed, and create a recipe only for a finite custom styling pattern.
Styling approach
Pick the smallest tool that expresses the rule without hiding intent.
Semantic tokens
Semantic roles keep the same interface meaningful across themes.
Prefer surface2, borderSubtle, and subtle over visual literals when a Foundation token expresses the role. See Colors for token meanings and aliases.