I needed some height in the corner so I added storage cubes. If you like the light in the corner, I bought a large birdcage and added one of the vintage lights. To solve the on/off problem, I bought a remote switch, so you can turn it off while in bed.
I didn’t really have a plan, but I just measured my bed and worked out from those numbers.
First, you’ll need to measure the height of your bed. They are all different, depending on your base. I made mine 27” high, but if I had it to do over, I’d do 28”. I have a mattress pad, sheets, and a thin comforter. Most bedspreads are thicker, so you may need to add a little more. Same for the opening width of the bed. Mine is 39.5”, but I’d go 40” to allow more room for bedding material. You may choose to add more. Just add it on to your table top size.
Legs are 1.5” x 1.5” which I bought at Home Depot.
One sheet (4 x 8) of ½” premium cabinet plywood.
½” trim for the edge of the table. Four times the width of your table.
I used the Kreg Pocket-Hole System to connect it all. You’ll need to use some scrap wood for the corners on the bottom of table. Just cut the ends at 45° so you’ll get a solid corner.
I hope this helps.