Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@justeat/f-utils
Advanced tools
f-utils
:bear:Sass utility functions and mixins for the Fozzie framework
If you are using the fozzie gulp build tasks, then Eyeglass is automatically setup ready to use. If not, you can use it in one of the following ways:
Install the f-utils module using NPM or Yarn:
yarn add @justeat/f-utils
Then within your Sass files, you will need to import this module.
@import 'f-utils';
You can then use the f-utils
module and the mixins and functions that come along with that.
Allows developers to specify the amount of spacing they require via a shortcut function.
Accesses the spacing map definition in the fozzie variables file.
Defaults: key: 'base'
Usage:
margin: spacing(d);
Given a font-size and a line-height (in pixels) returns a unitless line-height value.
Defaults: fontSize: 'body-s' lineHeight: '20' scale: 'default'
Usage:
line-height: line-height(16px, 24px);
Remove the unit of a measurement.
Usage:
strip-units(400px) > 400
Convert a map of breakpoints to ems
Defaults: baseFontSize: $font-size-base
Usage:
$breakpoints: map-to-em((
narrow : 400px,
mid : 750px,
wide : 1000px,
huge : 1250px
), 16);
Docs to come…
Docs to come…
Docs to come…
Allows developers to specify the amount of zIndex they require via a shortcut function.
Accesses the spacing map definition in the fozzie variables file.
Defaults: key: 'lowest'
Usage:
z-index: zIndex(high);
Used in alert modifier classes to colorize the alert
Usage:
@include alert-variant(orange, black);
Used in bordered utility class to add padding, border and border radius to element
Defaults: borderRadius: $border-radius padding: spacing(e) borderColour: $color-border
Usage:
@include bordered();
//Override default values
@include bordered(10px, 30px, green);
Used in rating modifier to fill the star ratings
Defaults: maxStars: 6
Usage:
@include rating-fill();
//Override default values
@include rating-fill(5);
Forces overly long spans of text to truncate
Defaults: boundary: null
Usage:
@include truncate();
//Override default values
@include bordered(200px);
Convert value to REMs
Defaults: sizeValue: $font-size-base
Usage:
@include rem(font-size, 16px);
Convert value to EMs
Defaults: sizeValue: $font-size-base
Usage:
@include em(font-size, 16px);
font-size helper.
Allows direct use of font-size map keys rather than specific values and converts px
definitions to REM with respect to the base font-size.
Defaults: key: 'base' lineHeight: true scale: 'default' relativeToParent: false
Usage:
@include font-size(mid);
FAQs
Sass utility functions and mixins for the Fozzie framework
We found that @justeat/f-utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 53 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.