Skip to content

Commit

Permalink
feat(foundation): add dim alpha background for overlay or backdrop
Browse files Browse the repository at this point in the history
  • Loading branch information
Afriq Yasin Ramadhan authored and Afriq Yasin Ramadhan committed Nov 20, 2024
1 parent a5d0fae commit 4060a72
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/tailwind-preset/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,12 @@ module.exports = {
DEFAULT : theme.colors.red[0],
emphasis: theme.colors.red[40],
},
'dim': {
subtle : `rgba(${theme.colors.gray[100]}, ${theme.opacity[10]})`,
default : `rgba(${theme.colors.gray[100]}, ${theme.opacity[30]})`,
DEFAULT : `rgba(${theme.colors.gray[100]}, ${theme.opacity[30]})`,
emphasis: `rgba(${theme.colors.gray[100]}, ${theme.opacity[80]})`,
},
'dark': {
'base' : theme.colors.gray[100],
'ground' : theme.colors.gray[90],
Expand Down Expand Up @@ -265,6 +271,12 @@ module.exports = {
DEFAULT : theme.colors.red[90],
emphasis: theme.colors.red[30],
},
'dim': {
subtle : `rgba(${theme.colors.gray[100]}, ${theme.opacity[10]})`,
default : `rgba(${theme.colors.gray[100]}, ${theme.opacity[30]})`,
DEFAULT : `rgba(${theme.colors.gray[100]}, ${theme.opacity[30]})`,
emphasis: `rgba(${theme.colors.gray[100]}, ${theme.opacity[80]})`,
},
},
},
backgroundImage: { 'gradient-maroon-to-dark-red': 'linear-gradient(90deg, #37162E 0%, #482041 43.68%, #492143 55.03%, #52213F 64.67%, #58213C 76.02%, #912121 113.46%)' },
Expand Down

0 comments on commit 4060a72

Please sign in to comment.