-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow theming and styling the workbench #110
Milestone
Comments
danielwiehl
changed the title
Allow theming the workbench
Allow theming and styling the workbench
Jun 8, 2023
danielwiehl
added a commit
that referenced
this issue
Oct 7, 2023
SCION Workbench has a new tab design for improved user experience and a more modern and consistent look. Applications can control the look of the SCION Workbench using design tokens. Multiple themes are supported. Tokens can have different values per theme. closes #110 BREAKING CHANGE: Support for custom styling of the SCION Workbench has introduced a breaking change. To migrate: - Custom icon font is now configured top-level in @scion/workbench SCSS module. Previously, a custom icon font was configured under the `$theme` map entry. ## Before: @use '@scion/workbench' with ( $theme: ( icon-font: ( filename: 'custom-workbench-icons', version: '1.0.0' ) ) ); ## After: @use '@scion/workbench' with ( icon-font: ( filename: 'custom-workbench-icons', version: '1.0.0' ) ); - SCON Workbench can now be styled using well-defined design tokens instead of undocumented CSS selectors. See [How to theme SCION Workbench](https://github.com/SchweizerischeBundesbahnen/scion-workbench/blob/master/docs/site/howto/how-to-theme-workbench.md) for a list of supported tokens. - Contribution of custom tab component has changed. - Tab close button is now rendered separately and can be removed from the custom tab component. - To not overlap the tab close button, the custom tab component must now add a right margin if rendered in the context of a tab or drag image. - Inject current rendering context using `VIEW_TAB_RENDERING_CONTEXT` DI token instead of `VIEW_TAB_CONTEXT` DI token. Supported contexts are `tab`, `list-item` and `drag-image`.
danielwiehl
added a commit
that referenced
this issue
Oct 7, 2023
SCION Workbench has a new tab design for improved user experience and a more modern and consistent look. Applications can control the look of the SCION Workbench using design tokens. Multiple themes are supported. Tokens can have different values per theme. closes #110 BREAKING CHANGE: Support for custom styling of the SCION Workbench has introduced a breaking change. To migrate: - Custom icon font is now configured top-level in `@scion/workbench` SCSS module. Previously, a custom icon font was configured under the `$theme` map entry. ## Before: @use '@scion/workbench' with ( $theme: ( icon-font: ( filename: 'custom-workbench-icons', version: '1.0.0' ) ) ); ## After: @use '@scion/workbench' with ( icon-font: ( filename: 'custom-workbench-icons', version: '1.0.0' ) ); - SCON Workbench can now be styled using well-defined design tokens instead of undocumented CSS selectors. See [How to theme SCION Workbench](https://github.com/SchweizerischeBundesbahnen/scion-workbench/blob/master/docs/site/howto/how-to-theme-workbench.md) for a list of supported tokens. - Contribution of custom tab component has changed: - Tab close button is now rendered separately and can be removed from the custom tab component. - To not overlap the tab close button, the custom tab component must add a right margin if rendered in the context of a tab or drag image. - Inject current rendering context using `VIEW_TAB_RENDERING_CONTEXT` DI token instead of `VIEW_TAB_CONTEXT` DI token. Supported contexts are `tab`, `list-item` and `drag-image`.
danielwiehl
added a commit
that referenced
this issue
Oct 7, 2023
SCION Workbench has a new tab design for improved user experience and a more modern and consistent look. Applications can control the look of the SCION Workbench using design tokens. Multiple themes are supported. Tokens can have different values per theme. closes #110 BREAKING CHANGE: Support for custom styling of the SCION Workbench has introduced a breaking change. To migrate: - Custom icon font is now configured top-level in `@scion/workbench` SCSS module. Previously, a custom icon font was configured under the `$theme` map entry. ## Before: @use '@scion/workbench' with ( $theme: ( icon-font: ( filename: 'custom-workbench-icons', version: '1.0.0' ) ) ); ## After: @use '@scion/workbench' with ( icon-font: ( filename: 'custom-workbench-icons', version: '1.0.0' ) ); - SCON Workbench can now be styled using well-defined design tokens instead of undocumented CSS selectors. See [How to theme SCION Workbench](https://github.com/SchweizerischeBundesbahnen/scion-workbench/blob/master/docs/site/howto/how-to-theme-workbench.md) for a list of supported tokens. - Contribution of custom tab component has changed: - Tab close button is now rendered separately and can be removed from the custom tab component. - To not overlap the tab close button, the custom tab component must add a right margin if rendered in the context of a tab or drag image. - Inject current rendering context using `VIEW_TAB_RENDERING_CONTEXT` DI token instead of `VIEW_TAB_CONTEXT` DI token. Supported contexts are `tab`, `list-item` and `drag-image`.
danielwiehl
added a commit
that referenced
this issue
Oct 7, 2023
SCION Workbench has a new tab design for improved user experience and a more modern and consistent look. Applications can control the look of the SCION Workbench using design tokens. Multiple themes are supported. Tokens can have different values per theme. closes #110 BREAKING CHANGE: Support for custom styling of the SCION Workbench has introduced a breaking change. To migrate: - Custom icon font is now configured top-level in `@scion/workbench` SCSS module. Previously, a custom icon font was configured under the `$theme` map entry. ## Before: @use '@scion/workbench' with ( $theme: ( icon-font: ( filename: 'custom-workbench-icons', version: '1.0.0' ) ) ); ## After: @use '@scion/workbench' with ( icon-font: ( filename: 'custom-workbench-icons', version: '1.0.0' ) ); - SCON Workbench can now be styled using well-defined design tokens instead of undocumented CSS selectors. See [How to theme SCION Workbench](https://github.com/SchweizerischeBundesbahnen/scion-workbench/blob/master/docs/site/howto/how-to-theme-workbench.md) for a list of supported tokens. - Contribution of custom tab component has changed: - Tab close button is now rendered separately and can be removed from the custom tab component. - To not overlap the tab close button, the custom tab component must add a right margin if rendered in the context of a tab or drag image. - Inject current rendering context using `VIEW_TAB_RENDERING_CONTEXT` DI token instead of `VIEW_TAB_CONTEXT` DI token. Supported contexts are `tab`, `list-item` and `drag-image`.
danielwiehl
added a commit
that referenced
this issue
Oct 7, 2023
SCION Workbench has a new tab design for improved user experience and a more modern and consistent look. Applications can control the look of the SCION Workbench using design tokens. Multiple themes are supported. Tokens can have different values per theme. closes #110 BREAKING CHANGE: Support for custom styling of the SCION Workbench has introduced a breaking change. To migrate: - Custom icon font is now configured top-level in `@scion/workbench` SCSS module. Previously, a custom icon font was configured under the `$theme` map entry. ## Before: @use '@scion/workbench' with ( $theme: ( icon-font: ( filename: 'custom-workbench-icons', version: '1.0.0' ) ) ); ## After: @use '@scion/workbench' with ( icon-font: ( filename: 'custom-workbench-icons', version: '1.0.0' ) ); - SCON Workbench can now be styled using well-defined design tokens instead of undocumented CSS selectors. See [How to theme SCION Workbench](https://github.com/SchweizerischeBundesbahnen/scion-workbench/blob/master/docs/site/howto/how-to-theme-workbench.md) for a list of supported tokens. - Contribution of custom tab component has changed: - Tab close button is now rendered separately and can be removed from the custom tab component. - To not overlap the tab close button, the custom tab component must add a right margin if rendered in the context of a tab or drag image. - Inject current rendering context using `VIEW_TAB_RENDERING_CONTEXT` DI token instead of `VIEW_TAB_CONTEXT` DI token. Supported contexts are `tab`, `list-item` and `drag-image`.
danielwiehl
added a commit
that referenced
this issue
Oct 7, 2023
SCION Workbench has a new tab design for improved user experience and a more modern and consistent look. Applications can control the look of the SCION Workbench using design tokens. Multiple themes are supported. Tokens can have different values per theme. closes #110 BREAKING CHANGE: Support for custom styling of the SCION Workbench has introduced a breaking change. To migrate: - Custom icon font is now configured top-level in `@scion/workbench` SCSS module. Previously, a custom icon font was configured under the `$theme` map entry. ## Before: @use '@scion/workbench' with ( $theme: ( icon-font: ( filename: 'custom-workbench-icons', version: '1.0.0' ) ) ); ## After: @use '@scion/workbench' with ( icon-font: ( filename: 'custom-workbench-icons', version: '1.0.0' ) ); - SCON Workbench can now be styled using well-defined design tokens instead of undocumented CSS selectors. See [How to theme SCION Workbench](https://github.com/SchweizerischeBundesbahnen/scion-workbench/blob/master/docs/site/howto/how-to-theme-workbench.md) for a list of supported tokens. - Contribution of custom tab component has changed: - Tab close button is now rendered separately and can be removed from the custom tab component. - To not overlap the tab close button, the custom tab component must add a right margin if rendered in the context of a tab or drag image. - Inject current rendering context using `VIEW_TAB_RENDERING_CONTEXT` DI token instead of `VIEW_TAB_CONTEXT` DI token. Supported contexts are `tab`, `list-item` and `drag-image`.
danielwiehl
added a commit
that referenced
this issue
Oct 7, 2023
SCION Workbench has a new tab design for improved user experience and a more modern and consistent look. Applications can control the look of the SCION Workbench using design tokens. Multiple themes are supported. Tokens can have different values per theme. closes #110 BREAKING CHANGE: Support for custom styling of the SCION Workbench has introduced a breaking change. To migrate: - Custom icon font is now configured top-level in `@scion/workbench` SCSS module. Previously, a custom icon font was configured under the `$theme` map entry. ## Before: @use '@scion/workbench' with ( $theme: ( icon-font: ( filename: 'custom-workbench-icons', version: '1.0.0' ) ) ); ## After: @use '@scion/workbench' with ( icon-font: ( filename: 'custom-workbench-icons', version: '1.0.0' ) ); - SCON Workbench can now be styled using well-defined design tokens instead of undocumented CSS selectors. See [How to theme SCION Workbench](https://github.com/SchweizerischeBundesbahnen/scion-workbench/blob/master/docs/site/howto/how-to-theme-workbench.md) for a list of supported tokens. - Contribution of custom tab component has changed: - Tab close button is now rendered separately and can be removed from the custom tab component. - To not overlap the tab close button, the custom tab component must add a right margin if rendered in the context of a tab or drag image. - Inject current rendering context using `VIEW_TAB_RENDERING_CONTEXT` DI token instead of `VIEW_TAB_CONTEXT` DI token. Supported contexts are `tab`, `list-item` and `drag-image`.
danielwiehl
added a commit
that referenced
this issue
Oct 7, 2023
SCION Workbench has a new tab design for improved user experience and a more modern and consistent look. Applications can control the look of the SCION Workbench using design tokens. Multiple themes are supported. Tokens can have different values per theme. closes #110 BREAKING CHANGE: Support for custom styling of the SCION Workbench has introduced a breaking change. To migrate: - Custom icon font is now configured top-level in `@scion/workbench` SCSS module. Previously, a custom icon font was configured under the `$theme` map entry. ## Before: @use '@scion/workbench' with ( $theme: ( icon-font: ( filename: 'custom-workbench-icons', version: '1.0.0' ) ) ); ## After: @use '@scion/workbench' with ( icon-font: ( filename: 'custom-workbench-icons', version: '1.0.0' ) ); - SCON Workbench can now be styled using well-defined design tokens instead of undocumented CSS selectors. See [How to theme SCION Workbench](https://github.com/SchweizerischeBundesbahnen/scion-workbench/blob/master/docs/site/howto/how-to-theme-workbench.md) for a list of supported tokens. - Contribution of custom tab component has changed: - Tab close button is now rendered separately and can be removed from the custom tab component. - To not overlap the tab close button, the custom tab component must add a right margin if rendered in the context of a tab or drag image. - Inject current rendering context using `VIEW_TAB_RENDERING_CONTEXT` DI token instead of `VIEW_TAB_CONTEXT` DI token. Supported contexts are `tab`, `list-item` and `drag-image`.
danielwiehl
added a commit
that referenced
this issue
Oct 7, 2023
SCION Workbench has a new tab design for improved user experience and a more modern and consistent look. Applications can control the look of the SCION Workbench using design tokens. Multiple themes are supported. Tokens can have different values per theme. closes #110 BREAKING CHANGE: Support for custom styling of the SCION Workbench has introduced a breaking change. To migrate: - Custom icon font is now configured top-level in `@scion/workbench` SCSS module. Previously, a custom icon font was configured under the `$theme` map entry. ## Before: @use '@scion/workbench' with ( $theme: ( icon-font: ( filename: 'custom-workbench-icons', version: '1.0.0' ) ) ); ## After: @use '@scion/workbench' with ( icon-font: ( filename: 'custom-workbench-icons', version: '1.0.0' ) ); - SCON Workbench can now be styled using well-defined design tokens instead of undocumented CSS selectors. See [How to theme SCION Workbench](https://github.com/SchweizerischeBundesbahnen/scion-workbench/blob/master/docs/site/howto/how-to-theme-workbench.md) for a list of supported tokens. - Contribution of custom tab component has changed: - Tab close button is now rendered separately and can be removed from the custom tab component. - To not overlap the tab close button, the custom tab component must add a right margin if rendered in the context of a tab or drag image. - Inject current rendering context using `VIEW_TAB_RENDERING_CONTEXT` DI token instead of `VIEW_TAB_CONTEXT` DI token. Supported contexts are `tab`, `list-item` and `drag-image`.
danielwiehl
added a commit
that referenced
this issue
Oct 7, 2023
SCION Workbench has a new tab design for improved user experience and a more modern and consistent look. Applications can control the look of the SCION Workbench using design tokens. Multiple themes are supported. Tokens can have different values per theme. closes #110 BREAKING CHANGE: Support for custom styling of the SCION Workbench has introduced a breaking change. To migrate: - Custom icon font is now configured top-level in `@scion/workbench` SCSS module. Previously, a custom icon font was configured under the `$theme` map entry. ## Before: @use '@scion/workbench' with ( $theme: ( icon-font: ( filename: 'custom-workbench-icons', version: '1.0.0' ) ) ); ## After: @use '@scion/workbench' with ( icon-font: ( filename: 'custom-workbench-icons', version: '1.0.0' ) ); - SCON Workbench can now be styled using well-defined design tokens instead of undocumented CSS selectors. See [How to theme SCION Workbench](https://github.com/SchweizerischeBundesbahnen/scion-workbench/blob/master/docs/site/howto/how-to-theme-workbench.md) for a list of supported tokens. - Contribution of custom tab component has changed: - Tab close button is now rendered separately and can be removed from the custom tab component. - To not overlap the tab close button, the custom tab component must add a right margin if rendered in the context of a tab or drag image. - Inject current rendering context using `VIEW_TAB_RENDERING_CONTEXT` DI token instead of `VIEW_TAB_CONTEXT` DI token. Supported contexts are `tab`, `list-item` and `drag-image`.
danielwiehl
added a commit
that referenced
this issue
Oct 9, 2023
SCION Workbench has a new tab design for improved user experience and a more modern and consistent look. Applications can control the look of the SCION Workbench using design tokens. Multiple themes are supported. Tokens can have different values per theme. closes #110 BREAKING CHANGE: Custom styling of the SCION Workbench has introduced a breaking change. To migrate: - Custom icon font is now configured top-level in `@scion/workbench` SCSS module. Previously, a custom icon font was configured under the `$theme` map entry. ## Before: @use '@scion/workbench' with ( $theme: ( icon-font: ( filename: 'custom-workbench-icons', version: '1.0.0' ) ) ); ## After: @use '@scion/workbench' with ( icon-font: ( filename: 'custom-workbench-icons', version: '1.0.0' ) ); - SCON Workbench can now be styled using well-defined design tokens instead of undocumented CSS selectors. See [How to theme SCION Workbench](https://github.com/SchweizerischeBundesbahnen/scion-workbench/blob/master/docs/site/howto/how-to-theme-workbench.md) for a list of supported tokens. - Contribution of custom tab component has changed: - Tab close button is now rendered separately and can be removed from the custom tab component. - To not overlap the tab close button, the custom tab component must add a right margin if rendered in the context of a tab or drag image. - Inject current rendering context using `VIEW_TAB_RENDERING_CONTEXT` DI token instead of `VIEW_TAB_CONTEXT` DI token. Supported contexts are `tab`, `list-item` and `drag-image`.
danielwiehl
added a commit
that referenced
this issue
Oct 9, 2023
… (FIXUP) SCION Workbench has a new tab design for improved user experience and a modern and consistent look. Applications can define a custom theme to change the default look of the SCION Workbench. Multiple themes are supported. A theme is a collection of design tokens, defining specific design aspects. A design token can have a different value per theme. closes #110 BREAKING CHANGE: New tab design and styling of the SCION Workbench has introduced a breaking change. To migrate: - update @scion/components to version 16.2.0 or higher - SCON Workbench can now be styled using well-defined design tokens instead of undocumented CSS selectors. See [How to theme SCION Workbench](https://github.com/SchweizerischeBundesbahnen/scion-workbench/blob/master/docs/site/howto/how-to-theme-workbench.md) for a list of supported tokens. - The tab height has been changed to one line, not displaying the heading by default. You can change the tab height to two lines by setting the '--sci-workbench-tab-height' design token to '3.5rem'. ```scss :root { --sci-workbench-tab-height: 5rem; } ``` - Custom icon font is now configured top-level in `@scion/workbench` SCSS module. Previously, a custom icon font was configured under the `$theme` map entry. ## Before: @use '@scion/workbench' with ( $theme: ( icon-font: ( filename: 'custom-workbench-icons', version: '1.0.0' ) ) ); ## After: @use '@scion/workbench' with ( icon-font: ( filename: 'custom-workbench-icons', version: '1.0.0' ) ); - Contribution of custom tab component has changed: - Tab close button is now rendered separately and can be removed from the custom tab component. - To not overlap the tab close button, the custom tab component must add a right margin if rendered in the context of a tab or drag image. - Inject current rendering context using `VIEW_TAB_RENDERING_CONTEXT` DI token instead of `VIEW_TAB_CONTEXT` DI token. Supported contexts are `tab`, `list-item` and `drag-image`.
danielwiehl
added a commit
that referenced
this issue
Oct 9, 2023
… (FIXUP) SCION Workbench has a new tab design for improved user experience and a modern and consistent look. Applications can define a custom theme to change the default look of the SCION Workbench. Multiple themes are supported. A theme is a collection of design tokens, defining specific design aspects. A design token can have a different value per theme. closes #110 BREAKING CHANGE: The new tab design and theming capability of the SCION Workbench have introduced a breaking change. To migrate: - update @scion/components to version 16.2.0 or higher - The workbench can now be styled using well-defined design tokens instead of undocumented CSS selectors. See [How to theme SCION Workbench](https://github.com/SchweizerischeBundesbahnen/scion-workbench/blob/master/docs/site/howto/how-to-theme-workbench.md) for a list of supported tokens. - The tab height has changed from two to one line, not displaying the heading anymore. You can change the tab height back to two lines by setting the `--sci-workbench-tab-height` design token to `3.5rem`. ```scss :root { --sci-workbench-tab-height: 5rem; } ``` - Custom icon font is now configured top-level in `@scion/workbench` SCSS module. Previously, a custom icon font was configured under the `$theme` map entry. ## Before: @use '@scion/workbench' with ( $theme: ( icon-font: ( filename: 'custom-workbench-icons', version: '1.0.0' ) ) ); ## After: @use '@scion/workbench' with ( icon-font: ( filename: 'custom-workbench-icons', version: '1.0.0' ) ); - Contribution of custom tab component has changed: - Close button is now rendered separately and can be removed from the component. - Component should add a right margin if rendered in the context of a tab or drag image to not overlap the close button. - Inject current rendering context using `VIEW_TAB_RENDERING_CONTEXT` DI token instead of `VIEW_TAB_CONTEXT` DI token. Supported contexts are `tab`, `list-item` and `drag-image`.
danielwiehl
added a commit
that referenced
this issue
Oct 10, 2023
SCION Workbench has a new tab design for improved user experience and a modern and consistent look. Applications can define a custom theme to change the default look of the SCION Workbench. Multiple themes are supported. A theme is a collection of design tokens, defining specific design aspects. A design token can have a different value per theme. closes #110 BREAKING CHANGE: The new tab design and theming of the SCION Workbench has introduced a breaking change. To migrate: - update @scion/components to version 16.2.0 or higher - The workbench can now be styled using well-defined design tokens instead of undocumented CSS selectors. See [How to theme SCION Workbench](https://github.com/SchweizerischeBundesbahnen/scion-workbench/blob/master/docs/site/howto/how-to-theme-workbench.md) for a list of supported tokens. - The tab height has changed from two to one line, not displaying the heading anymore. You can change the tab height back to two lines by setting the `--sci-workbench-tab-height` design token to `3.5rem`. ```scss :root { --sci-workbench-tab-height: 3.5rem; } ``` - Custom icon font is now configured top-level in `@scion/workbench` SCSS module. Previously, a custom icon font was configured under the `$theme` map entry. ## Before: @use '@scion/workbench' with ( $theme: ( icon-font: ( filename: 'custom-workbench-icons', version: '1.0.0' ) ) ); ## After: @use '@scion/workbench' with ( icon-font: ( filename: 'custom-workbench-icons', version: '1.0.0' ) ); - Contribution of custom tab component has changed: - Close button is now rendered separately and can be removed from the custom tab component. - Custom tab component should add a right margin if rendered in the context of a tab or drag image to not overlap the close button. - Inject current rendering context using `VIEW_TAB_RENDERING_CONTEXT` DI token instead of `VIEW_TAB_CONTEXT` DI token. Supported contexts are `tab`, `list-item` and `drag-image`.
Marcarrian
pushed a commit
that referenced
this issue
Oct 10, 2023
SCION Workbench has a new tab design for improved user experience and a modern and consistent look. Applications can define a custom theme to change the default look of the SCION Workbench. Multiple themes are supported. A theme is a collection of design tokens, defining specific design aspects. A design token can have a different value per theme. closes #110 BREAKING CHANGE: The new tab design and theming of the SCION Workbench has introduced a breaking change. To migrate: - update @scion/components to version 16.2.0 or higher - update @scion/workbench-client to version 1.0.0-beta.19 or higher - The workbench can now be styled using well-defined design tokens instead of undocumented CSS selectors. See [How to theme SCION Workbench](https://github.com/SchweizerischeBundesbahnen/scion-workbench/blob/master/docs/site/howto/how-to-theme-workbench.md) for a list of supported tokens. - The tab height has changed from two to one line, not displaying the heading anymore. You can change the tab height back to two lines by setting the `--sci-workbench-tab-height` design token to `3.5rem`. ```scss :root { --sci-workbench-tab-height: 3.5rem; } ``` - Custom icon font is now configured top-level in `@scion/workbench` SCSS module. Previously, a custom icon font was configured under the `$theme` map entry. ## Before: @use '@scion/workbench' with ( $theme: ( icon-font: ( filename: 'custom-workbench-icons', version: '1.0.0' ) ) ); ## After: @use '@scion/workbench' with ( icon-font: ( filename: 'custom-workbench-icons', version: '1.0.0' ) ); - Contribution of custom tab component has changed: - Close button is now rendered separately and can be removed from the custom tab component. - Custom tab component should add a right margin if rendered in the context of a tab or drag image to not overlap the close button. - Inject current rendering context using `VIEW_TAB_RENDERING_CONTEXT` DI token instead of `VIEW_TAB_CONTEXT` DI token. Supported contexts are `tab`, `list-item` and `drag-image`.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
The workbench does not support theming yet. It is possible to change its appearance by specifying some CSS selectors with higher precedence. However, the DOM structure is not public API and can break in upcoming releases.
Describe the solution you'd like
Instead, the workbench should provide some standardized way to apply a custom theme.
Similar to Angular Material theming, a theme should consist of one or more color palettes and additionally allow customizing some workbench parts like for instance the view tab height.
By default, the workbench should ship with a light and dark theme.
The text was updated successfully, but these errors were encountered: