Component styles

← 開発のコンセプト

記事は現在、英語とロシア語で提供されています。以下は英語版です。

Keep presentation local

Use component-local styles and existing design tokens. CSS Modules prevent accidental selector coupling, but do not define an architectural owner. A domain interface keeps its styles with its domain.

Avoid broad global overrides for a local feature. Responsive behavior belongs to the component that owns the layout. Verify long content, code blocks and narrow screens rather than only a desktop screenshot.

Extract shared styling when it represents an actual reusable visual contract. Do not create a universal style utility for a single element.