Skip to main content

CSS-in-JS with ahead-of-time compilation

import { makeStyles } from '@griffel/react';

const useClasses = makeStyles({
icon: { color: 'red', paddingLeft: '5px' },
});

function Component() {
const classes = useClasses();

return <span className={classes.icon} />;
}