Style guide and UI components library that aims to standardize the look and feel across all OAM-related applications, while defining coding best practices and conventions.
This is still under development. Breaking changes may be introduced at any moment. Use at your own risk!
Install it as an
npm module: (not available as an npm module yet)
This design system makes some assumptions which are described below for each of the elements.
Check the build system of OAM docs, a project that uses the
The shared assets are all in the
assets directory. It is organized as follows:
Utility libraries and shared components.
Use as any node module:
If you want to minimize bundle size you can also include the components directly.
Bindings exported from
oam-design-system are also available as
Add the module path to the
includePaths of gulp-sass. Should look something like:
Now you can include it in the main scss file:
oam-design-system includes svg icons that are compiled into a webfont and included in the styles.
To use them check the
_oam-ds-icons.scss for the class names.
Graphics that are to be shared among projects.
graphicsMiddleware to browserSync. This is only to aid development.
Should look something like:
Basically every time there’s a request to a path like
/assets/graphics/**, browserSync will check in the
oam-design-system folder first. If it doesn’t find anything it will look in the normal project’s asset folder.
You also need to ensure that the images are copied over on build.
This ensures that the graphics are copied over when building the project.
Just include the images using the path
All available images can be found here.