Created
November 27, 2025 14:22
-
-
Save humorless/0b72b34aca4dc1a0620d09c169a99dba to your computer and use it in GitHub Desktop.
Example of using ornament
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; Example of using | |
| ;; | |
| ;; - #{...} | |
| ;; - "&:not()" | |
| ;; - "&:has()" | |
| (o/defstyled form :form | |
| ... | |
| [#{:input :textarea :select} ["&:not([type=checkbox])" | |
| :w-full :mb-3]] | |
| [:label ["&:has([type=checkbox])" | |
| :flex :gap-3]] | |
| ... | |
| ) | |
| ;; Example of using | |
| ;; | |
| ;; direct CSS syntax | |
| (o/defstyled xxx :div | |
| ... | |
| [:h1 | |
| {:text-align :center} | |
| [:div ["&:has(img)" | |
| {:vertical-align :middle}]]]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment