Skip to content

Commit acc59f9

Browse files
committed
dev-demo: primary buttons follow the brand color through button aliases in both themes AdminForth/2005
1 parent 3cea7b8 commit acc59f9

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

‎dev-demo/index.ts‎

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,16 @@ export const admin = new AdminForth({
106106
styles:{
107107
colors: {
108108
light: {
109-
// color for buttons, links, etc.
109+
// color for links, focus rings and other accents
110110
primary: '#16537e',
111+
// the action buttons follow the brand color instead of ink
112+
buttons: {
113+
// background: 'alias:lightPrimary',
114+
// border: 'alias:lightPrimary',
115+
// hover: 'alias:lightPrimary darken',
116+
// borderHover: 'alias:lightPrimary darken',
117+
// text: 'alias:lightPrimary inverse',
118+
},
111119
// color for sidebar and text
112120
sidebar: {
113121
main:'#232323',
@@ -126,6 +134,13 @@ export const admin = new AdminForth({
126134
},
127135
announcementBG: '#262626',
128136
announcementText: '#E5E5E5',
137+
buttons: {
138+
background: 'alias:darkPrimary',
139+
border: 'alias:darkPrimary',
140+
hover: 'alias:darkPrimary darken',
141+
borderHover: 'alias:darkPrimary darken',
142+
text: 'alias:darkPrimary inverse',
143+
},
129144
}
130145
}
131146
}

0 commit comments

Comments
 (0)