question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support SCSS syntax

See original GitHub issue

Issue 1: Can’t use comma

[!] (plugin svelte) ParseError: Selector is expected
apps/web/src/components/seat/layout.svelte
113: }
114: .seat.tw,
115:     &.bn,
         ^
116:     &.pp .cushion {
117:   background: rgba(210, 42, 248, 0.8);

Issue 2: Can’t use scss variables

[!] (plugin svelte) ParseError: Unexpected input
packages/components/src/app-bar/index.svelte
46: }
47: .app-bar.bg {
48:   background: $theme-color;
                  ^
49:   color: #fff;
50: }

Issue 3: Can’t use single-line comment

[!] (plugin svelte) ParseError: Identifier `deep` is expected
node_modules/@responsive-ui/loader/src/Loader.svelte
34:   border-width: 2px;
35: }
36: // .responsive-ui-loader__spinner:after {
     ^
37:   //   content: "";
38:   //   width: 5px;

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
ahkucommented, Mar 19, 2021

This is unfortunate though. In a lot of real world projects, the code base isn’t just javascript. For example, our agency work with HubSpot which is like a SaaS platform where you can work both locally and online when creating websites. Sometimes CTA button markup needs to be edited in a custom editor, and WindiCSS not being able to generate classes on the fly, or without a build system, means that you have to come up with other solutions.

SCSS helps you work with a more traditional CSS approach, adding features such as line commends, nesting, variables that developers expect.

Right now I’m evaluating Windi in some SPA applications, but my hope is that I can somehow marry it with our agency projects. And perhaps there is a way to run the old SCSS code alongside WindiCSS, or maybe you can find a replacement for it. I spent a lot of time getting the postcss nesting to work for example, but not having line comments it annoying.

1reaction
voorjaarcommented, Mar 20, 2021

Issue 1 and Issue 3 has been solved. Next step, we will support using variables, keep tracking.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Syntax - Sass
The SCSS syntax uses the file extension .scss . With a few small exceptions, it's a superset of CSS, which means essentially all...
Read more >
supports - CSS: Cascading Style Sheets - MDN Web Docs
Syntax. The @supports at-rule consists of a block of statements with a supports condition. The supports condition is a set of one ...
Read more >
How to set scss syntax in Sublime 3? - Stack Overflow
3 Answers 3 · CTRL + SHIFT + P (Mac: COMMAND + SHIFT + P ) · Type ' Package Control: Install package...
Read more >
SASS/SCSS Syntax - Studytonight
Sass supports two different file extensions, namely, .sass and .scss, one is for SASS code and the other is for SCSS syntax. As...
Read more >
Sass Syntax - TutorialsTeacher
The Sass transpiler supports two different file types: .sass and .scss - each with its own extension and syntax. Prior to version 3,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found