Skip to content
Discussion options

You must be logged in to vote

Emulating CSS groove/ridge borders in Rofi (.rasi)

Since Rofi's .rasi format does not natively support the groove or ridge border styles found in CSS, you can emulate the 3D effect by leveraging Rofi's ability to color each side of a border independently.

In CSS, groove and ridge effects are essentially just 2-pixel borders where the colors are inverted on the inner and outer halves to simulate lighting/depth. In Rofi, we can achieve this by using two nested elements (like window and mainbox) or by using the specific border-color syntax.

Option 1: The "Simple 3D" Effect (Pseudo-Ridge)

You can simulate a 3D "raised" look on any element by setting different colors for the top/left (highligh…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@voidscripty
Comment options

Comment options

You must be logged in to vote
1 reply
@aDevBilly
Comment options

Answer selected by bzz-bee
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants