Skip to content

Commit

Permalink
Add "spacing.css" to @eventstore-ui/assets.
Browse files Browse the repository at this point in the history
- Move `assets` to "packages" folder, as it's not a tool.
- Add spacing to `dev.css` for internal configs
  • Loading branch information
George-Payne committed Sep 9, 2024
1 parent 85b5f64 commit 1841285
Show file tree
Hide file tree
Showing 34 changed files with 25 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/nasty-elephants-drive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eventstore-ui/assets': minor
---

Added "spacing" css file
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion tools/assets/package.json → packages/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
"files": [
"assets/",
"font-face.css",
"spacing.css",
"index.ts"
],
"repository": {
"type": "git",
"url": "[email protected]:EventStore/Design-System.git",
"directory": "tools/assets"
"directory": "packages/assets"
}
}
File renamed without changes.
15 changes: 15 additions & 0 deletions packages/assets/spacing.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
:root {
/** The basic unit of spacing */
--spacing-base: 8px;

--spacing-0: 0;
--spacing-0_5: calc(var(--spacing-base) * 0.5);
--spacing-1: var(--spacing-base);
--spacing-1_5: calc(var(--spacing-base) * 1.5);
--spacing-2: calc(var(--spacing-base) * 2);
--spacing-2_5: calc(var(--spacing-base) * 2.5);
--spacing-3: calc(var(--spacing-base) * 3);
--spacing-4: calc(var(--spacing-base) * 4);
--spacing-5: calc(var(--spacing-base) * 5);
--spacing-6: calc(var(--spacing-base) * 6);
}
1 change: 1 addition & 0 deletions tools/stencilConfig/dev/dev.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@import url('~@eventstore-ui/assets/spacing.css');
@import url('~@eventstore-ui/layout/css/root.css');
@import url('~@eventstore-ui/assets/font-face.css');

Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2017,9 +2017,9 @@ __metadata:
languageName: node
linkType: hard

"@eventstore-ui/assets@workspace:*, @eventstore-ui/assets@workspace:tools/assets":
"@eventstore-ui/assets@workspace:*, @eventstore-ui/assets@workspace:packages/assets":
version: 0.0.0-use.local
resolution: "@eventstore-ui/assets@workspace:tools/assets"
resolution: "@eventstore-ui/assets@workspace:packages/assets"
languageName: unknown
linkType: soft

Expand Down

0 comments on commit 1841285

Please sign in to comment.