@@ -88,9 +94,9 @@ In this step we will use [CSS Modules](https://github.com/css-modules/css-module
The global CSS variables contain all publicly available styling parameters. With this it is possible to style custom components with the standardized styles of the UI5 Web Components.
-4. Add styling using CSS Modules
+4. Add styling using CSS Modules:
- First create a new file `MyCustomElement.module.css` in the same folder as `MyCustomElement.tsx` with the following content:
+ First, create a new file `MyCustomElement.module.css` in `src` with the following content:
```CSS
.container {
@@ -141,29 +147,29 @@ In this step we will use [CSS Modules](https://github.com/css-modules/css-module
```

- Now you can see, that the element has the same `fontFamily` and uses the same semantic colors as UI5 Web Components for React.
+ As you can see the custom element has the same `fontFamily` and uses the same semantic colors as UI5 Web Components for React.
### SAP UI Common CSS
-It's often required setting more complex styles for e.g. layouting. For this it's recommended using CSS classes of the [SAP UI Common CSS](https://sap.github.io/fundamental-styles/?path=/docs/common-css-introduction--docs) library which is also following the Fiori design guidelines.
+It's often required to define more complex styles, for example for layouting. In this case, it's recommended to use the [SAP UI Common CSS](https://sap.github.io/fundamental-styles/?path=/docs/common-css-introduction--docs) library and its CSS classes, which also follow the SAP Fiori design guidelines.
One example is applying a responsive content padding to the content of the dashboard:
-1. Install Common CSS
+1. Install Common CSS:
```shell
npm i @sap-ui/common-css
```
-2. Import the required classes in `Home.tsx`
+2. Import the required classes in `Home.tsx`:
```ts
import '@sap-ui/common-css/dist/sap-content-paddings.css';
import '@sap-ui/common-css/dist/sap-container-type.css';
```
-3. Apply the classes on elements
+3. Apply the classes on elements:
- Add `div` that is wrapping the outer `FlexBox` and apply the `sap-container-type-inline-size` class:
+ Add a `div` that is wrapping the outer `FlexBox` and apply the `sap-container-type-inline-size` class:
```tsx
@@ -173,7 +179,7 @@ One example is applying a responsive content padding to the content of the dashb
...
```
- Remove `style` from the outer `FlexBox` and apply the `sap-content-paddings-container` class:
+ Also remove the `style` from the outer `FlexBox` and apply the `sap-content-paddings-container` class:
```tsx