In ~/.config/i3/config modify the line that calls dmenu:
bindsym $mod+d exec "rofi -show drun -config /path/where/you/put/theme.rasi"
/**
*
* theme.rasi
*
* rofi -dump-theme output.
* Rofi version: 1.7.1
**/
* {
red: rgba ( 220, 50, 47, 100 % );
selected-active-foreground: rgba ( 128, 203, 196, 100 % );
lightfg: rgba ( 88, 104, 117, 100 % );
separatorcolor: rgba ( 30, 37, 41, 100 % );
urgent-foreground: rgba ( 255, 24, 68, 100 % );
alternate-urgent-background: rgba ( 39, 50, 56, 100 % );
lightbg: rgba ( 238, 232, 213, 100 % );
background-color: transparent;
border-color: var(foreground);
normal-background: rgba ( 39, 50, 56, 100 % );
bordercolor: rgba ( 39, 50, 56, 100 % );
alternate-active-background: rgba ( 39, 50, 56, 100 % );
active-foreground: rgba ( 128, 203, 196, 100 % );
blue: rgba ( 38, 139, 210, 100 % );
alternate-normal-foreground: var(foreground);
urgent-background: rgba ( 39, 50, 56, 100 % );
selected-normal-foreground: White;
selected-active-background: rgba ( 57, 66, 73, 100 % );
background: rgba ( 39, 50, 56, 100 % );
selected-urgent-background: rgba ( 57, 66, 73, 100 % );
active-background: rgba ( 39, 50, 56, 100 % );
alternate-active-foreground: var(active-foreground);
alternate-normal-background: rgba ( 39, 50, 56, 100 % );
foreground: rgba ( 193, 193, 193, 100 % );
alternate-urgent-foreground: var(urgent-foreground);
selected-urgent-foreground: rgba ( 255, 24, 68, 100 % );
spacing: 2;
normal-foreground: var(foreground);
selected-normal-background: rgba ( 57, 66, 73, 100 % );
}
window {
padding: 15;
background-color: var(background);
border: 1;
border-radius: 20px;
}
mainbox {
padding: 0;
border: 0;
}
message {
padding: 1px ;
border-color: var(separatorcolor);
border: 1px dash 0px 0px ;
}
textbox {
text-color: var(foreground);
}
listview {
padding: 10px 0px 0px 0px ;
scrollbar: true;
border-color: var(separatorcolor);
spacing: 2px ;
fixed-height: 0;
border: 2px dash 0px 0px ;
}
element {
padding: 1px ;
border: 0;
}
element normal.normal {
background-color: var(normal-background);
text-color: var(normal-foreground);
}
element normal.urgent {
background-color: var(urgent-background);
text-color: var(urgent-foreground);
}
element normal.active {
background-color: var(active-background);
text-color: var(active-foreground);
}
element selected.normal {
background-color: var(selected-normal-background);
text-color: var(selected-normal-foreground);
}
element selected.urgent {
background-color: var(selected-urgent-background);
text-color: var(selected-urgent-foreground);
}
element selected.active {
background-color: var(selected-active-background);
text-color: var(selected-active-foreground);
}
element alternate.normal {
background-color: var(alternate-normal-background);
text-color: var(alternate-normal-foreground);
}
element alternate.urgent {
background-color: var(alternate-urgent-background);
text-color: var(alternate-urgent-foreground);
}
element alternate.active {
background-color: var(alternate-active-background);
text-color: var(alternate-active-foreground);
}
element-text {
background-color: inherit;
text-color: inherit;
}
scrollbar {
width: 4px ;
padding: 0;
handle-width: 8px ;
border: 0;
}
mode-switcher {
border-color: var(separatorcolor);
border: 2px dash 0px 0px ;
}
button selected {
background-color: var(selected-normal-background);
text-color: var(selected-normal-foreground);
}
inputbar {
padding: 1px ;
spacing: 0;
text-color: var(normal-foreground);
children: [ prompt,textbox-prompt-colon,entry,case-indicator ];
}
case-indicator {
spacing: 0;
text-color: var(normal-foreground);
}
entry {
spacing: 0;
text-color: var(normal-foreground);
}
prompt {
spacing: 0;
text-color: var(normal-foreground);
margin: 0 0 5px 0;
}
textbox-prompt-colon {
margin: 0px;
expand: false;
str: ": ";
text-color: var(normal-foreground);
}