@deckspec/theme-noir-display 0.1.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/LICENSE +190 -0
- package/components/card/index.tsx +31 -0
- package/components/index.ts +2 -0
- package/components/slide-header/index.tsx +47 -0
- package/design.md +289 -0
- package/globals.css +263 -0
- package/package.json +38 -0
- package/patterns/_lib/chart-colors.ts +12 -0
- package/patterns/_lib/icon.tsx +50 -0
- package/patterns/big-number/index.tsx +87 -0
- package/patterns/body-message/index.tsx +295 -0
- package/patterns/bullet-list/index.tsx +132 -0
- package/patterns/challenge-cards/index.tsx +112 -0
- package/patterns/chart-bar/index.tsx +107 -0
- package/patterns/comparison-columns/index.tsx +115 -0
- package/patterns/feature-metrics/index.tsx +94 -0
- package/patterns/flow-diagram/index.tsx +151 -0
- package/patterns/hero-statement/index.tsx +72 -0
- package/patterns/icon-grid/index.tsx +126 -0
- package/patterns/index.ts +17 -0
- package/patterns/phased-roadmap/index.tsx +179 -0
- package/patterns/photo-split/index.tsx +110 -0
- package/patterns/pricing-tiers/index.tsx +127 -0
- package/patterns/showcase-grid/index.tsx +99 -0
- package/patterns/thank-you/index.tsx +86 -0
- package/patterns/three-pillars/index.tsx +112 -0
- package/patterns/title-center/index.tsx +46 -0
- package/tokens.json +30 -0
- package/tsconfig.json +13 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
const pillarSchema = z.object({
|
|
4
|
+
title: z.string().min(1).describe("Pillar title"),
|
|
5
|
+
description: z.string().min(1).describe("Pillar description"),
|
|
6
|
+
value: z.string().optional().describe("Optional large display value"),
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
export const schema = z.object({
|
|
10
|
+
label: z.string().min(1).max(30).optional().describe("Accent eyebrow"),
|
|
11
|
+
heading: z.string().min(1).max(60).describe("Section heading"),
|
|
12
|
+
pillars: z.array(pillarSchema).min(2).max(3).describe("Pillars (2-3)"),
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
type Props = z.infer<typeof schema>;
|
|
16
|
+
|
|
17
|
+
export default function ThreePillars({ label, heading, pillars }: Props) {
|
|
18
|
+
return (
|
|
19
|
+
<div className="slide-stack" style={{ justifyContent: "center", gap: 48 }}>
|
|
20
|
+
{/* Header */}
|
|
21
|
+
<div style={{ textAlign: "center" }}>
|
|
22
|
+
{label && (
|
|
23
|
+
<span
|
|
24
|
+
style={{
|
|
25
|
+
fontSize: 17,
|
|
26
|
+
fontWeight: 600,
|
|
27
|
+
letterSpacing: "-0.022em",
|
|
28
|
+
color: "var(--color-primary)",
|
|
29
|
+
display: "block",
|
|
30
|
+
marginBottom: 8,
|
|
31
|
+
}}
|
|
32
|
+
>
|
|
33
|
+
{label}
|
|
34
|
+
</span>
|
|
35
|
+
)}
|
|
36
|
+
<h2
|
|
37
|
+
style={{
|
|
38
|
+
fontSize: 48,
|
|
39
|
+
fontWeight: 600,
|
|
40
|
+
lineHeight: 1.08,
|
|
41
|
+
letterSpacing: "-0.003em",
|
|
42
|
+
}}
|
|
43
|
+
>
|
|
44
|
+
{heading}
|
|
45
|
+
</h2>
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
{/* Pillars as white cards on gray canvas */}
|
|
49
|
+
<div
|
|
50
|
+
style={{
|
|
51
|
+
display: "grid",
|
|
52
|
+
gridTemplateColumns: `repeat(${pillars.length}, 1fr)`,
|
|
53
|
+
gap: 20,
|
|
54
|
+
}}
|
|
55
|
+
>
|
|
56
|
+
{pillars.map((p, i) => (
|
|
57
|
+
<div
|
|
58
|
+
key={i}
|
|
59
|
+
style={{
|
|
60
|
+
backgroundColor: "#ffffff",
|
|
61
|
+
borderRadius: 18,
|
|
62
|
+
padding: "36px 32px",
|
|
63
|
+
display: "flex",
|
|
64
|
+
flexDirection: "column",
|
|
65
|
+
gap: 12,
|
|
66
|
+
boxShadow: "4px 4px 12px rgba(0,0,0,0.06)",
|
|
67
|
+
}}
|
|
68
|
+
>
|
|
69
|
+
{p.value && (
|
|
70
|
+
<span
|
|
71
|
+
style={{
|
|
72
|
+
fontSize: 40,
|
|
73
|
+
fontWeight: 600,
|
|
74
|
+
fontFamily: "var(--font-heading)",
|
|
75
|
+
lineHeight: 1,
|
|
76
|
+
letterSpacing: "-0.009em",
|
|
77
|
+
color: "var(--color-primary)",
|
|
78
|
+
}}
|
|
79
|
+
>
|
|
80
|
+
{p.value}
|
|
81
|
+
</span>
|
|
82
|
+
)}
|
|
83
|
+
<span
|
|
84
|
+
style={{
|
|
85
|
+
fontSize: 21,
|
|
86
|
+
fontWeight: 600,
|
|
87
|
+
fontFamily: "var(--font-heading)",
|
|
88
|
+
letterSpacing: "0.011em",
|
|
89
|
+
color: "var(--color-foreground)",
|
|
90
|
+
lineHeight: 1.24,
|
|
91
|
+
}}
|
|
92
|
+
>
|
|
93
|
+
{p.title}
|
|
94
|
+
</span>
|
|
95
|
+
<span
|
|
96
|
+
style={{
|
|
97
|
+
fontSize: 17,
|
|
98
|
+
fontWeight: 400,
|
|
99
|
+
fontFamily: "var(--font-body)",
|
|
100
|
+
letterSpacing: "-0.022em",
|
|
101
|
+
color: "var(--color-muted-foreground)",
|
|
102
|
+
lineHeight: 1.47,
|
|
103
|
+
}}
|
|
104
|
+
>
|
|
105
|
+
{p.description}
|
|
106
|
+
</span>
|
|
107
|
+
</div>
|
|
108
|
+
))}
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
);
|
|
112
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
export const schema = z.object({
|
|
4
|
+
title: z.string().min(1).max(40).describe("Display headline — large, dramatic"),
|
|
5
|
+
subtitle: z.string().min(1).max(80).describe("Muted subtitle beneath headline"),
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
type Props = z.infer<typeof schema>;
|
|
9
|
+
|
|
10
|
+
export default function TitleCenter({ title, subtitle }: Props) {
|
|
11
|
+
return (
|
|
12
|
+
<div
|
|
13
|
+
className="slide"
|
|
14
|
+
style={{
|
|
15
|
+
display: "flex",
|
|
16
|
+
alignItems: "center",
|
|
17
|
+
justifyContent: "center",
|
|
18
|
+
background: "#ffffff",
|
|
19
|
+
}}
|
|
20
|
+
>
|
|
21
|
+
<div className="stack-center" style={{ gap: 16, maxWidth: 900, marginBottom: 32 }}>
|
|
22
|
+
<h1
|
|
23
|
+
style={{
|
|
24
|
+
fontSize: 72,
|
|
25
|
+
fontWeight: 600,
|
|
26
|
+
lineHeight: 1.05,
|
|
27
|
+
letterSpacing: "-0.015em",
|
|
28
|
+
}}
|
|
29
|
+
>
|
|
30
|
+
{title}
|
|
31
|
+
</h1>
|
|
32
|
+
<p
|
|
33
|
+
style={{
|
|
34
|
+
fontSize: 24,
|
|
35
|
+
fontWeight: 400,
|
|
36
|
+
lineHeight: 1.17,
|
|
37
|
+
letterSpacing: "0.009em",
|
|
38
|
+
color: "var(--color-muted-foreground)",
|
|
39
|
+
}}
|
|
40
|
+
>
|
|
41
|
+
{subtitle}
|
|
42
|
+
</p>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
);
|
|
46
|
+
}
|
package/tokens.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "noir-display",
|
|
3
|
+
"displayName": "Pristine Display",
|
|
4
|
+
"description": "Apple.com inspired light theme — canvas gray background, display typography, dramatic whitespace, and cinematic clarity.",
|
|
5
|
+
"colors": {
|
|
6
|
+
"background": "#f5f5f7",
|
|
7
|
+
"foreground": "#1d1d1f",
|
|
8
|
+
"primary": "#0071e3",
|
|
9
|
+
"muted": "#e8e8ed",
|
|
10
|
+
"muted-foreground": "#6e6e73",
|
|
11
|
+
"border": "rgba(0,0,0,0.08)",
|
|
12
|
+
"accent": "#0066cc",
|
|
13
|
+
"card-background": "#ffffff"
|
|
14
|
+
},
|
|
15
|
+
"fonts": {
|
|
16
|
+
"heading": "'SF Pro JP', 'SF Pro Display', 'Hiragino Sans', 'Helvetica Neue', 'Noto Sans JP', sans-serif",
|
|
17
|
+
"body": "'SF Pro JP', 'SF Pro Text', 'Hiragino Sans', 'Helvetica Neue', 'Noto Sans JP', sans-serif"
|
|
18
|
+
},
|
|
19
|
+
"spacing": {
|
|
20
|
+
"slide-padding": "60px",
|
|
21
|
+
"slide-padding-x": "80px",
|
|
22
|
+
"slide-gap": "32px"
|
|
23
|
+
},
|
|
24
|
+
"borderRadius": "12px",
|
|
25
|
+
"slide": {
|
|
26
|
+
"width": 1200,
|
|
27
|
+
"height": 675,
|
|
28
|
+
"aspectRatio": "16/9"
|
|
29
|
+
}
|
|
30
|
+
}
|