-
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #571 from xyflow/overview-example-styling-updates
Overview Example Style Updates
- Loading branch information
Showing
261 changed files
with
5,877 additions
and
865 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
apps/example-apps/react/examples/edges/animating-edges-node/index.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
|
||
@import url('./xy-theme.css'); | ||
|
||
html, | ||
body { | ||
margin: 0; | ||
|
Binary file modified
BIN
-2.28 KB
(90%)
apps/example-apps/react/examples/edges/animating-edges-node/preview.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
103 changes: 103 additions & 0 deletions
103
apps/example-apps/react/examples/edges/animating-edges-node/xy-theme.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
/* xyflow theme files. Delete these to start from our base */ | ||
|
||
.react-flow { | ||
/* Custom Variables */ | ||
--xy-theme-selected: #F57DBD; | ||
--xy-theme-hover: #C5C5C5; | ||
--xy-theme-edge-hover: black; | ||
--xy-theme-color-focus: #E8E8E8; | ||
|
||
/* Built-in Variables see https://reactflow.dev/learn/customization/theming */ | ||
--xy-node-border-default: 1px solid #EDEDED; | ||
|
||
--xy-node-boxshadow-default: | ||
0px 3.54px 4.55px 0px #00000005, | ||
0px 3.54px 4.55px 0px #0000000D, | ||
0px 0.51px 1.01px 0px #0000001A; | ||
|
||
--xy-node-border-radius-default: 8px; | ||
|
||
--xy-handle-background-color-default: #ffffff; | ||
--xy-handle-border-color-default: #AAAAAA; | ||
|
||
--xy-edge-label-color-default: #505050; | ||
} | ||
|
||
.react-flow.dark { | ||
--xy-node-boxshadow-default: | ||
0px 3.54px 4.55px 0px rgba(255, 255, 255, 0.05), /* light shadow */ | ||
0px 3.54px 4.55px 0px rgba(255, 255, 255, 0.13), /* medium shadow */ | ||
0px 0.51px 1.01px 0px rgba(255, 255, 255, 0.2); /* smallest shadow */ | ||
--xy-theme-color-focus: #535353; | ||
} | ||
|
||
/* Customizing Default Theming */ | ||
|
||
.react-flow__node { | ||
box-shadow: var(--xy-node-boxshadow-default); | ||
border-radius: var(--xy-node-border-radius-default); | ||
background-color: var(--xy-node-background-color-default); | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
text-align: center; | ||
padding: 10px; | ||
font-size: 12px; | ||
flex-direction: column; | ||
border: var(--xy-node-border-default); | ||
color: var(--xy-node-color, var(--xy-node-color-default)); | ||
} | ||
|
||
.react-flow__node.selectable:focus { | ||
box-shadow: 0px 0px 0px 4px var(--xy-theme-color-focus); | ||
border-color: #d9d9d9; | ||
} | ||
|
||
.react-flow__node.selectable:hover, | ||
.react-flow__node.draggable:hover { | ||
border-color: var(--xy-theme-hover); | ||
} | ||
|
||
.react-flow__node.selectable.selected { | ||
border-color: var(--xy-theme-selected); | ||
box-shadow: var(--xy-node-boxshadow-default); | ||
} | ||
|
||
.react-flow__node-group { | ||
background-color: rgba(207, 182, 255, 0.4); | ||
border-color: #9E86ED; | ||
} | ||
|
||
.react-flow__edge.selectable:hover .react-flow__edge-path, | ||
.react-flow__edge.selectable.selected .react-flow__edge-path { | ||
stroke: var(--xy-theme-edge-hover); | ||
} | ||
|
||
.react-flow__handle { | ||
background-color: var(--xy-handle-background-color-default); | ||
} | ||
|
||
.react-flow__handle.connectionindicator:hover { | ||
pointer-events: all; | ||
border-color: var(--xy-theme-edge-hover); | ||
background-color: white; | ||
} | ||
|
||
.react-flow__handle.connectionindicator:focus , | ||
.react-flow__handle.connectingfrom, | ||
.react-flow__handle.connectingto { | ||
border-color: var(--xy-theme-edge-hover); | ||
} | ||
|
||
.react-flow__node-resizer { | ||
border-radius: 0; | ||
border: none; | ||
} | ||
|
||
.react-flow__resize-control.handle { | ||
background-color: #ffffff; | ||
border-color: #9E86ED; | ||
border-radius: 0; | ||
width: 5px; | ||
height: 5px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
@import url('./xy-theme.css'); | ||
|
||
html, | ||
body { | ||
margin: 0; | ||
|
@@ -8,4 +10,3 @@ body { | |
width: 100vw; | ||
height: 100vh; | ||
} | ||
|
Binary file modified
BIN
-1.72 KB
(92%)
apps/example-apps/react/examples/edges/animating-edges-svg/preview.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
103 changes: 103 additions & 0 deletions
103
apps/example-apps/react/examples/edges/animating-edges-svg/xy-theme.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
/* xyflow theme files. Delete these to start from our base */ | ||
|
||
.react-flow { | ||
/* Custom Variables */ | ||
--xy-theme-selected: #F57DBD; | ||
--xy-theme-hover: #C5C5C5; | ||
--xy-theme-edge-hover: black; | ||
--xy-theme-color-focus: #E8E8E8; | ||
|
||
/* Built-in Variables see https://reactflow.dev/learn/customization/theming */ | ||
--xy-node-border-default: 1px solid #EDEDED; | ||
|
||
--xy-node-boxshadow-default: | ||
0px 3.54px 4.55px 0px #00000005, | ||
0px 3.54px 4.55px 0px #0000000D, | ||
0px 0.51px 1.01px 0px #0000001A; | ||
|
||
--xy-node-border-radius-default: 8px; | ||
|
||
--xy-handle-background-color-default: #ffffff; | ||
--xy-handle-border-color-default: #AAAAAA; | ||
|
||
--xy-edge-label-color-default: #505050; | ||
} | ||
|
||
.react-flow.dark { | ||
--xy-node-boxshadow-default: | ||
0px 3.54px 4.55px 0px rgba(255, 255, 255, 0.05), /* light shadow */ | ||
0px 3.54px 4.55px 0px rgba(255, 255, 255, 0.13), /* medium shadow */ | ||
0px 0.51px 1.01px 0px rgba(255, 255, 255, 0.2); /* smallest shadow */ | ||
--xy-theme-color-focus: #535353; | ||
} | ||
|
||
/* Customizing Default Theming */ | ||
|
||
.react-flow__node { | ||
box-shadow: var(--xy-node-boxshadow-default); | ||
border-radius: var(--xy-node-border-radius-default); | ||
background-color: var(--xy-node-background-color-default); | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
text-align: center; | ||
padding: 10px; | ||
font-size: 12px; | ||
flex-direction: column; | ||
border: var(--xy-node-border-default); | ||
color: var(--xy-node-color, var(--xy-node-color-default)); | ||
} | ||
|
||
.react-flow__node.selectable:focus { | ||
box-shadow: 0px 0px 0px 4px var(--xy-theme-color-focus); | ||
border-color: #d9d9d9; | ||
} | ||
|
||
.react-flow__node.selectable:hover, | ||
.react-flow__node.draggable:hover { | ||
border-color: var(--xy-theme-hover); | ||
} | ||
|
||
.react-flow__node.selectable.selected { | ||
border-color: var(--xy-theme-selected); | ||
box-shadow: var(--xy-node-boxshadow-default); | ||
} | ||
|
||
.react-flow__node-group { | ||
background-color: rgba(207, 182, 255, 0.4); | ||
border-color: #9E86ED; | ||
} | ||
|
||
.react-flow__edge.selectable:hover .react-flow__edge-path, | ||
.react-flow__edge.selectable.selected .react-flow__edge-path { | ||
stroke: var(--xy-theme-edge-hover); | ||
} | ||
|
||
.react-flow__handle { | ||
background-color: var(--xy-handle-background-color-default); | ||
} | ||
|
||
.react-flow__handle.connectionindicator:hover { | ||
pointer-events: all; | ||
border-color: var(--xy-theme-edge-hover); | ||
background-color: white; | ||
} | ||
|
||
.react-flow__handle.connectionindicator:focus , | ||
.react-flow__handle.connectingfrom, | ||
.react-flow__handle.connectingto { | ||
border-color: var(--xy-theme-edge-hover); | ||
} | ||
|
||
.react-flow__node-resizer { | ||
border-radius: 0; | ||
border: none; | ||
} | ||
|
||
.react-flow__resize-control.handle { | ||
background-color: #ffffff; | ||
border-color: #9E86ED; | ||
border-radius: 0; | ||
width: 5px; | ||
height: 5px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
apps/example-apps/react/examples/edges/custom-connectionline/index.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
@import url('./xy-theme.css'); | ||
|
||
html, | ||
body { | ||
margin: 0; | ||
|
Binary file modified
BIN
-6.45 KB
(67%)
apps/example-apps/react/examples/edges/custom-connectionline/preview.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.