@ultimat3/mail 6.0.0 → 7.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/package.json +6 -6
- package/src/layout.ts +14 -15
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultimat3/mail",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "Transactional email as data: one template renders HTML and text, sent through a job.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"test": "bun test"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@ultimat3/core": "
|
|
35
|
-
"@ultimat3/i18n": "
|
|
36
|
-
"@ultimat3/jobs": "
|
|
37
|
-
"@ultimat3/schema": "
|
|
38
|
-
"@ultimat3/time": "
|
|
34
|
+
"@ultimat3/core": "7.0.0",
|
|
35
|
+
"@ultimat3/i18n": "7.0.0",
|
|
36
|
+
"@ultimat3/jobs": "7.0.0",
|
|
37
|
+
"@ultimat3/schema": "7.0.0",
|
|
38
|
+
"@ultimat3/time": "7.0.0"
|
|
39
39
|
}
|
|
40
40
|
}
|
package/src/layout.ts
CHANGED
|
@@ -21,21 +21,20 @@ export type MailToken =
|
|
|
21
21
|
| 'calloutDangerBg'
|
|
22
22
|
| 'calloutDangerText';
|
|
23
23
|
|
|
24
|
-
export const MAIL_TOKENS
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
});
|
|
24
|
+
export const MAIL_TOKENS = Object.freeze<Record<MailToken, Readonly<Record<ColorScheme, string>>>>({
|
|
25
|
+
pageBg: { light: '#f4f5f7', dark: '#0b0d10' },
|
|
26
|
+
surfaceBg: { light: '#ffffff', dark: '#14181d' },
|
|
27
|
+
textPrimary: { light: '#16191d', dark: '#e7eaee' },
|
|
28
|
+
textMuted: { light: '#5c6470', dark: '#9aa4b1' },
|
|
29
|
+
borderSubtle: { light: '#e2e6ea', dark: '#262c33' },
|
|
30
|
+
accentBg: { light: '#2f6df6', dark: '#4f86ff' },
|
|
31
|
+
accentText: { light: '#ffffff', dark: '#0b0d10' },
|
|
32
|
+
linkText: { light: '#2f6df6', dark: '#7aa7ff' },
|
|
33
|
+
calloutInfoBg: { light: '#eef3ff', dark: '#141c2c' },
|
|
34
|
+
calloutInfoText: { light: '#1f3f8f', dark: '#b9cdfb' },
|
|
35
|
+
calloutDangerBg: { light: '#fdeceb', dark: '#2a1416' },
|
|
36
|
+
calloutDangerText: { light: '#8c2118', dark: '#f5b3ad' },
|
|
37
|
+
});
|
|
39
38
|
|
|
40
39
|
/** Resolve a token to a hex value. The only function in the package that returns a colour. */
|
|
41
40
|
export function token(name: MailToken, scheme: ColorScheme = 'light'): string {
|