Styling and Theming
Theme System
import { useUXPContext } from "uxp/components";
const MyComponent = () => {
const uxpContext = useUXPContext();
const theme = uxpContext.theme;
return (
<div style={{
backgroundColor: theme.backgroundColor,
color: theme.primaryTextColor
}}>
Content
</div>
);
};CSS Variables
Available Theme Variables
SCSS Organization
global.scss
Component SCSS
Naming Convention
RTL Support
Quick Tips
Next Steps
Last updated