@tangle-network/brand 1.30.0 → 1.31.1

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.
@@ -40,135 +40,135 @@ export interface BrandPalette {
40
40
  /** Resolved palettes for the canonical light and dark themes and the website named theme. */
41
41
  export const palettes = {
42
42
  light: {
43
- canvas: "#eceef3",
43
+ canvas: "#eceef4",
44
44
  card: "#ffffff",
45
- well: "#f5f6fa",
46
- nested: "#edeff4",
45
+ well: "#f4f5fb",
46
+ nested: "#edeff5",
47
47
  overlay: "#ffffff",
48
48
  deepest: "#ffffff",
49
- hairline: "#c8c7d6",
50
- ink: "#2d2d2d",
51
- inkSecondary: "#3f3f3f",
52
- inkMuted: "#4c4c4c",
53
- accent: "#4c3fc6",
54
- accentHover: "#5a50d6",
49
+ hairline: "#c7c9ce",
50
+ ink: "#3f3f3f",
51
+ inkSecondary: "#505050",
52
+ inkMuted: "#5d5d5d",
53
+ accent: "#5f53cc",
54
+ accentHover: "#6f64d1",
55
55
  onAccent: "#ffffff",
56
- accentText: "#3c32e9",
57
- danger: "#b91c1c",
58
- successBg: "#ecfdf5",
59
- successBorder: "#a7f3d0",
60
- successText: "#047857",
61
- warningBg: "#fffbeb",
62
- warningBorder: "#fde68a",
63
- warningText: "#ab4f09",
64
- dangerBg: "#fff1f2",
65
- dangerBorder: "#fecdd3",
66
- dangerText: "#b91c1c",
67
- infoBg: "#f0f9ff",
68
- infoBorder: "#bae6fd",
69
- infoText: "#0369a1",
70
- brandVibrant: "#6366f1",
71
- brandCool: "#818cf8",
72
- brandGlow: "#3c32e9",
73
- brandPurple: "#6366f1",
56
+ accentText: "#3822f6",
57
+ danger: "#b01919",
58
+ successBg: "#f1f6f4",
59
+ successBorder: "#afcbc0",
60
+ successText: "#166745",
61
+ warningBg: "#f7f5f1",
62
+ warningBorder: "#d1c5b0",
63
+ warningText: "#775519",
64
+ dangerBg: "#faf1f1",
65
+ dangerBorder: "#e4b0b0",
66
+ dangerText: "#b01919",
67
+ infoBg: "#f1f5f8",
68
+ infoBorder: "#b1c8d6",
69
+ infoText: "#1c6085",
70
+ brandVibrant: "#6457db",
71
+ brandCool: "#8073f4",
72
+ brandGlow: "#3822f6",
73
+ brandPurple: "#7e6ff9",
74
74
  },
75
75
  dark: {
76
- canvas: "#0a0a14",
76
+ canvas: "#0b0a13",
77
77
  card: "#191826",
78
- well: "#11101e",
79
- nested: "#252237",
80
- overlay: "#312e47",
78
+ well: "#12111d",
79
+ nested: "#242335",
80
+ overlay: "#302f45",
81
81
  deepest: "#040408",
82
- hairline: "#37364a",
83
- ink: "#e6e6e6",
84
- inkSecondary: "#c7c7c7",
85
- inkMuted: "#b5b5b5",
86
- accent: "#4c3fc6",
87
- accentHover: "#5a50d6",
82
+ hairline: "#37354d",
83
+ ink: "#d7d7d7",
84
+ inkSecondary: "#bdbdbd",
85
+ inkMuted: "#ababab",
86
+ accent: "#5f53cc",
87
+ accentHover: "#6f64d1",
88
88
  onAccent: "#ffffff",
89
- accentText: "#a5b4fc",
90
- danger: "#ffada9",
91
- successBg: "#2f5146",
92
- successBorder: "#3c7760",
93
- successText: "#5ed7a4",
94
- warningBg: "#4b4232",
95
- warningBorder: "#7a6236",
96
- warningText: "#f4c14f",
97
- dangerBg: "#5a3b40",
98
- dangerBorder: "#7d4d53",
99
- dangerText: "#ffada9",
100
- infoBg: "#2d4e67",
101
- infoBorder: "#3d7292",
102
- infoText: "#67cdff",
103
- brandVibrant: "#7c6cf6",
104
- brandCool: "#818cf8",
105
- brandGlow: "#a5b4fc",
106
- brandPurple: "#c7d2fe",
89
+ accentText: "#ccc7fd",
90
+ danger: "#f9d6d6",
91
+ successBg: "#21342c",
92
+ successBorder: "#496b5d",
93
+ successText: "#a6eccf",
94
+ warningBg: "#362f22",
95
+ warningBorder: "#6e634f",
96
+ warningText: "#f0dcb8",
97
+ dangerBg: "#412a2a",
98
+ dangerBorder: "#785e5e",
99
+ dangerText: "#f9d6d6",
100
+ infoBg: "#243239",
101
+ infoBorder: "#546771",
102
+ infoText: "#c4e2f3",
103
+ brandVibrant: "#8c83e5",
104
+ brandCool: "#8073f4",
105
+ brandGlow: "#ccc7fd",
106
+ brandPurple: "#dedbfe",
107
107
  },
108
108
  websiteLight: {
109
- canvas: "#f5f5fb",
109
+ canvas: "#efeff8",
110
110
  card: "#ffffff",
111
- well: "#fafafd",
112
- nested: "#ececf6",
111
+ well: "#f7f7ff",
112
+ nested: "#eeeef7",
113
113
  overlay: "#ffffff",
114
114
  deepest: "#ffffff",
115
- hairline: "#dbdbea",
116
- ink: "#191c24",
117
- inkSecondary: "#3a3a50",
118
- inkMuted: "#5e5e7a",
119
- accent: "#4c3fc6",
120
- accentHover: "#5a50d6",
115
+ hairline: "#d0d0d9",
116
+ ink: "#3f3f3f",
117
+ inkSecondary: "#515151",
118
+ inkMuted: "#5d5d5d",
119
+ accent: "#5f53cc",
120
+ accentHover: "#6f64d1",
121
121
  onAccent: "#ffffff",
122
- accentText: "#3c32e9",
123
- danger: "#b91c1c",
124
- successBg: "#ecfdf5",
125
- successBorder: "#a7f3d0",
126
- successText: "#047857",
127
- warningBg: "#fffbeb",
128
- warningBorder: "#fde68a",
129
- warningText: "#ab4f09",
130
- dangerBg: "#fff1f2",
131
- dangerBorder: "#fecdd3",
132
- dangerText: "#b91c1c",
133
- infoBg: "#f0f9ff",
134
- infoBorder: "#bae6fd",
135
- infoText: "#0369a1",
136
- brandVibrant: "#6366f1",
137
- brandCool: "#818cf8",
138
- brandGlow: "#3c32e9",
139
- brandPurple: "#6366f1",
122
+ accentText: "#3822f6",
123
+ danger: "#b01919",
124
+ successBg: "#f1f6f4",
125
+ successBorder: "#afcbc0",
126
+ successText: "#166745",
127
+ warningBg: "#f7f5f1",
128
+ warningBorder: "#d1c5b0",
129
+ warningText: "#775519",
130
+ dangerBg: "#faf1f1",
131
+ dangerBorder: "#e4b0b0",
132
+ dangerText: "#b01919",
133
+ infoBg: "#f1f5f8",
134
+ infoBorder: "#b1c8d6",
135
+ infoText: "#1c6085",
136
+ brandVibrant: "#6457db",
137
+ brandCool: "#8073f4",
138
+ brandGlow: "#3822f6",
139
+ brandPurple: "#7e6ff9",
140
140
  },
141
141
  websiteDark: {
142
142
  canvas: "#0c0b1d",
143
- card: "#1d1b38",
144
- well: "#141328",
145
- nested: "#222041",
146
- overlay: "#262448",
147
- deepest: "#080814",
148
- hairline: "#33315f",
149
- ink: "#fdfdfd",
150
- inkSecondary: "#aaa8b8",
151
- inkMuted: "#9496bc",
152
- accent: "#4c3fc6",
153
- accentHover: "#5a50d6",
143
+ card: "#201e3e",
144
+ well: "#16142d",
145
+ nested: "#2b294f",
146
+ overlay: "#363462",
147
+ deepest: "#04040e",
148
+ hairline: "#403d72",
149
+ ink: "#e4e4e4",
150
+ inkSecondary: "#c8c8c8",
151
+ inkMuted: "#b6b6b6",
152
+ accent: "#5f53cc",
153
+ accentHover: "#6f64d1",
154
154
  onAccent: "#ffffff",
155
- accentText: "#a5b4fc",
156
- danger: "#ffada9",
157
- successBg: "#2f5146",
158
- successBorder: "#3c7760",
159
- successText: "#5ed7a4",
160
- warningBg: "#4b4232",
161
- warningBorder: "#7a6236",
162
- warningText: "#f4c14f",
163
- dangerBg: "#5a3b40",
164
- dangerBorder: "#7d4d53",
165
- dangerText: "#ffada9",
166
- infoBg: "#2d4e67",
167
- infoBorder: "#3d7292",
168
- infoText: "#67cdff",
169
- brandVibrant: "#7c6cf6",
170
- brandCool: "#818cf8",
171
- brandGlow: "#a5b4fc",
172
- brandPurple: "#c7d2fe",
155
+ accentText: "#ccc7fd",
156
+ danger: "#f9d6d6",
157
+ successBg: "#21342c",
158
+ successBorder: "#496b5d",
159
+ successText: "#a6eccf",
160
+ warningBg: "#362f22",
161
+ warningBorder: "#6e634f",
162
+ warningText: "#f0dcb8",
163
+ dangerBg: "#412a2a",
164
+ dangerBorder: "#785e5e",
165
+ dangerText: "#f9d6d6",
166
+ infoBg: "#243239",
167
+ infoBorder: "#546771",
168
+ infoText: "#c4e2f3",
169
+ brandVibrant: "#8c83e5",
170
+ brandCool: "#8073f4",
171
+ brandGlow: "#ccc7fd",
172
+ brandPurple: "#dedbfe",
173
173
  },
174
174
  } as const satisfies Record<string, BrandPalette>;
@@ -20,6 +20,7 @@ const SURFACES = [
20
20
  ["canvas", "hsl-background"],
21
21
  ["card", "hsl-card"],
22
22
  ["muted", "hsl-muted"],
23
+ ["popover", "hsl-popover"],
23
24
  ] as const;
24
25
 
25
26
  describe("accent text reads on the selected tint in every theme scope", () => {
@@ -27,7 +28,9 @@ describe("accent text reads on the selected tint in every theme scope", () => {
27
28
  it(name, () => {
28
29
  const accentText = resolve(sources, "accent-text");
29
30
  const primary = resolve(sources, "hsl-primary");
30
- for (const [surfaceName, token] of SURFACES) {
31
+ const raised = sources.some((source) => source.includes("--hsl-raised-2:"))
32
+ ? [["highest nested card", "hsl-raised-2"] as const] : [];
33
+ for (const [surfaceName, token] of [...SURFACES, ...raised]) {
31
34
  const surface = resolve(sources, token);
32
35
  for (const alpha of TINTS) {
33
36
  const tint = compositeOver(primary, surface, alpha);