ember-component-css | Ember CLI addon which allows you to specify styles | Addon library
kandi X-RAY | ember-component-css Summary
kandi X-RAY | ember-component-css Summary
An Ember CLI addon which allows you to specify styles for individual components
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ember-component-css
ember-component-css Key Features
ember-component-css Examples and Code Snippets
Community Discussions
Trending Discussions on ember-component-css
QUESTION
I am working on a pod-style ember app that uses ember-cli-sass
, and ember-component-css
.
I defined a variable in app/styles/app.scss
that looks like this:
ANSWER
Answered 2021-Apr-17 at 13:58Could be a problem with including the file(s) / passing the var ... some more Infos about your project organization would help ...
How do you organize/include your modules/files (@import
or new rule @use
)?
How is the file/dicrectory structure of your project?
If you work the traditional way with @import
the order of importing the files/modules to the main file is important. You may check:
- If
@import
:
Is.../login-form/styles.scss
imported to the main.scss AFTER the variable is set inapp/styles/app.scss
?
(If you are using ember pod style css files, you are probably importing your login-form
's styles from @import "pod-styles";
, ensure that your variable definition is before that line!)
If you indeed work with new technique @use
it is another way round and can be a little bit tricky. You may check:
If
@use
:
Is the file where the variable is set (app/styles/app.scss
)@use
'd to.../login-form/styles.scss
where you need the variable?Alertnative if
@use
: If the moduleapp/components/login-form/styles.scss
is@use
'd itself, did you pass your variable to the module when you@use
it?
As @use
is new, here ar some more infos about how it works: https://sass-lang.com/documentation/at-rules/use.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ember-component-css
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page