The CFA Design System offers a complete collection of code libraries needed to build modern, robust, and accessible UI applications. Get started using the following CFA packages in your application.
Before consuming or contributing to the Design System, you will need to setup Artifactory access. You’ll then need to configure Artifactory with either npm or yarn. The instructions for doing so are in the same wiki and can be found by navigating to the appropriate section.
Important: The CFA Design System packages are scoped under the @cfa namespace. To install packages like @cfa/react-core, your npm configuration must include the scoped registry setting:
By wrapping your app with the ThemeProvider, the styles from @cfa/react-core/index.css will be applied globally. This component simply imports the CSS file for you.
We do not suggest this approach at this time, and recommend just importing the CSS directly.
React Core utilizes isolation when rendering our overlay components such as Modal, Drawer or Popover. For this to work correctly in some apps, you will need to add a top level
CSS property to ensure that the stacking context works correctly.
This example is for demonstration purposes, how you implement this in your app can vary.
If you are using Tailwind, your implementation might look like this.
<body>
<divclassName="isolate">{children}</div>
</body>
This style creates a separate stacking context for your application root element. This way, popups will always appear above the page contents,
and any z-index property in your styles will not interfere with them.