-
Couldn't load subscription status.
- Fork 10
Feat palette generator #951
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: feat-theme-generator
Are you sure you want to change the base?
Conversation
packages/storybook/package.json
Outdated
| "@ovhcloud/ods-react": "19.1.0", | ||
| "@ovhcloud/ods-themes": "19.1.0", | ||
| "classnames": "2.5.1", | ||
| "culori": "^4.0.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove ^
packages/storybook/package.json
Outdated
| "@storybook/react": "8.6.12", | ||
| "@storybook/react-vite": "8.6.12", | ||
| "@storybook/types": "8.6.12", | ||
| "@types/culori": "^4.0.1", |
There was a problem hiding this comment.
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']; |
There was a problem hiding this comment.
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']} |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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
…into related components
No description provided.