New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@coopdigital/coop-frontend-foundations

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coopdigital/coop-frontend-foundations

Frontend foundations contains styles for building Coop branded digital content.

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

Co-op frontend foundations

Co-op frontend foundations contains all the core assets needed to build Co-op branded digital content.

The foundations are the basic Co-op look and feel - they should be included in all Co-op services. A set of optional Co-op components are also available.

Working on foundations locally

Installation

npm install

Lint

For linting npm run lint

Build

For local testing npm run build

Watch

For local continuous building of the project npm run watch

The build tasks included here are for local development. This will build the CSS into a /build folder that contains a HTML page with all the basics included. To include in your service use our gulp core asset pipeline (coming soon).

Using the foundations in your service

npm install @coopdigital/coop-frontend-foundations --save-dev

Then add into your import file @import 'node_modules/@coopdigital/coop-frontend-foundations/coop-foundations'

Note: this path will need amending based on your project file structure.

Uncompressed the foundations are 100kb, minified 36kb and gzipped 6kb. On a live service make sure you gzip the file.

Name spacing

We use name spacing in our CSS foundations and components. These namespaces avoid clashes with other styles used to extend the foundation and component styles when building services.

General

.coop-[name] Used for base styles such as forms and button EG coop-btn and coop-form.

Layout

.coop-l-[name] Used for layout (grid) classes. This replaces things like, .row, and .large-12 with .coop-l-row and .coop-l-large-12.

Utilities

.coop-u-[name] Utility classes for colour and layout helpers.

Components

.coop-c-[name] Components - found in the components repo.

Creating your own styles

When working on a service. Choose a sensible namespace and follow the same convention. For example a Funeral care service would use .fc-c-[name] for its components.

FAQs

Package last updated on 08 Oct 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc