Installation
This package is written in SASS and compiled to CSS. You can compile it from source or you can drop the CSS into your code.
CDN
You can use form
framework directly from CDN:
https://cdn.jsdelivr.net/npm/@codolog/form@1.0.0/dist/form.css
https://cdn.jsdelivr.net/npm/@codolog/form@1.0.0/dist/form.min.css
https://unpkg.com/@codolog/form@1.0.0/dist/form.css
https://unpkg.com/@codolog/form@1.0.0/dist/form.min.css
NPM
Or you can install it from NPM into your project:
npm i @codolog/form --save
Or via yarn package manager:
yarn add @codolog/form
From source
You can import the sass files and compile them into your project.
Tip
The project depends on Tailwindcss CSS reset (preflight.css
). You can get it from CDN or NPM. You can even use your own css reset if you want.
The sass source is structured as follow:
.
└─ src
└─ sass
├─ components
│ └─ normalize.scss
│ └─ link.scss
│ └─ label.scss
│ └─ input.scss
│ └─ textarea.scss
│ └─ checkbox.scss
│ └─ radio.scss
│ └─ select.scss
│ └─ file.scss
│ └─ error.scss
│ └─ button.scss
└─ app.scss
← What is Form? Usage →