this repo has no description
1export const blog = {
2 // overrideHour: 0,
3 post: {
4 width: 30,
5 xPadding: 2,
6 yLeeway: 5,
7 yGap: 20,
8 topYGap: 35,
9 drift: [0.1, 1],
10 timing: [10, 20],
11 },
12 background: {
13 parallax: {
14 clouds: 50,
15 sun: 10,
16 moon: 20,
17 star: [0, 5],
18 },
19
20 clouds: {
21 count: 8,
22 width: [40, 80],
23 height: [15, 30],
24 yGap: [15, 25],
25
26 bumpRadius: [20, 60],
27 gradientStops: [35, 80],
28 },
29
30 stars: {
31 count: 40,
32 size: [2, 5],
33 prongs: [4, 8],
34 rotateSpeed: [20, 40],
35 },
36
37 sun: {
38 prongs: [10, 20],
39 },
40 },
41 balloons: {
42 numBalloons: [1, 3],
43 length: [5, 15],
44 offset: [-2.5, 2.5],
45 rotation: [-10, 10],
46 timing: [30, 45],
47 size: [
48 [5, 10],
49 [10, 20],
50 ],
51 opacity: [0.6, 0.9],
52 time: [2, 5],
53 },
54 palette: {
55 environment: {
56 sky: {
57 // blue
58 day: "#1E90FF",
59 // black
60 night: "#39375B",
61 },
62 // yellow
63 sun: "#FFEC51",
64 // whites
65 moon: "#E5D4ED",
66 clouds: "#E5D4ED",
67 stars: "#ffffff",
68 },
69
70 post: {
71 light: {
72 background: {
73 main: "#f2f6fc",
74 secondary: "#e7e8ea",
75 },
76 typography: {
77 body: "#070e21",
78 heading: "#070e21",
79 subheading: "#040710",
80 url: "#1f3e98",
81 visited: "#931f82",
82 },
83 },
84
85 dark: {
86 background: {
87 main: "#262428",
88 secondary: "#161418",
89 },
90 typography: {
91 body: "#ffebff",
92 heading: "#ffe8ff",
93 subheading: "#ffe0ff",
94 url: "#a8a8ff",
95 visited: "#ff80ff",
96 },
97 },
98
99 rainbow: [
100 "#F09094",
101 "#F6B379",
102 "#F6E8A2",
103 "#97BB77",
104 "#C2D7FF",
105 "#D784C9",
106 ],
107 },
108 },
109} as const;
110
111export const utils = {
112 getRandom(
113 variance: [number, number] | readonly [number, number],
114 seed?: number,
115 ) {
116 return variance[0] + (seed ?? Math.random()) * (variance[1] - variance[0]);
117 },
118};