@vvedantb/ui 0.7.2 → 0.9.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.
@@ -0,0 +1,115 @@
1
+ // Class strings for the landing kit, `SiteFooter` and `PricingModal`, copied
2
+ // from the apps' markup. Some read the bare muted text colour the apps already
3
+ // ship (apps map `--color-muted` to the secondary text colour), so each such
4
+ // line carries the token check's allow marker. Every string is a literal so
5
+ // Tailwind's source scan sees it.
6
+
7
+ /** Centred landing column: `max-w-6xl` with responsive side padding. */
8
+ export const landingShellClass = "relative mx-auto w-full max-w-6xl px-5 sm:px-8 lg:px-10";
9
+
10
+ /** Bordered surface card used by landing product mocks. */
11
+ export const landingPanelClass = "overflow-hidden rounded-2xl border border-separator bg-surface";
12
+
13
+ /** Text link in `LandingFooter`, also for app links placed in its `actions` slot. */
14
+ export const landingFooterLinkClass = "max-sm:py-1 text-sm text-muted hover:text-foreground"; // check-tokens-allow: text-muted
15
+
16
+ /** `Button variant="link"` in `LandingFooter`'s `actions` slot (for example Sign in). */
17
+ export const landingFooterButtonClass = "h-auto p-0 text-sm text-muted hover:text-foreground"; // check-tokens-allow: text-muted
18
+
19
+ export const landingClasses = {
20
+ eyebrow:
21
+ "mb-3 font-mono text-[11px] font-medium uppercase tracking-[0.22em] text-muted sm:text-xs sm:tracking-[0.28em]", // check-tokens-allow: text-muted
22
+ sectionIntro:
23
+ "mt-4 max-w-xl text-pretty text-sm leading-relaxed text-muted sm:mt-5 sm:text-base", // check-tokens-allow: text-muted
24
+ featureDescription:
25
+ "mt-1 text-pretty text-xs leading-relaxed text-muted sm:text-[0.8125rem]", // check-tokens-allow: text-muted
26
+ navLink:
27
+ "inline-flex h-10 items-center rounded-lg px-3 text-sm text-muted transition-[color,background-color] duration-150 hover:bg-surface-tertiary hover:text-foreground", // check-tokens-allow: text-muted
28
+ heroEyebrow:
29
+ "mb-6 inline-flex items-center gap-2 rounded-full border border-separator bg-surface/70 px-3 py-1 text-xs text-muted", // check-tokens-allow: text-muted
30
+ heroDescription:
31
+ "mx-auto mt-5 max-w-xl text-pretty text-[0.9375rem] leading-relaxed text-muted sm:mt-6 sm:text-lg", // check-tokens-allow: text-muted
32
+ heroCapability:
33
+ "rounded-full border border-separator bg-surface/60 px-3 py-1 font-mono text-[11px] text-muted", // check-tokens-allow: text-muted
34
+ ctaDescription:
35
+ "mt-4 max-w-xl text-pretty text-sm leading-relaxed text-muted sm:text-base", // check-tokens-allow: text-muted
36
+ footerTagline:
37
+ "mt-3 max-w-sm text-pretty text-xs leading-relaxed text-muted", // check-tokens-allow: text-muted
38
+ footerGithub: "max-sm:py-1 text-muted hover:text-foreground", // check-tokens-allow: text-muted
39
+ } as const;
40
+
41
+ /**
42
+ * `SiteFooter` class sets. `muted` and `muted-foreground` differ only in the
43
+ * secondary text colour; `touch` adds `max-sm:hit-target` targets and a
44
+ * safe-area bottom padding.
45
+ */
46
+ export const siteFooterClasses = {
47
+ muted: {
48
+ footer: "bg-background text-foreground py-8 md:py-16 max-w-5xl mx-auto",
49
+ tagline: "text-sm text-muted mb-4 md:mb-6 max-w-sm", // check-tokens-allow: text-muted
50
+ socialButton:
51
+ "w-9 h-9 md:w-8 md:h-8 bg-default rounded-lg flex items-center justify-center hover:bg-surface-tertiary transition-[background-color]",
52
+ socialIcon: "w-4 h-4 text-muted", // check-tokens-allow: text-muted
53
+ heading: "font-thin tracking-wide mb-3 md:mb-4 text-muted", // check-tokens-allow: text-muted
54
+ links: "flex flex-col gap-2 md:gap-3 text-sm text-muted font-thin tracking-wide", // check-tokens-allow: text-muted
55
+ link: "hover:text-foreground transition-[color]",
56
+ imageLink: "hover:text-foreground transition-[color] flex flex-row items-center gap-2",
57
+ copyright: "text-xs md:text-sm text-muted", // check-tokens-allow: text-muted
58
+ rights: "text-xs md:text-sm text-muted/80", // check-tokens-allow: text-muted
59
+ legalLink:
60
+ "underline text-xs md:text-sm text-muted hover:text-foreground transition-[color]", // check-tokens-allow: text-muted
61
+ },
62
+ "muted-foreground": {
63
+ footer: "bg-background text-foreground py-8 md:py-16 max-w-5xl mx-auto",
64
+ tagline: "text-sm text-muted-foreground mb-4 md:mb-6 max-w-sm",
65
+ socialButton:
66
+ "w-9 h-9 md:w-8 md:h-8 bg-default rounded-lg flex items-center justify-center hover:bg-surface-tertiary transition-[background-color]",
67
+ socialIcon: "w-4 h-4 text-muted-foreground",
68
+ heading: "font-thin tracking-wide mb-3 md:mb-4 text-muted-foreground",
69
+ links: "flex flex-col gap-2 md:gap-3 text-sm text-muted-foreground font-thin tracking-wide",
70
+ link: "hover:text-foreground transition-[color]",
71
+ imageLink: "hover:text-foreground transition-[color] flex flex-row items-center gap-2",
72
+ copyright: "text-xs md:text-sm text-muted-foreground",
73
+ rights: "text-xs md:text-sm text-muted-foreground/80",
74
+ legalLink:
75
+ "underline text-xs md:text-sm text-muted-foreground hover:text-foreground transition-[color]",
76
+ },
77
+ touch: {
78
+ footer:
79
+ "mx-auto max-w-5xl bg-background pt-8 text-foreground pb-[max(2rem,env(safe-area-inset-bottom))] md:pt-16 md:pb-16",
80
+ tagline: "text-sm text-muted-foreground mb-4 md:mb-6 max-w-sm",
81
+ socialButton:
82
+ "max-sm:hit-target h-9 w-9 rounded-lg bg-default hover:bg-surface-tertiary md:h-8 md:w-8",
83
+ socialIcon: "h-4 w-4 text-muted-foreground",
84
+ heading: "font-thin tracking-wide mb-3 md:mb-4 text-muted-foreground",
85
+ links: "flex flex-col gap-2 text-sm font-thin tracking-wide text-muted-foreground md:gap-3",
86
+ link: "max-sm:hit-target max-sm:py-1 hover:text-foreground",
87
+ imageLink: "max-sm:hit-target flex flex-row items-center gap-2 max-sm:py-1 hover:text-foreground",
88
+ copyright: "text-xs md:text-sm text-muted-foreground",
89
+ rights: "text-xs md:text-sm text-muted-foreground/80",
90
+ legalLink:
91
+ "max-sm:hit-target text-xs underline text-muted-foreground hover:text-foreground md:text-sm",
92
+ },
93
+ } as const;
94
+
95
+ export type SiteFooterVariant = keyof typeof siteFooterClasses;
96
+
97
+ /** `PricingModal` class sets for the two secondary text colours. */
98
+ export const pricingModalClasses = {
99
+ muted: {
100
+ period: "pb-1 text-sm text-muted", // check-tokens-allow: text-muted
101
+ /** After `mt-4 max-w-[28ch]` and the optional font class. */
102
+ tagline: "text-lg italic leading-snug text-muted", // check-tokens-allow: text-muted
103
+ note: "mt-3 text-center text-xs text-muted", // check-tokens-allow: text-muted
104
+ featuresHeading:
105
+ "mb-4 text-[11px] font-medium uppercase tracking-[0.2em] text-muted", // check-tokens-allow: text-muted
106
+ },
107
+ "muted-foreground": {
108
+ period: "pb-1 text-sm text-muted-foreground",
109
+ tagline: "text-lg italic leading-snug text-muted-foreground",
110
+ note: "mt-3 text-center text-xs text-muted-foreground",
111
+ featuresHeading: "mb-4 text-[11px] font-medium uppercase tracking-[0.2em] text-muted-foreground",
112
+ },
113
+ } as const;
114
+
115
+ export type PricingModalTone = keyof typeof pricingModalClasses;