BridgeBeta
  • Brand
  • Digital Assets
    Foundations
    Icons
    Components
    Templates
  • Resources
    Design Tokens
    How-tos
    Best Practices
    Libraries
    Accessibility
    Products List
  • Support
    • Overview
    • Designing
      • Figma
    • Developing
      • Naming convention
    • Guidelines
      • Intro
      • Typography
Documentation
Developing

Naming convention

Naming convention & linting

Colours for the WFP design system

The UI Kit uses the BEM naming convention for scss/css.

Namespacing

The Components are built to be included individually and not clobber global styles - all class attributes are prefixed by the wfp-- prefix.

Language

The names of the variables functions, etc. should be in English for easy maintenance. Some servers may have difficulty handling Unicode characters. The general rule is to never use Unicode characters in the name of your web pages.

Linting

Use ES-Lint which is a linting utility for JavaScript and JSX while building your React Application to analyse source code to flag programming errors, bugs, stylistic errors and suspicious constructs.

If you want to use the ESLint configuration in a project you can install it with the eslint-config-react-app. It also includes the eslint-plugin-jsx-a11y accessibility rules by default. When using Create React App no action is needed since it already includes the configuration.

Basic rules used when building the UI Kit

  • ECMAScript 6 features
  • no require statements
  • spaces (2 space indentation)
  • Semicolon is required at the end of a line

On this page

  • Namespacing
  • Language
  • Linting
  • Basic rules used when building the UI Kit
Storybook
Figma library
Contact us
2025 © World Food Programme