Skip to content

Commit 4d6da8c

Browse files
author
Mario Aguiar
committed
Add shape tokens
1 parent 79567ec commit 4d6da8c

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed

plugin/assets/css/src/tokens/index.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@
1616

1717
@import "./palette.css";
1818
@import "./colors.css";
19+
@import "./shape.css";
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
/**
2+
* Copyright 2022 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
:root {
18+
--md-sys-shape-corner-full-family: 3px;
19+
--md-sys-shape-corner-extra-large-top-family: 1px;
20+
--md-sys-shape-corner-extra-large-top: 0px;
21+
--md-sys-shape-corner-extra-large-top-top-left: 28px;
22+
--md-sys-shape-corner-extra-large-top-top-right-unit: 1px;
23+
--md-sys-shape-corner-extra-large-top-top-right: 28px;
24+
--md-sys-shape-corner-extra-large-family: 1px;
25+
--md-sys-shape-corner-extra-large-unit: 1px;
26+
--md-sys-shape-corner-extra-large: 28px;
27+
--md-sys-shape-corner-large-top-family: 1px;
28+
--md-sys-shape-corner-large-top-unit: 1px;
29+
--md-sys-shape-corner-large-top: 0px;
30+
--md-sys-shape-corner-large-top-top-left-unit: 1px;
31+
--md-sys-shape-corner-large-top-top-left: 16px;
32+
--md-sys-shape-corner-large-top-top-right-unit: 1px;
33+
--md-sys-shape-corner-large-top-top-right: 16px;
34+
--md-sys-shape-corner-large-end-family: 1px;
35+
--md-sys-shape-corner-large-end-unit: 1px;
36+
--md-sys-shape-corner-large-end: 0px;
37+
--md-sys-shape-corner-large-end-top-right-unit: 1px;
38+
--md-sys-shape-corner-large-end-top-right: 16px;
39+
--md-sys-shape-corner-large-end-bottom-right-unit: 1px;
40+
--md-sys-shape-corner-large-end-bottom-right: 16px;
41+
--md-sys-shape-corner-large-family: 1px;
42+
--md-sys-shape-corner-large-unit: 1px;
43+
--md-sys-shape-corner-large: 16px;
44+
--md-sys-shape-corner-medium-family: 1px;
45+
--md-sys-shape-corner-medium-unit: 1px;
46+
--md-sys-shape-corner-medium: 12px;
47+
--md-sys-shape-corner-small-family: 1px;
48+
--md-sys-shape-corner-small-unit: 1px;
49+
--md-sys-shape-corner-small: 8px;
50+
--md-sys-shape-corner-extra-small-top-family: 1px;
51+
--md-sys-shape-corner-extra-small-top-unit: 1px;
52+
--md-sys-shape-corner-extra-small-top: 0px;
53+
--md-sys-shape-corner-extra-small-top-top-left-unit: 1px;
54+
--md-sys-shape-corner-extra-small-top-top-left: 4px;
55+
--md-sys-shape-corner-extra-small-top-top-right-unit: 1px;
56+
--md-sys-shape-corner-extra-small-top-top-right: 4px;
57+
--md-sys-shape-corner-extra-small-family: 1px;
58+
--md-sys-shape-corner-extra-small-unit: 1px;
59+
--md-sys-shape-corner-extra-small: 4px;
60+
--md-sys-shape-corner-none-family: 1px;
61+
--md-sys-shape-corner-none-unit: 1px;
62+
--md-sys-shape-corner-none: 0px;
63+
--md-sys-shape-small: var(--md-sys-shape-corner-small);
64+
--md-sys-shape-medium: var(--md-sys-shape-corner-medium);
65+
--md-sys-shape-large: var(--md-sys-shape-corner-large);
66+
}

0 commit comments

Comments
 (0)