@zazz-ui/core 0.15.0 → 0.16.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/AUTHORING.md +29 -14
- package/CHANGELOG.md +162 -0
- package/README.md +6 -5
- package/dist/{csp-LRx1fynI.js → csp-C1f62vyT.js} +1 -1
- package/dist/sri.json +70 -65
- package/dist/zazz.css +1 -1
- package/dist/zazz.js +1 -1
- package/editor/zazz.css-data.json +74 -2
- package/editor/zazz.html-data.json +119 -79
- package/editor/zazz.language-data.json +402 -314
- package/editor/zazz.lint-data.json +1752 -1731
- package/package.json +2 -1
- package/src/base/_defaults.css +11 -11
- package/src/base/_reset.css +2 -10
- package/src/base/_typography.css +17 -568
- package/src/base/_utilities-box.css +17 -17
- package/src/base/_utilities-pseudo.css +2 -2
- package/src/base/_variables.css +142 -97
- package/src/base/carousel-scroll.d.ts +1 -1
- package/src/base/carousel-scroll.js +6 -6
- package/src/base/carousel-scroll.ts +6 -6
- package/src/base/carousel.d.ts.map +1 -1
- package/src/base/carousel.js +6 -2
- package/src/base/carousel.ts +6 -2
- package/src/base/csp.js +2 -2
- package/src/base/csp.ts +2 -2
- package/src/base/kit-styling.d.ts.map +1 -1
- package/src/base/kit-styling.js +186 -183
- package/src/base/kit-styling.ts +186 -183
- package/src/base/navigation.d.ts +2 -2
- package/src/base/navigation.d.ts.map +1 -1
- package/src/base/navigation.js +25 -21
- package/src/base/navigation.ts +27 -21
- package/src/base/utilities.d.ts +1 -1
- package/src/base/utilities.d.ts.map +1 -1
- package/src/base/utilities.js +20 -4
- package/src/base/utilities.ts +21 -5
- package/src/base/zazz-element.d.ts +1 -1
- package/src/base/zazz-element.js +1 -1
- package/src/base/zazz-element.ts +1 -1
- package/src/{base → behaviors}/gesture.d.ts +4 -3
- package/src/behaviors/gesture.d.ts.map +1 -0
- package/src/{base → behaviors}/gesture.js +1 -1
- package/src/{base → behaviors}/gesture.ts +5 -4
- package/src/{base → behaviors}/hotkeys.d.ts +2 -1
- package/src/behaviors/hotkeys.d.ts.map +1 -0
- package/src/{base → behaviors}/hotkeys.ts +2 -1
- package/src/behaviors/list-navigation.d.ts +64 -0
- package/src/behaviors/list-navigation.d.ts.map +1 -0
- package/src/behaviors/list-navigation.js +66 -0
- package/src/behaviors/list-navigation.ts +107 -0
- package/src/{base → behaviors}/typeahead.d.ts +3 -1
- package/src/behaviors/typeahead.d.ts.map +1 -0
- package/src/{base → behaviors}/typeahead.js +12 -17
- package/src/{base → behaviors}/typeahead.ts +12 -17
- package/src/css-properties.json +704 -0
- package/src/index.css +7 -0
- package/src/manifest.d.ts +20 -9
- package/src/manifest.d.ts.map +1 -1
- package/src/manifest.js +125 -37
- package/src/manifest.ts +132 -38
- package/src/primitives/accordion/accordion.json +49 -0
- package/src/primitives/alert-dialog/alert-dialog.json +35 -0
- package/src/primitives/autocomplete/autocomplete.d.ts +2 -2
- package/src/primitives/autocomplete/autocomplete.d.ts.map +1 -1
- package/src/primitives/autocomplete/autocomplete.js +2 -2
- package/src/primitives/autocomplete/autocomplete.json +65 -0
- package/src/primitives/autocomplete/autocomplete.ts +2 -2
- package/src/primitives/avatar/avatar.css +108 -0
- package/src/primitives/avatar/avatar.html +20 -74
- package/src/primitives/avatar/avatar.json +48 -0
- package/src/primitives/badge/badge.css +45 -10
- package/src/primitives/badge/badge.html +4 -0
- package/src/primitives/badge/badge.json +83 -0
- package/src/primitives/breadcrumbs/breadcrumbs.json +20 -0
- package/src/primitives/button/button.css +50 -66
- package/src/primitives/button/button.html +4 -0
- package/src/primitives/button/button.json +85 -0
- package/src/primitives/button-group/button-group.css +4 -15
- package/src/primitives/button-group/button-group.json +40 -0
- package/src/primitives/callout/callout.css +1 -1
- package/src/primitives/callout/callout.html +12 -12
- package/src/primitives/callout/callout.json +54 -0
- package/src/primitives/card/card-article.html +13 -37
- package/src/primitives/card/card-horizontal.html +11 -14
- package/src/primitives/card/card-login.html +4 -4
- package/src/primitives/card/card-product.html +3 -3
- package/src/primitives/card/card-subgrid.html +4 -4
- package/src/primitives/card/card.css +1 -1
- package/src/primitives/card/card.html +8 -8
- package/src/primitives/card/card.json +73 -0
- package/src/primitives/carousel/carousel.css +1 -1
- package/src/primitives/carousel/carousel.json +89 -0
- package/src/primitives/checkbox/checkbox.css +1 -2
- package/src/primitives/checkbox/checkbox.json +51 -0
- package/src/primitives/combobox/combobox.css +3 -2
- package/src/primitives/combobox/combobox.d.ts +2 -2
- package/src/primitives/combobox/combobox.d.ts.map +1 -1
- package/src/primitives/combobox/combobox.js +2 -2
- package/src/primitives/combobox/combobox.json +113 -0
- package/src/primitives/combobox/combobox.ts +2 -2
- package/src/primitives/command/command-actions.html +1 -1
- package/src/primitives/command/command.d.ts +4 -3
- package/src/primitives/command/command.d.ts.map +1 -1
- package/src/primitives/command/command.js +7 -6
- package/src/primitives/command/command.json +86 -0
- package/src/primitives/command/command.ts +7 -6
- package/src/primitives/debug/audit-core.d.ts +19 -12
- package/src/primitives/debug/audit-core.d.ts.map +1 -1
- package/src/primitives/debug/audit-core.js +78 -16
- package/src/primitives/debug/audit-core.ts +94 -22
- package/src/primitives/debug/debug.d.ts +6 -4
- package/src/primitives/debug/debug.d.ts.map +1 -1
- package/src/primitives/debug/debug.js +50 -21
- package/src/primitives/debug/debug.json +29 -0
- package/src/primitives/debug/debug.ts +57 -35
- package/src/primitives/dialog/dialog.css +1 -4
- package/src/primitives/dialog/dialog.json +78 -0
- package/src/primitives/drawer/drawer.css +4 -2
- package/src/primitives/drawer/drawer.d.ts.map +1 -1
- package/src/primitives/drawer/drawer.js +76 -4
- package/src/primitives/drawer/drawer.json +98 -0
- package/src/primitives/drawer/drawer.ts +78 -5
- package/src/primitives/fields/fields.css +11 -4
- package/src/primitives/fields/fields.json +92 -0
- package/src/primitives/font/font.css +188 -0
- package/src/primitives/font/font.html +14 -0
- package/src/primitives/font/font.json +39 -0
- package/src/primitives/group/group.json +25 -0
- package/src/primitives/input/input.css +1 -2
- package/src/primitives/input/input.json +56 -0
- package/src/primitives/input-group/input-group-password-group.html +1 -1
- package/src/primitives/input-group/input-group.css +32 -3
- package/src/primitives/input-group/input-group.html +5 -8
- package/src/primitives/input-group/input-group.json +69 -0
- package/src/primitives/kbd/kbd.css +1 -1
- package/src/primitives/kbd/kbd.json +52 -0
- package/src/primitives/layout/layout.json +45 -0
- package/src/primitives/lightbox/lightbox.css +4 -3
- package/src/primitives/lightbox/lightbox.html +2 -2
- package/src/primitives/lightbox/lightbox.js +1 -1
- package/src/primitives/lightbox/lightbox.json +87 -0
- package/src/primitives/lightbox/lightbox.ts +1 -1
- package/src/primitives/link/link.css +28 -0
- package/src/primitives/link/link.html +5 -0
- package/src/primitives/link/link.json +23 -0
- package/src/primitives/menu/menu.d.ts +3 -0
- package/src/primitives/menu/menu.d.ts.map +1 -1
- package/src/primitives/menu/menu.js +10 -25
- package/src/primitives/menu/menu.json +51 -0
- package/src/primitives/menu/menu.ts +10 -27
- package/src/primitives/menubar/menubar.json +23 -0
- package/src/primitives/meter/meter.css +24 -3
- package/src/primitives/meter/meter.json +41 -0
- package/src/primitives/mobile-menu/mobile-menu.html +1 -1
- package/src/primitives/mobile-menu/mobile-menu.json +64 -0
- package/src/primitives/navigation-menu/navigation-menu-featured.html +58 -58
- package/src/primitives/navigation-menu/navigation-menu-megamenu.html +6 -113
- package/src/primitives/navigation-menu/navigation-menu.css +11 -5
- package/src/primitives/navigation-menu/navigation-menu.html +1 -1
- package/src/primitives/navigation-menu/navigation-menu.json +82 -0
- package/src/primitives/otp/otp.css +1 -1
- package/src/primitives/otp/otp.d.ts +3 -3
- package/src/primitives/otp/otp.js +5 -5
- package/src/primitives/otp/otp.json +75 -0
- package/src/primitives/otp/otp.ts +5 -5
- package/src/primitives/password-group/password-group.css +32 -2
- package/src/primitives/password-group/password-group.html +1 -1
- package/src/primitives/password-group/password-group.json +74 -0
- package/src/primitives/popover/popover.css +1 -1
- package/src/primitives/popover/popover.json +64 -0
- package/src/primitives/progress/progress.css +25 -3
- package/src/primitives/progress/progress.json +41 -0
- package/src/primitives/prose/prose.css +341 -0
- package/src/primitives/prose/prose.html +11 -11
- package/src/primitives/prose/prose.json +47 -0
- package/src/primitives/radio/radio.css +1 -1
- package/src/primitives/radio/radio.json +48 -0
- package/src/primitives/reveal/reveal.json +72 -0
- package/src/primitives/scroll-fade/scroll-fade.css +0 -3
- package/src/primitives/scroll-fade/scroll-fade.json +34 -0
- package/src/primitives/select/select.css +2 -2
- package/src/primitives/select/select.json +119 -0
- package/src/primitives/separator/separator.json +34 -0
- package/src/primitives/slider/slider.css +87 -13
- package/src/primitives/slider/slider.json +49 -0
- package/src/primitives/style-guard/style-guard.js +1 -1
- package/src/primitives/style-guard/style-guard.json +22 -0
- package/src/primitives/style-guard/style-guard.ts +2 -2
- package/src/primitives/switch/switch.css +107 -18
- package/src/primitives/switch/switch.json +71 -0
- package/src/primitives/table/table.json +74 -0
- package/src/primitives/tabs/tabs.css +24 -12
- package/src/primitives/tabs/tabs.d.ts +4 -2
- package/src/primitives/tabs/tabs.d.ts.map +1 -1
- package/src/primitives/tabs/tabs.js +14 -24
- package/src/primitives/tabs/tabs.json +94 -0
- package/src/primitives/tabs/tabs.ts +14 -26
- package/src/primitives/textarea/textarea.css +1 -1
- package/src/primitives/textarea/textarea.json +48 -0
- package/src/primitives/toaster/toaster.d.ts.map +1 -1
- package/src/primitives/toaster/toaster.js +4 -4
- package/src/primitives/toaster/toaster.json +101 -0
- package/src/primitives/toaster/toaster.ts +5 -5
- package/src/primitives/toggle/toggle.css +2 -52
- package/src/primitives/toggle/toggle.json +84 -0
- package/src/primitives/toggle-group/toggle-group.css +1 -1
- package/src/primitives/toggle-group/toggle-group.json +41 -0
- package/src/primitives/toolbar/toolbar.json +26 -0
- package/src/primitives/tooltip/tooltip.css +6 -4
- package/src/primitives/tooltip/tooltip.json +85 -0
- package/src/primitives/utilities/aspect-ratio.html +3 -3
- package/src/primitives/utilities/basis.html +5 -5
- package/src/primitives/utilities/col-span.html +5 -5
- package/src/primitives/utilities/compose.html +3 -3
- package/src/primitives/utilities/flex-align.html +3 -3
- package/src/primitives/utilities/flex-direction.html +8 -8
- package/src/primitives/utilities/flex-grow.html +3 -3
- package/src/primitives/utilities/flex-reverse.html +8 -8
- package/src/primitives/utilities/gallery.html +19 -19
- package/src/primitives/utilities/gap.html +12 -12
- package/src/primitives/utilities/grid-cols.html +6 -6
- package/src/primitives/utilities/grid-responsive.html +9 -9
- package/src/primitives/utilities/inline-flex.html +2 -2
- package/src/primitives/utilities/margin-auto.html +1 -1
- package/src/primitives/utilities/object-fit.html +3 -3
- package/src/primitives/utilities/order.html +3 -3
- package/src/primitives/utilities/overflow.html +14 -14
- package/src/primitives/utilities/padding-compose.html +3 -3
- package/src/primitives/utilities/padding.html +4 -4
- package/src/primitives/utilities/position.html +1 -1
- package/src/primitives/utilities/responsive-flex.html +4 -4
- package/src/primitives/utilities/responsive-grid.html +9 -9
- package/src/primitives/utilities/size.html +5 -5
- package/src/primitives/utilities/subgrid-col.html +7 -7
- package/src/primitives/utilities/subgrid-row.html +9 -9
- package/src/primitives/utilities/subgrid.html +9 -9
- package/src/primitives/utilities/utilities.json +48 -0
- package/src/primitives/utilities/width.html +5 -5
- package/src/base/gesture.d.ts.map +0 -1
- package/src/base/hotkeys.d.ts.map +0 -1
- package/src/base/typeahead.d.ts.map +0 -1
- /package/src/{base → behaviors}/command-score.d.ts +0 -0
- /package/src/{base → behaviors}/command-score.d.ts.map +0 -0
- /package/src/{base → behaviors}/command-score.js +0 -0
- /package/src/{base → behaviors}/command-score.ts +0 -0
- /package/src/{base → behaviors}/hotkeys.js +0 -0
|
@@ -8,8 +8,9 @@
|
|
|
8
8
|
* @uses corner-shape — superellipse corners; unsupported browsers keep plain
|
|
9
9
|
* rounded corners
|
|
10
10
|
* @uses --_touch-min (touch screens) — the default and icon sizes grow to the touch
|
|
11
|
-
* floor, and each inline side gains half of what the height grew
|
|
12
|
-
*
|
|
11
|
+
* floor, and each inline side gains half of what the height grew. Buttons
|
|
12
|
+
* nested in an input or password group keep their box and extend an
|
|
13
|
+
* invisible ::after hit area (input-group.css, password-group.css)
|
|
13
14
|
* @tokens --ui-button-* (@layer variables; hooks are named after the utilities they back; metrics default to the --ui-field-* family)
|
|
14
15
|
* @consumedby toggle.css, select.css, button-group.css, autocomplete.css, combobox.css,
|
|
15
16
|
* command.css, lightbox.css, menu.css, navigation-menu.css, popover.css
|
|
@@ -22,8 +23,8 @@
|
|
|
22
23
|
*
|
|
23
24
|
* States step one way and active goes further than hover. Unfilled surfaces (the
|
|
24
25
|
* default, outline, ghost) gain the muted role; filled ones fade toward the page;
|
|
25
|
-
*
|
|
26
|
-
* (badge-button-parity.browser.test.ts).
|
|
26
|
+
* the translucent muted and faded roles deepen; status surfaces darken. Button
|
|
27
|
+
* and badge resolve the same in every variant (badge-button-parity.browser.test.ts).
|
|
27
28
|
*/
|
|
28
29
|
|
|
29
30
|
@layer variables {
|
|
@@ -256,7 +257,7 @@
|
|
|
256
257
|
--_radius-len: var(--_radius-resolved, var(--_button-radius, var(--ui-button-radius)));
|
|
257
258
|
--_radius-num: var(--_radius-resolved, var(--_button-radius, var(--ui-button-radius)));
|
|
258
259
|
border-radius: calc(
|
|
259
|
-
var(--_radius-len) + var(--_radius-num) * var(--spacing) * var(--radius-
|
|
260
|
+
var(--_radius-len) + var(--_radius-num) * var(--spacing) * var(--radius-coefficient)
|
|
260
261
|
);
|
|
261
262
|
corner-shape: var(
|
|
262
263
|
--_corner-shape-resolved,
|
|
@@ -409,13 +410,15 @@
|
|
|
409
410
|
|
|
410
411
|
:where([data-ui~="button"][data-button-variant="secondary"]) {
|
|
411
412
|
--_button-bg: var(--color-secondary);
|
|
413
|
+
/* with the default palette, a light fill in light mode and a dark one in dark, so
|
|
414
|
+
it steps the other way from primary: darker in light, lighter in dark */
|
|
412
415
|
--_button-bg--hover: light-dark(
|
|
413
|
-
oklch(from var(--color-secondary) calc(l
|
|
414
|
-
oklch(from var(--color-secondary) calc(l * 0.
|
|
416
|
+
oklch(from var(--color-secondary) calc(l * 0.95) c h),
|
|
417
|
+
oklch(from var(--color-secondary) calc(l + (1 - l) * 0.1) c h)
|
|
415
418
|
);
|
|
416
419
|
--_button-bg--active: light-dark(
|
|
417
|
-
oklch(from var(--color-secondary) calc(l
|
|
418
|
-
oklch(from var(--color-secondary) calc(l * 0.
|
|
420
|
+
oklch(from var(--color-secondary) calc(l * 0.9) c h),
|
|
421
|
+
oklch(from var(--color-secondary) calc(l + (1 - l) * 0.2) c h)
|
|
419
422
|
);
|
|
420
423
|
|
|
421
424
|
--_button-text: var(--color-secondary-foreground);
|
|
@@ -451,11 +454,45 @@
|
|
|
451
454
|
--_button-shadow: 0 0 transparent;
|
|
452
455
|
}
|
|
453
456
|
|
|
457
|
+
:where([data-ui~="button"][data-button-variant="neutral"]) {
|
|
458
|
+
/* a solid near-page surface that steps one neutral shade at a time */
|
|
459
|
+
--_button-bg: light-dark(var(--color-white), var(--color-neutral-950));
|
|
460
|
+
--_button-bg--hover: light-dark(var(--color-neutral-50), var(--color-neutral-900));
|
|
461
|
+
--_button-bg--active: light-dark(var(--color-neutral-100), var(--color-neutral-800));
|
|
462
|
+
|
|
463
|
+
--_button-text: var(--color-foreground);
|
|
464
|
+
--_button-text--hover: var(--color-foreground);
|
|
465
|
+
--_button-text--active: var(--color-foreground);
|
|
466
|
+
|
|
467
|
+
--_button-border-color: transparent;
|
|
468
|
+
--_button-border-color--hover: transparent;
|
|
469
|
+
--_button-border-color--active: transparent;
|
|
470
|
+
|
|
471
|
+
--_button-shadow: var(--shadow-xs);
|
|
472
|
+
}
|
|
473
|
+
|
|
454
474
|
:where([data-ui~="button"][data-button-variant="muted"]) {
|
|
455
|
-
/* the translucent muted role:
|
|
475
|
+
/* the translucent muted role: deepens (more opaque) at hover and active */
|
|
456
476
|
--_button-bg: var(--color-muted);
|
|
457
|
-
--_button-bg--hover: oklch(from var(--_button-bg) l c h / calc(alpha *
|
|
458
|
-
--_button-bg--active: oklch(from var(--_button-bg) l c h / calc(alpha *
|
|
477
|
+
--_button-bg--hover: oklch(from var(--_button-bg) l c h / calc(alpha * 1.66));
|
|
478
|
+
--_button-bg--active: oklch(from var(--_button-bg) l c h / calc(alpha * 2));
|
|
479
|
+
|
|
480
|
+
--_button-text: var(--color-foreground);
|
|
481
|
+
--_button-text--hover: var(--color-foreground);
|
|
482
|
+
--_button-text--active: var(--color-foreground);
|
|
483
|
+
|
|
484
|
+
--_button-border-color: transparent;
|
|
485
|
+
--_button-border-color--hover: transparent;
|
|
486
|
+
--_button-border-color--active: transparent;
|
|
487
|
+
|
|
488
|
+
--_button-shadow: 0 0 transparent;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
:where([data-ui~="button"][data-button-variant="faded"]) {
|
|
492
|
+
/* the translucent faded role: deepens (more opaque) at hover and active */
|
|
493
|
+
--_button-bg: var(--color-faded);
|
|
494
|
+
--_button-bg--hover: oklch(from var(--_button-bg) l c h / calc(alpha * 1.66));
|
|
495
|
+
--_button-bg--active: oklch(from var(--_button-bg) l c h / calc(alpha * 2));
|
|
459
496
|
|
|
460
497
|
--_button-text: var(--color-foreground);
|
|
461
498
|
--_button-text--hover: var(--color-foreground);
|
|
@@ -470,7 +507,7 @@
|
|
|
470
507
|
|
|
471
508
|
:where([data-ui~="button"][data-button-variant="ghost"]) {
|
|
472
509
|
--_button-bg: transparent;
|
|
473
|
-
/* the
|
|
510
|
+
/* the transparent ghost role: shows the surface beneath and follows a retheme */
|
|
474
511
|
--_button-bg--hover: var(--color-muted);
|
|
475
512
|
--_button-bg--active: oklch(from var(--_button-bg--hover) l c h / calc(alpha * 1.5));
|
|
476
513
|
|
|
@@ -558,24 +595,6 @@
|
|
|
558
595
|
BUTTON SIZES — data-button-size
|
|
559
596
|
=========================================================================== */
|
|
560
597
|
|
|
561
|
-
:where([data-ui~="button"][data-button-size="sm"]) {
|
|
562
|
-
--_button-min-h: calc(var(--spacing) * 6);
|
|
563
|
-
/* a 16px icon, this, and the border fit the 24px box */
|
|
564
|
-
--_button-py: calc(var(--spacing) * 0.75);
|
|
565
|
-
--_button-px: calc(var(--spacing) * 2);
|
|
566
|
-
--_button-radius: var(--radius-sm);
|
|
567
|
-
--_button-font-size: var(--font-size-xs);
|
|
568
|
-
/* dense by choice: the box stays small and ::after takes the touch floor */
|
|
569
|
-
--_touch-floor: 0px;
|
|
570
|
-
position: relative;
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
:where(
|
|
574
|
-
:is(ui-button-group, [data-ui~="button-group"]):has([data-ui~="button"][data-button-size="sm"])
|
|
575
|
-
) {
|
|
576
|
-
--_button-group-radius: var(--radius-sm);
|
|
577
|
-
}
|
|
578
|
-
|
|
579
598
|
:where([data-ui~="button"][data-button-size="icon"]) {
|
|
580
599
|
block-size: max(
|
|
581
600
|
calc(var(--_min-h-len) + var(--_min-h-num) * var(--spacing)),
|
|
@@ -589,29 +608,6 @@
|
|
|
589
608
|
aspect-ratio: 1 / 1;
|
|
590
609
|
}
|
|
591
610
|
|
|
592
|
-
:where([data-ui~="button"][data-button-size="icon-sm"]) {
|
|
593
|
-
--_button-min-h: calc(var(--spacing) * 6);
|
|
594
|
-
--_button-px: calc(var(--spacing) * 2);
|
|
595
|
-
--_button-radius: var(--radius-sm);
|
|
596
|
-
/* the hook, not a private: it must inherit to reach the icon */
|
|
597
|
-
--ui-button-icon-size: calc(var(--spacing) * 3.5);
|
|
598
|
-
--_touch-floor: 0px;
|
|
599
|
-
position: relative;
|
|
600
|
-
|
|
601
|
-
block-size: calc(var(--_min-h-len) + var(--_min-h-num) * var(--spacing));
|
|
602
|
-
inline-size: calc(var(--_min-h-len) + var(--_min-h-num) * var(--spacing));
|
|
603
|
-
padding: 0;
|
|
604
|
-
aspect-ratio: 1 / 1;
|
|
605
|
-
}
|
|
606
|
-
|
|
607
|
-
/* touch: sm and icon-sm keep their box; a transparent ::after centred on the button
|
|
608
|
-
is at least --_touch-min square (it collapses to the box on a mouse) */
|
|
609
|
-
:where([data-ui~="button"]:is([data-button-size="sm"], [data-button-size="icon-sm"]))::after {
|
|
610
|
-
content: "";
|
|
611
|
-
position: absolute;
|
|
612
|
-
inset: min(0px, calc((100% - var(--_touch-min)) / 2));
|
|
613
|
-
}
|
|
614
|
-
|
|
615
611
|
/* ===========================================================================
|
|
616
612
|
BUTTON KBD
|
|
617
613
|
=========================================================================== */
|
|
@@ -634,16 +630,4 @@
|
|
|
634
630
|
) {
|
|
635
631
|
padding-inline-start: calc(var(--spacing) * 1.5 + var(--_touch-px));
|
|
636
632
|
}
|
|
637
|
-
|
|
638
|
-
:where([data-ui~="button"][data-button-size="sm"]):has(
|
|
639
|
-
> :where(kbd, ui-kbd-group, [data-ui~="kbd-group"]):last-child:not(:only-child)
|
|
640
|
-
) {
|
|
641
|
-
padding-inline-end: calc(var(--spacing) * 0.5 + var(--_touch-px));
|
|
642
|
-
}
|
|
643
|
-
|
|
644
|
-
:where([data-ui~="button"][data-button-size="sm"]):has(
|
|
645
|
-
> :where(kbd, ui-kbd-group, [data-ui~="kbd-group"]):first-child:not(:only-child)
|
|
646
|
-
) {
|
|
647
|
-
padding-inline-start: calc(var(--spacing) * 0.5 + var(--_touch-px));
|
|
648
|
-
}
|
|
649
633
|
}
|
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
>
|
|
9
9
|
<button data-ui="button" type="button">Default</button>
|
|
10
10
|
<button data-ui="button" data-button-variant="primary" type="button">Primary</button>
|
|
11
|
+
<button data-ui="button" data-button-variant="secondary" type="button">Secondary</button>
|
|
12
|
+
<button data-ui="button" data-button-variant="tertiary" type="button">Tertiary</button>
|
|
11
13
|
<button data-ui="button" data-button-variant="muted" type="button">Muted</button>
|
|
14
|
+
<button data-ui="button" data-button-variant="faded" type="button">Faded</button>
|
|
15
|
+
<button data-ui="button" data-button-variant="neutral" type="button">Neutral</button>
|
|
12
16
|
<button data-ui="button" data-button-variant="ghost" type="button">Ghost</button>
|
|
13
17
|
<button data-ui="button" data-button-variant="outline" type="button">Outline</button>
|
|
14
18
|
<button data-ui="button" data-button-variant="info" type="button">Info</button>
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "button",
|
|
3
|
+
"summary": "button.css — Button ([data-ui~=\"button\"])",
|
|
4
|
+
"identities": [
|
|
5
|
+
"button"
|
|
6
|
+
],
|
|
7
|
+
"tags": [],
|
|
8
|
+
"hooks": {
|
|
9
|
+
"Layout & Positioning": {
|
|
10
|
+
"--ui-button-gap": "var(--spacing)"
|
|
11
|
+
},
|
|
12
|
+
"Box Model & Sizing": {
|
|
13
|
+
"--ui-button-icon-size": "var(--ui-field-icon-size)",
|
|
14
|
+
"--ui-button-min-h": "var(--ui-field-h)",
|
|
15
|
+
"--ui-button-px": "var(--ui-field-px)",
|
|
16
|
+
"--ui-button-py": "var(--ui-field-py)"
|
|
17
|
+
},
|
|
18
|
+
"Typography": {
|
|
19
|
+
"--ui-button-font-family": "var(--font-family-body)",
|
|
20
|
+
"--ui-button-font-size": "var(--font-size-sm)",
|
|
21
|
+
"--ui-button-font-weight": "var(--font-weight-strong)",
|
|
22
|
+
"--ui-button-leading": "1"
|
|
23
|
+
},
|
|
24
|
+
"Color & Backgrounds": {
|
|
25
|
+
"--ui-button-background-clip": "border-box",
|
|
26
|
+
"--ui-button-bg": "var(--color-background)",
|
|
27
|
+
"--ui-button-bg--active": "oklch(from var(--ui-button-bg--hover) l c h / calc(alpha * 1.5))",
|
|
28
|
+
"--ui-button-bg--hover": "var(--color-muted)",
|
|
29
|
+
"--ui-button-text": "var(--color-foreground)",
|
|
30
|
+
"--ui-button-text--active": "var(--color-foreground)",
|
|
31
|
+
"--ui-button-text--hover": "var(--color-foreground)"
|
|
32
|
+
},
|
|
33
|
+
"Borders & Outlines": {
|
|
34
|
+
"--ui-button-border-color": "var(--ui-field-border-color)",
|
|
35
|
+
"--ui-button-border-color--active": "var(--ui-field-border-color)",
|
|
36
|
+
"--ui-button-border-color--hover": "var(--ui-field-border-color)",
|
|
37
|
+
"--ui-button-border-style": "var(--ui-field-border-style)",
|
|
38
|
+
"--ui-button-border-width": "var(--ui-field-border-width)",
|
|
39
|
+
"--ui-button-corner-shape": "var(--ui-field-corner-shape)",
|
|
40
|
+
"--ui-button-radius": "var(--ui-field-radius)"
|
|
41
|
+
},
|
|
42
|
+
"Visual Effects": {
|
|
43
|
+
"--ui-button-ring-color": "var(--ui-field-ring-color)",
|
|
44
|
+
"--ui-button-shadow": "0 0 transparent"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"attributes": {
|
|
48
|
+
"data-button-size": [
|
|
49
|
+
"icon"
|
|
50
|
+
],
|
|
51
|
+
"data-button-variant": [
|
|
52
|
+
"destructive",
|
|
53
|
+
"faded",
|
|
54
|
+
"ghost",
|
|
55
|
+
"info",
|
|
56
|
+
"link",
|
|
57
|
+
"muted",
|
|
58
|
+
"neutral",
|
|
59
|
+
"outline",
|
|
60
|
+
"primary",
|
|
61
|
+
"secondary",
|
|
62
|
+
"success",
|
|
63
|
+
"tertiary",
|
|
64
|
+
"warning"
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
"slots": {},
|
|
68
|
+
"states": {},
|
|
69
|
+
"requires": [
|
|
70
|
+
"kbd",
|
|
71
|
+
"fields"
|
|
72
|
+
],
|
|
73
|
+
"files": {
|
|
74
|
+
"css": [
|
|
75
|
+
"primitives/button/button.css"
|
|
76
|
+
],
|
|
77
|
+
"js": [],
|
|
78
|
+
"base": [],
|
|
79
|
+
"examples": [
|
|
80
|
+
"primitives/button/button.html",
|
|
81
|
+
"primitives/button/button-icon.html",
|
|
82
|
+
"primitives/button/button-icon-only.html"
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -19,11 +19,6 @@
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
@property --_button-group-radius {
|
|
23
|
-
syntax: "*";
|
|
24
|
-
inherits: false;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
22
|
@property --_button-group-bg {
|
|
28
23
|
syntax: "*";
|
|
29
24
|
inherits: false;
|
|
@@ -35,7 +30,7 @@
|
|
|
35
30
|
|
|
36
31
|
Joins adjacent controls (buttons, and any child it wraps) into a single
|
|
37
32
|
segmented unit. Children keep their own --ui-button-radius, so the outer corners
|
|
38
|
-
follow the buttons
|
|
33
|
+
follow the buttons automatically; only the *inner* corners are
|
|
39
34
|
squared off and the doubled border is collapsed by dropping
|
|
40
35
|
each later control's leading border (no overlap).
|
|
41
36
|
=========================================================================== */
|
|
@@ -45,16 +40,10 @@
|
|
|
45
40
|
inline-size: fit-content;
|
|
46
41
|
/* stretch so mixed-height children share one edge */
|
|
47
42
|
align-items: stretch;
|
|
48
|
-
--_radius-len: var(
|
|
49
|
-
|
|
50
|
-
var(--_button-group-radius, var(--ui-button-group-radius))
|
|
51
|
-
);
|
|
52
|
-
--_radius-num: var(
|
|
53
|
-
--_radius-resolved,
|
|
54
|
-
var(--_button-group-radius, var(--ui-button-group-radius))
|
|
55
|
-
);
|
|
43
|
+
--_radius-len: var(--_radius-resolved, var(--ui-button-group-radius));
|
|
44
|
+
--_radius-num: var(--_radius-resolved, var(--ui-button-group-radius));
|
|
56
45
|
border-radius: calc(
|
|
57
|
-
var(--_radius-len) + var(--_radius-num) * var(--spacing) * var(--radius-
|
|
46
|
+
var(--_radius-len) + var(--_radius-num) * var(--spacing) * var(--radius-coefficient)
|
|
58
47
|
);
|
|
59
48
|
corner-shape: var(--_corner-shape-resolved, var(--ui-button-group-corner-shape));
|
|
60
49
|
background-color: var(--_bg-resolved, var(--_button-group-bg, var(--ui-button-group-bg)));
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "button-group",
|
|
3
|
+
"summary": "button-group.css: Button group (ui-button-group | [data-ui~=\"button-group\"])",
|
|
4
|
+
"identities": [
|
|
5
|
+
"button-group"
|
|
6
|
+
],
|
|
7
|
+
"tags": [
|
|
8
|
+
"ui-button-group"
|
|
9
|
+
],
|
|
10
|
+
"hooks": {
|
|
11
|
+
"Color & Backgrounds": {
|
|
12
|
+
"--ui-button-group-bg": "var(--color-card)"
|
|
13
|
+
},
|
|
14
|
+
"Borders & Outlines": {
|
|
15
|
+
"--ui-button-group-corner-shape": "var(--ui-button-corner-shape)",
|
|
16
|
+
"--ui-button-group-radius": "var(--ui-button-radius)"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"attributes": {
|
|
20
|
+
"data-button-group-orientation": [
|
|
21
|
+
"vertical"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
"slots": {},
|
|
25
|
+
"states": {},
|
|
26
|
+
"requires": [
|
|
27
|
+
"button"
|
|
28
|
+
],
|
|
29
|
+
"files": {
|
|
30
|
+
"css": [
|
|
31
|
+
"primitives/button-group/button-group.css"
|
|
32
|
+
],
|
|
33
|
+
"js": [],
|
|
34
|
+
"base": [],
|
|
35
|
+
"examples": [
|
|
36
|
+
"primitives/button-group/button-group.html",
|
|
37
|
+
"primitives/button-group/button-group-vertical.html"
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
--_radius-len: var(--_radius-resolved, var(--ui-callout-radius));
|
|
80
80
|
--_radius-num: var(--_radius-resolved, var(--ui-callout-radius));
|
|
81
81
|
border-radius: calc(
|
|
82
|
-
var(--_radius-len) + var(--_radius-num) * var(--spacing) * var(--radius-
|
|
82
|
+
var(--_radius-len) + var(--_radius-num) * var(--spacing) * var(--radius-coefficient)
|
|
83
83
|
);
|
|
84
84
|
corner-shape: var(--_corner-shape-resolved, var(--ui-callout-corner-shape));
|
|
85
85
|
box-shadow: var(--_shadow-resolved, var(--ui-callout-shadow));
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<aside data-ui="callout" aria-labelledby="callout-note">
|
|
8
8
|
<p
|
|
9
9
|
id="callout-note"
|
|
10
|
-
data-
|
|
10
|
+
data-font="sm"
|
|
11
11
|
style="
|
|
12
12
|
--display: flex;
|
|
13
13
|
--items: center;
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
</svg>
|
|
34
34
|
Note
|
|
35
35
|
</p>
|
|
36
|
-
<p data-
|
|
36
|
+
<p data-font="sm">Callouts set supporting information apart from the text around it.</p>
|
|
37
37
|
</aside>
|
|
38
38
|
<div data-ui="callout" data-callout-variant="muted">
|
|
39
39
|
<p
|
|
40
|
-
data-
|
|
40
|
+
data-font="sm"
|
|
41
41
|
style="
|
|
42
42
|
--display: flex;
|
|
43
43
|
--items: center;
|
|
@@ -63,11 +63,11 @@
|
|
|
63
63
|
</svg>
|
|
64
64
|
Aside
|
|
65
65
|
</p>
|
|
66
|
-
<p data-
|
|
66
|
+
<p data-font="sm">A quieter surface for tips and context that readers can skip.</p>
|
|
67
67
|
</div>
|
|
68
68
|
<div data-ui="callout" data-callout-variant="info">
|
|
69
69
|
<p
|
|
70
|
-
data-
|
|
70
|
+
data-font="sm"
|
|
71
71
|
style="
|
|
72
72
|
--display: flex;
|
|
73
73
|
--items: center;
|
|
@@ -93,11 +93,11 @@
|
|
|
93
93
|
</svg>
|
|
94
94
|
Scheduled maintenance
|
|
95
95
|
</p>
|
|
96
|
-
<p data-
|
|
96
|
+
<p data-font="sm">The dashboard is read-only on Saturday from 2 to 4 a.m. UTC.</p>
|
|
97
97
|
</div>
|
|
98
98
|
<div data-ui="callout" data-callout-variant="success">
|
|
99
99
|
<p
|
|
100
|
-
data-
|
|
100
|
+
data-font="sm"
|
|
101
101
|
style="
|
|
102
102
|
--display: flex;
|
|
103
103
|
--items: center;
|
|
@@ -123,11 +123,11 @@
|
|
|
123
123
|
</svg>
|
|
124
124
|
Payment received
|
|
125
125
|
</p>
|
|
126
|
-
<p data-
|
|
126
|
+
<p data-font="sm">Your invoice is paid, and a receipt is on its way to your inbox.</p>
|
|
127
127
|
</div>
|
|
128
128
|
<div data-ui="callout" data-callout-variant="warning">
|
|
129
129
|
<p
|
|
130
|
-
data-
|
|
130
|
+
data-font="sm"
|
|
131
131
|
style="
|
|
132
132
|
--display: flex;
|
|
133
133
|
--items: center;
|
|
@@ -153,11 +153,11 @@
|
|
|
153
153
|
</svg>
|
|
154
154
|
Your trial ends in 3 days
|
|
155
155
|
</p>
|
|
156
|
-
<p data-
|
|
156
|
+
<p data-font="sm">Add a payment method to keep your projects running.</p>
|
|
157
157
|
</div>
|
|
158
158
|
<div data-ui="callout" data-callout-variant="destructive">
|
|
159
159
|
<p
|
|
160
|
-
data-
|
|
160
|
+
data-font="sm"
|
|
161
161
|
style="
|
|
162
162
|
--display: flex;
|
|
163
163
|
--items: center;
|
|
@@ -183,6 +183,6 @@
|
|
|
183
183
|
</svg>
|
|
184
184
|
Deleting a workspace can't be undone
|
|
185
185
|
</p>
|
|
186
|
-
<p data-
|
|
186
|
+
<p data-font="sm">Its projects, files, and members are removed for good.</p>
|
|
187
187
|
</div>
|
|
188
188
|
</div>
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "callout",
|
|
3
|
+
"summary": "callout.css — Callout ([data-ui~=\"callout\"])",
|
|
4
|
+
"identities": [
|
|
5
|
+
"callout"
|
|
6
|
+
],
|
|
7
|
+
"tags": [],
|
|
8
|
+
"hooks": {
|
|
9
|
+
"Layout & Positioning": {
|
|
10
|
+
"--ui-callout-gap": "var(--space-xs)"
|
|
11
|
+
},
|
|
12
|
+
"Box Model & Sizing": {
|
|
13
|
+
"--ui-callout-p": "var(--space-sm)"
|
|
14
|
+
},
|
|
15
|
+
"Color & Backgrounds": {
|
|
16
|
+
"--ui-callout-bg": "var(--color-card)",
|
|
17
|
+
"--ui-callout-text": "var(--color-card-foreground)"
|
|
18
|
+
},
|
|
19
|
+
"Borders & Outlines": {
|
|
20
|
+
"--ui-callout-border-color": "var(--color-border)",
|
|
21
|
+
"--ui-callout-border-style": "solid",
|
|
22
|
+
"--ui-callout-border-width": "1px",
|
|
23
|
+
"--ui-callout-corner-shape": "var(--radius-corner-shape)",
|
|
24
|
+
"--ui-callout-radius": "var(--radius-md)"
|
|
25
|
+
},
|
|
26
|
+
"Visual Effects": {
|
|
27
|
+
"--ui-callout-shadow": "none"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"attributes": {
|
|
31
|
+
"data-callout-variant": [
|
|
32
|
+
"destructive",
|
|
33
|
+
"info",
|
|
34
|
+
"muted",
|
|
35
|
+
"success",
|
|
36
|
+
"warning"
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"slots": {},
|
|
40
|
+
"states": {},
|
|
41
|
+
"requires": [
|
|
42
|
+
"font"
|
|
43
|
+
],
|
|
44
|
+
"files": {
|
|
45
|
+
"css": [
|
|
46
|
+
"primitives/callout/callout.css"
|
|
47
|
+
],
|
|
48
|
+
"js": [],
|
|
49
|
+
"base": [],
|
|
50
|
+
"examples": [
|
|
51
|
+
"primitives/callout/callout.html"
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
--gap: 2;
|
|
40
40
|
"
|
|
41
41
|
>
|
|
42
|
-
<h3 data-
|
|
42
|
+
<h3 data-font="lg">
|
|
43
43
|
<a href="#">Migration patterns</a>
|
|
44
44
|
</h3>
|
|
45
45
|
<p
|
|
46
|
-
data-
|
|
46
|
+
data-font="sm"
|
|
47
47
|
style="
|
|
48
48
|
--line-clamp: 2;
|
|
49
49
|
--text: var(--color-muted-foreground);
|
|
@@ -64,52 +64,28 @@
|
|
|
64
64
|
--border-t: 1;
|
|
65
65
|
"
|
|
66
66
|
>
|
|
67
|
-
<
|
|
68
|
-
|
|
67
|
+
<span
|
|
68
|
+
data-ui="avatar"
|
|
69
|
+
aria-hidden="true"
|
|
69
70
|
style="
|
|
70
|
-
--display: grid-pile;
|
|
71
71
|
--size: 11;
|
|
72
|
-
--
|
|
73
|
-
--
|
|
74
|
-
--radius: full;
|
|
75
|
-
--overflow: clip;
|
|
72
|
+
--ui-avatar-fallback-bg: var(--color-primary);
|
|
73
|
+
--ui-avatar-fallback-text: var(--color-primary-foreground);
|
|
76
74
|
"
|
|
77
75
|
>
|
|
78
76
|
<img
|
|
77
|
+
data-avatar-slot="image"
|
|
79
78
|
width="64"
|
|
80
79
|
height="64"
|
|
81
80
|
loading="lazy"
|
|
82
81
|
src="https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?auto=format&fit=facearea&facepad=2&w=64&h=64&q=90"
|
|
83
|
-
alt="
|
|
84
|
-
aria-hidden="true"
|
|
85
|
-
style="
|
|
86
|
-
--order: 9999;
|
|
87
|
-
--size: 100%;
|
|
88
|
-
--bg: transparent;
|
|
89
|
-
--object-fit: cover;
|
|
90
|
-
"
|
|
82
|
+
alt=""
|
|
91
83
|
/>
|
|
92
|
-
<
|
|
93
|
-
|
|
94
|
-
--display: flex;
|
|
95
|
-
--items: center;
|
|
96
|
-
--justify: center;
|
|
97
|
-
--order: -9999;
|
|
98
|
-
--size: 100%;
|
|
99
|
-
--font-weight: strong;
|
|
100
|
-
--text: var(--color-primary-foreground);
|
|
101
|
-
--bg: var(--color-primary);
|
|
102
|
-
"
|
|
103
|
-
>
|
|
104
|
-
<span style="--sr: only">John Doe</span>
|
|
105
|
-
<span aria-hidden="true">JD</span>
|
|
106
|
-
</figcaption>
|
|
107
|
-
</figure>
|
|
84
|
+
<span data-avatar-slot="fallback">JD</span>
|
|
85
|
+
</span>
|
|
108
86
|
<div style="--display: flex-col">
|
|
109
|
-
<span data-
|
|
110
|
-
<span data-
|
|
111
|
-
>Founder, ACME Inc.</span
|
|
112
|
-
>
|
|
87
|
+
<span data-font="sm" style="--font-weight: strong">John Doe</span>
|
|
88
|
+
<span data-font="xs" style="--text: var(--color-muted-foreground)">Founder, ACME Inc.</span>
|
|
113
89
|
</div>
|
|
114
90
|
</footer>
|
|
115
91
|
</article>
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
--gap: 1;
|
|
26
26
|
"
|
|
27
27
|
>
|
|
28
|
-
<h3 data-
|
|
29
|
-
<p data-
|
|
28
|
+
<h3 data-font="lg">Horizontal</h3>
|
|
29
|
+
<p data-font="sm" style="--text: var(--color-muted-foreground)">
|
|
30
30
|
The header takes the start column, with the body above the footer in the end column. Below a
|
|
31
31
|
40rem container, the card stacks.
|
|
32
32
|
</p>
|
|
@@ -41,20 +41,17 @@
|
|
|
41
41
|
style="--ui-card-header-w: auto"
|
|
42
42
|
>
|
|
43
43
|
<div data-card-slot="header">
|
|
44
|
-
<
|
|
45
|
-
|
|
46
|
-
aria-
|
|
44
|
+
<span
|
|
45
|
+
data-ui="avatar"
|
|
46
|
+
aria-hidden="true"
|
|
47
47
|
style="
|
|
48
|
-
--display: grid-pile;
|
|
49
48
|
--size: 12;
|
|
50
|
-
--
|
|
51
|
-
--
|
|
52
|
-
--radius: full;
|
|
53
|
-
--overflow: clip;
|
|
49
|
+
--ui-avatar-fallback-bg: var(--color-primary);
|
|
50
|
+
--ui-avatar-fallback-text: var(--color-primary-foreground);
|
|
54
51
|
"
|
|
55
52
|
>
|
|
56
|
-
<span
|
|
57
|
-
</
|
|
53
|
+
<span data-avatar-slot="fallback">JD</span>
|
|
54
|
+
</span>
|
|
58
55
|
</div>
|
|
59
56
|
<hgroup
|
|
60
57
|
data-card-slot="body"
|
|
@@ -63,8 +60,8 @@
|
|
|
63
60
|
--gap: 1;
|
|
64
61
|
"
|
|
65
62
|
>
|
|
66
|
-
<h3 data-
|
|
67
|
-
<p data-
|
|
63
|
+
<h3 data-font="lg">John Doe</h3>
|
|
64
|
+
<p data-font="sm" style="--text: var(--color-muted-foreground)">
|
|
68
65
|
Lead tracker, Okavango survey. A header that isn't media keeps the card's padding, and
|
|
69
66
|
<code>--ui-card-header-w: auto</code> sizes its column to the avatar.
|
|
70
67
|
</p>
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
--gap: 1;
|
|
15
15
|
"
|
|
16
16
|
>
|
|
17
|
-
<h3 id="card-login-title" data-
|
|
18
|
-
<p data-
|
|
17
|
+
<h3 id="card-login-title" data-font="lg">Sign in</h3>
|
|
18
|
+
<p data-font="sm" style="--text: var(--color-muted-foreground)">
|
|
19
19
|
Log sightings and sync your field notes.
|
|
20
20
|
</p>
|
|
21
21
|
</hgroup>
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"
|
|
49
49
|
>
|
|
50
50
|
<button type="submit" data-ui="button" data-button-variant="primary">Send a login code</button>
|
|
51
|
-
<p data-
|
|
51
|
+
<p data-font="sm">
|
|
52
52
|
New here?
|
|
53
|
-
<a href="#" data-ui="
|
|
53
|
+
<a href="#" data-ui="link">Create an account</a>
|
|
54
54
|
</p>
|
|
55
55
|
</footer>
|
|
56
56
|
</form>
|