> For the complete documentation index, see [llms.txt](https://docs.cwicly.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cwicly.com/tailwind/getting-started/apply-a-class.md).

# Apply a Class

Tailwind classes can be applied to a block in one of two ways; through the UI and/or the class selector.

## Through the UI

* To add a Tailwind class through the UI, select a block.
* Select a  property.
* Select the required value in the modal.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2F32n2fqJiny40ZtztVcvl%2Fediting%20block.png?alt=media&amp;token=0e019e1a-3abf-4611-83ec-88b942bd3135" alt=""><figcaption></figcaption></figure>

* If you are familiar with Tailwind values, you can input the desired value without having to use the class prefix.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FTCHwsS77xVXegKj8oWQI%2Finput%20values.png?alt=media&amp;token=30d133e8-f92a-4e05-afb2-ece2a7814616" alt=""><figcaption></figcaption></figure>

* Any valid custom input will automatically be converted to a Tailwind class.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2F8ii9W26KCpwy4xd9MmYX%2Fcustom%20input%20value.png?alt=media&amp;token=b8ab2ed9-2404-4716-bf1c-db85aa1d594d" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Cwicly automatically detects classes that apply to a property so you do not have to remove a Tailwind class to change its value.
{% endhint %}

* Tailwind classes appear with the characteristic Tailwind blue in the Class area.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2F3fqqeyIehItJUrihPRNm%2Fblue%20properties.png?alt=media&amp;token=198e7a91-9e60-4a30-bf3f-fca2f92adcfb" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Any team member unfamiliar with Cwicly can write in their classes as they usually would while another can work with the UI at the same time.
{% endhint %}

## Through the Class Selector

You can also add a Tailwind class through the class selector.

## Apply a Class

* Navigate to the Block Inspector.&#x20;
* Open the class selector.&#x20;
* Type in your desired class.&#x20;
* Some suggestions appear in the Tailwind classes column.
* To apply, select a suggestion or press enter.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FVOJWvwn5HlV45QPhSq1I%2Fwrite%20in%20class%20in%20class%20selector.png?alt=media&amp;token=0dbc3bee-714f-4a0f-b11c-14968195a928" alt=""><figcaption></figcaption></figure>

## Remove a Class

You can remove a Tailwind value in one of two ways:

* &#x20;Resetting the value of the property.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FXwnnBcgrL2CmrDRjqgNF%2Freset%20value.png?alt=media&amp;token=c474eb0c-87bf-4d34-a02f-46889abd55e1" alt=""><figcaption></figcaption></figure>

* Or by removing its associated class by clicking the remove icon.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2F00f8vNm61sNQKqNvOheZ%2Fclick%20cross%20blue%20property.png?alt=media&amp;token=39d2e72e-43e7-48f0-b6f0-bacbaae77ebd" alt=""><figcaption></figcaption></figure>

## Team Members

Any team member unfamiliar with Cwicly can simply write in their classes as they usually would while allowing you to work with the UI at the same time.

## Hybrid Users

For hybrid users, those who like to work with classes and the UI:

* Shift click on a Tailwind class.
* The UI will automatically take you to the appropriate editing view.

## Hover Preview

The Hover Preview property allows you to see what a class or value represents.&#x20;

* Hover over a Tailwind class to get its CSS definition.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FN9F8h2HUQe3NxqJDMZio%2Fhover%20over%20property.png?alt=media&amp;token=7edf9fb0-fbc5-440f-9880-2bb34bd7ba97" alt=""><figcaption></figcaption></figure>

* Hover over a value suggestion to see its CSS value.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FMQkyhg2ljn2lz3JOJZl3%2Fhover%20over%20value.png?alt=media&amp;token=8e7b3c67-621e-4d09-a544-484319ee0f9f" alt=""><figcaption></figcaption></figure>
