ncids-css 3.4.0-beta.5
Install from the command line:
Learn more about npm packages
$ npm install @NCIOCPL/ncids-css@3.4.0-beta.5
Install via package.json:
"@NCIOCPL/ncids-css": "3.4.0-beta.5"
About this version
In order to download the ncids-css package, you will have to set up the @nciocpl organizational scope in npm to see the package. Create a .npmrc file in the root of your project containing the following:
@nciocpl:registry=https://npm.pkg.github.com
This package will build the NCI Design System (NCIDS) css from the included scss files & the U.S. Web Design System (USWDS) scss files. This process adds in our special token palletes, and other overrides into the existing system to fit the NCI brand design.
$ npm install @nciocpl/ncids-cssncids-css requires Sass Load Paths to compile for use in your project.
Load paths must include a path to the /packages directory for NCIDS packages and /uswds-packages for USWDS packages. An example using Webpack might look like:
{
loader: 'sass-loader',
options: {
sassOptions: {
includePaths: [
path.join(
__dirname,
'../node_modules/@nciocpl/ncids-css/packages'
),
path.join(
__dirname,
'../node_modules/@nciocpl/ncids-css/uswds-packages'
),
],
},
sourceMap: true,
},
},Import styles in your sass entrypoint at the top of the file. This sets up uswds variables by the platform. This file is only required once for a sass entrypoint. Any subsequent uses after that of uswds-core will use the overrides defined here whenever uswds-core is reference.
@use 'uswds-core' with (
$theme-image-path: "@nciocpl/ncids-css/uswds-img",
$theme-show-notifications: false,
$theme-show-compile-warnings: false,
$theme-utility-breakpoints: (
"card": false,
"card-lg": false,
"mobile": false,
"mobile-lg": true,
"tablet": true,
"tablet-lg": true,
"desktop": true,
"desktop-lg": false,
"widescreen": true
)
);Import normalizer, typography, elements, and accessibility classes
@forward "uswds-global";Import all packages at once
@forward "ncids";or import only the packages you need invidivdually
@forward "usa-layout-grid";
@forward "nci-header";
@forward "nci-autocomplete";
@forward "usa-footer";For more information about using the ncids-css package, please refer to our documentation site.
See The Wiki
Assets
- ncids-css-3.4.0-beta.5.tgz
Download activity
- Total downloads 4
- Last 30 days 0
- Last week 0
- Today 0