Skip to content

Commit 4c25c65

Browse files
committed
feat: add experimental pill colors
1 parent a5321e3 commit 4c25c65

File tree

5 files changed

+29
-6
lines changed

5 files changed

+29
-6
lines changed

site/src/pages/ManagementSettingsPage/CustomRolesPage/PermissionPillsList.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ const OverflowPermissionPill: FC<OverflowPermissionPillProps> = ({
129129

130130
const styles = {
131131
permissionPill: (theme) => ({
132-
backgroundColor: theme.roles.default.background,
133-
borderColor: theme.roles.default.outline,
134-
color: theme.roles.default.text,
132+
backgroundColor: theme.experimental.pill.background,
133+
borderColor: theme.experimental.pill.outline,
134+
color: theme.experimental.pill.text,
135135
width: "fit-content",
136136
}),
137137
} satisfies Record<string, Interpolation<Theme>>;

site/src/theme/dark/experimental.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,10 @@ export default {
4343
},
4444
},
4545
},
46+
47+
pill: {
48+
background: colors.zinc[800],
49+
outline: colors.zinc[700],
50+
text: colors.zinc[200],
51+
},
4652
} satisfies NewTheme;

site/src/theme/darkBlue/experimental.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,10 @@ export default {
4343
},
4444
},
4545
},
46+
47+
pill: {
48+
background: colors.gray[800],
49+
outline: colors.gray[700],
50+
text: colors.gray[200],
51+
},
4652
} satisfies NewTheme;

site/src/theme/experimental.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
import type { ColorRole, InteractiveColorRole } from "./colorRoles";
1+
import type { Role, InteractiveRole } from "./roles";
22

33
export interface NewTheme {
4-
l1: ColorRole; // page background, things which sit at the "root level"
5-
l2: InteractiveColorRole; // sidebars, table headers, navigation
4+
l1: Role; // page background, things which sit at the "root level"
5+
l2: InteractiveRole; // sidebars, table headers, navigation
6+
pill: {
7+
background: string;
8+
outline: string;
9+
text: string;
10+
};
611
}

site/src/theme/light/experimental.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,10 @@ export default {
4343
},
4444
},
4545
},
46+
47+
pill: {
48+
background: colors.zinc[200],
49+
outline: colors.zinc[300],
50+
text: colors.zinc[700],
51+
},
4652
} satisfies NewTheme;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy