Skip to content

[READ ONLY] Base SCSS utilities and variables for Jetpack. This repository is a mirror, for issue tracking and development head to: https://github.com/automattic/jetpack

License

Notifications You must be signed in to change notification settings

Automattic/jetpack-base-styles

Repository files navigation

Base Styles

Base SCSS utilities and variables for Jetpack.

Installation

Install the module

npm install @automattic/jetpack-base-styles --save-dev

Use

SCSS utilities and variables

In your application's SCSS file, include styles like so:

@import 'node_modules/@automattic/jetpack-base-styles/colors';
@import 'node_modules/@automattic/jetpack-base-styles/variables';
@import 'node_modules/@automattic/jetpack-base-styles/mixins';
@import 'node_modules/@automattic/jetpack-base-styles/breakpoints';
@import 'node_modules/@automattic/jetpack-base-styles/animations';
@import 'node_modules/@automattic/jetpack-base-styles/z-index';
@import 'node_modules/@automattic/jetpack-base-styles/default-custom-properties';

If you use Webpack for your SCSS pipeline, you can omit node_modules/:

@import '@automattic/jetpack-base-styles/colors';

To make that work with sass or node-sass NPM modules without Webpack, you'd have to use includePaths option:

{
	"includePaths": [ "node_modules" ]
}