Skip to content
tezvyn:

🌐Frontend Dev

Frontend web development and UI engineering

1155 bites

Test yourself: Top 30 Frontend Dev interview questionsMultiple choice, with the correct answer and why it is correct on every question. Free, no sign-in.

Everything in Frontend Dev, page 3

intermediate1 min read

Cross-platform themeable token system

Tier tokens with semantic theme sets that remap primitives per mode, transform to each platform's theme mechanism, and deliver versioned packages.

intermediate1 min read

Structuring docs for multiple audiences

Layer docs by audience, give developers API and code, designers usage and design guidelines, PMs principles and coverage, with shared foundations like tokens and accessibility.

intermediate1 min read

Delivering an urgent design system hotfix

Branch from the released tag, apply a minimal fix, add a regression test, ship a patch version, then forward-port to main.

intermediate1 min read

Contributing a new component variant

Align with maintainers first, follow guidelines, implement with API and tokens, add stories, docs, and tests, then open a PR for review.

intermediate1 min read

Tokens as a single source of truth pipeline

Define tiered tokens in standardized JSON, transform per platform with a build tool, publish versioned packages, and automate in CI.

intermediate1 min read

The role of Storybook in a design system

Storybook renders components in isolation across states, serving as living documentation, a development sandbox, and a base for visual and accessibility testing.

intermediate1 min read

Clickable card: div onClick versus anchor tag

Use an a tag for navigation; it is focusable, keyboard-activatable, announced as a link, and supports open-in-new-tab; a div onClick loses all of that without manual ARIA work.

intermediate1 min read

Architecting multi-brand, dark-mode theming

Tier tokens into primitive, semantic, and component layers; components consume semantic tokens; themes swap by remapping semantic-to-primitive on a scope like data-theme.

intermediate1 min read

Versioning and distributing token updates safely

Publish tokens as a semver package, bump major on breaking changes, deprecate before removing, communicate via changelogs and migration guides.

intermediate1 min read

Transforming tokens for multiple platforms

A transformer like Style Dictionary parses JSON, applies platform transforms, and renders formatted outputs (CSS vars, Swift, Kotlin) via configured platforms.

intermediate1 min read

What design tokens are and why they matter

Tokens are named, platform-agnostic design decisions stored centrally, enabling consistency, theming, and one-place updates.

intermediate1 min read

How BEM tames specificity and !important

BEM names block, element, modifier as flat single classes, keeping specificity low and equal, removing the need for deep selectors and !important.

advanced1 min read

Performance concerns with the :has() selector

:has() forces upward and forward style invalidation on DOM changes, broad subjects are costly; mitigate by scoping the subject, avoiding deep or universal arguments, and limiting dynamic…

advanced1 min read

Building a container-query-driven card component

Declare a wrapper container with container-type, query it with @container, restyle the card's internal grid by container width, optionally use cqi units.

intermediate1 min read

Why Oklch beats HSL for color variations

HSL lightness is not perceptually uniform so equal steps look uneven, Oklch keeps perceived lightness consistent across hues, giving predictable hover and palette scales.

intermediate1 min read

Styling a parent with the :has() selector

:has() matches an element that contains or relates to a given selector, enabling upward styling; figure:has(figcaption) targets captioned figures.

intermediate1 min read

When container queries beat media queries

Media queries react to viewport, container queries react to a parent's size, ideal for reusable components; set container-type on an ancestor then query it.

easy1 min read

Native CSS nesting and the parent selector

Nest rules inside a block, descendant selectors combine implicitly, & references the parent and is required for compound or pseudo-class joins.

easy1 min read

CSS logical properties versus physical properties

Logical properties map to flow direction not fixed sides, padding-inline-start follows text direction, benefit is automatic RTL and vertical support.

easy1 min read

Declaring and scoping CSS custom properties

Declare with --name, read with var(), :root makes it global while a class scopes it locally.

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