Both. Sometimes there is a pattern that strikes me, so I get it, go home and search through my stash, then purchase anything I need to complete the quilt. Sometimes I see a fabric I can't live without, then hunt up the perfect pattern for that fabric.