# Encourage usage of shorthand CSS notations (`@greenpoint/prefer-shorthand-css-notations-content`)

⚠️ This rule _warns_ in the ✅ `recommended` config.

<!-- end auto-generated rule header -->

⚠️This rule warns in the ✅ recommended config.

## Rule Details

This rule aims to encourage the use of shorthand CSS notations, especially for the following attributes: outline, border, background and listStyle

## Examples

Examples of **non-compliant** code for this rule:

```js
<div style={{outlineWidth:1, outlineStyle: 'solid', outlineColor: '#000000'}}/>
```

Examples of **compliant** code for this rule:

```js
<div style={{ outline: "inset thick" }}> {/* Your content here */} </div>
```

## Further reading

- [cnumr/best-practices/Use abbreviated CSS notations](https://github.com/cnumr/best-practices/blob/fc5a1f865bafb196e4775cce8835393751d40ed8/chapters/BP_026_en.md)
