WeSearch

Design to Code #9: The Cost of a Dot

·7 min read · 0 reactions · 0 comments · 7 views
#designsystem#react#opensource#typescript
Design to Code #9: The Cost of a Dot
⚡ TL;DR · AI summary

The article discusses the author's experience in developing a design system and the challenges faced with component naming and structure. Initially, the author created a compound component API that seemed effective but later realized it was not suitable for their design system. The lesson learned was about the importance of understanding the constraints of the API being emulated.

Key facts
Original article
DEV.to (Top)
Read full at DEV.to (Top) →
Opening excerpt (first ~120 words) tap to expand

try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 3863968) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } 7onic Posted on Jun 3 • Originally published at blog.7onic.design Design to Code #9: The Cost of a Dot #designsystem #react #opensource #typescript There is a screenshot somewhere in my notes from April 4th—the day v0.1.0 went up—showing a Card example with <Card.Header>, <Card.Title>, and <Card.Content> nested neatly inside <Card>. I had been staring at that JSX for a long time before I clicked publish, and what I remember thinking was: this looks like a real design system.

Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from DEV.to (Top)