UNPKG

@nitro-ui/utility-background

Version:

Utility background component for Nitro UI.

88 lines (54 loc) 1.96 kB
# Nitro UI: Utility Background Utility Background component for Nitro UI. ## Getting Started Get latest version by installing via [NPM @nitro-ui/utility-background](https://www.npmjs.com/package/@nitro-ui/utility-background): ```sh npm install @nitro-ui/utility-background ``` Include this stylesheet code into your site: ```html <div class="u-bg-primary">u-bg-primary</div> <div class="u-bg-white">u-bg-white</div> <div class="u-bg-haze-light">u-bg-haze-light</div> <div class="u-bg-haze-dark">u-bg-haze-dark</div> <div class="u-bg-dark">u-bg-dark</div> <div class="u-bg-gradient-light">u-bg-gradient-light</div> <div class="u-bg-gradient-dark">u-bg-gradient-dark</div> <img src="your-image.jpg" class="u-bg-cover"/> ``` ## Usage: Example with `<div>` tag: ```html <div class="u-bg-primary">u-bg-primary</div> <img src="./images.jpg" class="u-bg-cover" style="width: 100%;"/> ``` ## Development To extends, develop or contribute to this component, you're required to fork our main [repository](https://github.com/icarasia/nitro-ui) and made a pull request. ### Development Requirements Development tools required for this component are: - [NodeJS](https://nodejs.org/en/) - [Grunt CLI](https://gruntjs.com) - [Ruby](https://www.ruby-lang.org/en/) (optional) - [SASS](https://sass-lang.com) (optional) Ruby and SASS are optional if you're fully using [node-sass](https://github.com/sass/node-sass) from npm for development. ### Development Setup Run: ```sh npm install ``` ### Compile Run: ```sh grunt ``` --- # TODO Nothing todo for now. --- # CHANGELOG All notable changes to this project will be documented in this file. **For now, let's keep TODO and CHANGELOG in README file. Keeping things simple.** The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [0.0.0-beta] - 2019-07-18 ### Added - Initial setup