<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>How to import theme SCSS files in portlet</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120516909" />
  <subtitle>How to import theme SCSS files in portlet</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120516909</id>
  <updated>2026-05-02T21:28:28Z</updated>
  <dc:date>2026-05-02T21:28:28Z</dc:date>
  <entry>
    <title>RE: How to import theme SCSS files in portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120524873" />
    <author>
      <name>sunny huang</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120524873</id>
    <updated>2020-12-31T03:35:41Z</updated>
    <published>2020-12-31T03:32:28Z</published>
    <summary type="html">&lt;p&gt;build.gradle file add&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-java"&gt;buildCSS {
	imports = [
		new File(npmInstall.nodeModulesDir, &amp;quot;@clayui/css/src/scss&amp;quot;)
	]
}&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>sunny huang</dc:creator>
    <dc:date>2020-12-31T03:32:28Z</dc:date>
  </entry>
  <entry>
    <title>How to import theme SCSS files in portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120516908" />
    <author>
      <name>sunny huang</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120516908</id>
    <updated>2020-12-25T02:42:31Z</updated>
    <published>2020-12-25T02:42:31Z</published>
    <summary type="html">&lt;p&gt;hi all&lt;/p&gt;
&lt;p&gt;I copied the source code of the document-library-web portlet, and an
  error was reported during buildCSS.  the  file was not found. This
  file should be the default SCSS file fo liferay theme. How do I import it?&lt;/p&gt;
&lt;p&gt;ERROR&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-javascript"&gt;&amp;gt; Task :modules:document-library-web:buildCSS FAILED
Using native Sass compiler
SLF4J: Failed to load class &amp;quot;org.slf4j.impl.StaticLoggerBinder&amp;quot;.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Exception in thread &amp;quot;main&amp;quot; com.liferay.sass.compiler.jsass.internal.JSassCompilerException: io.bit3.jsass.CompilationException: Error: File to import not found or unreadable: atlas-variables.
        on line 1 of build/tmp/copyCSS/META-INF/resources/document_library/css/ddm.scss
&amp;gt;&amp;gt; @import 'atlas-variables';

   ^

	at com.liferay.sass.compiler.jsass.internal.JSassCompiler.compileFile(JSassCompiler.java:134)
	at com.liferay.css.builder.CSSBuilder._parseSass(CSSBuilder.java:395)
	at com.liferay.css.builder.CSSBuilder._parseSassFile(CSSBuilder.java:407)
	at com.liferay.css.builder.CSSBuilder.execute(CSSBuilder.java:166)
	at com.liferay.css.builder.CSSBuilder.main(CSSBuilder.java:80)
Caused by: io.bit3.jsass.CompilationException: Error: File to import not found or unreadable: atlas-variables.
        on line 1 of build/tmp/copyCSS/META-INF/resources/document_library/css/ddm.scss
&amp;gt;&amp;gt; @import 'atlas-variables';

   ^

	at io.bit3.jsass.adapter.NativeAdapter.compileFile(Native Method)
	at io.bit3.jsass.adapter.NativeAdapter.compile(NativeAdapter.java:44)
	at io.bit3.jsass.Compiler.compile(Compiler.java:124)
	at com.liferay.sass.compiler.jsass.internal.JSassCompiler.compileFile(JSassCompiler.java:115)
	... 4 more

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':modules:document-library-web:buildCSS'.&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;How does a portlet automatically load SCSS files through dependencies?&lt;/p&gt;</summary>
    <dc:creator>sunny huang</dc:creator>
    <dc:date>2020-12-25T02:42:31Z</dc:date>
  </entry>
</feed>
