Disclaimer: This feature uses cookies to store your theme choices. We do not collect personal information or data.
Updated: March 3, 2021
This page will explain how pre-existing websites can leverage the NIAID Design System (NDS) to become compliant with NIAID's digital policies and branding. If you are looking to build a new site from scratch, be sure to check out the Getting Started page for more information.
The first step in migrating your pre-existing site to NDS is to include the global CSS and JS files in your site.
Depending on the architecture of your digital property, where you add these files in code may vary. With plain HTML, the CSS file should be linked to from the <head> of the HTML document, and the JS files should be linked to just above the closing </body> tag.
The two most important components for NIAID brand compliance are the header and footer. The raw HTML markup for these two components is found below and can be copied directly into your project regardless of the front-end architecture. NDS may also offer these patterns as React, Angular, or Vue components in the future.
There are five theme dimensions that you can customize after adding the NDS CSS stylesheet to your website: Fonts, Body Fonts, Colors, Shadows, and Corners. The following sections describe your options for each and how to apply your choices to your website.
NDS users can select font families for the headings and body of a page. For the headings, there are four available fonts to choose from — Public Sans, Roboto, Martel, and Merriweather. To apply one of these fonts to your headings, add the appropriate class to the <body> tag:
style--headings--public-sans
style--headings--roboto
style--headings--martel
style--headings--merriweather
For body font, NDS provides two options: Public Sans and Roboto. To apply one of these fonts to your body, add the appropriate class to the <body> tag:
style--body--public-sans
style--body--roboto
You may download any of these font families below:
Currently, NDS users have three color palette options to choose from. More palettes may be available in the future. Add the corresponding body class for your desired palette:
style--colors--theme-1
style--colors--theme-2
style--colors--theme-3
NDS supports both flat and shadowed visual style. By default, NDS is configured with shadowing. If flat design is desired, remove the following class from the body:
style--shadows
There are three corner styles available with NDS: Sharp, Semi-Rounded, and Fully-Rounded. To apply one of these corner styles to your site, add the appropriate body class:
style--corners--straight
style--corners--semirounded
style--corners--rounded
After you include the CSS and JS files in your project and add the header and footer, you may want to leverage other NDS components as well. Check out the Components page for HTML code snippets of NDS patterns, as well as detailed information on how to use them.
For questions about the NIAID Design System or to report issues, please visit the Issues tab of the NDS repository on GitHub. To get updates on NDS features and changes, please add yourself as a "Watcher" on the NDS GitHub repository.
NDS on GitHub