Gathering detailed insights and metrics for ember-style-modifier
Gathering detailed insights and metrics for ember-style-modifier
Gathering detailed insights and metrics for ember-style-modifier
Gathering detailed insights and metrics for ember-style-modifier
npm install ember-style-modifier
Typescript
Module System
Node Version
NPM Version
TypeScript (50.2%)
JavaScript (40.84%)
HTML (7.37%)
Handlebars (1.11%)
CSS (0.47%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
36 Stars
439 Commits
14 Forks
2 Watchers
51 Branches
11 Contributors
Updated on Jun 29, 2025
Latest Version
4.4.0
Package Id
ember-style-modifier@4.4.0
Unpacked Size
17.76 kB
Size
6.45 kB
File Count
15
NPM Version
10.2.4
Node Version
20.11.0
Published on
Jul 16, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
45
This addon provides a {{style}}
element modifier to set element's style.
This allows to set custom CSS of an element without requiring a Content Security Policy style-src-attr: "unsafe-inline"
.
1ember install ember-style-modifier
It expects CSS declarations as named arguments or as a hash as positional
argument. Property names are supported in dasherized as well as in camelCase
spelling. Value must be a string or undefined
. You may set a priority by
adding an "!important"
suffix.
1<p 2 {{style 3 border="1px" 4 padding="1em !important" 5 }} 6> 7</p> 8 9<p 10 {{style 11 (hash border="1px" padding="1em !important") 12 }} 13> 14</p>
You may pass multiple hashes as positional arguments and combine hashes with named arguments. If multiple hashes are passed and contain CSS declarations for the same property, last one wins. If hashes and named arguments declare same property, named argument wins.
Adding styles to pseudo-elements is not supported.
Ember Style Modifier suffers from two known limitations of Modifiers in Ember. Both need to be addressed by extending modifiers capabilities. Doing so, is discussed in a RFC issue.
Modifiers do not run in server-side rendering (SSR). Styles set using
ember-style-modifier
are therefore not applied if application is
run with FastBoot or prerendered using
Prember. This may lead to wrong
layout before rehydration and layout shifts on rehydration.
Modifiers run after browser has printed the page. If styles are applied to an elements immediately, the browser first renders the element without those styles applied and immediately afterwards with these styles applied.
This may theoretically cause the experience of a flickering user interface. But such a case has not been noticed yet in practice.
Rendering the element twice has a performance impact. But it should not have any noticeable impact in practice.
See the Contributing guide for details.
This project is licensed under the MIT License.
No vulnerabilities found.
Reason
30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/28 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
14 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More