
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@coopdigital/foundations
Advanced tools
Our foundations are the base CSS and variables that we build our products on
Our foundations are the design basics that we build our products on.
We use foundations to help create our elements and components. When we keep our foundations consistent, our products look and feel consistent for customers.
The foundations are a mix of baseline CSS styles, fonts, custom properties and utility classes. We have split them into the following categories:
npm install @coopdigital/foundations
@import "@coopdigital/foundations/dist/vars/vars.css";
@import "@coopdigital/foundations/dist/foundations.css";
This is the easiest way to get everything you need.
If you only require partials of the foundations you can use the imports below. Make sure you keep the structure to ensure the cascade works.
/* Variables */
/* Colours */
@import "@coopdigital/foundations/dist/vars/colors.css";
@import "@coopdigital/foundations/dist/vars/colors-cls.css";
@import "@coopdigital/foundations/dist/vars/colors-membership.css";
/* Typography */
@import "@coopdigital/foundations/dist/vars/typography.css";
/* Spacing */
@import "@coopdigital/foundations/dist/vars/spacing.css";
/* UI */
@import "@coopdigital/foundations/dist/vars/ui.css";
/* Base */
@import "@coopdigital/foundations/dist/base/base.css";
/* Typography */
@import "@coopdigital/foundations/dist/typography/typography.css";
/* Layout */
@import "@coopdigital/foundations/dist/layout/grid.pcss";
/* UI */
@import "@coopdigital/foundations/dist/ui/a11y.css";
@import "@coopdigital/foundations/dist/ui/logo.css";
@import "@coopdigital/foundations/dist/ui/icons.css";
/* Utilities */
@import "@coopdigital/foundations/dist/colors/colors-utilities.css";
@import "@coopdigital/foundations/dist/colors/cls/colors-utilities-cls.css";
@import "@coopdigital/foundations/dist/colors/membership/colors-utilities-membership.css";
@import "@coopdigital/foundations/dist/typography/typography-utilities.css";
@import "@coopdigital/foundations/dist/spacing/spacing-utilities.css";
@import "@coopdigital/foundations/dist/layout/layout-utilities.css";
Icons are separted out as separate SVG files in src
and combined in the build script into an SVG sprite called coop-icon-sprite.svg
.
This sprite can be served into your project from node_nodules
from within foundations/dist/assets/icons/coop-icon-sprite.svg
, using the build process of your choice.
Go to the design guidelines on using the icons on the Experience Library icons page
Once you have the icons loaded in your front-end you can referrence them by using:
<svg>
<use xlink:href="coop-icon-sprite.svg#[icon-file-name]"></use>
</svg>
For example the shopping basket icon would be used with:
You should always try to pair an icon with text if possible as suggested in the Experience Library guidelines on icons
If the icon is paired with text it is classed as decorative and can be hidden from screenreaders.
<p>
<svg aria-hidden="“true”">
<title>Basket</title>
<use xlink:href="coop-icon-sprite.svg#icon-basket"></use>
</svg>
Basket
</p>
If it is not possible to pair the icon with text then the aria-hidden attribute is not needed.
<svg role="img">
<title>Basket</title>
<use xlink:href="coop-icon-sprite.svg#icon-basket"></use>
</svg>
There are some CSS classes to space and size the icons. The scooter being rectangular takes a modifier class to double the width.
.coop-i {
fill: currentColor;
margin: 20px;
width: 32px;
height: 32px;
}
.coop-i--scooter {
width: 64px;
}
#icon-add
#icon-minus
#icon-arrow-up
#icon-arrow-down
#icon-arrow-left
#icon-arrow-right
#icon-chevron-up
#icon-chevron-down
#icon-chevron-left
#icon-chevron-right
#icon-avatar
#icon-avatar-alt
#icon-basket
#icon-clock
#icon-close
#icon-close-alt
#icon-coop
#icon-coop-card
#icon-location
#icon-coop-location
#icon-download
#icon-home
#icon-information
#icon-mail
#icon-menu
#icon-message
#icon-open-new
#icon-phone
#icon-question
#icon-search
#icon-settings
#icon-tick
#icon-tick-alt
#icon-van
#icon-warning
#icon-write
#icon-pencil
#icon-calendar
#icon-scooter
FAQs
Our foundations are the base CSS and variables that we build our products on
The npm package @coopdigital/foundations receives a total of 592 weekly downloads. As such, @coopdigital/foundations popularity was classified as not popular.
We found that @coopdigital/foundations demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.