霜 Shuāng is composed of the 雨 radical on top and the character 相 (Xiāng) "Phase" on the bottom. 相 (Xiāng) contributes both the phonetic and semantic component to 霜 (Shuāng).
When the temperature is below freezing, mositure forms ice crystals on surfaces, changing phases from liquid to solid.