Take the 2-minute tour ×
Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. It's 100% free, no registration required.

How do I set the fill of a rectangle to be 50% opacity, but keep the stroke at full opacity? The transparency panel controls both fill and stroke. I want to set them independently.

share|improve this question

4 Answers 4

up vote 5 down vote accepted

or you can just go native way :D

enter image description here

share|improve this answer
I feel silly now. –  Joonas Oct 27 '11 at 21:03
:) dont, there are lots of stuff that i do with some strange workarounds in both illustrator and photoshop... –  Damjan Stankovic Oct 27 '11 at 21:12
Wow. Nice :] I didn't know that! –  Johannes Oct 28 '11 at 2:14
  1. Make rectangle with a fill and with the opacity you want, but without a stroke.
  2. Copy that rectangle in the same spot Ctrl+C and Ctrl+F remove fill color and add stroke color, then give it the opacity you want.

This would give you the flexibility you want.

The end result:

enter image description here

Note that i took the stroke panel image while having another box selected so the weight is a bit off.

You might want to group these boxes ( Of course after grouping them you can still edit them separately by double clicking them and going to isolation mode. )

share|improve this answer

While I have no direct answer, I do have a work-around:

1)Select your shape, then go...

enter image description here

2) This box will pop-up, make sure you have both fill and stroke checked off. Click OK. enter image description here

3) Right-click and ungroup your shape - -you should now be able to adjust fill and stroke* individually. enter image description here

*Your stroke isn't actually a stroke anymore, it is now a shape!

share|improve this answer
That's very hacky. I wouldn't be able to change the stroke thickness in case I need to in the future. –  JoJo Oct 27 '11 at 3:03
Which is why it's merely a workaround. I'm sorry I can't offer you a better solution, I'm sure someone else has one though, just be patient :] –  Johannes Oct 27 '11 at 3:34

easiest way for me: draw a box, set it to the desired transparency, set it to the side out of artboard, then draw your box, set the stroke to desired color and point, then when you set your fill color, just use the color picker (eyedropper tool) and choose the color from your previous box. You will then have your box with desired opaque stroke and your fill will be set to desired transparency. You can then delete the box that was set off to the side.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.