Code error in Package 5?

 | SubscribeFavorite

Viewing 2 reply threads
  • Author
    Posts
    • #7211REPLY

      [email protected]

      Participant

      Hi Chris,

      In the custom css code for package 5 there are some errors mentioned. Is this something that’s wrong or shouldn’t I worry about it?
      Here’s an example (line 12 and 13:
      –global–color-primary: #fc0; (Error: Expected RBRACE at line 12, col 3.)
      –global–color-secondary: #2a394c; (Error: Expected RBRACE at line 13, col 1.)

      If the code is ok, can you please explain a little so I don’t worry anymore:)

      Thanks

    • #7212REPLY

      Chris F

      Keymaster

      Good question Daniel, but nothing to worry about. Basically, using the :root variables, which is advanced CSS3, the RBRACE is not required. The reason you get the error in the CSS sheet is because the checker does not yet recognize these variables, even though the work perfectly.

      If you would like to understand this more, I recommend taking a look at the following:
      https://medium.com/front-end-weekly/theming-with-css-variables-e4f30343c7c7

      Hope that helps. ;o)