@candor-ui/react 1.9.1 → 2.0.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/dist/styles.css +13 -3
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -241,9 +241,12 @@
|
|
|
241
241
|
* Font: Inter when the font-inter item is installed (styles/candor-font-inter.css),
|
|
242
242
|
* else the system's sans-serif. Point --cd-font at your own font to use it instead.
|
|
243
243
|
*
|
|
244
|
-
* Density: data-density="compact" on <html> (or any container)
|
|
245
|
-
*
|
|
246
|
-
* thread and sidebar.
|
|
244
|
+
* Density: data-density="compact" | "spacious" on <html> (or any container); no
|
|
245
|
+
* attribute is the default. Compact tightens type for dense apps: 14px conversation
|
|
246
|
+
* text and 13px body and label text, with a narrower thread and sidebar. Spacious is
|
|
247
|
+
* the other way, for reading-first apps: 16px conversation
|
|
248
|
+
* text and 15px body and label text, with a wider thread and sidebar. Both set the
|
|
249
|
+
* same four tokens, so one overrides the other when nested.
|
|
247
250
|
*
|
|
248
251
|
* Motion: data-motion="none" | "subtle" | "expressive" on <html> (or any container).
|
|
249
252
|
* Subtle is the default: a change that happened is shown settling (a collapse,
|
|
@@ -334,6 +337,13 @@
|
|
|
334
337
|
--cd-thread-width: 44rem;
|
|
335
338
|
--cd-sidebar-width: 14rem;
|
|
336
339
|
}
|
|
340
|
+
/* The spacious preset: the same four tokens as compact, set the other way. Prose is pinned here too, at 16px. */
|
|
341
|
+
[data-density="spacious"] {
|
|
342
|
+
--cd-text-prose: 1rem;
|
|
343
|
+
--cd-text-md: 0.9375rem;
|
|
344
|
+
--cd-thread-width: 52rem;
|
|
345
|
+
--cd-sidebar-width: 18rem;
|
|
346
|
+
}
|
|
337
347
|
@media (prefers-color-scheme: dark) {
|
|
338
348
|
:root:not([data-theme]) {
|
|
339
349
|
--cd-shadow: oklch(0 0 0 / 0.35);
|
package/package.json
CHANGED