Skip to content

Commit d512272

Browse files
Afriq Yasin RamadhanAfriq Yasin Ramadhan
authored andcommitted
feat(foundation): add new inverse background family member eg. on-inverse and on-inverse-subtle
1 parent 4abfa46 commit d512272

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

packages/tailwind-preset/index.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,12 @@ module.exports = {
177177
DEFAULT: theme.colors.gray[0],
178178
alpha : `rgba(${theme.colors.gray[50]}, ${theme.opacity[5]})`,
179179
},
180-
'inverse': theme.colors.gray[100],
181-
'subtle' : {
180+
'inverse' : theme.colors.gray[100],
181+
'on-inverse': {
182+
DEFAULT: theme.colors.gray[90],
183+
subtle : theme.colors.gray[80],
184+
},
185+
'subtle': {
182186
DEFAULT: theme.colors.gray[10],
183187
alpha : `rgba(${theme.colors.gray[80]}, ${theme.opacity[10]})`,
184188
},
@@ -207,8 +211,12 @@ module.exports = {
207211
DEFAULT: theme.colors.gray[95],
208212
alpha : `rgba(${theme.colors.gray[80]}, ${theme.opacity[10]})`,
209213
},
210-
'inverse': theme.colors.gray[0],
211-
'subtle' : {
214+
'inverse' : theme.colors.gray[0],
215+
'on-inverse': {
216+
DEFAULT: theme.colors.gray[10],
217+
subtle : theme.colors.gray[20],
218+
},
219+
'subtle': {
212220
DEFAULT: theme.colors.gray[90],
213221
alpha : `rgba(${theme.colors.gray[20]}, ${theme.opacity[10]})`,
214222
},

0 commit comments

Comments
 (0)