@kalayaan Yes, the Unruh Civil Rights Act prohibits any business in California from engaging in unlawful discrimination against all persons (consumers) within California's jurisdiction, where the unlawful discrimination is in part based on a person's sex, race, color, religion, ancestry, national origin, age, disability, medical condition, genetic information, marital status, sexual orientation, citizenship, primary language, or immigration status.
Apparently the judge decided that the baker's right to religious freedom and "artistic" expression overthrows the non-discrimination act.
By digging a little to the case, I find it important that the baker was represented pro bono by lawyers of a conservative coalition. Also, her case was capitalized by conservative media as a victory of the "moral" people over the sinful.