Skip to content

Conversation

mordvinx
Copy link

This pull request solves the problem of styling and setting variables for the Graph component using CSS variables.

An example of usage can be found in the corresponding Storybook.

#104

@draedful draedful self-assigned this Sep 18, 2025
@draedful draedful linked an issue Sep 18, 2025 that may be closed by this pull request
@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@mordvinx mordvinx changed the title CSSVariablesLayer: new layer for styling with CSS feat: new layer for styling with CSS Sep 19, 2025
@mordvinx mordvinx requested a review from draedful October 6, 2025 06:54
@draedful draedful added this to the DevKit milestone Oct 14, 2025
Copy link
Collaborator

@draedful draedful left a comment

Choose a reason for hiding this comment

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

Great, I like the solution and the code, and I'm ready to accept it, but I want to ask you:
— fix the problem with typecheck on CI;
— write a small documentation on the new layer — describe what this layer provides and how to use it.

return (
<div className="css-variables-story">
<div className="controls">
<div className="control-group">
Copy link
Collaborator

Choose a reason for hiding this comment

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

JFYI: You can use Gravity UIKit, it's already listed in dev-deps and it's used in other stories.

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.

CSS Variables Plugin for @gravity-ui/graph

3 participants