Skip to content

Commit 4060a72

Browse files
Afriq Yasin RamadhanAfriq Yasin Ramadhan
authored andcommitted
feat(foundation): add dim alpha background for overlay or backdrop
1 parent a5d0fae commit 4060a72

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/tailwind-preset/index.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,12 @@ module.exports = {
233233
DEFAULT : theme.colors.red[0],
234234
emphasis: theme.colors.red[40],
235235
},
236+
'dim': {
237+
subtle : `rgba(${theme.colors.gray[100]}, ${theme.opacity[10]})`,
238+
default : `rgba(${theme.colors.gray[100]}, ${theme.opacity[30]})`,
239+
DEFAULT : `rgba(${theme.colors.gray[100]}, ${theme.opacity[30]})`,
240+
emphasis: `rgba(${theme.colors.gray[100]}, ${theme.opacity[80]})`,
241+
},
236242
'dark': {
237243
'base' : theme.colors.gray[100],
238244
'ground' : theme.colors.gray[90],
@@ -265,6 +271,12 @@ module.exports = {
265271
DEFAULT : theme.colors.red[90],
266272
emphasis: theme.colors.red[30],
267273
},
274+
'dim': {
275+
subtle : `rgba(${theme.colors.gray[100]}, ${theme.opacity[10]})`,
276+
default : `rgba(${theme.colors.gray[100]}, ${theme.opacity[30]})`,
277+
DEFAULT : `rgba(${theme.colors.gray[100]}, ${theme.opacity[30]})`,
278+
emphasis: `rgba(${theme.colors.gray[100]}, ${theme.opacity[80]})`,
279+
},
268280
},
269281
},
270282
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%)' },

0 commit comments

Comments
 (0)