Skip to content

Commit 0b46eca

Browse files
committed
chore: create featureStage branding namespace
1 parent eb2b1c2 commit 0b46eca

File tree

5 files changed

+81
-18
lines changed

5 files changed

+81
-18
lines changed

site/src/components/FeatureStageBadge/FeatureStageBadge.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,18 @@ const styles = {
3131
padding: "4px 8px",
3232
lineHeight: 1,
3333
whiteSpace: "nowrap",
34-
border: `1px solid ${theme.roles.preview.outline}`,
35-
color: theme.roles.preview.text,
36-
backgroundColor: theme.roles.preview.background,
34+
border: `1px solid ${theme.branding.featureStage.border}`,
35+
color: theme.branding.featureStage.text,
36+
backgroundColor: theme.branding.featureStage.background,
3737
borderRadius: "6px",
3838
transition:
3939
"color 0.2s ease-in-out, border-color 0.2s ease-in-out, background-color 0.2s ease-in-out",
4040
}),
4141

4242
badgeHover: (theme) => ({
43-
color: theme.roles.preview.hover.text,
44-
borderColor: theme.roles.preview.hover.outline,
45-
backgroundColor: theme.roles.preview.hover.background,
43+
color: theme.branding.featureStage.hover.text,
44+
borderColor: theme.branding.featureStage.hover.border,
45+
backgroundColor: theme.branding.featureStage.hover.background,
4646
}),
4747

4848
badgeLargeText: {

site/src/theme/branding.ts

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,29 @@
1-
export interface Branding {
2-
enterprise: {
1+
export type Branding = Readonly<{
2+
enterprise: Readonly<{
33
background: string;
44
divider: string;
55
border: string;
66
text: string;
7-
};
8-
premium: {
7+
}>;
8+
9+
premium: Readonly<{
910
background: string;
1011
divider: string;
1112
border: string;
1213
text: string;
13-
};
14-
}
14+
}>;
15+
16+
featureStage: Readonly<{
17+
background: string;
18+
divider: string;
19+
border: string;
20+
text: string;
21+
22+
hover: Readonly<{
23+
background: string;
24+
divider: string;
25+
border: string;
26+
text: string;
27+
}>;
28+
}>;
29+
}>;

site/src/theme/dark/branding.ts

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Branding } from "../branding";
22
import colors from "../tailwindColors";
33

4-
export default {
4+
export const branding: Branding = {
55
enterprise: {
66
background: colors.blue[950],
77
divider: colors.blue[900],
@@ -14,4 +14,20 @@ export default {
1414
border: colors.violet[400],
1515
text: colors.violet[50],
1616
},
17-
} satisfies Branding;
17+
18+
featureStage: {
19+
background: colors.sky[950],
20+
divider: colors.sky[900],
21+
border: colors.sky[400],
22+
text: colors.sky[400],
23+
24+
hover: {
25+
background: colors.zinc[950],
26+
divider: colors.zinc[900],
27+
border: colors.sky[400],
28+
text: colors.sky[400],
29+
},
30+
},
31+
};
32+
33+
export default branding;

site/src/theme/darkBlue/branding.ts

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Branding } from "../branding";
22
import colors from "../tailwindColors";
33

4-
export default {
4+
export const branding: Branding = {
55
enterprise: {
66
background: colors.blue[950],
77
divider: colors.blue[900],
@@ -14,4 +14,20 @@ export default {
1414
border: colors.violet[400],
1515
text: colors.violet[50],
1616
},
17-
} satisfies Branding;
17+
18+
featureStage: {
19+
background: colors.sky[900],
20+
divider: colors.sky[800],
21+
border: colors.sky[400],
22+
text: colors.sky[400],
23+
24+
hover: {
25+
background: colors.gray[900],
26+
divider: colors.gray[800],
27+
border: colors.sky[400],
28+
text: colors.sky[400],
29+
},
30+
},
31+
};
32+
33+
export default branding;

site/src/theme/light/branding.ts

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Branding } from "../branding";
22
import colors from "../tailwindColors";
33

4-
export default {
4+
export const branding: Branding = {
55
enterprise: {
66
background: colors.blue[100],
77
divider: colors.blue[300],
@@ -14,4 +14,20 @@ export default {
1414
border: colors.violet[600],
1515
text: colors.violet[950],
1616
},
17-
} satisfies Branding;
17+
18+
featureStage: {
19+
background: colors.sky[50],
20+
divider: colors.sky[100],
21+
border: colors.sky[700],
22+
text: colors.sky[700],
23+
24+
hover: {
25+
background: colors.white,
26+
divider: colors.zinc[100],
27+
border: colors.sky[700],
28+
text: colors.sky[700],
29+
},
30+
},
31+
};
32+
33+
export default branding;

0 commit comments

Comments
 (0)