Skip to content

Commit

Permalink
feat(swatch): use core tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
yosevu authored and Westbrook committed Oct 20, 2022
1 parent 6b3d87f commit 821aebe
Show file tree
Hide file tree
Showing 5 changed files with 366 additions and 248 deletions.
4 changes: 2 additions & 2 deletions packages/swatch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@
"tslib": "^2.0.0"
},
"devDependencies": {
"@spectrum-css/swatch": "^1.1.4",
"@spectrum-css/swatchgroup": "^1.1.4"
"@spectrum-css/swatch": "^2.0.0",
"@spectrum-css/swatchgroup": "^2.0.1"
},
"types": "./src/index.d.ts",
"customElements": "custom-elements.json",
Expand Down
20 changes: 17 additions & 3 deletions packages/swatch/src/spectrum-swatch-group.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,35 @@ governing permissions and limitations under the License.
*/

/* THIS FILE IS MACHINE GENERATED. DO NOT EDIT */
:host {
--spectrum-swatchgroup-spacing-compact: var(
--spectrum-spacing-50
); /* .spectrum-SwatchGroup */
--spectrum-swatchgroup-spacing-regular: var(--spectrum-spacing-75);
--spectrum-swatchgroup-spacing-spacious: var(--spectrum-spacing-100);
}
:host {
align-items: flex-start;
display: inline-flex; /* .spectrum-SwatchGroup */
flex-direction: row;
flex-wrap: wrap;
gap: var(--spectrum-global-dimension-size-50);
justify-content: flex-start;
}
:host {
gap: var(
--mod-swatchgroup-spacing-regular,
var(--spectrum-swatchgroup-spacing-regular)
); /* .spectrum-SwatchGroup */
}
:host([density='compact']) {
gap: var(
--spectrum-global-dimension-size-25
--mod-swatchgroup-spacing-compact,
var(--spectrum-swatchgroup-spacing-compact)
); /* .spectrum-SwatchGroup--compact */
}
:host([density='spacious']) {
gap: var(
--spectrum-global-dimension-size-100
--mod-swatchgroup-spacing-spacious,
var(--spectrum-swatchgroup-spacing-spacious)
); /* .spectrum-SwatchGroup--spacious */
}
Loading

0 comments on commit 821aebe

Please sign in to comment.