npm.io
4.34.8 • Published 8 months ago

@draftit-ui/core

Licence
MIT
Version
4.34.8
Deps
3
Size
489 kB
Vulns
0
Weekly
0

Draftit Unified Design

Publish to NPM

Draftit Unified Design (DUD) is Draftits own implementation of Vismas Unified Design system.

fonts

It is required that you use Ubuntu and Open Sans as fonts. The font family is:

Open Sans :  300,400,600,700,800
Ubuntu    :  200,300,400,600,700
const CDN_URL = "https://cdn.draftit.se";
WebFont.load({
  active: () => {
    setTimeout(() => {
      // Need to tell the test when the font had been rendered.
      document.body.setAttribute("data-testid", "ready-for-test");
    }, 250);
  },
  custom: {
    families: ["Open Sans:300,400,600,700,800", "Ubuntu:200,300,400,600,700"],
    urls: [`${CDN_URL}/fonts/nova/unified-design/v1.0.0/ud.css`],
  },
});

discover

You can see the designs at https://victorious-coast-01a9e6403.3.azurestaticapps.net.