@nitro-ui/utility-text
v1.0.15
Published
Utility Text component for Nitro UI.
Downloads
93
Readme
Nitro UI: Utility Text
Utility Text component for Nitro UI.
Getting Started
Get latest version by installing via NPM @nitro-ui/utility-text:
npm install @nitro-ui/utility-text
Include this stylesheet code into your site:
Text Size
<p class="u-text-1">u-text-1</p>
<p class="u-text-2">u-text-2</p>
<p class="u-text-3">u-text-3</p>
<p class="u-text-4">u-text-4</p>
<p class="u-text-5">u-text-5</p>
<p class="u-text-6">u-text-6</p>
<p class="u-text-7">u-text-7</p>
<p class="u-text-8">u-text-8</p>
Text Color
<p class="u-color-base">Text color base</p>
<p class="u-color-dark">Text color dark</p>
<p class="u-color-link">Text color link</p>
<p class="u-color-muted">Text color muted</p>
<p class="u-color-white">Text color white</p>
<p class="u-color-positive">Text color positive</p>
<p class="u-color-negative">Text color negative</p>
<p class="u-color-warning">Text color warning</p>
Font Weight
<p class="u-text-light">Font weight light</p>
<p class="u-text-normal">Font weight normal</p>
<p class="u-text-medium">Font weight medium</p>
<p class="u-text-semibold">Font weight semibold</p>
<p class="u-text-bold">Font weight bold</p>
Core
<p class="u-text-truncate">Text Truncate</p>
<p class="u-text-strike">Text Strike</p>
<p class="u-text-clamp">Text Clamp</p>
<p class="u-text-unstyled">Text Unstyled</p>
Responsive
`mobile, tablet, portable`
Only available for `u-text-{size}` and `u-text-{uppercase/lowercase}`
<p class="u-text-2@mobile">Text 2 when mobile size</p>
<p class="u-text-7@tablet">Text 7 when tablet size</p>
<p class="u-text-uppercase@portable">Text uppercase when tablet and mobile size</p>
Case
<p class="u-text-uppercase">Text uppercase</p>
<p class="u-text-lowercase">Text lowercase</p>
Usage:
Example with <a>
tag:
<a href="#" class="u-text-5 u-color-link u-text-7@mobile">Text color Primary, text-5 for all screen except text-7 when mobile</a>
<a href="#" class="u-color-muted u-text-uppercase@mobile">Text color muted and uppercase when mobile</a>
Development
To extends, develop or contribute to this component, you're required to fork our main repository and made a pull request.
Development Requirements
Development tools required for this component are:
Ruby and SASS are optional if you're fully using node-sass from npm for development.
Development Setup
Run:
npm install
Compile
Run:
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, and this project adheres to Semantic Versioning.
[0.0.0-beta] - 2019-07-18
Added
- Initial setup