feat(docs): dynamic css use tailwind (#2646)
close #2626 --------- Co-authored-by: Marvin Hagemeister <marvin@deno.com>
This commit is contained in:
co-authored by
Marvin Hagemeister
parent
06bb42689c
commit
7e4a22f7af
@@ -118,6 +118,15 @@ That's it! Now you can use Tailwind CSS in your project.
|
||||
> | `[data-current]:bg-red-600` | `data-[current]:bg-red-300` |
|
||||
> | `[aria-current]:bg-red-600` | `aria-[current]:bg-red-300` |
|
||||
|
||||
> [warn]: Tailwind CSS does not allow you to generate and apply CSS classes
|
||||
> dynamically, which means you need to explicitly specify the class you want to
|
||||
> apply. In other words, to use dynamic classes, you need to ensure that they
|
||||
> are present in the final CSS file.
|
||||
>
|
||||
> | Twind | Tailwind CSS |
|
||||
> | --------------------------------- | ------------------------------------------------------------ |
|
||||
> | `<a class={`link-${color}`}></a>` | `<a class={color === 'blue' ?`link-blue`:`link-green`}></a>` |
|
||||
|
||||
## Frequently Asked Questions (FAQ)
|
||||
|
||||
### What are the differences between twind and Tailwind CSS?
|
||||
|
||||
Reference in New Issue
Block a user