Clarity addons do not offer 100% support for other themes at the moment. This is because a few components are not fully using the custom CSS properties that Clarity provides. As the PHS theme is the only currently used theme within Porsche Informatik, we are welcoming contributions for any part of the codebase (see below).
Each component should define custom --clr-* properties (values should come from Clarity-provided --cds-* properties)
Documentation for the respective component should include a section about the respective properties
PHS-specific styling (usually the current hardcoded values) should be moved to the PHS theme.scss file in order to not cause any breaking changes for the existing users
Overview
Clarity addons do not offer 100% support for other themes at the moment. This is because a few components are not fully using the custom CSS properties that Clarity provides. As the PHS theme is the only currently used theme within Porsche Informatik, we are welcoming contributions for any part of the codebase (see below).
Tasks checklist
There are a few more cases inside components.clr-addons.scss. These could also be moved out of the file into their own directory.
How to
Example commit: 1a56ff61ef275b211514956388b804dc51abfcdd Clarity docs about tokens: https://clarity.design/documentation/tokens/code
--clr-*
properties (values should come from Clarity-provided--cds-*
properties)theme.scss
file in order to not cause any breaking changes for the existing users