@cargo-ai/ui 0.0.0-stage → 1.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/README.md +111 -2
- package/build/blocks/Banner/Banner.d.ts +19 -0
- package/build/blocks/Banner/Banner.d.ts.map +1 -0
- package/build/blocks/Banner/Banner.js +7 -0
- package/build/blocks/BeforeAfter/BeforeAfter.d.ts +21 -0
- package/build/blocks/BeforeAfter/BeforeAfter.d.ts.map +1 -0
- package/build/blocks/BeforeAfter/BeforeAfter.js +13 -0
- package/build/blocks/CardGrid/CardGrid.d.ts +19 -0
- package/build/blocks/CardGrid/CardGrid.d.ts.map +1 -0
- package/build/blocks/CardGrid/CardGrid.js +17 -0
- package/build/blocks/CtaBand/CtaBand.d.ts +18 -0
- package/build/blocks/CtaBand/CtaBand.d.ts.map +1 -0
- package/build/blocks/CtaBand/CtaBand.js +13 -0
- package/build/blocks/Faq/Faq.d.ts +25 -0
- package/build/blocks/Faq/Faq.d.ts.map +1 -0
- package/build/blocks/Faq/Faq.js +20 -0
- package/build/blocks/FeatureGrid/FeatureGrid.d.ts +23 -0
- package/build/blocks/FeatureGrid/FeatureGrid.d.ts.map +1 -0
- package/build/blocks/FeatureGrid/FeatureGrid.js +12 -0
- package/build/blocks/FeatureRows/FeatureRows.d.ts +22 -0
- package/build/blocks/FeatureRows/FeatureRows.d.ts.map +1 -0
- package/build/blocks/FeatureRows/FeatureRows.js +14 -0
- package/build/blocks/HeroCentered/HeroCentered.d.ts +27 -0
- package/build/blocks/HeroCentered/HeroCentered.d.ts.map +1 -0
- package/build/blocks/HeroCentered/HeroCentered.js +13 -0
- package/build/blocks/HeroSplit/HeroSplit.d.ts +28 -0
- package/build/blocks/HeroSplit/HeroSplit.d.ts.map +1 -0
- package/build/blocks/HeroSplit/HeroSplit.js +18 -0
- package/build/blocks/LogoCloud/LogoCloud.d.ts +17 -0
- package/build/blocks/LogoCloud/LogoCloud.d.ts.map +1 -0
- package/build/blocks/LogoCloud/LogoCloud.js +8 -0
- package/build/blocks/Pricing/Pricing.d.ts +33 -0
- package/build/blocks/Pricing/Pricing.d.ts.map +1 -0
- package/build/blocks/Pricing/Pricing.js +33 -0
- package/build/blocks/Showcase/Showcase.d.ts +27 -0
- package/build/blocks/Showcase/Showcase.d.ts.map +1 -0
- package/build/blocks/Showcase/Showcase.js +40 -0
- package/build/blocks/SiteFooter/SiteFooter.d.ts +25 -0
- package/build/blocks/SiteFooter/SiteFooter.d.ts.map +1 -0
- package/build/blocks/SiteFooter/SiteFooter.js +14 -0
- package/build/blocks/SiteHeader/SiteHeader.d.ts +27 -0
- package/build/blocks/SiteHeader/SiteHeader.d.ts.map +1 -0
- package/build/blocks/SiteHeader/SiteHeader.js +101 -0
- package/build/blocks/Stats/Stats.d.ts +17 -0
- package/build/blocks/Stats/Stats.d.ts.map +1 -0
- package/build/blocks/Stats/Stats.js +9 -0
- package/build/blocks/Steps/Steps.d.ts +26 -0
- package/build/blocks/Steps/Steps.d.ts.map +1 -0
- package/build/blocks/Steps/Steps.js +23 -0
- package/build/blocks/Testimonials/Testimonials.d.ts +26 -0
- package/build/blocks/Testimonials/Testimonials.d.ts.map +1 -0
- package/build/blocks/Testimonials/Testimonials.js +30 -0
- package/build/blocks/types.d.ts +44 -0
- package/build/blocks/types.d.ts.map +1 -0
- package/build/blocks/types.js +1 -0
- package/build/components/CargoMark/CargoMark.d.ts +7 -0
- package/build/components/CargoMark/CargoMark.d.ts.map +1 -0
- package/build/components/CargoMark/CargoMark.js +16 -0
- package/build/components/CheckList/CheckList.d.ts +9 -0
- package/build/components/CheckList/CheckList.d.ts.map +1 -0
- package/build/components/CheckList/CheckList.js +8 -0
- package/build/components/CodeWindow/CodeWindow.d.ts +15 -0
- package/build/components/CodeWindow/CodeWindow.d.ts.map +1 -0
- package/build/components/CodeWindow/CodeWindow.js +53 -0
- package/build/components/CodeWindow/highlight.d.ts +4 -0
- package/build/components/CodeWindow/highlight.d.ts.map +1 -0
- package/build/components/CodeWindow/highlight.js +48 -0
- package/build/components/ComparisonTable/ComparisonTable.d.ts +62 -0
- package/build/components/ComparisonTable/ComparisonTable.d.ts.map +1 -0
- package/build/components/ComparisonTable/ComparisonTable.js +60 -0
- package/build/components/CountUp/CountUp.d.ts +13 -0
- package/build/components/CountUp/CountUp.d.ts.map +1 -0
- package/build/components/CountUp/CountUp.js +52 -0
- package/build/components/Eyebrow/Eyebrow.d.ts +21 -0
- package/build/components/Eyebrow/Eyebrow.d.ts.map +1 -0
- package/build/components/Eyebrow/Eyebrow.js +29 -0
- package/build/components/FeatureCard/FeatureCard.d.ts +12 -0
- package/build/components/FeatureCard/FeatureCard.d.ts.map +1 -0
- package/build/components/FeatureCard/FeatureCard.js +8 -0
- package/build/components/GlowCard/GlowCard.d.ts +11 -0
- package/build/components/GlowCard/GlowCard.d.ts.map +1 -0
- package/build/components/GlowCard/GlowCard.js +14 -0
- package/build/components/Highlight/Highlight.d.ts +12 -0
- package/build/components/Highlight/Highlight.d.ts.map +1 -0
- package/build/components/Highlight/Highlight.js +10 -0
- package/build/components/InstallCommand/InstallCommand.d.ts +9 -0
- package/build/components/InstallCommand/InstallCommand.d.ts.map +1 -0
- package/build/components/InstallCommand/InstallCommand.js +30 -0
- package/build/components/Logo/Logo.d.ts +16 -0
- package/build/components/Logo/Logo.d.ts.map +1 -0
- package/build/components/Logo/Logo.js +7 -0
- package/build/components/Marquee/Marquee.d.ts +17 -0
- package/build/components/Marquee/Marquee.d.ts.map +1 -0
- package/build/components/Marquee/Marquee.js +19 -0
- package/build/components/Marquee/index.d.ts +3 -0
- package/build/components/Marquee/index.d.ts.map +1 -0
- package/build/components/Marquee/index.js +1 -0
- package/build/components/Marquee/types.d.ts +9 -0
- package/build/components/Marquee/types.d.ts.map +1 -0
- package/build/components/Marquee/types.js +1 -0
- package/build/components/MaskedHeadline/MaskedHeadline.d.ts +10 -0
- package/build/components/MaskedHeadline/MaskedHeadline.d.ts.map +1 -0
- package/build/components/MaskedHeadline/MaskedHeadline.js +8 -0
- package/build/components/MediaFrame/MediaFrame.d.ts +17 -0
- package/build/components/MediaFrame/MediaFrame.d.ts.map +1 -0
- package/build/components/MediaFrame/MediaFrame.js +15 -0
- package/build/components/Prose/Prose.d.ts +23 -0
- package/build/components/Prose/Prose.d.ts.map +1 -0
- package/build/components/Prose/Prose.js +15 -0
- package/build/components/ResourceCard/ResourceCard.d.ts +31 -0
- package/build/components/ResourceCard/ResourceCard.d.ts.map +1 -0
- package/build/components/ResourceCard/ResourceCard.js +20 -0
- package/build/components/Reveal/Reveal.d.ts +14 -0
- package/build/components/Reveal/Reveal.d.ts.map +1 -0
- package/build/components/Reveal/Reveal.js +26 -0
- package/build/components/Terminal/Terminal.d.ts +11 -0
- package/build/components/Terminal/Terminal.d.ts.map +1 -0
- package/build/components/Terminal/Terminal.js +69 -0
- package/build/components/Terminal/index.d.ts +3 -0
- package/build/components/Terminal/index.d.ts.map +1 -0
- package/build/components/Terminal/index.js +1 -0
- package/build/components/Terminal/types.d.ts +10 -0
- package/build/components/Terminal/types.d.ts.map +1 -0
- package/build/components/Terminal/types.js +1 -0
- package/build/components/ThemeIsland/ThemeIsland.d.ts +22 -0
- package/build/components/ThemeIsland/ThemeIsland.d.ts.map +1 -0
- package/build/components/ThemeIsland/ThemeIsland.js +25 -0
- package/build/components/ThemeIsland/context.d.ts +5 -0
- package/build/components/ThemeIsland/context.d.ts.map +1 -0
- package/build/components/ThemeIsland/context.js +4 -0
- package/build/components/ThemeIsland/index.d.ts +3 -0
- package/build/components/ThemeIsland/index.d.ts.map +1 -0
- package/build/components/ThemeIsland/index.js +1 -0
- package/build/foundations/type-scale.d.ts +12 -0
- package/build/foundations/type-scale.d.ts.map +1 -0
- package/build/foundations/type-scale.js +11 -0
- package/build/hooks/use-mobile.d.ts +2 -0
- package/build/hooks/use-mobile.d.ts.map +1 -0
- package/build/hooks/use-mobile.js +15 -0
- package/build/hooks/use-reduced-motion.d.ts +6 -0
- package/build/hooks/use-reduced-motion.d.ts.map +1 -0
- package/build/hooks/use-reduced-motion.js +14 -0
- package/build/layout/Container/Container.d.ts +10 -0
- package/build/layout/Container/Container.d.ts.map +1 -0
- package/build/layout/Container/Container.js +7 -0
- package/build/layout/Page/Page.d.ts +9 -0
- package/build/layout/Page/Page.d.ts.map +1 -0
- package/build/layout/Page/Page.js +7 -0
- package/build/layout/Section/Section.d.ts +12 -0
- package/build/layout/Section/Section.d.ts.map +1 -0
- package/build/layout/Section/Section.js +9 -0
- package/build/layout/SectionHeading/SectionHeading.d.ts +18 -0
- package/build/layout/SectionHeading/SectionHeading.d.ts.map +1 -0
- package/build/layout/SectionHeading/SectionHeading.js +14 -0
- package/build/lib/utils.d.ts +2 -0
- package/build/lib/utils.d.ts.map +1 -0
- package/build/lib/utils.js +1 -0
- package/build/primitives/accordion.d.ts +8 -0
- package/build/primitives/accordion.d.ts.map +1 -0
- package/build/primitives/accordion.js +18 -0
- package/build/primitives/alert-dialog.d.ts +19 -0
- package/build/primitives/alert-dialog.d.ts.map +1 -0
- package/build/primitives/alert-dialog.js +43 -0
- package/build/primitives/alert.d.ts +10 -0
- package/build/primitives/alert.d.ts.map +1 -0
- package/build/primitives/alert.js +24 -0
- package/build/primitives/aspect-ratio.d.ts +5 -0
- package/build/primitives/aspect-ratio.d.ts.map +1 -0
- package/build/primitives/aspect-ratio.js +6 -0
- package/build/primitives/avatar.d.ts +12 -0
- package/build/primitives/avatar.d.ts.map +1 -0
- package/build/primitives/avatar.js +22 -0
- package/build/primitives/badge.d.ts +10 -0
- package/build/primitives/badge.d.ts.map +1 -0
- package/build/primitives/badge.js +28 -0
- package/build/primitives/breadcrumb.d.ts +12 -0
- package/build/primitives/breadcrumb.d.ts.map +1 -0
- package/build/primitives/breadcrumb.js +27 -0
- package/build/primitives/button-group.d.ts +13 -0
- package/build/primitives/button-group.d.ts.map +1 -0
- package/build/primitives/button-group.js +27 -0
- package/build/primitives/button.d.ts +11 -0
- package/build/primitives/button.d.ts.map +1 -0
- package/build/primitives/button.js +37 -0
- package/build/primitives/calendar.d.ts +9 -0
- package/build/primitives/calendar.d.ts.map +1 -0
- package/build/primitives/calendar.js +77 -0
- package/build/primitives/card.d.ts +10 -0
- package/build/primitives/card.d.ts.map +1 -0
- package/build/primitives/card.js +24 -0
- package/build/primitives/carousel.d.ts +20 -0
- package/build/primitives/carousel.d.ts.map +1 -0
- package/build/primitives/carousel.js +91 -0
- package/build/primitives/chart.d.ts +45 -0
- package/build/primitives/chart.d.ts.map +1 -0
- package/build/primitives/chart.js +136 -0
- package/build/primitives/checkbox.d.ts +5 -0
- package/build/primitives/checkbox.d.ts.map +1 -0
- package/build/primitives/checkbox.js +8 -0
- package/build/primitives/collapsible.d.ts +7 -0
- package/build/primitives/collapsible.d.ts.map +1 -0
- package/build/primitives/collapsible.js +13 -0
- package/build/primitives/command.d.ts +19 -0
- package/build/primitives/command.d.ts.map +1 -0
- package/build/primitives/command.js +33 -0
- package/build/primitives/context-menu.d.ts +26 -0
- package/build/primitives/context-menu.d.ts.map +1 -0
- package/build/primitives/context-menu.js +51 -0
- package/build/primitives/dialog.d.ts +18 -0
- package/build/primitives/dialog.d.ts.map +1 -0
- package/build/primitives/dialog.js +37 -0
- package/build/primitives/drawer.d.ts +14 -0
- package/build/primitives/drawer.d.ts.map +1 -0
- package/build/primitives/drawer.js +36 -0
- package/build/primitives/dropdown-menu.d.ts +26 -0
- package/build/primitives/dropdown-menu.d.ts.map +1 -0
- package/build/primitives/dropdown-menu.js +51 -0
- package/build/primitives/empty.d.ts +13 -0
- package/build/primitives/empty.d.ts.map +1 -0
- package/build/primitives/empty.js +33 -0
- package/build/primitives/field.d.ts +26 -0
- package/build/primitives/field.d.ts.map +1 -0
- package/build/primitives/field.js +76 -0
- package/build/primitives/form.d.ts +25 -0
- package/build/primitives/form.d.ts.map +1 -0
- package/build/primitives/form.js +59 -0
- package/build/primitives/hover-card.d.ts +7 -0
- package/build/primitives/hover-card.d.ts.map +1 -0
- package/build/primitives/hover-card.js +14 -0
- package/build/primitives/input-group.d.ts +17 -0
- package/build/primitives/input-group.d.ts.map +1 -0
- package/build/primitives/input-group.js +63 -0
- package/build/primitives/input-otp.d.ts +12 -0
- package/build/primitives/input-otp.d.ts.map +1 -0
- package/build/primitives/input-otp.js +21 -0
- package/build/primitives/input.d.ts +4 -0
- package/build/primitives/input.d.ts.map +1 -0
- package/build/primitives/input.js +6 -0
- package/build/primitives/item.d.ts +24 -0
- package/build/primitives/item.d.ts.map +1 -0
- package/build/primitives/item.js +66 -0
- package/build/primitives/kbd.d.ts +5 -0
- package/build/primitives/kbd.d.ts.map +1 -0
- package/build/primitives/kbd.js +9 -0
- package/build/primitives/label.d.ts +5 -0
- package/build/primitives/label.d.ts.map +1 -0
- package/build/primitives/label.js +7 -0
- package/build/primitives/menubar.d.ts +27 -0
- package/build/primitives/menubar.d.ts.map +1 -0
- package/build/primitives/menubar.js +55 -0
- package/build/primitives/navigation-menu.d.ts +15 -0
- package/build/primitives/navigation-menu.d.ts.map +1 -0
- package/build/primitives/navigation-menu.js +31 -0
- package/build/primitives/pagination.d.ts +14 -0
- package/build/primitives/pagination.d.ts.map +1 -0
- package/build/primitives/pagination.js +29 -0
- package/build/primitives/popover.d.ts +11 -0
- package/build/primitives/popover.d.ts.map +1 -0
- package/build/primitives/popover.js +27 -0
- package/build/primitives/progress.d.ts +5 -0
- package/build/primitives/progress.d.ts.map +1 -0
- package/build/primitives/progress.js +7 -0
- package/build/primitives/radio-group.d.ts +6 -0
- package/build/primitives/radio-group.d.ts.map +1 -0
- package/build/primitives/radio-group.js +12 -0
- package/build/primitives/resizable.d.ts +9 -0
- package/build/primitives/resizable.d.ts.map +1 -0
- package/build/primitives/resizable.js +14 -0
- package/build/primitives/scroll-area.d.ts +6 -0
- package/build/primitives/scroll-area.d.ts.map +1 -0
- package/build/primitives/scroll-area.js +13 -0
- package/build/primitives/select.d.ts +16 -0
- package/build/primitives/select.d.ts.map +1 -0
- package/build/primitives/select.js +39 -0
- package/build/primitives/separator.d.ts +5 -0
- package/build/primitives/separator.d.ts.map +1 -0
- package/build/primitives/separator.js +8 -0
- package/build/primitives/sheet.d.ts +15 -0
- package/build/primitives/sheet.d.ts.map +1 -0
- package/build/primitives/sheet.js +41 -0
- package/build/primitives/sidebar.d.ts +70 -0
- package/build/primitives/sidebar.d.ts.map +1 -0
- package/build/primitives/sidebar.js +212 -0
- package/build/primitives/skeleton.d.ts +4 -0
- package/build/primitives/skeleton.d.ts.map +1 -0
- package/build/primitives/skeleton.js +6 -0
- package/build/primitives/slider.d.ts +5 -0
- package/build/primitives/slider.d.ts.map +1 -0
- package/build/primitives/slider.js +14 -0
- package/build/primitives/sonner.d.ts +5 -0
- package/build/primitives/sonner.d.ts.map +1 -0
- package/build/primitives/sonner.js +19 -0
- package/build/primitives/spinner.d.ts +4 -0
- package/build/primitives/spinner.d.ts.map +1 -0
- package/build/primitives/spinner.js +7 -0
- package/build/primitives/switch.d.ts +7 -0
- package/build/primitives/switch.d.ts.map +1 -0
- package/build/primitives/switch.js +8 -0
- package/build/primitives/table.d.ts +11 -0
- package/build/primitives/table.d.ts.map +1 -0
- package/build/primitives/table.js +28 -0
- package/build/primitives/tabs.d.ts +12 -0
- package/build/primitives/tabs.d.ts.map +1 -0
- package/build/primitives/tabs.js +28 -0
- package/build/primitives/textarea.d.ts +4 -0
- package/build/primitives/textarea.d.ts.map +1 -0
- package/build/primitives/textarea.js +6 -0
- package/build/primitives/toggle-group.d.ts +10 -0
- package/build/primitives/toggle-group.d.ts.map +1 -0
- package/build/primitives/toggle-group.js +22 -0
- package/build/primitives/toggle.d.ts +10 -0
- package/build/primitives/toggle.d.ts.map +1 -0
- package/build/primitives/toggle.js +25 -0
- package/build/primitives/tooltip.d.ts +8 -0
- package/build/primitives/tooltip.d.ts.map +1 -0
- package/build/primitives/tooltip.js +18 -0
- package/build/shadcn.css +650 -0
- package/build/styles.css +699 -0
- package/package.json +187 -4
package/build/styles.css
ADDED
|
@@ -0,0 +1,699 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* The Cargo kit: shadcn's variables set to the Cargo look, the extra Cargo tokens (brand, stage, tile ...), and the few
|
|
3
|
+
* effects Tailwind cannot express. An app imports Tailwind first, then this file:
|
|
4
|
+
*
|
|
5
|
+
* @import "tailwindcss";
|
|
6
|
+
* @import "@cargo-ai/ui/styles.css";
|
|
7
|
+
*
|
|
8
|
+
* Light is the default. Dark follows the `.dark` class on an ancestor; `.light` makes a light island inside a dark page.
|
|
9
|
+
* Fonts are the app's to load: Inter and Source Code Pro.
|
|
10
|
+
*/
|
|
11
|
+
@import "tw-animate-css";
|
|
12
|
+
@import "./shadcn.css";
|
|
13
|
+
|
|
14
|
+
/* the package's own classes, so Tailwind generates them in the consuming app */
|
|
15
|
+
@source "./";
|
|
16
|
+
|
|
17
|
+
/* `.dark` on an ancestor, unless a `.light` island sits between it and the element */
|
|
18
|
+
@custom-variant dark (&:where(.dark *):not(:where(.dark .light, .dark .light *)));
|
|
19
|
+
|
|
20
|
+
@theme inline {
|
|
21
|
+
--font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
|
|
22
|
+
sans-serif;
|
|
23
|
+
--font-mono: "Source Code Pro", ui-monospace, monospace;
|
|
24
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
25
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
26
|
+
--radius-lg: var(--radius);
|
|
27
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
28
|
+
--radius-2xl: calc(var(--radius) + 10px);
|
|
29
|
+
--color-background: var(--background);
|
|
30
|
+
--color-foreground: var(--foreground);
|
|
31
|
+
--color-card: var(--card);
|
|
32
|
+
--color-card-foreground: var(--card-foreground);
|
|
33
|
+
--color-popover: var(--popover);
|
|
34
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
35
|
+
--color-primary: var(--primary);
|
|
36
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
37
|
+
--color-secondary: var(--secondary);
|
|
38
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
39
|
+
--color-muted: var(--muted);
|
|
40
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
41
|
+
--color-accent: var(--accent);
|
|
42
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
43
|
+
--color-destructive: var(--destructive);
|
|
44
|
+
--color-border: var(--border);
|
|
45
|
+
--color-input: var(--input);
|
|
46
|
+
--color-ring: var(--ring);
|
|
47
|
+
--color-chart-1: var(--chart-1);
|
|
48
|
+
--color-chart-2: var(--chart-2);
|
|
49
|
+
--color-chart-3: var(--chart-3);
|
|
50
|
+
--color-chart-4: var(--chart-4);
|
|
51
|
+
--color-chart-5: var(--chart-5);
|
|
52
|
+
--color-sidebar: var(--sidebar);
|
|
53
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
54
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
55
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
56
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
57
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
58
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
59
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
60
|
+
/* Cargo: one accent, and a stage to stand things on */
|
|
61
|
+
--color-brand: var(--brand);
|
|
62
|
+
--color-brand-foreground: var(--brand-foreground);
|
|
63
|
+
--color-brand-text: var(--brand-text);
|
|
64
|
+
--color-brand-subtle: var(--brand-subtle);
|
|
65
|
+
--color-brand-border: var(--brand-border);
|
|
66
|
+
--color-brand-glow: var(--brand-glow);
|
|
67
|
+
--color-stage: var(--stage);
|
|
68
|
+
--color-tile: var(--tile);
|
|
69
|
+
--color-tile-ink: var(--tile-ink);
|
|
70
|
+
--color-faint: var(--faint);
|
|
71
|
+
--color-line: var(--line);
|
|
72
|
+
--color-edge: var(--edge);
|
|
73
|
+
--color-warning: var(--warning);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/* the tokens sit in the base layer, so a utility on the same element as `.dark` or `.light` still wins */
|
|
77
|
+
@layer base {
|
|
78
|
+
/* light: the default, and the .light island */
|
|
79
|
+
:root,
|
|
80
|
+
.light {
|
|
81
|
+
--radius: 0.75rem;
|
|
82
|
+
--background: #f6f5f1;
|
|
83
|
+
--foreground: #111113;
|
|
84
|
+
--card: #ffffff;
|
|
85
|
+
--card-foreground: #111113;
|
|
86
|
+
--popover: #ffffff;
|
|
87
|
+
--popover-foreground: #111113;
|
|
88
|
+
--primary: #111113;
|
|
89
|
+
--primary-foreground: #fafafa;
|
|
90
|
+
--secondary: #ecebe6;
|
|
91
|
+
--secondary-foreground: #3f3f46;
|
|
92
|
+
--muted: #ecebe6;
|
|
93
|
+
--muted-foreground: #71717a;
|
|
94
|
+
--accent: rgba(17, 17, 19, 0.05);
|
|
95
|
+
--accent-foreground: #111113;
|
|
96
|
+
--destructive: #e11d48;
|
|
97
|
+
--border: rgba(17, 17, 19, 0.08);
|
|
98
|
+
--input: rgba(17, 17, 19, 0.12);
|
|
99
|
+
--ring: var(--brand);
|
|
100
|
+
--sidebar: #efeee9;
|
|
101
|
+
--sidebar-foreground: #3f3f46;
|
|
102
|
+
--sidebar-primary: #111113;
|
|
103
|
+
--sidebar-primary-foreground: #fafafa;
|
|
104
|
+
--sidebar-accent: rgba(17, 17, 19, 0.06);
|
|
105
|
+
--sidebar-accent-foreground: #111113;
|
|
106
|
+
--sidebar-border: rgba(17, 17, 19, 0.08);
|
|
107
|
+
--sidebar-ring: var(--brand);
|
|
108
|
+
/* charts: brand for Cargo's own series, neutrals for the rest, red only for what broke */
|
|
109
|
+
--chart-1: var(--brand);
|
|
110
|
+
--chart-2: var(--brand-text);
|
|
111
|
+
--chart-3: #a1a1aa;
|
|
112
|
+
--chart-4: #f97316;
|
|
113
|
+
--chart-5: #e11d48;
|
|
114
|
+
|
|
115
|
+
--stage: #f6f5f1;
|
|
116
|
+
--brand-glow: color-mix(in srgb, var(--brand) 9%, transparent);
|
|
117
|
+
/* marks, never words: punctuation, list markers, icons, wordmarks. 3:1 on the card and the stage, the floor
|
|
118
|
+
for a mark; text that has to be read takes muted-foreground */
|
|
119
|
+
--faint: #8a8a93;
|
|
120
|
+
--line: rgba(17, 17, 19, 0.07);
|
|
121
|
+
--edge: rgba(17, 17, 19, 0.08);
|
|
122
|
+
--hi: rgba(255, 255, 255, 1);
|
|
123
|
+
--shadow: 0 1px 2px rgba(17, 17, 19, 0.05),
|
|
124
|
+
0 30px 60px -30px rgba(17, 17, 19, 0.3);
|
|
125
|
+
--tile: #ecebe6;
|
|
126
|
+
--tile-ink: #3f3f46;
|
|
127
|
+
--brand: #10b981;
|
|
128
|
+
--brand-foreground: #04140e;
|
|
129
|
+
--brand-text: #047857;
|
|
130
|
+
--brand-subtle: color-mix(in srgb, var(--brand) 10%, transparent);
|
|
131
|
+
--brand-border: color-mix(in srgb, var(--brand) 38%, transparent);
|
|
132
|
+
--warning: #f97316;
|
|
133
|
+
--sheen: rgba(255, 255, 255, 0.7);
|
|
134
|
+
color-scheme: light;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.dark {
|
|
138
|
+
--background: #050506;
|
|
139
|
+
--foreground: #fafafa;
|
|
140
|
+
--card: #111113;
|
|
141
|
+
--card-foreground: #fafafa;
|
|
142
|
+
--popover: #111113;
|
|
143
|
+
--popover-foreground: #fafafa;
|
|
144
|
+
--primary: #fafafa;
|
|
145
|
+
--primary-foreground: #050506;
|
|
146
|
+
--secondary: #1f1f22;
|
|
147
|
+
--secondary-foreground: #d4d4d8;
|
|
148
|
+
--muted: #1f1f22;
|
|
149
|
+
--muted-foreground: #a1a1aa;
|
|
150
|
+
--accent: rgba(255, 255, 255, 0.06);
|
|
151
|
+
--accent-foreground: #fafafa;
|
|
152
|
+
--destructive: #fb7185;
|
|
153
|
+
--border: rgba(255, 255, 255, 0.09);
|
|
154
|
+
--input: rgba(255, 255, 255, 0.12);
|
|
155
|
+
--ring: var(--brand);
|
|
156
|
+
--sidebar: #0c0c0e;
|
|
157
|
+
--sidebar-foreground: #d4d4d8;
|
|
158
|
+
--sidebar-primary: #fafafa;
|
|
159
|
+
--sidebar-primary-foreground: #050506;
|
|
160
|
+
--sidebar-accent: rgba(255, 255, 255, 0.06);
|
|
161
|
+
--sidebar-accent-foreground: #fafafa;
|
|
162
|
+
--sidebar-border: rgba(255, 255, 255, 0.09);
|
|
163
|
+
--sidebar-ring: var(--brand);
|
|
164
|
+
--chart-1: var(--brand);
|
|
165
|
+
--chart-2: var(--brand-text);
|
|
166
|
+
--chart-3: #52525b;
|
|
167
|
+
--chart-4: #fb923c;
|
|
168
|
+
--chart-5: #fb7185;
|
|
169
|
+
|
|
170
|
+
--stage: #050506;
|
|
171
|
+
--brand-glow: color-mix(in srgb, var(--brand) 15%, transparent);
|
|
172
|
+
--faint: #71717a;
|
|
173
|
+
--line: rgba(255, 255, 255, 0.07);
|
|
174
|
+
--edge: rgba(255, 255, 255, 0.09);
|
|
175
|
+
/* none: on a dark card a lit top line sits on the 1px border and reads as a thicker top edge */
|
|
176
|
+
--hi: transparent;
|
|
177
|
+
--shadow: 0 1px 2px rgba(0, 0, 0, 0.5),
|
|
178
|
+
0 40px 80px -36px rgba(0, 0, 0, 0.95);
|
|
179
|
+
--tile: #1f1f22;
|
|
180
|
+
--tile-ink: #d4d4d8;
|
|
181
|
+
--brand: #34d399;
|
|
182
|
+
--brand-foreground: #04140e;
|
|
183
|
+
--brand-text: #6ee7b7;
|
|
184
|
+
--brand-subtle: color-mix(in srgb, var(--brand) 10%, transparent);
|
|
185
|
+
--brand-border: color-mix(in srgb, var(--brand) 32%, transparent);
|
|
186
|
+
--warning: #fb923c;
|
|
187
|
+
--sheen: rgba(255, 255, 255, 0.08);
|
|
188
|
+
color-scheme: dark;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/* a theme class paints its own surface, so a .light band on a dark page is not dark text on the dark page */
|
|
192
|
+
.dark,
|
|
193
|
+
.light {
|
|
194
|
+
color: var(--foreground);
|
|
195
|
+
background-color: var(--background);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
* {
|
|
199
|
+
@apply border-border outline-ring/50;
|
|
200
|
+
}
|
|
201
|
+
body {
|
|
202
|
+
@apply bg-background text-foreground font-sans antialiased;
|
|
203
|
+
}
|
|
204
|
+
::selection {
|
|
205
|
+
background: var(--brand-subtle);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/* what Tailwind cannot say on its own */
|
|
210
|
+
@layer components {
|
|
211
|
+
/* the stage: a soft brand glow on the deepest surface */
|
|
212
|
+
.cui-stage-plate {
|
|
213
|
+
background: radial-gradient(
|
|
214
|
+
ellipse 65% 55% at 50% 50%,
|
|
215
|
+
var(--brand-glow),
|
|
216
|
+
transparent 75%
|
|
217
|
+
),
|
|
218
|
+
var(--stage);
|
|
219
|
+
}
|
|
220
|
+
.cui-stage-floor {
|
|
221
|
+
position: relative;
|
|
222
|
+
background: radial-gradient(
|
|
223
|
+
ellipse 60% 55% at 50% 100%,
|
|
224
|
+
var(--brand-glow),
|
|
225
|
+
transparent 70%
|
|
226
|
+
);
|
|
227
|
+
}
|
|
228
|
+
.cui-stage-floor::after {
|
|
229
|
+
content: "";
|
|
230
|
+
position: absolute;
|
|
231
|
+
inset: auto 0 0 0;
|
|
232
|
+
height: 1px;
|
|
233
|
+
background: var(--edge);
|
|
234
|
+
}
|
|
235
|
+
.cui-grid-bg {
|
|
236
|
+
position: absolute;
|
|
237
|
+
inset: 0;
|
|
238
|
+
pointer-events: none;
|
|
239
|
+
background-image: linear-gradient(var(--line) 1px, transparent 1px),
|
|
240
|
+
linear-gradient(90deg, var(--line) 1px, transparent 1px);
|
|
241
|
+
background-size: 56px 56px;
|
|
242
|
+
mask-image: radial-gradient(
|
|
243
|
+
ellipse 70% 60% at 50% 30%,
|
|
244
|
+
#000,
|
|
245
|
+
transparent 75%
|
|
246
|
+
);
|
|
247
|
+
}
|
|
248
|
+
.cui-shadow-object {
|
|
249
|
+
box-shadow:
|
|
250
|
+
var(--shadow),
|
|
251
|
+
inset 0 1px 0 var(--hi);
|
|
252
|
+
}
|
|
253
|
+
.cui-tile {
|
|
254
|
+
display: grid;
|
|
255
|
+
flex: none;
|
|
256
|
+
place-items: center;
|
|
257
|
+
border-radius: 10px;
|
|
258
|
+
background: var(--tile);
|
|
259
|
+
color: var(--tile-ink);
|
|
260
|
+
font-weight: 600;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/* MaskedHeadline: each word rises from behind its own baseline */
|
|
264
|
+
.cui-mh .cui-w {
|
|
265
|
+
display: inline-block;
|
|
266
|
+
overflow: hidden;
|
|
267
|
+
vertical-align: bottom;
|
|
268
|
+
padding-bottom: 0.06em;
|
|
269
|
+
margin-bottom: -0.06em;
|
|
270
|
+
}
|
|
271
|
+
.cui-mh .cui-w > span {
|
|
272
|
+
display: inline-block;
|
|
273
|
+
animation: mh-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
|
|
274
|
+
animation-delay: calc(var(--i, 0) * 70ms + 120ms);
|
|
275
|
+
}
|
|
276
|
+
@keyframes mh-in {
|
|
277
|
+
from {
|
|
278
|
+
transform: translateY(105%);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/* a struck-through word, for "Stop building lists" */
|
|
283
|
+
.cui-strike {
|
|
284
|
+
position: relative;
|
|
285
|
+
color: var(--muted-foreground);
|
|
286
|
+
}
|
|
287
|
+
.cui-strike::after {
|
|
288
|
+
content: "";
|
|
289
|
+
position: absolute;
|
|
290
|
+
left: -2%;
|
|
291
|
+
right: -2%;
|
|
292
|
+
top: 54%;
|
|
293
|
+
height: 0.08em;
|
|
294
|
+
background: var(--destructive);
|
|
295
|
+
border-radius: 2px;
|
|
296
|
+
transform-origin: left;
|
|
297
|
+
animation: strike 0.6s 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
|
|
298
|
+
}
|
|
299
|
+
@keyframes strike {
|
|
300
|
+
from {
|
|
301
|
+
transform: scaleX(0);
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/* light sweeping across a primary button */
|
|
306
|
+
.cui-sheen-hover {
|
|
307
|
+
position: relative;
|
|
308
|
+
overflow: hidden;
|
|
309
|
+
}
|
|
310
|
+
.cui-sheen-hover::after {
|
|
311
|
+
content: "";
|
|
312
|
+
position: absolute;
|
|
313
|
+
inset: -20% auto -20% 0;
|
|
314
|
+
width: 40%;
|
|
315
|
+
pointer-events: none;
|
|
316
|
+
background: linear-gradient(100deg, transparent, var(--sheen), transparent);
|
|
317
|
+
transform: translateX(-220%);
|
|
318
|
+
transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
|
|
319
|
+
}
|
|
320
|
+
.cui-sheen-hover:hover::after {
|
|
321
|
+
transform: translateX(360%);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/* GlowCard: a soft brand light that follows the pointer */
|
|
325
|
+
/* its own stacking context, so the glow can sit under the content but over the card's background */
|
|
326
|
+
.cui-glow-follow {
|
|
327
|
+
isolation: isolate;
|
|
328
|
+
}
|
|
329
|
+
.cui-glow-follow::before {
|
|
330
|
+
content: "";
|
|
331
|
+
position: absolute;
|
|
332
|
+
z-index: -1;
|
|
333
|
+
inset: 0;
|
|
334
|
+
border-radius: inherit;
|
|
335
|
+
pointer-events: none;
|
|
336
|
+
opacity: 0;
|
|
337
|
+
transition: opacity 0.3s;
|
|
338
|
+
background: radial-gradient(
|
|
339
|
+
260px circle at var(--mx, 50%) var(--my, 50%),
|
|
340
|
+
var(--brand-subtle),
|
|
341
|
+
transparent 70%
|
|
342
|
+
);
|
|
343
|
+
}
|
|
344
|
+
.cui-glow-follow:hover::before {
|
|
345
|
+
opacity: 1;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.cui-marquee {
|
|
349
|
+
overflow: hidden;
|
|
350
|
+
mask-image: linear-gradient(
|
|
351
|
+
90deg,
|
|
352
|
+
transparent,
|
|
353
|
+
#000 10%,
|
|
354
|
+
#000 90%,
|
|
355
|
+
transparent
|
|
356
|
+
);
|
|
357
|
+
}
|
|
358
|
+
.cui-marquee > .cui-track {
|
|
359
|
+
display: flex;
|
|
360
|
+
width: max-content;
|
|
361
|
+
padding-block: 6px;
|
|
362
|
+
animation: marq var(--dur, 40s) linear infinite;
|
|
363
|
+
}
|
|
364
|
+
/* spacing after every item rather than `gap`, so each copy is exactly half the track and -50% lands on the seam */
|
|
365
|
+
.cui-marquee > .cui-track > * {
|
|
366
|
+
margin-right: 56px;
|
|
367
|
+
}
|
|
368
|
+
.cui-marquee:hover > .cui-track {
|
|
369
|
+
animation-play-state: paused;
|
|
370
|
+
}
|
|
371
|
+
@keyframes marq {
|
|
372
|
+
to {
|
|
373
|
+
transform: translateX(-50%);
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.cui-caret::after {
|
|
378
|
+
content: "";
|
|
379
|
+
display: inline-block;
|
|
380
|
+
width: 0.55em;
|
|
381
|
+
height: 1.1em;
|
|
382
|
+
margin-left: 2px;
|
|
383
|
+
vertical-align: -0.15em;
|
|
384
|
+
background: var(--brand);
|
|
385
|
+
animation: caret 1s steps(1) infinite;
|
|
386
|
+
}
|
|
387
|
+
/* the cursor after a headline, as on the event covers and decks: a mint block a third of the type wide and three
|
|
388
|
+
quarters tall, set a little apart, with a soft glow, so the sentence reads as something just typed rather than as
|
|
389
|
+
a slogan. Narrower and shorter than the terminal's block, so at display size it never reads as a letter. */
|
|
390
|
+
.cui-caret.cui-headline::after {
|
|
391
|
+
width: 0.33em;
|
|
392
|
+
height: 0.75em;
|
|
393
|
+
margin-left: 0.19em;
|
|
394
|
+
vertical-align: -0.12em;
|
|
395
|
+
border-radius: 0.04em;
|
|
396
|
+
box-shadow: 0 0 0.3em color-mix(in srgb, var(--brand) 40%, transparent);
|
|
397
|
+
}
|
|
398
|
+
@keyframes caret {
|
|
399
|
+
50% {
|
|
400
|
+
opacity: 0;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
.cui-live-dot::before {
|
|
404
|
+
content: "";
|
|
405
|
+
width: 6px;
|
|
406
|
+
height: 6px;
|
|
407
|
+
border-radius: 50%;
|
|
408
|
+
background: currentColor;
|
|
409
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
|
|
410
|
+
animation: pulse 2s ease-in-out infinite;
|
|
411
|
+
}
|
|
412
|
+
@keyframes pulse {
|
|
413
|
+
50% {
|
|
414
|
+
box-shadow: 0 0 0 6px transparent;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
.cui-giant-word {
|
|
418
|
+
font-weight: 700;
|
|
419
|
+
letter-spacing: -0.06em;
|
|
420
|
+
line-height: 0.8;
|
|
421
|
+
color: transparent;
|
|
422
|
+
-webkit-text-stroke: 1px
|
|
423
|
+
color-mix(in srgb, var(--foreground) 16%, transparent);
|
|
424
|
+
user-select: none;
|
|
425
|
+
white-space: nowrap;
|
|
426
|
+
text-align: center;
|
|
427
|
+
}
|
|
428
|
+
/* the small mono label: a menu's group titles, `Eyebrow variant="label"` */
|
|
429
|
+
.cui-eyebrow {
|
|
430
|
+
display: inline-flex;
|
|
431
|
+
align-items: center;
|
|
432
|
+
gap: 8px;
|
|
433
|
+
font: 600 11.5px/1 var(--font-mono);
|
|
434
|
+
letter-spacing: 0.14em;
|
|
435
|
+
text-transform: uppercase;
|
|
436
|
+
color: var(--muted-foreground);
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
/* Terminal lines not typed yet: they hold their space so the box does not grow */
|
|
440
|
+
.cui-terminal [data-pending] {
|
|
441
|
+
visibility: hidden;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/* Without scripts, Reveal never scrolls into view and Terminal never types: show both as they end up. The Reveal
|
|
445
|
+
rules are !important to beat the inline start style Motion renders on the server. */
|
|
446
|
+
@media (scripting: none) {
|
|
447
|
+
[data-reveal] {
|
|
448
|
+
opacity: 1 !important;
|
|
449
|
+
transform: none !important;
|
|
450
|
+
filter: none !important;
|
|
451
|
+
}
|
|
452
|
+
.cui-terminal [data-pending] {
|
|
453
|
+
visibility: visible;
|
|
454
|
+
}
|
|
455
|
+
.cui-terminal .cui-caret::after {
|
|
456
|
+
display: none;
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
/* Last in the layer so it outranks the effects above at equal specificity. Reduced motion stops the kit's own effects and nothing else, so an app's spinners keep turning. Every effect is
|
|
461
|
+
drawn in its finished state and animates in from it, so `none` leaves it fully shown. */
|
|
462
|
+
@media (prefers-reduced-motion: reduce) {
|
|
463
|
+
.cui-mh .cui-w > span,
|
|
464
|
+
.cui-strike::after,
|
|
465
|
+
.cui-caret::after,
|
|
466
|
+
.cui-live-dot::before {
|
|
467
|
+
animation: none;
|
|
468
|
+
}
|
|
469
|
+
.cui-sheen-hover::after,
|
|
470
|
+
.cui-glow-follow::before {
|
|
471
|
+
transition: none;
|
|
472
|
+
}
|
|
473
|
+
/* a still row, drawn once */
|
|
474
|
+
.cui-marquee > .cui-track {
|
|
475
|
+
animation: none;
|
|
476
|
+
width: auto;
|
|
477
|
+
flex-wrap: wrap;
|
|
478
|
+
justify-content: center;
|
|
479
|
+
row-gap: 16px;
|
|
480
|
+
}
|
|
481
|
+
/* !important: the items carry an `inline-flex` utility, and utilities outrank this layer */
|
|
482
|
+
.cui-marquee > .cui-track > [aria-hidden] {
|
|
483
|
+
display: none !important;
|
|
484
|
+
}
|
|
485
|
+
/* the JS hook reads reduced motion only after hydration, so the first paint is settled here: Reveal shown as it
|
|
486
|
+
ends up (!important beats Motion's inline start style), every Terminal line already typed */
|
|
487
|
+
[data-reveal] {
|
|
488
|
+
opacity: 1 !important;
|
|
489
|
+
transform: none !important;
|
|
490
|
+
filter: none !important;
|
|
491
|
+
}
|
|
492
|
+
.cui-terminal [data-pending] {
|
|
493
|
+
visibility: visible;
|
|
494
|
+
}
|
|
495
|
+
.cui-terminal .cui-caret::after {
|
|
496
|
+
display: none;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
/* Prose: long-form text, styled on the descendants of one wrapper.
|
|
502
|
+
In the utilities layer, one element type heavier than a utility class: markdown pipelines often put their own
|
|
503
|
+
utility classes on a heading or a paragraph, and a rule in the components layer would lose to those whatever its
|
|
504
|
+
selector. A `!` utility still wins, and anything inside `.cui-not-prose` keeps its own look. Sizes are in `em`
|
|
505
|
+
against the wrapper's, so `data-size` scales the whole column. */
|
|
506
|
+
@layer utilities {
|
|
507
|
+
.cui-prose {
|
|
508
|
+
min-width: 0;
|
|
509
|
+
font-size: 1rem;
|
|
510
|
+
line-height: 1.75;
|
|
511
|
+
color: var(--muted-foreground);
|
|
512
|
+
text-wrap: pretty;
|
|
513
|
+
}
|
|
514
|
+
.cui-prose[data-size="sm"] {
|
|
515
|
+
font-size: 0.9375rem;
|
|
516
|
+
line-height: 1.7;
|
|
517
|
+
}
|
|
518
|
+
@container page (min-width: 48rem) {
|
|
519
|
+
.cui-prose[data-size="md"] {
|
|
520
|
+
font-size: 1.0625rem;
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
/* the rhythm: space around every block, none at the top or the bottom of the column */
|
|
525
|
+
.cui-prose
|
|
526
|
+
:is(p, ul, ol, dl, blockquote, pre, table, figure, img, video):not(
|
|
527
|
+
:where(.cui-not-prose, .cui-not-prose *)
|
|
528
|
+
) {
|
|
529
|
+
margin-block: 1.1em;
|
|
530
|
+
}
|
|
531
|
+
.cui-prose > :first-child {
|
|
532
|
+
margin-top: 0;
|
|
533
|
+
}
|
|
534
|
+
.cui-prose > :last-child {
|
|
535
|
+
margin-bottom: 0;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
/* headings: semibold in the foreground, an anchor that clears a sticky header */
|
|
539
|
+
.cui-prose
|
|
540
|
+
:is(h1, h2, h3, h4, h5, h6):not(:where(.cui-not-prose, .cui-not-prose *)) {
|
|
541
|
+
color: var(--foreground);
|
|
542
|
+
font-weight: 600;
|
|
543
|
+
text-wrap: balance;
|
|
544
|
+
scroll-margin-top: 7rem;
|
|
545
|
+
}
|
|
546
|
+
.cui-prose h1:not(:where(.cui-not-prose, .cui-not-prose *)) {
|
|
547
|
+
margin: 1.6em 0 0.6em;
|
|
548
|
+
font-size: 2em;
|
|
549
|
+
line-height: 1.1;
|
|
550
|
+
letter-spacing: -0.03em;
|
|
551
|
+
}
|
|
552
|
+
.cui-prose h2:not(:where(.cui-not-prose, .cui-not-prose *)) {
|
|
553
|
+
margin: 2em 0 0.6em;
|
|
554
|
+
font-size: 1.45em;
|
|
555
|
+
line-height: 1.2;
|
|
556
|
+
letter-spacing: -0.02em;
|
|
557
|
+
}
|
|
558
|
+
.cui-prose h3:not(:where(.cui-not-prose, .cui-not-prose *)) {
|
|
559
|
+
margin: 1.7em 0 0.5em;
|
|
560
|
+
font-size: 1.15em;
|
|
561
|
+
line-height: 1.3;
|
|
562
|
+
letter-spacing: -0.01em;
|
|
563
|
+
}
|
|
564
|
+
.cui-prose :is(h4, h5, h6):not(:where(.cui-not-prose, .cui-not-prose *)) {
|
|
565
|
+
margin: 1.5em 0 0.4em;
|
|
566
|
+
font-size: 1em;
|
|
567
|
+
line-height: 1.4;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
/* running text in the muted colour, so headings and bold carry the weight */
|
|
571
|
+
.cui-prose :is(p, li, dd, td):not(:where(.cui-not-prose, .cui-not-prose *)) {
|
|
572
|
+
color: var(--muted-foreground);
|
|
573
|
+
font-size: 1em;
|
|
574
|
+
line-height: inherit;
|
|
575
|
+
}
|
|
576
|
+
.cui-prose
|
|
577
|
+
:is(strong, b, dt, th):not(:where(.cui-not-prose, .cui-not-prose *)) {
|
|
578
|
+
color: var(--foreground);
|
|
579
|
+
font-weight: 600;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
/* links: the accent text colour, underlined; hover changes the underline, nothing moves */
|
|
583
|
+
.cui-prose a:not(:where(.cui-not-prose, .cui-not-prose *)) {
|
|
584
|
+
color: var(--brand-text);
|
|
585
|
+
font-size: inherit;
|
|
586
|
+
font-weight: inherit;
|
|
587
|
+
line-height: inherit;
|
|
588
|
+
text-decoration: underline;
|
|
589
|
+
text-decoration-color: var(--brand-border);
|
|
590
|
+
text-decoration-thickness: 1px;
|
|
591
|
+
text-underline-offset: 3px;
|
|
592
|
+
transition: text-decoration-color 0.15s;
|
|
593
|
+
}
|
|
594
|
+
.cui-prose a:not(:where(.cui-not-prose, .cui-not-prose *)):hover {
|
|
595
|
+
text-decoration-color: currentColor;
|
|
596
|
+
}
|
|
597
|
+
/* a link inside a heading, such as its own anchor, keeps the heading's colour */
|
|
598
|
+
.cui-prose :is(h1, h2, h3, h4, h5, h6) a:not(:where(.cui-not-prose *)) {
|
|
599
|
+
color: inherit;
|
|
600
|
+
text-decoration: none;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
/* lists: markers in the faint colour, tight items */
|
|
604
|
+
.cui-prose :is(ul, ol):not(:where(.cui-not-prose, .cui-not-prose *)) {
|
|
605
|
+
padding-left: 1.4em;
|
|
606
|
+
}
|
|
607
|
+
.cui-prose ul:not(:where(.cui-not-prose, .cui-not-prose *)) {
|
|
608
|
+
list-style-type: disc;
|
|
609
|
+
}
|
|
610
|
+
.cui-prose ol:not(:where(.cui-not-prose, .cui-not-prose *)) {
|
|
611
|
+
list-style-type: decimal;
|
|
612
|
+
}
|
|
613
|
+
.cui-prose li:not(:where(.cui-not-prose, .cui-not-prose *)) {
|
|
614
|
+
margin-block: 0.4em;
|
|
615
|
+
padding-left: 0.3em;
|
|
616
|
+
}
|
|
617
|
+
.cui-prose li:not(:where(.cui-not-prose, .cui-not-prose *))::marker {
|
|
618
|
+
color: var(--faint);
|
|
619
|
+
}
|
|
620
|
+
.cui-prose li > :is(p, ul, ol):not(:where(.cui-not-prose, .cui-not-prose *)) {
|
|
621
|
+
margin-block: 0.5em;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
/* quotes: a brand rule on the left, the words in the foreground */
|
|
625
|
+
.cui-prose blockquote:not(:where(.cui-not-prose, .cui-not-prose *)) {
|
|
626
|
+
border-left: 2px solid var(--brand);
|
|
627
|
+
padding-left: 1.1em;
|
|
628
|
+
font-style: normal;
|
|
629
|
+
}
|
|
630
|
+
.cui-prose blockquote :is(p, li):not(:where(.cui-not-prose *)) {
|
|
631
|
+
color: var(--foreground);
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
/* code: inline on a tile, a block on the card surface behind a hairline */
|
|
635
|
+
.cui-prose code:not(:where(pre code, .cui-not-prose, .cui-not-prose *)) {
|
|
636
|
+
border-radius: calc(var(--radius) - 6px);
|
|
637
|
+
background: var(--muted);
|
|
638
|
+
color: var(--foreground);
|
|
639
|
+
padding: 0.1em 0.35em;
|
|
640
|
+
font-family: var(--font-mono);
|
|
641
|
+
font-size: 0.875em;
|
|
642
|
+
}
|
|
643
|
+
.cui-prose pre:not(:where(.cui-not-prose, .cui-not-prose *)) {
|
|
644
|
+
overflow-x: auto;
|
|
645
|
+
border: 1px solid var(--border);
|
|
646
|
+
border-radius: calc(var(--radius) + 4px);
|
|
647
|
+
background: var(--card);
|
|
648
|
+
padding: 1.1em;
|
|
649
|
+
font-family: var(--font-mono);
|
|
650
|
+
font-size: 0.875em;
|
|
651
|
+
line-height: 1.7;
|
|
652
|
+
}
|
|
653
|
+
.cui-prose pre code:not(:where(.cui-not-prose *)) {
|
|
654
|
+
font-size: 1em;
|
|
655
|
+
}
|
|
656
|
+
.cui-prose kbd:not(:where(.cui-not-prose, .cui-not-prose *)) {
|
|
657
|
+
border-radius: calc(var(--radius) - 8px);
|
|
658
|
+
background: var(--muted);
|
|
659
|
+
color: var(--foreground);
|
|
660
|
+
padding: 0.1em 0.35em;
|
|
661
|
+
font-family: var(--font-mono);
|
|
662
|
+
font-size: 0.8125em;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
/* tables: hairline rows, the header in the foreground */
|
|
666
|
+
.cui-prose table:not(:where(.cui-not-prose, .cui-not-prose *)) {
|
|
667
|
+
width: 100%;
|
|
668
|
+
border-collapse: collapse;
|
|
669
|
+
text-align: left;
|
|
670
|
+
font-size: 0.9375em;
|
|
671
|
+
}
|
|
672
|
+
.cui-prose :is(th, td):not(:where(.cui-not-prose, .cui-not-prose *)) {
|
|
673
|
+
border-bottom: 1px solid var(--border);
|
|
674
|
+
padding: 0.6em 0.75em;
|
|
675
|
+
vertical-align: top;
|
|
676
|
+
}
|
|
677
|
+
.cui-prose
|
|
678
|
+
:is(th, td):first-child:not(:where(.cui-not-prose, .cui-not-prose *)) {
|
|
679
|
+
padding-left: 0;
|
|
680
|
+
}
|
|
681
|
+
/* on a narrow page a table wider than the column scrolls inside its own box instead of running past it */
|
|
682
|
+
@container page (max-width: 47.99rem) {
|
|
683
|
+
.cui-prose table:not(:where(.cui-not-prose, .cui-not-prose *)) {
|
|
684
|
+
display: block;
|
|
685
|
+
overflow-x: auto;
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
/* a hairline rule, and pictures on the kit's radius */
|
|
690
|
+
.cui-prose hr:not(:where(.cui-not-prose, .cui-not-prose *)) {
|
|
691
|
+
margin-block: 2.2em;
|
|
692
|
+
border: 0;
|
|
693
|
+
border-top: 1px solid var(--border);
|
|
694
|
+
}
|
|
695
|
+
.cui-prose :is(img, video):not(:where(.cui-not-prose, .cui-not-prose *)) {
|
|
696
|
+
max-width: 100%;
|
|
697
|
+
border-radius: calc(var(--radius) + 4px);
|
|
698
|
+
}
|
|
699
|
+
}
|