Since the days of the Gold Rush, San Francisco has been a city whose culture — food included — has been affected by influxes. Today, the abundance and diversity of produce that flows year-round into the city’s farmers markets from the Central Valley inspire chefs at farm-to-table restaurants to tweak their menus daily based on what they discover at the markets. This allows them to create fresh experiences, even for returning diners, in environments that emphasize food and flavor over furnishings and fuss. At the same time, the swelling population of technology and financial workers has elevated the cost of living to the point where restaurants struggle to find staff who can afford to live in town. That shortage has created a surge of chef-driven, fast-casual restaurants that appeal to San Franciscans who want to pick up food after a long day — or order their meals via an app.

BREAKFAST

San Francisco boasts a generous batch of excellent bakeries such as Tartine, B. Patisserie and Jane. To stand out here, a baker needs to have guts and talent. Craftsman and Wolves (craftsman-wolves.com , 746 Valencia St., 415-913-7713) has both. It is helmed by two-time James Beard-award finalist William Werner and bills itself as “a contemporary patisserie,” an apt description of this clean, modern space in the hipster Mission District. (There is also a smaller location in Bayview.) Most important, the pastries dazzle. The staff are warm and patient with a newcomer as they explain their signature pastry, the rebel within ($7.25), a savory, cheesy muffin with a touch of green onions and sausage, and a soft boiled egg in the center; and how to pronounce kouign amann (“queen ah-man”) ($4.25 to $5.50), a buttery croissant made in a muffin mold with a layer of caramelized sugar on top. This heavenly creation seems to be San Francisco’s pastry of the moment, so make sure to enjoy one while it’s fresh and still has its sugary crunch on top. The spot has a laptop-friendly vibe with plenty of seating for customers who want to linger over one of the exotic tarts, such as one made from whipped coffee, coconut and yuzu.

LUNCH

What’s a trip to San Francisco without dim sum? However, my sources reported that legendary dim sum spots such as Yank Sing have developed long lines and astronomical prices, so locals have shifted their loyalties to spots a little farther out. Thus, I found myself at Hong Kong Lounge II ( hongkonglounge2.com, 3300 Geary Blvd., 415-668-8802) in the Inner Richmond District. HKLII was opened by Annie Ho in 2012 and was recognized with a Michelin Bib Gourmand Award in 2017 and 2018. By focusing on careful preparation and high-quality ingredients, Ho has built a loyal following in a clean, well-run spot on an unassuming suburban corner. Instead of dim sum carts, HLKII relies on knowledgeable staff and an extensive written menu, so food comes out hot and fresh, and diners can create a balanced meal without the frantic over-ordering one can easily succumb to when carts roll by. On the dim sum menu, try the shrimp dumplings ($7.95), baked pork buns ($5.95), Shanghai dumplings (soup dumplings) ($10), and sautéed pea shoots ($16). HKLII doesn’t take lunch reservations and waits can vary from 40 minutes on weekdays to up to 2 hours on weekends, so plan accordingly.

DINNER

Goldfarb is a writer based in Chevy Chase, Md. Her website is AvivaGoldfarb.com . Find her on Twitter and Instagram: @AvivaGoldfarb .