# ngx-style

> NgxStyle is an Angular component library that gives you CSS directives for your application

Latest version **0.0.7** (published 2022-08-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install ngx-style
pnpm add ngx-style
yarn add ngx-style
bun add ngx-style
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.7 |
| Published | 2022-08-14 |
| First published | 2022-08-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 805.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mohideen Nizamudeen |
| Maintainers | abdulnijamudeen |
| Keywords | css, style, angular, ngx-style, ngx style, directives, css directives, angular directives, inline style, dom manipulation, css spaces, spacing, front end, front-end |

## Links

- npm: https://www.npmjs.com/package/ngx-style
- npm.io page: https://npm.io/package/ngx-style

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^2.3.0

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 0.0.7 (latest) — 2022-08-14
- 0.0.6 — 2022-08-13
- 0.0.5 — 2022-08-11
- 0.0.4 — 2022-08-10
- 0.0.3 — 2022-08-10
- 0.0.2 — 2022-08-10
- 0.0.1 — 2022-08-09

## README

# NgxStyle

NgxStyle is an Angular component library that gives you CSS directives for your application

## Install

```
npm install ngx-style --save
```

## Import

```typescript
...
import { NgxStyleModule } from 'ngx-style';
...

@NgModule({
  ...
  imports: [
    ...
    NgxStyleModule,
  ],
  ...
})
export class AppModule { }

```

## Usage

```html
<div [w]="'20%'">
  <p>content goes here.</p>
</div>
```

```html
<div w="50rem">
  <p>content goes here.</p>
  <div [w]="'40%'" ml="50px">
    <p>content goes here.</p>
  </div>
</div>
```

```html
<div m="2rem 20% 32px auto">
  <p>content goes here.</p>
  <div ml="3em">
    <p>content goes here.</p>
  </div>
</div>
```

## CSS Directives

| CSS Properties          | Directives|
| ---------------         |:---------:|
| align-content           | ac        |
| align-items             | ai        |
| align-self              | as        |
| background              | bg        |
| background-attachment   | bgatt     |
| background-color        | bgc       |
| background-image        | bgi       |
| background-position     | bgp       |
| background-repeat       | bgr       |
| background-size         | bgs       |
| border                  | br        |
| border-bottom           | brb       |
| border-color            | brc       |
| border-left             | brl       |
| border-radius           | brrad     |
| border-right            | brr       |
| border-style            | brs       |
| border-top              | brt       |
| border-width            | brw       |
| bottom                  | b         |
| box-shadow              | bxs       |
| color                   | c         |
| cursor                  | cr        |
| display                 | d         |
| flex                    | fx        |
| flex-basis              | fxb       |
| flex-direction          | fxd       |
| flex-flow               | fxf       |
| flex-grow               | fxg       |
| flex-shrink             | fxs       |
| flex-wrap               | fxw       |
| float                   | flt       |
| font                    | fnt       |
| font-family             | fntf      |
| font-size               | fnts      |
| font-style              | fntstl    |
| font-weight             | fntw      |
| height                  | h         |
| justify-content         | jc        |
| justify-items           | ji        |
| justify-self            | js        |
| left                    | l         |
| margin                  | m         |
| margin-block            | my        |
| margin-block-end        | mye       |
| margin-block-start      | mys       |
| margin-bottom           | mb        |
| margin-inline           | mx        |
| margin-inline-end       | mxe       |
| margin-inline-start     | mxs       |
| margin-left             | ml        |
| margin-right            | mr        |
| margin-top              | mt        |
| max-height              | maxh      |
| max-width               | maxw      |
| min-height              | minh      |
| min-width               | minw      |
| overflow                | of        |
| overflow-x              | ofx       |
| overflow-y              | ofy       |
| padding                 | p         |
| padding-block           | py        |
| padding-block-end       | pye       |
| padding-block-start     | pys       |
| padding-bottom          | pb        |
| padding-inline          | px        |
| padding-inline-end      | pxe       |
| padding-inline-start    | pxs       |
| padding-left            | pl        |
| padding-right           | pr        |
| padding-top             | pt        |
| position                | pos       |
| right                   | r         |
| text-align              | ta        |
| text-decoration         | td        |
| text-shadow             | ts        |
| top                     | t         |
| vertical-align          | va        |
| width                   | w         |
| writing-mode            | wm        |
| z-index                 | zi        |


## License

Uses MIT licensed code from [Angular](https://github.com/angular/angular)

MIT License

Copyright 2022 Mohideen Nizamudeen

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

---
_Source: https://npm.io/package/ngx-style · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
