@pnx-mixtape/constants
Global variables.
Installation
npm install @pnx-mixtape/constants --save-dev
How to use
CSS
- PostCSS workflow:
@import '@pnx-mixtape/constants';
- Sass/Eyeglass:
@import 'mixtape-constants';
- Native CSS:
@import url('dist/constants.css');
- Link tag:
<link href="dist/constants.css" rel="stylesheet" type="text/css">
Developer notes
To override variables in a project:
@import "@pnx-mixtape/constants";
:root {
--brand-primary: hsl(24, 95%, 50%);
--brand-secondary: hsl(123, 41%, 45%);
}
@import "@pnx-mixtape/component/src/_component.css";
.component {
}