Skip to content

Commit aa99217

Browse files
fix(theme): revert unintended change
1 parent f34e6f7 commit aa99217

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

lib/theme/colors.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,8 @@ const brandColors = {
6060
invokeRed: { H: 16, S: 92 },
6161
};
6262

63-
export const getArbitraryBrandColor = (
64-
colorScheme: keyof typeof brandColors,
65-
lightness: number,
66-
saturationPct: number = 1
67-
) => `hsl(${brandColors[colorScheme].H} ${brandColors[colorScheme].S * saturationPct}% ${lightness}%)`;
63+
export const getArbitraryBaseColor = (lightness: number) =>
64+
`hsl(${brandColors.base.H} ${brandColors.base.S}% ${lightness}%)`;
6865

6966
export const colors: ThemeColors = {
7067
base: generateColorPalette(brandColors.base.H, brandColors.base.S),

lib/theme/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export { spinAnimation } from './animations';
2-
export * from './colors';
2+
export { getArbitraryBaseColor } from './colors';
33
export { theme, TOAST_OPTIONS } from './theme';

vite.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ export default defineConfig({
1414
'lib/theme/animation.ts',
1515
'lib/theme/radii.ts',
1616
'lib/theme/space.ts',
17-
'lib/theme/colors.ts',
1817
'lib/theme/layers.ts',
1918
],
2019
}),

0 commit comments

Comments
 (0)