Discussion : Store Data with Sass Variables

Tell us what’s happening:

Is it necessary not to use whitespace between property and colon in css declaration ?

using space between “$text-color” and “:” shows the following error:

// Your code should have a Sass variable declared for $text-color with a value of red.

Your code so far

<style type='text/sass'>
  $text-color : red;
    text-align: center;
  .blog-post, h2 {
    color: $text-color;

<h1 class="header">Learn Sass</h1>
<div class="blog-post">
  <h2>Some random title</h2>
  <p>This is a paragraph with some random text in it</p>
<div class="blog-post">
  <h2>Header #2</h2>
  <p>Here is some more random text.</p>
<div class="blog-post">
  <h2>Here is another header</h2>
  <p>Even more random text within a paragraph</p>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36.

Link to the challenge:

I don’t think it matters in real code, but FCC challenges don’t accept it.