@atelic-action/ui 0.1.0 → 0.2.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 +94 -1
- package/package.json +4 -1
- package/src/email/atoms.tsx +465 -0
- package/src/email/frame.tsx +230 -0
- package/src/email/index.ts +98 -0
- package/src/email/render.tsx +116 -0
- package/src/email/scoreboard.tsx +479 -0
- package/src/email/text.ts +116 -0
- package/src/email/theme.tsx +77 -0
- package/src/tokens/css.ts +27 -0
- package/src/tokens/index.ts +2 -0
- package/src/tokens/palettes.ts +54 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The palette the runner emails are painted in, ported one to one from
|
|
3
|
+
* homebase `runners/lib/email.jq` (the tokens section). Cream ground, paper
|
|
4
|
+
* cards on a hairline, near black ink, the orange reserved for the one number
|
|
5
|
+
* that matters on a row.
|
|
6
|
+
*
|
|
7
|
+
* A client branded email passes its own Palette to EmailThemeProvider; the
|
|
8
|
+
* values below are the default.
|
|
9
|
+
*/
|
|
10
|
+
export type Palette = {
|
|
11
|
+
/** The page behind the cards. */
|
|
12
|
+
ground: string;
|
|
13
|
+
/** A card's own fill. */
|
|
14
|
+
paper: string;
|
|
15
|
+
/** Headings and anything read closely. */
|
|
16
|
+
ink: string;
|
|
17
|
+
/** Secondary prose. */
|
|
18
|
+
dim: string;
|
|
19
|
+
/** Eyebrows, captions, and anything deliberately quiet. */
|
|
20
|
+
faint: string;
|
|
21
|
+
/** The single accent. */
|
|
22
|
+
accent: string;
|
|
23
|
+
/** A card's border and the heavier rule. */
|
|
24
|
+
line: string;
|
|
25
|
+
/** The lighter rule inside a card. */
|
|
26
|
+
hair: string;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export const atelicPalette: Palette = {
|
|
30
|
+
ground: "#F6F1E7",
|
|
31
|
+
paper: "#FDFBF6",
|
|
32
|
+
ink: "#151515",
|
|
33
|
+
dim: "#55503f",
|
|
34
|
+
faint: "#8a8272",
|
|
35
|
+
accent: "#FC4A1A",
|
|
36
|
+
line: "#E6DFD2",
|
|
37
|
+
hair: "#F0EAE0",
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Font family values, not whole declarations: the components compose them
|
|
42
|
+
* into a `fontFamily` style property.
|
|
43
|
+
*/
|
|
44
|
+
export type Fonts = {
|
|
45
|
+
/** Eyebrows, numbers, and anything the reader copies rather than reads. */
|
|
46
|
+
mono: string;
|
|
47
|
+
/** Everything read. */
|
|
48
|
+
sans: string;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export const atelicFonts: Fonts = {
|
|
52
|
+
mono: "'Courier New',monospace",
|
|
53
|
+
sans: "'Helvetica Neue',Helvetica,Arial,sans-serif",
|
|
54
|
+
};
|