Clojurians
# css

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

reefersleep 21:08:02

Hello everyone :slightly_smiling_face: I was wondering if there is a way to add pseudoclass attributes to hiccup elements in a Reagent project?

reefersleep 21:11:45

I have a .css file in my project that I would really like to get rid of, or minimize as much as possible, in favour of styles inlined in Reagent components.

niamu 21:29:53

pseudoclasses can’t be added to HTML elements, but you could add inline styles with <style> and add the pseudoclass there.

reefersleep 21:56:48

Hm. Too bad... But thank you for the pointer that can help me get rid of the .css file entirely! :slightly_smiling_face:

niamu 21:57:43

No problem :slightly_smiling_face: