Compositions for topical administration of a hedgehog inhibitor compound are described. In one embodiment, the hedgehog inhibitor compound is patidegib and the topical composition comprises the compound in a solvent system of a monohydric primary alcohol and a polyol in a w/w ratio of between about 0.9-1.8. In another embodiment, the hedgehog inhibitor is itraconazole and the topical composition comprises the compound in a solvent system comprising a monohydric primary alcohol and an optionally lower alkyl end-capped oligomeric alkylene glycol in a w/w ratio of between about 0.8 and 2.6 and a fused bicyclic ether. Method of using the compositions are also described, where in one embodiment, the compositions are topically applied for treating or preventing basal cell carcinoma.