Package Exports
- tinchi
- tinchi/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tinchi) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Tinchi
from sicilian: Tìnci (ph: tin-chee) = To Paint.
A small set of css utils classes to quickly startup your css project without having to copy paste snippets all over the place.
How to use it
npm i -g tinchi
or/then
npx tinchi [options] dump folder
More info with
npx tinchi help
This will generate the tinchi
css file(s) to the specified folder.
Then just need to use that folder/filename on your html like so:
<link rel="stylesheet" href="folder/vars.css" />
<link rel="stylesheet" href="folder/index.css" />
Docs
Defaults
The defaults settings are in a vars.css
file you can replace/override specifying a custom one afterward:
<link rel="stylesheet" href="folder/vars.css" />
<link rel="stylesheet" href="./custom.css" />
<link rel="stylesheet" href="folder/index.css" />
Behaviours
h_inv
- invert colours on hover
c-ptr
- cursor pointer on hover
oa
- overflow:auto
Box Model utils
brd
- borders with default val and default radius (coming from vars)
pd
- padding default (1rem)
pd2
- padding 2rem
m0a
- margins 0 auto
mg_5
- margin 0.5rem
mg
- margin 1rem
mg2
- margins 2rem
Flex Utils
f
- display: flex
f1
- flex:1
spa
- justify space around
spb
- justify space between
g_5
- gap .5rem
g
- gap 1rem
g2
- gap 2rem
fi
- flex items list, a set of items in a list that wrap and scale to size
fic
- same as fi
only on a column.
columns
flex-direction: column
c
- just flex dir columns
cc
- center aligned and center justified.
cs
- center aligned and justified on flex start.
ce
- center aligned and justified on flex end.
rows
flex-direction: row
r
- just flex dir columns
rc
- center aligned and center justified.
rs
- center aligned and justified on flex start.
re
- center aligned and justified on flex end.
Buttons
Buttons have bg-color
of --accent-v1-color
There are a few variants:
button.big
- a wide button
button.small
- a small button
button.success
- a button with bg-colour
--success-color
button.warning
- a button with bg-colour
--warning-color
button.danger
- - a button with bg-colour
--danger-color
Font Styles/Effects
tt-cpz
- text-transform: capitalize;
success
- make the text colour --success-color
danger
- make the text colour --danger-color
Debug
debug
- class - it will set bg colour and borders to some obvious colours.