You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace CSS module usage with Linaria styled components.
Example conversion:
// Before (CSS Module)importstylesfrom'./Button.module.css';constButton=()=>(<buttonclassName={styles.button}>Click me</button>);// After (Linaria)import{styled}from'@linaria/react';constButton=styled.button` background-color: blue; color: white; padding: 10px;`;constMyButton=()=>(<Button>Click me</Button>);
Update Imports and Styles:
Ensure all components in twenty-front and twenty-ui are updated to use Linaria for styling.
Check for any remaining CSS module references and replace them with Linaria styled components.
Refactor Theme Assets:
Update any theme-related assets in /packages/twenty-front/src/modules/ui/theme/assets to use Linaria for styling.
Ensure variables and styles are defined using Linaria's css and styled functions.
Update Storybook Stories:
Ensure all Storybook stories in /packages/twenty-front/src/modules/ui/input/components/__stories__ and other directories are updated to reflect the changes from CSS modules to Linaria.
Commit Changes:
Commit the changes with a meaningful commit message, e.g., refactor: replace CSS modules with Linaria in twenty-front and twenty-ui.
Scope & Context
CSS Modules in twenty-front and twenty-ui due to tests during performance optimization.
Technical inputs
Remove CSS modules and associated logic in twenty-front and twenty-ui and replace by Linaria.
The text was updated successfully, but these errors were encountered: