<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Best practice for theming Alloy UI components</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=13876277" />
  <subtitle>Best practice for theming Alloy UI components</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=13876277</id>
  <updated>2026-06-11T20:23:53Z</updated>
  <dc:date>2026-06-11T20:23:53Z</dc:date>
  <entry>
    <title>Best practice for theming Alloy UI components</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=13876276" />
    <author>
      <name>Florian Brandel</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=13876276</id>
    <updated>2012-05-10T16:30:20Z</updated>
    <published>2012-05-10T16:30:20Z</published>
    <summary type="html">Hi,&lt;br /&gt;&lt;br /&gt;I would like to theme some of the AUI elements such as forms, buttons, dialogs etc. &lt;br /&gt;Overwriting the classes in custom.css works just fine, but the styles are also applied to the administraton popups when editing the portlets.&lt;br /&gt;&lt;br /&gt;Are there any best practices how to achieve a custom style without changing the &amp;#34;admin style&amp;#34;? &lt;br /&gt;Concerning forms, I want that all Web Form Portlets have my custom style as well as all other portlets in which I add AUI form components. But all admin controls should stay the same.&lt;br /&gt;&lt;br /&gt;Solutions I would think of:&lt;br /&gt;1. Prefixing all custom aui-classes with &lt;em&gt;.portlet&lt;/em&gt; so the style is only used within portlets&lt;br /&gt;2. Prefixing all custom aui-classes with a special class which is then added manually on every portlet or element where it is needed&lt;br /&gt;3. ??&lt;br /&gt;&lt;br /&gt;What&amp;#39;s the best option to achieve a good custom Alloy UI theme?</summary>
    <dc:creator>Florian Brandel</dc:creator>
    <dc:date>2012-05-10T16:30:20Z</dc:date>
  </entry>
</feed>
