Skip to content

Commit

Permalink
added 2 more custom colors
Browse files Browse the repository at this point in the history
  • Loading branch information
manojleaton committed Dec 5, 2023
1 parent 2143306 commit 0f78156
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions src/blueDarkTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const MD3BluiDarkTheme = {
surfaceVariant: BLUIColors.neutralVariant[30],
onSurfaceVariant: BLUIColors.neutralVariant[70],
outline: BLUIColors.neutralVariant[60],
outlineVariant: Color(BLUIColors.neutralVariant[60]).alpha(0.25),
outlineVariant: Color(BLUIColors.neutralVariant[60]).alpha(0.25).rgb().string(),
shadow: BLUIColors.primary[0],
scrim: BLUIColors.primary[0],
inverseSurface: BLUIColors.neutral[90],
Expand All @@ -61,7 +61,7 @@ export const MD3BluiDarkTheme = {
// Attention-grabbing error color can be used on non-text elements like icons, which communicate error states
errorNonText: BLUIColors.error[60],
// variant used to render disabled elements
disabled: Color(BLUIColors.neutral[90]).alpha(0.2),
disabled: Color(BLUIColors.neutral[90]).alpha(0.2).rgb().string(),
// warning variant fills, texts, and icons which communicate warning states
warning: BLUIColors.warning[90],
// can be used on non-text warning elements like icons
Expand Down Expand Up @@ -113,5 +113,8 @@ export const MD3BluiDarkTheme = {
surfaceContainerHigh: BLUIColors.neutral[17],
// Highest-emphasis container color
surfaceContainerHighest: BLUIColors.neutral[20],

onDisabledContainer: Color(BLUIColors.neutral[10]).alpha(0.25).rgb().string(),
disabledContainer: Color(BLUIColors.neutral[10]).alpha(0.05).rgb().string(),
},
};
7 changes: 5 additions & 2 deletions src/blueTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const MD3BluiLightTheme = {
surfaceVariant: BLUIColors.neutralVariant[90],
onSurfaceVariant: BLUIColors.neutralVariant[30],
outline: BLUIColors.neutralVariant[50],
outlineVariant: Color(BLUIColors.neutralVariant[50]).alpha(0.25),
outlineVariant: Color(BLUIColors.neutralVariant[50]).alpha(0.25).rgb().string(),
shadow: BLUIColors.primary[0],
scrim: BLUIColors.primary[0],
inverseSurface: BLUIColors.neutral[20],
Expand All @@ -61,7 +61,7 @@ export const MD3BluiLightTheme = {
// Attention-grabbing error color can be used on non-text elements like icons, which communicate error states
errorNonText: BLUIColors.error[50],
// variant used to render disabled elements
disabled: Color(BLUIColors.neutral[10]).alpha(0.2),
disabled: Color(BLUIColors.neutral[10]).alpha(0.2).rgb().string(),
// warning variant fills, texts, and icons which communicate warning states
warning: BLUIColors.warning[40],
// can be used on non-text warning elements like icons
Expand Down Expand Up @@ -113,5 +113,8 @@ export const MD3BluiLightTheme = {
surfaceContainerHigh: BLUIColors.neutral[92],
// Highest-emphasis container color
surfaceContainerHighest: BLUIColors.neutral[90],

onDisabledContainer: Color(BLUIColors.neutral[10]).alpha(0.25).rgb().string(),
disabledContainer: Color(BLUIColors.neutral[10]).alpha(0.05).rgb().string(),
},
};

0 comments on commit 0f78156

Please sign in to comment.