All skills
Skillintermediate
imports design system folder
Re-export dependencies from a design system folder. App code imports from there, not directly from packages. This enables global changes and easy refactoring.
Claude Code Knowledge Pack7/10/2026
Overview
Import from Design System Folder
Re-export dependencies from a design system folder. App code imports from there, not directly from packages. This enables global changes and easy refactoring.
Incorrect (imports directly from package):
function Profile() {
return (
Hello
Save
)
}
Correct (imports from design system):
// components/view.tsx
// ideal: pick the props you will actually use to control implementation
props: Pick<React.ComponentProps<typeof RNView>, 'style' | 'children'>
) {
return
}
// components/text.tsx
// components/button.tsx
function Profile() {
return (
Hello
Save
)
}
Start by simply re-exporting. Customize later without changing app code.