About The Project
Style utils for Angular, use the angular way.
Getting Started
Prerequisites
- npm
npm i ngx-style-utils --save
Installation
- Enter your project directory
- Install NPM packages
npm i ngx-style-utils --save
Usage
Load the module:
import {NgxStyleUtilsModule} from "ngx-style-utils";
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
AppRoutingModule,
NgxStyleUtilsModule,
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
And use in template:
<div box padding="1rem" flex justifyContent="center" >
<span box display="inline-block"
boxShadow="0 0 3px #0000ff"
padding="6px 2rem" color="#fff"
background="blue" border="1px solid rgba(0, 0, 0, 0.8)"
borderRadius="5px">Hello world.</span>
</div>
Contributing
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE.txt
for more information.