Skip to Content
NSUI

Fonts

Use NetSuite's font by default, or load your own and set three tokens.

Default

NSUI's font stack starts with "Oracle Sans", then the system font. NetSuite pages load Oracle Sans, so on a record page or inside the NetSuite shell the controls match NetSuite's own text. Where Oracle Sans is not loaded, for example a full-page Suitelet that writes its own HTML, the system font applies (SF Pro on macOS, Segoe UI on Windows).

You do not need to do anything to keep this default.

Choose another font

Three tokens control the font of every NSUI component. Set them on :root, or on any parent element to change one area only.

TokenDefaultUse
--nsui-font"Oracle Sans", ui-sans-serif, system-ui, …UI text
--nsui-font-monoui-monospace, SFMono-Regular, Menlo, Consolas, monospaceIDs, SKUs, mono grid columns
--nsui-font-featuresnormalOpenType features for UI text, for example "cv01", "ss03"

Load the font with @font-face in your page, not inside a component. A font that the page declares works inside every component's Shadow DOM.

CSS
@font-face {
  font-family: "Inter Variable";
  src: url("/path/to/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --nsui-font: "Inter Variable", system-ui, sans-serif;
  --nsui-font-features: "cv01", "ss03";
}

Always end --nsui-font with a system font, so text still renders if the file does not load.

In a Suitelet

Upload the .woff2 file to the File Cabinet next to nsui.js, then point @font-face at its URL.

JavaScript
const nsui = file.load({ id: '/SuiteScripts/acme/lib/nsui.js' }).url;
const inter = file.load({ id: '/SuiteScripts/acme/lib/InterVariable.woff2' }).url;

html.defaultValue = `
  <style>
    @font-face { font-family: "Inter Variable"; src: url("${inter}") format("woff2"); font-weight: 100 900; }
    :root { --nsui-font: "Inter Variable", system-ui, sans-serif; --nsui-font-features: "cv01", "ss03"; }
  </style>
  <script src="${nsui}"></script>
  <nsui-data-grid id="lines" totals></nsui-data-grid>`;

On record pages and inside NetSuite's own screens, keep the default so NSUI matches NetSuite's text.

This site

This site uses Inter Variable for its text and for every component preview, with the features "cv01" (open digits and letters) and "ss03" (rounded quotes and commas), the same setup Linear uses. It sets only the tokens above, the way your page would. Inter is open source under the SIL Open Font License, so you may self-host it: get it from rsms.me/inter or the @fontsource-variable/inter package.

Licensing

Use only fonts you are allowed to embed in a web page. Oracle Sans belongs to Oracle: do not copy its files into your project; rely on NetSuite loading it.

NSUI is a community project. It is not an official Oracle NetSuite product. NetSuite is a trademark of Oracle.

On this page