- Repository and paths: This repo implements
@gravity-ui/uikit. When you seeuikit/src/..., it refers to this repo’ssrc/directory. - Components: Design system components are in
uikit/src/components/, each in its own folderuikit/src/components/<ComponentName>/with implementation (<ComponentName>.tsx) and styles (<ComponentName>.scss). - Stories: Per‑component Storybook files are in
uikit/src/components/<ComponentName>/__stories__/, and higher‑level stories (branding, colors, typography) are inuikit/src/stories/. - Hooks and utilities: Shared hooks live in
uikit/src/hooks/, and utilities inuikit/src/utils/anduikit/src/components/utils/. - Styles and tokens: Design tokens and themes are in
uikit/styles/(includinguikit/styles/themes/...); component SCSS is co‑located with each component. - Usage in other repos: In applications, import from
@gravity-ui/uikit(and documented sub‑entries like@gravity-ui/uikit/server), not fromuikit/src/..., and use the existing component patterns and props instead of re‑implementing them. - Naming across repos: You can refer to this and other design system repositories by their folder names (for example,
uikit/src/components/ordesign-system/src/stories/) when describing code locations.
- Create a new screen using UIKit: “Build a responsive Billing Settings page using
@gravity-ui/uikitcomponents only. Use layout primitives (Container,Row,Col,Flex) plusCard,Text,TextInput,Button, andTablewhere appropriate. Import components only from@gravity-ui/uikit.” - Refactor existing UI to use UIKit: “Refactor this component to use
@gravity-ui/uikitinstead of raw HTML and inline styles. Replace buttons, text, inputs, and layout with UIKit components while keeping behavior and data flow the same.” - Generate design‑system‑compliant variants: “Generate three layout variants of this section using
@gravity-ui/uikitonly. Use existing layout components (Container,Row,Col,Flex) and typography/buttons from UIKit, and explain which components you chose and why.”