Add font in CSS | XM Community
Skip to main content

I only want to add Raleway as a font in my theme, and apparently I need to do so creating a simple CSS with the font. I have been trying to find examples in the Internet but I can't make it work.
So here's the question: does anyone has an example of a CSS file where a particular font is called, (and maybe those two colours the theme uses too).
Thank you!

Hi JaimeV, you can add Raleway by going to the Look & Feel section of your survey, selecting the Style section and adding in the following Custom CSS -:
@import url('https://fonts.googleapis.com/css2?family=Raleway&display=swap');


.Skin .QuestionText {
font-family: 'Raleway', sans-serif;
}


.Skin .QuestionBody {
font-family: 'Raleway', sans-serif;
}
For reference, the above CSS is assuming you're looking to use Raleway Regular 400.
Hope that helps!
Cheers,
Cameron


It works!!! Thank you :)


No problems - happy to help!


Leave a Reply