Gathering detailed insights and metrics for @xamu-co/styles
Gathering detailed insights and metrics for @xamu-co/styles
Gathering detailed insights and metrics for @xamu-co/styles
Gathering detailed insights and metrics for @xamu-co/styles
npm install @xamu-co/styles
Typescript
Module System
Min. Node Version
Node Version
NPM Version
SCSS (97.14%)
Nunjucks (2.2%)
JavaScript (0.64%)
Procfile (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1 Stars
252 Commits
2 Watchers
5 Branches
2 Contributors
Updated on Feb 27, 2024
Latest Version
4.1.2
Package Id
@xamu-co/styles@4.1.2
Unpacked Size
1.03 MB
Size
114.96 kB
File Count
52
NPM Version
6.14.8
Node Version
12.18.2
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
20
These are the basic guidelines behind this project.
Explore the docs or learn how to setup the project for development at: Setup
Older package names
They are the main building blocks of any design.
Elements & layouts all share a root component
.componentName{}
1.view { 2}
Some of them will expect certain tag
1a.link { 2}
Whenever possible avoid using long names. flx will always be better than flexbox while mantaining legibility
Elements & layouts could have nested components, to differentiate them from their parent a "-" will be used
.parentComponentName-childComponentName{}
1.view-item { 2}
Each element comes tied with a set classes to alter it
1.componentName.optionalUtilityType--utilityName-utilityfirstOptionalParam-utilitysecondOptionalParam { 2} 3.componentName { 4 &.optionalUtilityType--utilityName { 5 &-utilityfirstOptionalParam { 6 &-utilitysecondOptionalParam { 7 } 8 } 9 } 10}
This allows the duplication without collision
As the name implies these are for management of the design state and are usually called upon in a dinamyc way using js or related languages It can be "has" but we recommend using "is", These usually don't have need params
.elementName.is--statusName{}
1.view.is--active { 2}
These could modify the behavior of the component they are applied on
.elementName.--modifierName-optionaParam{}
1.view.--maxWidth-none { 2}
Some modifier could be conditionated to the presence of another one
1.view.--tm-light.--shadow { 2}
While modifiers are useful they can also get to verbose. That is whe unions come handy. Combination of modifiers, shortcuts for common modifier combinations
.elementName.--unionName-firstModifier-secondModifier{}
1.view.--flxAlign-center-stretch { 2}
If both values are equal the could be merged
1/** Long version */ 2.view.--flxAlign-center-center { 3} 4 5/** Short version */ 6.view.--flxAlign-center { 7}
Components, but this time making use of pseudo elements (:before, :after) For the pseudos we will be using data atributes.
[data-pseudoName]{}
1[data-tip] { 2}
Slightly different syntax, but don't worry the concept is mantained. Some of them are expecting an argument
[data-pseudoName-modifierNameOrParam-optionalParam="optionalArgument"]{}
1[data-tip-position="top"] { 2}
Some properties can be used across the design. Global classes are prepended with "x" They also tend to override component modifiers and unions
These modify the behavior of any element
.--globalModifierName-value{}
1.--maxWidth-none { 2}
Just like the component modifiers but these work in any element Some modifier could be conditionated to the presence of another one
1.--tm-light.--shadow { 2}
Condense most common modifiers of rules that require multiple parameters
.--globalUnionName-firstValue-SecondValue{}
1.--flxAlign-center-stretch { 2}
As any other union but work in any element If both values are equal the could be merged
1/** Long version */ 2.--flxAlign-center-center { 3} 4 5/** Short version */ 6.--flxAlign-center { 7}
We are following a similar approach to the tailwind framework (only for global modifiers & unions)
1/** Hide if element has less than 640px of width */ 2.--hidden:sm { 3} 4 5/** Hide if element has more than 640px of width */ 6.--hidden:sm-inv { 7}
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
project is archived
Details
Reason
Found 0/14 approved changesets -- score normalized to 0
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
52 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
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