Skip to content

Commit 3b8a99e

Browse files
committed
chore(tokens): add Dial custom tokens
1 parent 6d06583 commit 3b8a99e

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

components/tokens/custom-express/custom-large-vars.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@ governing permissions and limitations under the License.
1515
.spectrum--express.spectrum--large {
1616
--spectrum-colorwheel-path: "M 118 118 m -118 0 a 118 118 0 1 0 236 0 a 118 118 0 1 0 -236 0.2 M 118 118 m -92 0 a 92 92 0 1 0 184 0 a 92 92 0 1 0 -184 0";
1717
--spectrum-colorwheel-path-borders: "M 120 120 m -120 0 a 120 120 0 1 0 240 0 a 120 120 0 1 0 -240 0.2 M 120 120 m -90 0 a 90 90 0 1 0 180 0 a 90 90 0 1 0 -180 0";
18+
19+
--spectrum-dial-border-radius: 15px;
1820
}

components/tokens/custom-express/custom-medium-vars.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@ governing permissions and limitations under the License.
1515
.spectrum--express.spectrum--medium {
1616
--spectrum-colorwheel-path: "M 94 94 m -94 0 a 94 94 0 1 0 188 0 a 94 94 0 1 0 -188 0.2 M 94 94 m -74 0 a 74 74 0 1 0 148 0 a 74 74 0 1 0 -148 0";
1717
--spectrum-colorwheel-path-borders: "M 96 96 m -96 0 a 96 96 0 1 0 192 0 a 96 96 0 1 0 -192 0.2 M 96 96 m -72 0 a 72 72 0 1 0 144 0 a 72 72 0 1 0 -144 0";
18+
19+
--spectrum-dial-border-radius: 12px;
1820
}

components/tokens/custom-spectrum/custom-large-vars.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,12 @@ governing permissions and limitations under the License.
8787
--spectrum-treeview-item-indentation-large: 25px;
8888
--spectrum-treeview-item-indentation-extra-large: 30px;
8989
--spectrum-treeview-indicator-inset-block-start: 6px;
90+
91+
--spectrum-dial-border-radius: 20px;
92+
--spectrum-dial-handle-position: 10px;
93+
--spectrum-dial-handle-block-margin: 20px;
94+
--spectrum-dial-handle-inline-margin: 20px;
95+
--spectrum-dial-controls-margin: calc(20px / 2);
96+
--spectrum-dial-label-gap-y: 6px;
97+
--spectrum-dial-label-container-top-to-text: 5px;
9098
}

components/tokens/custom-spectrum/custom-medium-vars.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,12 @@ governing permissions and limitations under the License.
8686
--spectrum-treeview-item-indentation-large: 20px;
8787
--spectrum-treeview-item-indentation-extra-large: var(--spectrum-spacing-400);
8888
--spectrum-treeview-indicator-inset-block-start: 5px;
89+
90+
--spectrum-dial-border-radius: 16px;
91+
--spectrum-dial-handle-position: 8px;
92+
--spectrum-dial-handle-block-margin: 16px;
93+
--spectrum-dial-handle-inline-margin: 16px;
94+
--spectrum-dial-controls-margin: calc(16px / 2);
95+
--spectrum-dial-label-gap-y: 5px;
96+
--spectrum-dial-label-container-top-to-text: 4px;
8997
}

0 commit comments

Comments
 (0)