Heat oven to 375°F and butter a 2-quart dish. Peel potatoes if you like and slice them 1/8 inch thick.
Cook the onion in butter until soft. Stir in flour for 1 minute, then gradually whisk in milk and cream. Simmer until lightly thickened, then season with salt, pepper and thyme.
Layer potatoes and sauce in the dish, finishing with sauce. Cover and bake 45 minutes. Uncover and bake 25 to 30 minutes until browned and a knife slides through easily. Rest 10 minutes before serving.