ABC Family has picked up the network rights to this weekend’s B.O. hit “Alice in Wonderland.”

Deal could be worth as much as $30 million: Films with similar opening weekend grosses have gone on to gross north of $300 million, and under standard TV practice, theatricals fetch 10%-12% of their domestic gross. ABC Family will get the network TV premiere of the movie in 2012.

Deal was announced as “Alice” slid toward a $116.3 million first-weekend domestic gross — the best-ever opening for a nonsequel.

The arrangement, of course, is all in the family. Tom Zappala, the exec VP of program acquisitions and scheduling, ABC Cable Networks Group, noted that “Alice” was targeted directly at ABC Family’s demo.

“This Disney film has been one of the most anticipated releases of the year, and with its captivating sense of fun and imaginative spirit, it is a perfect fit for our millennial viewers,” Zappala said.

Tim Burton helmed “Alice in Wonderland,” a Walt Disney Pictures release. The fantasy movie stars Johnny Depp, Mia Wasikowska, Anne Hathaway, Helena Bonham Carter and Crispin Glover. Linda Woolverton wrote the screenplay.