Simply download it and import the files from your CSS library.
Download or clone the code.
git clone https://github.com/brandedux/lux.git
🎨 Palette is color & grayscale classes
Import Palette:
Import palette.scss into your app.scss or primary file.
@import './palette';
Example Class:
Include the palette class in your markup.
class="palette"
Nest color, grayscale and alpha channel classes within the palette class.
class="bg-red txt-black alpha-50"
Nested classes should be used like:
<div class="palette">
<p class="bg-red txt-black alpha-50">Warning!</p>
</div>
- bg = background color
- txt = text color
- red
- orange
- yellow
- green
- blue
- indigo
- violet
- ultraviolet
- black
- white
- grayscale-90
- grayscale-80
- grayscale-70
- grayscale-60
- grayscale-50
- grayscale-40
- grayscale-30
- grayscale-20
- grayscale-10
- alpha-90
- alpha-80
- alpha-70
- alpha-60
- alpha-50
- alpha-40
- alpha-30
- alpha-20
- alpha-10
✍️ Scribe is text classes
Import Scribe:
Import scribe.scss into your app.scss or primary file.
@import './scribe';
Example Class:
Include the scribe class in your markup.
class="scribe"
Nest size, weight and alternate classes within the scribe class.
class="txt-base txt-500 txt-italic"
Nested classes should be used like:
<div class="scribe">
<p class="txt-bigger txt-900">0 2 8 18 32</p>
</div>
- txt-smallest
- txt-smaller
- txt-small
- txt-base
- txt-big
- txt-bigger
- txt-biggest
- txt-100
- txt-200
- txt-300
- txt-400
- txt-500
- txt-600
- txt-700
- txt-800
- txt-900
- txt-bold
- txt-bolder
- txt-fixed-width
- txt-italic
- txt-caps
- txt-small-caps
- txt-sup
- txt-sub
👌Smidge is margin & padding classes
Import Smidge:
Import smidge.scss into your app.scss or primary file.
@import './smidge';
Example Class:
Include the classes in your markup.
class="m-h-base"
- m = margin
- p = padding
- h = horizontal
- v = vertical
- t = top
- b = bottom
- l = left
- r = right
- smaller
- small
- base
- big
- bigger
Copyright (c) 2019, Jeff Davis.
LUX, Palette, Scribe, & Smidge source code is licensed under the MIT License.