# Helpers

CSS helpers plays a very important role in the real world. Based on the Angular Material component library and CSS Helpers, we almost don't need to write redundant styles any more. It also avoids the problem of global style overwriting or minimizes the risks. CSS Helpers should be used for adjusting details.

I have written a [CSS helper libary](https://github.com/snack-ui/snack-helper) a few years ago.

Ng-Matero' CSS helpers follows Material design principles, the numbers are mostly multiples of 4, e.g. padding helpers `p-4` `p-8` `p-16` `p-24`. This will ensure the uniformity of the interface style to the greatest extent.

## About Color

Color helpers is divided into background color and text color. Background colors add `.bg-` prefix and the text colors add `.text-` prefix.

## Available CSS Helpers

See [Ng-Matero Helpers](https://ng-matero.github.io/ng-matero/#/helpers/css-class) for details.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://nzbin.gitbook.io/ng-matero/theming/helpers.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
