@abnamo/ui5-glass-theme 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/LICENSE +55 -0
  2. package/NOTICE +18 -0
  3. package/README.md +137 -2
  4. package/boot.js +70 -0
  5. package/fonts/OFL.txt +93 -0
  6. package/fonts/fonts.css +72 -0
  7. package/fonts/lato-latin-400-italic.woff +0 -0
  8. package/fonts/lato-latin-400-italic.woff2 +0 -0
  9. package/fonts/lato-latin-400-normal.woff +0 -0
  10. package/fonts/lato-latin-400-normal.woff2 +0 -0
  11. package/fonts/lato-latin-700-normal.woff +0 -0
  12. package/fonts/lato-latin-700-normal.woff2 +0 -0
  13. package/fonts/lato-latin-ext-400-italic.woff +0 -0
  14. package/fonts/lato-latin-ext-400-italic.woff2 +0 -0
  15. package/fonts/lato-latin-ext-400-normal.woff +0 -0
  16. package/fonts/lato-latin-ext-400-normal.woff2 +0 -0
  17. package/fonts/lato-latin-ext-700-normal.woff +0 -0
  18. package/fonts/lato-latin-ext-700-normal.woff2 +0 -0
  19. package/openui5.css +42 -0
  20. package/package.json +69 -4
  21. package/theme/src/sap/f/themes/abnamo_glass/library.source.less +8 -0
  22. package/theme/src/sap/f/themes/abnamo_glass_dark/library.source.less +8 -0
  23. package/theme/src/sap/m/themes/abnamo_glass/library.source.less +13 -0
  24. package/theme/src/sap/m/themes/abnamo_glass_dark/library.source.less +13 -0
  25. package/theme/src/sap/tnt/themes/abnamo_glass/library.source.less +8 -0
  26. package/theme/src/sap/tnt/themes/abnamo_glass_dark/library.source.less +8 -0
  27. package/theme/src/sap/ui/codeeditor/themes/abnamo_glass/library.source.less +8 -0
  28. package/theme/src/sap/ui/codeeditor/themes/abnamo_glass_dark/library.source.less +8 -0
  29. package/theme/src/sap/ui/core/themes/abnamo_glass/.theming +6 -0
  30. package/theme/src/sap/ui/core/themes/abnamo_glass/fonts/OFL.txt +93 -0
  31. package/theme/src/sap/ui/core/themes/abnamo_glass/fonts/lato-latin-400-italic.woff +0 -0
  32. package/theme/src/sap/ui/core/themes/abnamo_glass/fonts/lato-latin-400-italic.woff2 +0 -0
  33. package/theme/src/sap/ui/core/themes/abnamo_glass/fonts/lato-latin-400-normal.woff +0 -0
  34. package/theme/src/sap/ui/core/themes/abnamo_glass/fonts/lato-latin-400-normal.woff2 +0 -0
  35. package/theme/src/sap/ui/core/themes/abnamo_glass/fonts/lato-latin-700-normal.woff +0 -0
  36. package/theme/src/sap/ui/core/themes/abnamo_glass/fonts/lato-latin-700-normal.woff2 +0 -0
  37. package/theme/src/sap/ui/core/themes/abnamo_glass/fonts/lato-latin-ext-400-italic.woff +0 -0
  38. package/theme/src/sap/ui/core/themes/abnamo_glass/fonts/lato-latin-ext-400-italic.woff2 +0 -0
  39. package/theme/src/sap/ui/core/themes/abnamo_glass/fonts/lato-latin-ext-400-normal.woff +0 -0
  40. package/theme/src/sap/ui/core/themes/abnamo_glass/fonts/lato-latin-ext-400-normal.woff2 +0 -0
  41. package/theme/src/sap/ui/core/themes/abnamo_glass/fonts/lato-latin-ext-700-normal.woff +0 -0
  42. package/theme/src/sap/ui/core/themes/abnamo_glass/fonts/lato-latin-ext-700-normal.woff2 +0 -0
  43. package/theme/src/sap/ui/core/themes/abnamo_glass/fonts.less +78 -0
  44. package/theme/src/sap/ui/core/themes/abnamo_glass/library.source.less +9 -0
  45. package/theme/src/sap/ui/core/themes/abnamo_glass/parameters.less +106 -0
  46. package/theme/src/sap/ui/core/themes/abnamo_glass_dark/.theming +6 -0
  47. package/theme/src/sap/ui/core/themes/abnamo_glass_dark/fonts.less +78 -0
  48. package/theme/src/sap/ui/core/themes/abnamo_glass_dark/library.source.less +9 -0
  49. package/theme/src/sap/ui/core/themes/abnamo_glass_dark/parameters.less +106 -0
  50. package/theme/src/sap/ui/integration/themes/abnamo_glass/library.source.less +8 -0
  51. package/theme/src/sap/ui/integration/themes/abnamo_glass_dark/library.source.less +8 -0
  52. package/theme/src/sap/ui/layout/themes/abnamo_glass/library.source.less +8 -0
  53. package/theme/src/sap/ui/layout/themes/abnamo_glass_dark/library.source.less +8 -0
  54. package/theme/src/sap/ui/mdc/themes/abnamo_glass/library.source.less +8 -0
  55. package/theme/src/sap/ui/mdc/themes/abnamo_glass_dark/library.source.less +8 -0
  56. package/theme/src/sap/ui/table/themes/abnamo_glass/library.source.less +8 -0
  57. package/theme/src/sap/ui/table/themes/abnamo_glass_dark/library.source.less +8 -0
  58. package/theme/src/sap/ui/unified/themes/abnamo_glass/library.source.less +8 -0
  59. package/theme/src/sap/ui/unified/themes/abnamo_glass_dark/library.source.less +8 -0
  60. package/theme/src/sap/uxap/themes/abnamo_glass/library.source.less +8 -0
  61. package/theme/src/sap/uxap/themes/abnamo_glass_dark/library.source.less +8 -0
  62. package/theme/ui5.yaml +30 -0
  63. package/themes/UI5/sap/ui/codeeditor/themes/abnamo_glass/library-RTL.css +19 -0
  64. package/themes/UI5/sap/ui/codeeditor/themes/abnamo_glass/library-parameters.json +1 -0
  65. package/themes/UI5/sap/ui/codeeditor/themes/abnamo_glass/library.css +19 -0
  66. package/themes/UI5/sap/ui/codeeditor/themes/abnamo_glass_dark/library-RTL.css +19 -0
  67. package/themes/UI5/sap/ui/codeeditor/themes/abnamo_glass_dark/library-parameters.json +1 -0
  68. package/themes/UI5/sap/ui/codeeditor/themes/abnamo_glass_dark/library.css +19 -0
  69. package/themes/UI5/sap/ui/core/themes/abnamo_glass/.theming +6 -0
  70. package/themes/UI5/sap/ui/core/themes/abnamo_glass/fonts/OFL.txt +93 -0
  71. package/themes/UI5/sap/ui/core/themes/abnamo_glass/fonts/lato-latin-400-italic.woff +0 -0
  72. package/themes/UI5/sap/ui/core/themes/abnamo_glass/fonts/lato-latin-400-italic.woff2 +0 -0
  73. package/themes/UI5/sap/ui/core/themes/abnamo_glass/fonts/lato-latin-400-normal.woff +0 -0
  74. package/themes/UI5/sap/ui/core/themes/abnamo_glass/fonts/lato-latin-400-normal.woff2 +0 -0
  75. package/themes/UI5/sap/ui/core/themes/abnamo_glass/fonts/lato-latin-700-normal.woff +0 -0
  76. package/themes/UI5/sap/ui/core/themes/abnamo_glass/fonts/lato-latin-700-normal.woff2 +0 -0
  77. package/themes/UI5/sap/ui/core/themes/abnamo_glass/fonts/lato-latin-ext-400-italic.woff +0 -0
  78. package/themes/UI5/sap/ui/core/themes/abnamo_glass/fonts/lato-latin-ext-400-italic.woff2 +0 -0
  79. package/themes/UI5/sap/ui/core/themes/abnamo_glass/fonts/lato-latin-ext-400-normal.woff +0 -0
  80. package/themes/UI5/sap/ui/core/themes/abnamo_glass/fonts/lato-latin-ext-400-normal.woff2 +0 -0
  81. package/themes/UI5/sap/ui/core/themes/abnamo_glass/fonts/lato-latin-ext-700-normal.woff +0 -0
  82. package/themes/UI5/sap/ui/core/themes/abnamo_glass/fonts/lato-latin-ext-700-normal.woff2 +0 -0
  83. package/themes/UI5/sap/ui/core/themes/abnamo_glass/library-RTL.css +23 -0
  84. package/themes/UI5/sap/ui/core/themes/abnamo_glass/library-parameters.json +1 -0
  85. package/themes/UI5/sap/ui/core/themes/abnamo_glass/library.css +23 -0
  86. package/themes/UI5/sap/ui/core/themes/abnamo_glass_dark/.theming +6 -0
  87. package/themes/UI5/sap/ui/core/themes/abnamo_glass_dark/library-RTL.css +23 -0
  88. package/themes/UI5/sap/ui/core/themes/abnamo_glass_dark/library-parameters.json +1 -0
  89. package/themes/UI5/sap/ui/core/themes/abnamo_glass_dark/library.css +23 -0
  90. package/themes/UI5/sap/ui/integration/themes/abnamo_glass/library-RTL.css +19 -0
  91. package/themes/UI5/sap/ui/integration/themes/abnamo_glass/library-parameters.json +1 -0
  92. package/themes/UI5/sap/ui/integration/themes/abnamo_glass/library.css +19 -0
  93. package/themes/UI5/sap/ui/integration/themes/abnamo_glass_dark/library-RTL.css +19 -0
  94. package/themes/UI5/sap/ui/integration/themes/abnamo_glass_dark/library-parameters.json +1 -0
  95. package/themes/UI5/sap/ui/integration/themes/abnamo_glass_dark/library.css +19 -0
  96. package/themes/UI5/sap/ui/mdc/themes/abnamo_glass/library-RTL.css +19 -0
  97. package/themes/UI5/sap/ui/mdc/themes/abnamo_glass/library-parameters.json +1 -0
  98. package/themes/UI5/sap/ui/mdc/themes/abnamo_glass/library.css +19 -0
  99. package/themes/UI5/sap/ui/mdc/themes/abnamo_glass_dark/library-RTL.css +19 -0
  100. package/themes/UI5/sap/ui/mdc/themes/abnamo_glass_dark/library-parameters.json +1 -0
  101. package/themes/UI5/sap/ui/mdc/themes/abnamo_glass_dark/library.css +19 -0
  102. package/ui5-glass-theme.css +280 -0
package/LICENSE ADDED
@@ -0,0 +1,55 @@
1
+ Apache License
2
+
3
+ Version 2.0, January 2004
4
+
5
+ http://www.apache.org/licenses/
6
+
7
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
8
+
9
+ 1. Definitions.
10
+
11
+ "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
16
+
17
+ "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
18
+
19
+ "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
20
+
21
+ "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
22
+
23
+ "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
24
+
25
+ "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
26
+
27
+ "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
28
+
29
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
30
+
31
+ 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
32
+
33
+ 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
34
+
35
+ 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
36
+
37
+ You must give any other recipients of the Work or Derivative Works a copy of this License; and
38
+
39
+ You must cause any modified files to carry prominent notices stating that You changed the files; and
40
+
41
+ You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
42
+
43
+ If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
44
+
45
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
46
+
47
+ 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
48
+
49
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
50
+
51
+ 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
52
+
53
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
54
+
55
+ END OF TERMS AND CONDITIONS
package/NOTICE ADDED
@@ -0,0 +1,18 @@
1
+ @abnamo/ui5-glass-theme
2
+ Copyright 2026 Benedikt Kromer, ArchSoft (https://archsoft.de)
3
+
4
+ Licensed under the Apache License, Version 2.0 (LICENSE).
5
+
6
+ fonts/ and the Lato files in themes/UI5/sap/ui/core/themes/abnamo_glass/fonts/: Lato by Łukasz
7
+ Dziedzic, SIL Open Font License 1.1 (fonts/OFL.txt), files from @fontsource/lato, unchanged.
8
+
9
+ themes/UI5/ (built by `npm run build:themes`, in the npm package): the compiled themes contain CSS
10
+ of the SAP Horizon theme and its fonts (72, SAP icons, unchanged) from OpenUI5
11
+ (https://github.com/UI5/openui5), Copyright SAP SE or an SAP affiliate company and OpenUI5
12
+ contributors, licensed under the Apache License, Version 2.0. theme/src/ builds on it and sets
13
+ Horizon's theme parameters.
14
+
15
+ SAP, SAPUI5, SAP Fiori and other SAP products and services mentioned are trademarks or registered
16
+ trademarks of SAP SE in Germany and other countries. OpenUI5 and UI5 Web Components are open source
17
+ under the Apache License 2.0. This project is independent and is not affiliated with, endorsed by
18
+ or a partner of SAP SE.
package/README.md CHANGED
@@ -1,3 +1,138 @@
1
- # Temporary Holding Version
1
+ # @abnamo/ui5-glass-theme
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ A glass theme for **SAPUI5 / OpenUI5** apps and **UI5 Web Components**: frosted surfaces over a soft coloured ground, built on SAP Horizon. Light, dark and high contrast, switchable at runtime.
4
+
5
+ ![Teal, light](docs/light-teal.png)
6
+
7
+ | Blue, dark | Plain SAP Horizon (switched off) |
8
+ |---|---|
9
+ | ![Blue, dark](docs/dark-blue.png) | ![SAP Horizon](docs/horizon.png) |
10
+
11
+ ## What's in it
12
+
13
+ **The UI5 themes `abnamo_glass` and `abnamo_glass_dark`**, built the way SAP builds custom themes:
14
+ - A theme library for UI5 Tooling (`theme/`). Per library, a `library.source.less` imports SAP Horizon's and sets the parameters of SAP's Theming Base Content again (brand colour, buttons, links, fields, radii, surfaces, font). Everything Horizon derives from them follows.
15
+ - `abnamo_glass` extends `sap_horizon`, and `abnamo_glass_dark` extends `sap_horizon_dark`.
16
+ - Compiled into `themes/UI5/`: `library.css`, `library-RTL.css` and `library-parameters.json` for 11 libraries (sap.m, sap.f, sap.ui.core, sap.ui.layout, sap.ui.table, sap.uxap, sap.ui.mdc and more).
17
+ - UI5 loads them from a theme root like any SAP theme. `Theming.setTheme`, `Parameters.get` and the theme parameters in your own CSS all work.
18
+
19
+ **The CSS layer `ui5-glass-theme.css`**: the same look as CSS variables over Horizon (`--sapBrandColor`, …).
20
+ - It adds what a UI5 theme can't: the coloured ground behind the page, frosted glass (`backdrop-filter`) on headers, panels and tiles, and calm scrollbars.
21
+ - It is also how **UI5 Web Components** get the look, since they take their theme from CSS variables.
22
+
23
+ Use both in an OpenUI5/SAPUI5 app; `boot.js` connects them.
24
+
25
+ - **Light, dark and high contrast** follow the system settings. High contrast is SAP's own `sap_horizon_hcb`/`hcw`, untouched.
26
+ - **"Reduce transparency" and "reduce motion"** in the system settings turn the glass and the drifting ground off.
27
+ - **Scrollbars:** UI5 replaces the thin overlay scrollbars of macOS, Safari and Chromium with a classic grey bar. With the theme on, you get the system's own again.
28
+ - **Lato** is the theme's font (SIL Open Font License), as 72 is Horizon's.
29
+
30
+ ## Use it
31
+
32
+ ```sh
33
+ npm install @abnamo/ui5-glass-theme
34
+ ```
35
+
36
+ Serve the package's files with your app (below as `ui5-glass-theme/`), then in `<head>`, before UI5:
37
+
38
+ ```html
39
+ <html data-ui5-glass-theme="teal" data-ui5-glass-theme-root="ui5-glass-theme/themes/UI5/">
40
+ <head>
41
+ <link rel="stylesheet" href="ui5-glass-theme/fonts/fonts.css">
42
+ <link rel="stylesheet" href="ui5-glass-theme/ui5-glass-theme.css">
43
+ <link rel="stylesheet" href="ui5-glass-theme/openui5.css"> <!-- OpenUI5/SAPUI5 apps -->
44
+ <script src="ui5-glass-theme/boot.js"></script>
45
+ <script id="sap-ui-bootstrap" src="resources/sap-ui-core.js" …></script> <!-- without data-sap-ui-theme -->
46
+ ```
47
+
48
+ `boot.js` picks the theme for the system settings and hands it to UI5 (`window["sap-ui-config"]`: `theme` and `themeRoots`):
49
+
50
+ | `data-ui5-glass-theme` | Light | Dark | High contrast |
51
+ |---|---|---|---|
52
+ | `teal` | `abnamo_glass` | `abnamo_glass_dark` | `sap_horizon_hcw` / `hcb` |
53
+ | `blue` (CSS layer only) | `sap_horizon` | `sap_horizon_dark` | `sap_horizon_hcw` / `hcb` |
54
+ | none | `sap_horizon` | `sap_horizon_dark` | `sap_horizon_hcw` / `hcb` |
55
+
56
+ Without `data-ui5-glass-theme-root`, `teal` is Horizon recoloured by the CSS layer alone. UI5 Web Components get the Horizon theme through their `script[data-ui5-config]` when it comes before `boot.js`, and the CSS layer recolours it.
57
+
58
+ ### The themes alone, the SAP way
59
+
60
+ The compiled themes work without the CSS layer, in any UI5 app, like a theme from SAP's Theme Designer:
61
+
62
+ ```html
63
+ <script id="sap-ui-bootstrap" src="resources/sap-ui-core.js"
64
+ data-sap-ui-theme="abnamo_glass"
65
+ data-sap-ui-theme-roots='{"abnamo_glass": "/ui5-glass-theme/themes/UI5/", "abnamo_glass_dark": "/ui5-glass-theme/themes/UI5/"}'>
66
+ </script>
67
+ ```
68
+
69
+ Or for a running app, in the URL: `?sap-theme=abnamo_glass@/ui5-glass-theme/themes` (UI5 adds `UI5/` itself). Or copy `themes/UI5/sap/` into your app's `resources/`, and no theme root is needed. Without the CSS layer you get the colours, shapes and font, but no ground and no frosted glass.
70
+
71
+ ### A switch
72
+
73
+ ```js
74
+ ui5GlassTheme.set("teal"); // on (or "blue")
75
+ ui5GlassTheme.set(null); // off: plain SAP Horizon
76
+ ui5GlassTheme.get(); // "teal" | "blue" | null
77
+ ui5GlassTheme.theme; // the UI5 theme in use, e.g. "abnamo_glass"
78
+ ```
79
+
80
+ When UI5 is already running, `set` switches through UI5's own `Theming.setTheme`. Nothing is stored. To remember the user's choice, keep it yourself (`localStorage`) and apply it before `boot.js`:
81
+
82
+ ```html
83
+ <script>document.documentElement.dataset.ui5GlassTheme = localStorage.glass ?? "teal";</script>
84
+ ```
85
+
86
+ ### Your own colours
87
+
88
+ **CSS layer only:** override the tokens. Everything else is derived from them.
89
+
90
+ ```css
91
+ html[data-ui5-glass-theme="brand"] {
92
+ --glass-accent: #8a3ffc; --glass-accent-hover: #7432e0; --glass-accent-active: #5f27bd;
93
+ --glass-accent-text: #6929c4; --glass-ground: #f7f5fc;
94
+ --glass-ambient-1: #d4bbff; --glass-ambient-2: #bae6ff; --glass-ambient-3: #ffd6e8;
95
+ }
96
+ html[data-ui5-glass-theme="brand"][data-ui5-glass-mode="dark"] { --glass-accent: #a56eff; /* … */ }
97
+ ```
98
+
99
+ **Your own compiled theme:** fork the repo and change the colours in `scripts/tokens.js` (one place for both the CSS layer and the UI5 themes) and the theme IDs in `ui5Themes`. Then:
100
+
101
+ ```sh
102
+ npm run generate # writes the tokens into ui5-glass-theme.css and the LESS sources into theme/src/
103
+ npm run build:themes # UI5 Tooling compiles them into themes/UI5/
104
+ ```
105
+
106
+ Your own elements get the material with `class="ui5-glass"` (or `ui5-glass-strong` for bars and popovers).
107
+
108
+ | File | For |
109
+ |---|---|
110
+ | `themes/UI5/` | The compiled UI5 themes `abnamo_glass` and `abnamo_glass_dark`: a theme root |
111
+ | `theme/` | Their sources: a UI5 Tooling theme library (`ui5.yaml`, `src/`) |
112
+ | `ui5-glass-theme.css` | The CSS layer: tokens, Horizon parameters, ground, scrollbars, `.ui5-glass` |
113
+ | `openui5.css` | OpenUI5/SAPUI5 (sap.m, sap.f): page headers, panels, tiles and cards as glass |
114
+ | `boot.js` | Light, dark or high contrast for UI5, the theme roots, and the switch |
115
+ | `fonts/` | Lato, regular, italic and bold, Latin and Latin Extended |
116
+
117
+ ## Browser support
118
+
119
+ The latest Chrome, Edge, Safari and Firefox. The glass needs `backdrop-filter`; where it is missing, the surfaces become nearly opaque instead. Tested with OpenUI5 1.154 and UI5 Web Components 2.
120
+
121
+ ## Demo
122
+
123
+ ```sh
124
+ npm run build:themes
125
+ npm run demo # http://localhost:4300/demo/ (OpenUI5 from SAP's CDN)
126
+ ```
127
+
128
+ ## Who makes it
129
+
130
+ [Abnamo](https://abnamo.de) runs acceptance tests for SAP Fiori apps in your CI, and wears this theme. It's made by [ArchSoft](https://archsoft.de), an SAP consultancy. Issues and pull requests are welcome.
131
+
132
+ ## License
133
+
134
+ Apache-2.0 (LICENSE). Lato: SIL Open Font License 1.1 (`fonts/OFL.txt`).
135
+
136
+ The compiled themes in `themes/UI5/` contain SAP Horizon's CSS and fonts (72, SAP icons) from OpenUI5, (c) SAP SE or an SAP affiliate company, Apache-2.0. See NOTICE.
137
+
138
+ SAP, SAPUI5 and SAP Fiori are trademarks or registered trademarks of SAP SE in Germany and other countries. OpenUI5 and UI5 Web Components are open source under the Apache License 2.0. This project is independent and is not affiliated with, endorsed by or a partner of SAP SE.
package/boot.js ADDED
@@ -0,0 +1,70 @@
1
+ /*! @abnamo/ui5-glass-theme | Apache-2.0 | https://github.com/abnamo/ui5-glass-theme */
2
+ // Runs first, in <head>, before UI5 and before anything is drawn:
3
+ // - picks the UI5 theme for the system settings (light, dark, high contrast) and the glass, and
4
+ // hands it to OpenUI5/SAPUI5 (window["sap-ui-config"]) and to UI5 Web Components
5
+ // (script[data-ui5-config], when it is already in the page):
6
+ // glass "teal" with the compiled themes (<html data-ui5-glass-theme-root>): abnamo_glass or
7
+ // abnamo_glass_dark, UI5 themes in their own right;
8
+ // otherwise: sap_horizon or sap_horizon_dark, and the CSS layer recolours it;
9
+ // high contrast: always sap_horizon_hcb or sap_horizon_hcw, as SAP made them;
10
+ // - sets data-ui5-glass-mode ("light", "dark", "hc") on <html>;
11
+ // - keeps the system's own scrollbars while the glass is on.
12
+ // Nothing is stored. window.ui5GlassTheme.set("teal" | "blue" | null) turns the glass on or off at
13
+ // any time, through UI5's own Theming.setTheme where a compiled theme applies; remember the choice
14
+ // yourself if you offer a switch.
15
+ (function () {
16
+ "use strict";
17
+ var root = document.documentElement;
18
+ var media = function (query) { return !!(window.matchMedia && window.matchMedia(query).matches); };
19
+ var dark = media("(prefers-color-scheme: dark)");
20
+ var contrast = media("(prefers-contrast: more)") || media("(forced-colors: active)");
21
+ var mode = contrast ? "hc" : dark ? "dark" : "light";
22
+ var horizon = contrast ? (dark ? "sap_horizon_hcb" : "sap_horizon_hcw") : dark ? "sap_horizon_dark" : "sap_horizon";
23
+ root.setAttribute("data-ui5-glass-mode", mode);
24
+
25
+ // the compiled themes: where they are (a theme root; "" = the app's own resources/)
26
+ var themeRoot = root.getAttribute("data-ui5-glass-theme-root");
27
+ var COMPILED = { teal: "abnamo_glass" };
28
+ function ui5Theme(preset) {
29
+ var compiled = themeRoot !== null && !contrast && COMPILED[preset];
30
+ return compiled ? compiled + (dark ? "_dark" : "") : horizon;
31
+ }
32
+ function get() { return root.getAttribute("data-ui5-glass-theme"); }
33
+ var theme = ui5Theme(get());
34
+
35
+ // OpenUI5 / SAPUI5 read this when they start (unless the bootstrap tag names a theme itself)
36
+ var config = window["sap-ui-config"] = window["sap-ui-config"] || {};
37
+ if (!config.theme) config.theme = theme;
38
+ if (themeRoot) {
39
+ config.themeRoots = config.themeRoots || {};
40
+ for (var preset in COMPILED) {
41
+ config.themeRoots[COMPILED[preset]] = themeRoot;
42
+ config.themeRoots[COMPILED[preset] + "_dark"] = themeRoot;
43
+ }
44
+ }
45
+ // UI5 Web Components: their configuration script, if it comes before this one. They take the
46
+ // Horizon theme; the CSS layer recolours it (SAP's documented way for web components).
47
+ var webComponents = document.querySelector("script[data-ui5-config]");
48
+ if (webComponents) {
49
+ var settings = JSON.parse(webComponents.textContent || "{}");
50
+ settings.theme = horizon;
51
+ webComponents.textContent = JSON.stringify(settings);
52
+ }
53
+
54
+ var NATIVE_SCROLLBARS = ["sapUiNativeScrollbars", "ui5-content-native-scrollbars"];
55
+ function set(preset) {
56
+ if (preset) root.setAttribute("data-ui5-glass-theme", preset);
57
+ else root.removeAttribute("data-ui5-glass-theme");
58
+ for (var i = 0; i < NATIVE_SCROLLBARS.length; i++) root.classList.toggle(NATIVE_SCROLLBARS[i], !!preset);
59
+ var next = ui5Theme(preset);
60
+ if (next !== api.theme) {
61
+ api.theme = next;
62
+ // UI5 already running: switch through its public Theming API
63
+ var sap = window.sap;
64
+ if (sap && sap.ui && sap.ui.require) sap.ui.require(["sap/ui/core/Theming"], function (Theming) { Theming.setTheme(next); });
65
+ }
66
+ }
67
+
68
+ var api = window.ui5GlassTheme = { mode: mode, theme: theme, get: get, set: set };
69
+ set(get());
70
+ }());
package/fonts/OFL.txt ADDED
@@ -0,0 +1,93 @@
1
+ Copyright (c) 2010-2011 by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1. Lato-HairlineItalic.ttf: Copyright (c) 2010-2011 by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1. Lato-Light.ttf: Copyright (c) 2010-2011 by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1. Lato-LightItalic.ttf: Copyright (c) 2010-2011 by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1. Lato-Regular.ttf: Copyright (c) 2010-2011 by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1. Lato-Italic.ttf: Copyright (c) 2010-2011 by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1. Lato-Bold.ttf: Copyright (c) 2010-2011 by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1. Lato-BoldItalic.ttf: Copyright (c) 2010-2011 by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1. Lato-Black.ttf: Copyright (c) 2010-2011 by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1. Lato-BlackItalic.ttf: Copyright (c) 2010-2011 by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1.
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,72 @@
1
+ /* Lato by Łukasz Dziedzic, SIL Open Font License 1.1 (OFL.txt); files from @fontsource/lato 5.3.0, unchanged. */
2
+ /* lato-latin-ext-400-normal */
3
+ @font-face {
4
+ font-family: 'Lato';
5
+ font-style: normal;
6
+ font-display: swap;
7
+ font-weight: 400;
8
+ src: url(./lato-latin-ext-400-normal.woff2) format('woff2'), url(./lato-latin-ext-400-normal.woff) format('woff');
9
+ unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
10
+ }
11
+
12
+ /* lato-latin-400-normal */
13
+ @font-face {
14
+ font-family: 'Lato';
15
+ font-style: normal;
16
+ font-display: swap;
17
+ font-weight: 400;
18
+ src: url(./lato-latin-400-normal.woff2) format('woff2'), url(./lato-latin-400-normal.woff) format('woff');
19
+ unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
20
+ }/* lato-latin-ext-400-italic */
21
+ @font-face {
22
+ font-family: 'Lato';
23
+ font-style: italic;
24
+ font-display: swap;
25
+ font-weight: 400;
26
+ src: url(./lato-latin-ext-400-italic.woff2) format('woff2'), url(./lato-latin-ext-400-italic.woff) format('woff');
27
+ unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
28
+ }
29
+
30
+ /* lato-latin-400-italic */
31
+ @font-face {
32
+ font-family: 'Lato';
33
+ font-style: italic;
34
+ font-display: swap;
35
+ font-weight: 400;
36
+ src: url(./lato-latin-400-italic.woff2) format('woff2'), url(./lato-latin-400-italic.woff) format('woff');
37
+ unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
38
+ }/* lato-latin-ext-700-normal */
39
+ @font-face {
40
+ font-family: 'Lato';
41
+ font-style: normal;
42
+ font-display: swap;
43
+ font-weight: 700;
44
+ src: url(./lato-latin-ext-700-normal.woff2) format('woff2'), url(./lato-latin-ext-700-normal.woff) format('woff');
45
+ unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
46
+ }
47
+
48
+ /* lato-latin-700-normal */
49
+ @font-face {
50
+ font-family: 'Lato';
51
+ font-style: normal;
52
+ font-display: swap;
53
+ font-weight: 700;
54
+ src: url(./lato-latin-700-normal.woff2) format('woff2'), url(./lato-latin-700-normal.woff) format('woff');
55
+ unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
56
+ }
57
+ @font-face {
58
+ font-family: 'Lato-Bold';
59
+ font-style: normal;
60
+ font-display: swap;
61
+ font-weight: 100 900;
62
+ src: url(./lato-latin-ext-700-normal.woff2) format('woff2'), url(./lato-latin-ext-700-normal.woff) format('woff');
63
+ unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
64
+ }
65
+ @font-face {
66
+ font-family: 'Lato-Bold';
67
+ font-style: normal;
68
+ font-display: swap;
69
+ font-weight: 100 900;
70
+ src: url(./lato-latin-700-normal.woff2) format('woff2'), url(./lato-latin-700-normal.woff) format('woff');
71
+ unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
72
+ }
Binary file
Binary file
Binary file
package/openui5.css ADDED
@@ -0,0 +1,42 @@
1
+ /*! ui5-glass-theme | Apache-2.0 | https://github.com/abnamo/ui5-glass-theme */
2
+ /* For OpenUI5/SAPUI5 apps (sap.m and friends), on top of ui5-glass-theme.css: the app's surfaces
3
+ * become glass over the ground. Load it after OpenUI5's theme, or anywhere: it only sets Horizon
4
+ * parameters (and a blur on the few large surfaces), scoped to html[data-ui5-glass-theme].
5
+ * Fields, popovers and dialogs keep their opaque Horizon backgrounds, for legibility.
6
+ */
7
+ html[data-ui5-glass-theme]:not([data-ui5-glass-mode="hc"]) {
8
+ --sapPageHeader_Background: var(--glass-surface-strong);
9
+ --sapPageFooter_Background: var(--glass-surface-strong);
10
+ --sapObjectHeader_Background: var(--glass-surface-strong);
11
+ --sapToolbar_Background: transparent;
12
+ --sapGroup_ContentBackground: var(--glass-surface);
13
+ --sapGroup_TitleBackground: transparent;
14
+ --sapList_HeaderBackground: transparent;
15
+ --sapTile_Background: var(--glass-surface);
16
+ --sapBaseColor: var(--glass-surface);
17
+ }
18
+
19
+ /* OpenUI5 paints the app's own background with a fixed colour, not a parameter */
20
+ html[data-ui5-glass-theme]:not([data-ui5-glass-mode="hc"]) :is(.sapUiGlobalBackgroundColor, .sapMShellGlobalInnerBackground) { background-color: transparent; }
21
+
22
+ /* the frost: page header and footer, panels, tiles */
23
+ html[data-ui5-glass-theme]:not([data-ui5-glass-mode="hc"]) :is(.sapMPageHeader, .sapMPageFooter, .sapMPanel, .sapMGT, .sapFCard) {
24
+ -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(170%);
25
+ backdrop-filter: blur(var(--glass-blur)) saturate(170%);
26
+ }
27
+ html[data-ui5-glass-theme]:not([data-ui5-glass-mode="hc"]) :is(.sapMPanel, .sapMGT, .sapFCard) {
28
+ border: 1px solid var(--glass-edge);
29
+ border-radius: var(--glass-radius);
30
+ box-shadow: inset 0 1px 0 var(--glass-sheen), var(--glass-shadow);
31
+ overflow: hidden;
32
+ }
33
+ html[data-ui5-glass-theme]:not([data-ui5-glass-mode="hc"]) .sapMPageHeader { box-shadow: 0 1px 0 var(--glass-edge); }
34
+
35
+ @media (prefers-reduced-transparency: reduce) {
36
+ html[data-ui5-glass-theme] :is(.sapMPageHeader, .sapMPageFooter, .sapMPanel, .sapMGT, .sapFCard) { -webkit-backdrop-filter: none; backdrop-filter: none; }
37
+ }
38
+
39
+ /* segmented buttons: the focus frame follows the pill, not Horizon's fixed .375rem corners */
40
+ html[data-ui5-glass-theme]:not([data-ui5-glass-mode="hc"]) .sapMSegBBtnFocusable .sapMSegBBtnInner::after {
41
+ border-radius: var(--sapButton_Segment_BorderCornerRadius) !important; /* Horizon's focus rules carry up to eight classes */
42
+ }
package/package.json CHANGED
@@ -1,6 +1,71 @@
1
1
  {
2
2
  "name": "@abnamo/ui5-glass-theme",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "A glass theme for SAPUI5/OpenUI5 apps and UI5 Web Components: frosted surfaces over a soft coloured ground, on top of SAP Horizon. The UI5 themes abnamo_glass and abnamo_glass_dark, and a CSS layer; light, dark, high contrast, switchable at runtime.",
5
+ "homepage": "https://github.com/abnamo/ui5-glass-theme#readme",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/abnamo/ui5-glass-theme.git"
9
+ },
10
+ "bugs": {
11
+ "url": "https://github.com/abnamo/ui5-glass-theme/issues"
12
+ },
13
+ "license": "Apache-2.0 AND OFL-1.1",
14
+ "author": "Benedikt Kromer, ArchSoft (https://archsoft.de)",
15
+ "type": "module",
16
+ "style": "./ui5-glass-theme.css",
17
+ "exports": {
18
+ ".": "./ui5-glass-theme.css",
19
+ "./ui5-glass-theme.css": "./ui5-glass-theme.css",
20
+ "./openui5.css": "./openui5.css",
21
+ "./boot.js": "./boot.js",
22
+ "./fonts/*": "./fonts/*",
23
+ "./package.json": "./package.json",
24
+ "./themes/*": "./themes/*",
25
+ "./theme/*": "./theme/*"
26
+ },
27
+ "files": [
28
+ "ui5-glass-theme.css",
29
+ "openui5.css",
30
+ "boot.js",
31
+ "fonts/",
32
+ "themes/",
33
+ "theme/ui5.yaml",
34
+ "theme/src/",
35
+ "NOTICE"
36
+ ],
37
+ "scripts": {
38
+ "fonts": "node scripts/fonts.js",
39
+ "test": "playwright test",
40
+ "demo": "node test/serve.js",
41
+ "generate": "node scripts/generate.js",
42
+ "build:themes": "node scripts/build-themes.js",
43
+ "site": "node scripts/site.js",
44
+ "prepack": "npm run build:themes"
45
+ },
46
+ "keywords": [
47
+ "ui5",
48
+ "openui5",
49
+ "sapui5",
50
+ "ui5-webcomponents",
51
+ "fiori",
52
+ "theme",
53
+ "horizon",
54
+ "glass",
55
+ "frosted-glass",
56
+ "glassmorphism",
57
+ "css"
58
+ ],
59
+ "devDependencies": {
60
+ "@fontsource/lato": "5.3.0",
61
+ "@playwright/test": "1.65.2",
62
+ "@ui5/cli": "4.0.73",
63
+ "@ui5/project": "4.1.0"
64
+ },
65
+ "engines": {
66
+ "node": ">=22"
67
+ },
68
+ "publishConfig": {
69
+ "access": "public"
70
+ }
71
+ }
@@ -0,0 +1,8 @@
1
+ /*!
2
+ * @abnamo/ui5-glass-theme | Apache-2.0 | https://github.com/abnamo/ui5-glass-theme
3
+ * Built on SAP Horizon (OpenUI5, (c) SAP SE or an SAP affiliate company, Apache-2.0).
4
+ * Generated from scripts/tokens.js (npm run generate).
5
+ */
6
+
7
+ @import "../sap_horizon/library.source.less";
8
+ @import "../../../../sap/ui/core/themes/abnamo_glass/parameters.less";
@@ -0,0 +1,8 @@
1
+ /*!
2
+ * @abnamo/ui5-glass-theme | Apache-2.0 | https://github.com/abnamo/ui5-glass-theme
3
+ * Built on SAP Horizon (OpenUI5, (c) SAP SE or an SAP affiliate company, Apache-2.0).
4
+ * Generated from scripts/tokens.js (npm run generate).
5
+ */
6
+
7
+ @import "../sap_horizon_dark/library.source.less";
8
+ @import "../../../../sap/ui/core/themes/abnamo_glass_dark/parameters.less";