Forms

SkyLineCSS provides utility classes to style HTML forms quickly and efficiently. These classes can be used to style form elements such as inputs, selects, checkboxes, and radio buttons.

Basic Form Input

To style a basic form input, use the .form-input class:

<input type="text" class="form-input" placeholder="Enter your name">

Form Sizes

You can adjust the size of form inputs using the following classes:

  • .input-sm: Small input size

  • .input-lg: Large input size

Example:

<input type="text" class="form-input input-sm" placeholder="Small Input">
<input type="text" class="form-input input-lg" placeholder="Large Input">

Form Colors

SkyLineCSS provides predefined color classes for form inputs:

  • .bg-gray-200: Background color

  • .text-blue-500: Text color

  • .border: Border color

Example:

Form Validation States

You can style form inputs based on validation states using the following classes:

  • .valid-input: Valid input

  • .invalid-input: Invalid input

Example:

Checkboxes and Radio Buttons

You can style checkboxes and radio buttons using the following classes:

  • .checkbox: Checkbox style

  • .radio: Radio button style

Example:

Select Boxes

To style select boxes, use the .select class:

Form Buttons

You can style form buttons using the .btn class:

Form Groups

You can group form elements using the .form-group class:

Form Layouts

SkyLineCSS provides classes for form layouts:

  • .form-inline: Inline form layout

  • .form-horizontal: Horizontal form layout

Example:

These are some of the available form styling utilities in SkyLineCSS. You can combine these classes to create stylish and responsive forms for your projects.

Last updated