@caqophony/ui 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/dist/{chunk-K3SEIIA3.js → chunk-4YA6BZDJ.js} +1 -1
- package/dist/index.d.mts +580 -12
- package/dist/index.js +2083 -903
- package/dist/markdown.js +1 -1
- package/package.json +1 -1
- package/styles.css +97 -43
package/README.md
CHANGED
|
@@ -41,7 +41,9 @@ ships, after Tailwind, in your global CSS:
|
|
|
41
41
|
@import '@caqophony/ui/styles.css';
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
-
`styles.css` defines the token variables (light and
|
|
44
|
+
`styles.css` defines the token variables (light, and dark under
|
|
45
|
+
`@media (prefers-color-scheme: dark)`, the same OS setting Tailwind v4's `dark:`
|
|
46
|
+
variant follows), maps them to
|
|
45
47
|
Tailwind v4 colour/radius/z-index/opacity/duration utilities and registers the
|
|
46
48
|
package's built files as a Tailwind `@source`. Override any `--token` after the
|
|
47
49
|
import to re-theme.
|
|
@@ -36,7 +36,7 @@ function getProseClasses(size, className) {
|
|
|
36
36
|
// Emphasis/italic
|
|
37
37
|
"prose-em:text-foreground dark:prose-em:text-foreground",
|
|
38
38
|
// Links
|
|
39
|
-
"prose-a:text-primary dark:prose-a:text-primary prose-a:no-underline hover:prose-a:underline",
|
|
39
|
+
"prose-a:text-primary-text dark:prose-a:text-primary-text prose-a:no-underline hover:prose-a:underline",
|
|
40
40
|
// Lists
|
|
41
41
|
"prose-li:text-foreground dark:prose-li:text-foreground",
|
|
42
42
|
// Inline code
|