1.2.6 • Published 6 months ago

@undp/design-system v1.2.6

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

United Nations Development Programme Design System

Purpose

The purpose of this project is to create unified user interfaces for UNDP by the designer and developers.

These projects will have consistent look and feel and accessible in nature by just following the guidelines in the documentation.

By unifying design elements into reusable components, development will simplify and accelerate the development of these digital products.

The Guide is a living document created to meet the needs of UNDP's front-end developers and designers. If there is a Component or Pattern that you need, or you have any other feedback, question or comment please contact us.

Demo

Living Style Guide & Documentation: Demo

Install from NPM

npm install @undp/design-system

See Starter project at the link below for details of implementaiton

Starter project

Static generator using Design System as dependency: UNDP Design System starter template

Development

Run the following commands to create/update the code.

# checkout the codebase
git clone

# install project dependencies
npm install

# runs storybook locally
npm run storybook

# build storybook
npm run build-storybook

# build compiled css and js
npm run build

# linting on codebase
# caution: this will write changes to your files
npm run lint

Important

Make sure to run npm run build to compile production ready css and js files and include them with your development work. This will help save some extra steps when it comes time to deploy to production.

List of components

View available Components here. Every components has its own documentation page on the link provided.

Credits

The design system is based on:

Assets

=======

  • All the icons/images can be found in the docs/images directory.
  • Fonts: docs/fonts
  • CSS directory at: docs/css
  • JS directory at: docs/js

Storybook and File references

Storybook pathFile path
Components/UI components/Cards/Download Cardstories/Molecules/Blocks/DownloadCard/DownloadCard
Components/UI components/Cards/Publication Cardstories/Molecules/Blocks/DownloadCard/PublicationCard
Components/UI components/Text/Calloutstories/Molecules/Text/BlockquoteComponent
Components/UI components/Text/CTA Blockstories/Molecules/Text/CtaBlock
Components/UI components/Text/Heading Big Blockstories/Molecules/Text/HeadingBig
Components/UI components/Text/Post Blockstories/Molecules/Text/Post
Components/UI components/Text/Small Copy Lockupstories/Molecules/Text/SmallCopy
Components/UI components/Text/Tertiary Blockstories/Molecules/Text/Tertiary
Components/UI components/Text/Text Backgroundstories/Molecules/Text/TextBackground
Components/UI components/Text/Text Ctastories/Molecules/Text/TextCta
Components/UI components/Author Summarystories/Organism/Blocks/Authorcard
Patterns/Card grids/Content Cardsstories/Organism/Blocks/ContentCard
Patterns/Card grids/Content Cards With and Without Imagestories/Organism/Blocks/ContentCardWithAndWithoutImage
Patterns/Card grids/Featured Cardsstories/Organism/Blocks/FeaturedContentCard/FeaturedCard
Components/UI components/Pagewide Featured Content Cardstories/Organism/Blocks/FeaturedContentCard/PagewideContentCard
Patterns/Card grids/Image Reveal Cardsstories/Organism/Blocks/ImageRevealCards
Components/UI components/Footerstories/Organism/Footer
Components/UI components/Statsstories/Organism/Stats
Components/UI components/Stats Card Sliderstories/Organism/Statscardslider
Utilities/Progress Bar Navigationstories/Atom/Navigation/ProgressBarNavigation

License

MIT license.

Acknowledgments

Thanks to Chromatic for providing the visual testing platform that helps us review UI changes and catch visual regressions.

1.2.6

6 months ago

1.2.5

7 months ago

1.2.4

10 months ago

1.2.3

10 months ago