Skip to content

Commit

Permalink
feat: add semantic layer token machinery
Browse files Browse the repository at this point in the history
  • Loading branch information
gfellerph committed Jul 24, 2024
1 parent 8c98caa commit e84b51e
Show file tree
Hide file tree
Showing 13 changed files with 43 additions and 25 deletions.
2 changes: 1 addition & 1 deletion packages/documentation/.storybook/styles/preview.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// importing the complete styles package scss
// TODO: replace intranet.scss with index.scss as soon as the issues in the portal.scss are fixed
@use '@swisspost/design-system-styles/intranet.scss';
@use '@swisspost/design-system-styles/post-external.scss';
@use '@swisspost/design-system-styles/core.scss' as post;
@use '@swisspost/design-system-styles/mixins/utilities';
@use '@swisspost/internet-header/dist/swisspost-internet-header/swisspost-internet-header.css';
Expand Down
12 changes: 6 additions & 6 deletions packages/documentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
"lint": "eslint **/*.{js,ts,tsx,mdx}"
},
"dependencies": {
"@swisspost/design-system-components": "workspace:8.0.0",
"@swisspost/design-system-components-react": "workspace:8.0.0",
"@swisspost/design-system-icons": "workspace:8.0.0",
"@swisspost/design-system-styles": "workspace:8.0.0",
"@swisspost/design-system-components": "workspace:*",
"@swisspost/design-system-components-react": "workspace:*",
"@swisspost/design-system-icons": "workspace:*",
"@swisspost/design-system-styles": "workspace:*",
"@swisspost/internet-header": "workspace:1.14.3",
"bootstrap": "5.3.3"
},
Expand All @@ -53,8 +53,8 @@
"@storybook/types": "8.2.5",
"@storybook/web-components": "8.2.5",
"@storybook/web-components-vite": "8.2.5",
"@swisspost/design-system-components-angular": "workspace:8.0.0",
"@swisspost/design-system-intranet-header": "workspace:8.0.0",
"@swisspost/design-system-components-angular": "workspace:*",
"@swisspost/design-system-intranet-header": "workspace:*",
"@types/css-modules": "1.0.5",
"@types/mdx": "2.0.13",
"@types/react": "18.3.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/styles/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
},
"dependencies": {
"@popperjs/core": "2.11.8",
"@swisspost/design-system-tokens": "workspace:0.1.0",
"@swisspost/design-system-tokens": "workspace:*",
"bootstrap": "5.3.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/styles/src/placeholders/_modes.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@use '@swisspost/design-system-tokens/mode' as mode;
@use '../mixins/tokens';
@use './../mixins/tokens';

%post-light {
@include tokens.from(mode.$post-light);
Expand Down
2 changes: 1 addition & 1 deletion packages/styles/src/post-external.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
@use './tokens/semantic/external';
@use './tokens/semantic/post-theme';

@use './components';
@use 'components';
2 changes: 1 addition & 1 deletion packages/styles/src/post-internal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
@use './tokens/semantic/internal';
@use './tokens/semantic/post-theme';

@use './components';
@use 'components';
2 changes: 1 addition & 1 deletion packages/styles/src/tokens/semantic/_device.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@use '@swisspost/design-system-tokens/device' as device;
@use '../../mixins/tokens';
@use './../../mixins/tokens';

:root {
@include tokens.from(device.$post-mobile);
Expand Down
2 changes: 1 addition & 1 deletion packages/styles/src/tokens/semantic/_external.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@use '@swisspost/design-system-tokens/channel' as channel;
@use '../../mixins/tokens';
@use './../../mixins/tokens';

:root {
@include tokens.from(channel.$post-edk);
Expand Down
2 changes: 1 addition & 1 deletion packages/styles/src/tokens/semantic/_internal.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@use '@swisspost/design-system-tokens/channel' as channel;
@use '../../mixins/tokens';
@use './../../mixins/tokens';

:root {
@include tokens.from(channel.$post-idk);
Expand Down
2 changes: 1 addition & 1 deletion packages/styles/src/tokens/semantic/_modes.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use '../../placeholders/modes';
@use './../../placeholders/modes';

:root,
[data-color-mode='light'] {
Expand Down
2 changes: 1 addition & 1 deletion packages/styles/src/tokens/semantic/_post-theme.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@use '@swisspost/design-system-tokens/theme' as themes;
@use '../../mixins/tokens';
@use './../../mixins/tokens';

:root {
@include tokens.from(themes.$post-theme);
Expand Down
2 changes: 1 addition & 1 deletion packages/tokens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
],
"publishConfig": {
"directory": "./dist",
"access": "restricted",
"access": "public",
"linkDirectory": true
},
"devDependencies": {
Expand Down
34 changes: 26 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e84b51e

Please sign in to comment.