A brand-only component consuming core tokens
Layering brand-specific components.
Keep the unique component in a brand-specific package that depends on core tokens and primitives; do not add it to core.
WHAT THIS TESTS Whether you understand the layered packaging that lets a single brand have unique components while still reusing core tokens and primitives and keeping the core clean.
A GOOD ANSWER COVERS Use a layered package structure. The core library exposes tokens and shared primitives and is brand-agnostic. Each brand has its own package that depends on core. The unique FeaturedArticle card lives in that brand's package, where it imports core primitives like Card, Text, and Image and consumes core semantic tokens, so it inherits the brand's theme automatically. It never enters the core, because no other brand needs it and adding it would bloat the core and couple it to one brand. The brand app depends on its brand package plus core; other brands' apps never see the component. Governance: an RFC decides core versus brand placement; if the component later generalizes, it can be promoted to core through review.
COMMON WRONG ANSWERS Adding the one-brand component to the shared core, bloating it and setting a precedent for brand leakage. Duplicating core tokens into the brand package, breaking the single source of truth. Forking the core for that brand. Hardcoding brand colors in the component instead of consuming tokens. No promotion path if it later becomes broadly useful.
LIKELY FOLLOW-UPS When would you promote a brand component into core? How does the brand package consume core tokens? How do you prevent core from accumulating one-off components? How do other brands stay unaffected?
ONE CONCRETE EXAMPLE Brand A's package defines FeaturedArticle, importing Card and Text from core and styling with core semantic tokens, which Brand A's theme repoints to its palette. Only Brand A's app installs that package, so the component looks on-brand and consistent yet is invisible to Brand B, and the core library remains free of any FeaturedArticle code.
Interview question
Where should a card component needed by only one brand live, while still using core tokens?
- a.In that brand's own package, which depends on the core libraryCorrect
- b.In a copy of the core where its tokens are duplicated into the brand
- c.In the shared core library so all brands can theoretically reuse it
- d.Inline in the brand app with brand colors hardcoded into the component
Why? this is the answer
A brand-specific package depending on core lets the component reuse core tokens while keeping the core brand-neutral. Putting it in core bloats and couples the shared layer; duplicating tokens or hardcoding colors breaks the single source of truth.
Just read this? Test yourself on what you have been reading.
- #multi-brand
- #package-architecture
- #design-tokens
- #composition
- #governance
Put your scrolling time to good use
Learn one idea, try a quiz and save useful cards for revision. Tezvyn makes it easy to learn and stay current in your tech field, a few minutes at a time.
The iPhone app is on the way
We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.
Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.
We are hiring for this. Every open role lists the topics its interview covers, so you can prepare for the real thing rather than guessing.
See open roles