Skip to main content
Brand and assetsBuild
Monitor and contribute
  • Component health
/
Monitor and contribute
  • Component health
  • Contribution
    • How to contribute
    • Guides
    • For designers
    • For engineers
    • For documentation
    • Figma training
    • Reference
    • Component page template
    • Component lifecycle
    • Naming conventions
    • Component thumbnails
  • Contribution
  • Naming conventions

Naming conventions for Designers

We have different ways of naming components depending on their status (implemented, deprecated, etc).

"To call things by incorrect names is to add to the world’s misery." — Albert Camus

Naming convention for components in Figma​

All our components are written in PascalCase. We should strive to sync names between Figma & code as much as possible.

ConventionDefinitionNotes
<Name>A global Murray componentIt has a code equivalent.
Eg. <Button>
🚧 <Name>A global component that hasn't been implemented yet.Eg. 🚧 <Navigation>
(Name)`A pattern or template to help with consistency.You should detach it otherwise you won't be able to add your content. In code, they're often implemented components.
Eg. (BottomSheet) or (SideModal)
[Name]A shortcut for designers to help with consistency.They're not meant to be implemented.
Eg. [SelectOptionsList]
NameA local componentIt's not part of Murray for now. It's built ad-hoc by engineers.
<Name> ❖ Local variant nameA local component that extends a global component in a specific context.It's not part of Murray for now. It's built ad-hoc by engineers.
.🚫 <Name> - DATE/OF/DEPRECATIONA deprecated componentThe dot unpublishes the component from the library.
Eg. .🚫 <ActionList> - 2022/02/01

Naming convention for variants & properties​

We should strive to sync variant & properties as much as possible with what is happening in code (with attributes & their arguments).

The difference between "variant" & "color"​

Variant signifies there's a semantic reflexion behind it. Eg. with our buttons, we have primary, secondary & danger variants.If we're offering all the color options, these are not variants but colors.

Naming convention for layers in Figma​

🚧

Edit this page
Previous
Component lifecycle
Next
Component thumbnails
  • Naming convention for components in Figma
  • Naming convention for variants & properties
    • The difference between "variant" & "color"
  • Naming convention for layers in Figma