Skip to content

Conversation

@var-poro
Copy link
Contributor

No description provided.

@var-poro var-poro requested a review from a team as a code owner October 22, 2025 07:38
@var-poro var-poro changed the base branch from master to feat-theme-generator October 22, 2025 07:39
"@ovhcloud/ods-react": "19.1.0",
"@ovhcloud/ods-themes": "19.1.0",
"classnames": "2.5.1",
"culori": "^4.0.2",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove ^

"@storybook/react": "8.6.12",
"@storybook/react-vite": "8.6.12",
"@storybook/types": "8.6.12",
"@types/culori": "^4.0.1",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove ^

}, [currentVariables]);

const treeItems = useMemo(() => {
const steps = ['000', '025', '050', '075', '100', '200', '300', '400', '500', '600', '700', '800', '900'];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use PALETTE_STEPS ?

<ModalBody>
<div className={styles['theme-generator-palette-modal__preview']}>
<TreeView
className={styles['theme-generator-palette-modal__tree-view']}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

recheck your BEM notation, it should reflect your DOM arborescence

'900': 0.20,
};

export interface PaletteResult {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

group your exports at the end of the file

'success',
'warning',
'critical',
] as const;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

using Objet.freeze will actually lock at runtime, as const only lock the type

}

.theme-generator-palette-modal__preview {
padding: 1rem;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we'll stick to px for spacing for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants