@tangle-network/brand 1.31.0 → 1.31.2
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/CHANGELOG.md +12 -0
- package/README.md +3 -2
- package/bin/drift-baseline.json +15 -13
- package/dist/index.d.ts +111 -111
- package/dist/index.js +111 -111
- package/package.json +1 -1
- package/src/palette.generated.ts +111 -111
- package/src/styles/accent-on-tint.test.ts +4 -1
- package/src/styles/legacy-light.css +1104 -1032
- package/src/styles/named-themes.css +298 -597
- package/src/styles/surface-ladder.test.ts +9 -24
- package/src/styles/system.css +52 -52
- package/src/styles/theme-scopes.ts +12 -21
- package/src/styles/tokens.css +450 -939
- package/src/styles/tokens.test.ts +38 -17
package/src/palette.generated.ts
CHANGED
|
@@ -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: "#
|
|
43
|
+
canvas: "#eceef4",
|
|
44
44
|
card: "#ffffff",
|
|
45
|
-
well: "#
|
|
46
|
-
nested: "#
|
|
45
|
+
well: "#f4f5fb",
|
|
46
|
+
nested: "#edeff5",
|
|
47
47
|
overlay: "#ffffff",
|
|
48
48
|
deepest: "#ffffff",
|
|
49
|
-
hairline: "#
|
|
50
|
-
ink: "#
|
|
51
|
-
inkSecondary: "#
|
|
52
|
-
inkMuted: "#
|
|
53
|
-
accent: "#
|
|
54
|
-
accentHover: "#
|
|
49
|
+
hairline: "#c7c9ce",
|
|
50
|
+
ink: "#3f3f3f",
|
|
51
|
+
inkSecondary: "#505050",
|
|
52
|
+
inkMuted: "#5d5d5d",
|
|
53
|
+
accent: "#5f53cc",
|
|
54
|
+
accentHover: "#6f64d1",
|
|
55
55
|
onAccent: "#ffffff",
|
|
56
|
-
accentText: "#
|
|
57
|
-
danger: "#
|
|
58
|
-
successBg: "#
|
|
59
|
-
successBorder: "#
|
|
60
|
-
successText: "#
|
|
61
|
-
warningBg: "#
|
|
62
|
-
warningBorder: "#
|
|
63
|
-
warningText: "#
|
|
64
|
-
dangerBg: "#
|
|
65
|
-
dangerBorder: "#
|
|
66
|
-
dangerText: "#
|
|
67
|
-
infoBg: "#
|
|
68
|
-
infoBorder: "#
|
|
69
|
-
infoText: "#
|
|
70
|
-
brandVibrant: "#
|
|
71
|
-
brandCool: "#
|
|
72
|
-
brandGlow: "#
|
|
73
|
-
brandPurple: "#
|
|
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: "#
|
|
76
|
+
canvas: "#0b0a13",
|
|
77
77
|
card: "#191826",
|
|
78
|
-
well: "#
|
|
79
|
-
nested: "#
|
|
80
|
-
overlay: "#
|
|
78
|
+
well: "#12111d",
|
|
79
|
+
nested: "#242335",
|
|
80
|
+
overlay: "#302f45",
|
|
81
81
|
deepest: "#040408",
|
|
82
|
-
hairline: "#
|
|
83
|
-
ink: "#
|
|
84
|
-
inkSecondary: "#
|
|
85
|
-
inkMuted: "#
|
|
86
|
-
accent: "#
|
|
87
|
-
accentHover: "#
|
|
82
|
+
hairline: "#37354d",
|
|
83
|
+
ink: "#d7d7d7",
|
|
84
|
+
inkSecondary: "#bdbdbd",
|
|
85
|
+
inkMuted: "#ababab",
|
|
86
|
+
accent: "#5f53cc",
|
|
87
|
+
accentHover: "#6f64d1",
|
|
88
88
|
onAccent: "#ffffff",
|
|
89
|
-
accentText: "#
|
|
90
|
-
danger: "#
|
|
91
|
-
successBg: "#
|
|
92
|
-
successBorder: "#
|
|
93
|
-
successText: "#
|
|
94
|
-
warningBg: "#
|
|
95
|
-
warningBorder: "#
|
|
96
|
-
warningText: "#
|
|
97
|
-
dangerBg: "#
|
|
98
|
-
dangerBorder: "#
|
|
99
|
-
dangerText: "#
|
|
100
|
-
infoBg: "#
|
|
101
|
-
infoBorder: "#
|
|
102
|
-
infoText: "#
|
|
103
|
-
brandVibrant: "#
|
|
104
|
-
brandCool: "#
|
|
105
|
-
brandGlow: "#
|
|
106
|
-
brandPurple: "#
|
|
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: "#
|
|
109
|
+
canvas: "#efeff8",
|
|
110
110
|
card: "#ffffff",
|
|
111
|
-
well: "#
|
|
112
|
-
nested: "#
|
|
111
|
+
well: "#f7f7ff",
|
|
112
|
+
nested: "#eeeef7",
|
|
113
113
|
overlay: "#ffffff",
|
|
114
114
|
deepest: "#ffffff",
|
|
115
|
-
hairline: "#
|
|
116
|
-
ink: "#
|
|
117
|
-
inkSecondary: "#
|
|
118
|
-
inkMuted: "#
|
|
119
|
-
accent: "#
|
|
120
|
-
accentHover: "#
|
|
115
|
+
hairline: "#d0d0d9",
|
|
116
|
+
ink: "#3f3f3f",
|
|
117
|
+
inkSecondary: "#515151",
|
|
118
|
+
inkMuted: "#5d5d5d",
|
|
119
|
+
accent: "#5f53cc",
|
|
120
|
+
accentHover: "#6f64d1",
|
|
121
121
|
onAccent: "#ffffff",
|
|
122
|
-
accentText: "#
|
|
123
|
-
danger: "#
|
|
124
|
-
successBg: "#
|
|
125
|
-
successBorder: "#
|
|
126
|
-
successText: "#
|
|
127
|
-
warningBg: "#
|
|
128
|
-
warningBorder: "#
|
|
129
|
-
warningText: "#
|
|
130
|
-
dangerBg: "#
|
|
131
|
-
dangerBorder: "#
|
|
132
|
-
dangerText: "#
|
|
133
|
-
infoBg: "#
|
|
134
|
-
infoBorder: "#
|
|
135
|
-
infoText: "#
|
|
136
|
-
brandVibrant: "#
|
|
137
|
-
brandCool: "#
|
|
138
|
-
brandGlow: "#
|
|
139
|
-
brandPurple: "#
|
|
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: "#
|
|
144
|
-
well: "#
|
|
145
|
-
nested: "#
|
|
146
|
-
overlay: "#
|
|
147
|
-
deepest: "#
|
|
148
|
-
hairline: "#
|
|
149
|
-
ink: "#
|
|
150
|
-
inkSecondary: "#
|
|
151
|
-
inkMuted: "#
|
|
152
|
-
accent: "#
|
|
153
|
-
accentHover: "#
|
|
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: "#
|
|
156
|
-
danger: "#
|
|
157
|
-
successBg: "#
|
|
158
|
-
successBorder: "#
|
|
159
|
-
successText: "#
|
|
160
|
-
warningBg: "#
|
|
161
|
-
warningBorder: "#
|
|
162
|
-
warningText: "#
|
|
163
|
-
dangerBg: "#
|
|
164
|
-
dangerBorder: "#
|
|
165
|
-
dangerText: "#
|
|
166
|
-
infoBg: "#
|
|
167
|
-
infoBorder: "#
|
|
168
|
-
infoText: "#
|
|
169
|
-
brandVibrant: "#
|
|
170
|
-
brandCool: "#
|
|
171
|
-
brandGlow: "#
|
|
172
|
-
brandPurple: "#
|
|
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
|
-
|
|
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);
|