You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> We've tried a [quick migration to newer SCSS syntax like e.g. `@use` instead of the nowadays deprecated `@import`](https://github.com/db-ui/core/issues/994), but this seems to be more complicated than expected.
24
+
> You might face several warnings on the console when using SASS with our packages regarding `@import` usage. If you'd like to prevent those, you might as well want to evaluate migrating to our newer version of the DB UX Design System: <https://github.com/db-ui/mono>
25
+
22
26
DB Personenverkehr and DB Systel have merged their Design Systems for Web [with DB UX Design System v2](https://marketingportal.extranet.deutschebahn.com/marketingportal/Design-Anwendungen/db-ux-design-system/version-2/Components) as their successor. Our goal is to provide a common UX based on the [DB "Moderne Ikone"](https://marketingportal.extranet.deutschebahn.com/marketingportal/Marke-und-Design#) for customer and employee applications. To achieve an end 2 end consistence from conception to implementation, we bring you this new version of DB UI Core (npm: `@db-ui/core`), that is being used within a Design System by S.R (Reisendeninformation) as well.
23
27
24
28
DB UI Core provides robust HTML UI components, reusable visual styles, and powerful tooling to help developers, designers, and content authors build, maintain, and scale best of class digital experiences.
Copy file name to clipboardExpand all lines: docs/getStarted.adoc
+41-13
Original file line number
Diff line number
Diff line change
@@ -113,19 +113,58 @@ Independently you need to add to `angular.json` a new line to assets like this:
113
113
114
114
It will copy on *npm build* the content of *core/dist* folder to *dist* folder in the angular app, that is deployed on *ng serve* and will give you access to assets like images, icons, etc. exported by DB UI Core. Don't forget to add it to any necessary configuration part included, like e.g. `projects.PROJECTNAME.architect.build.options` as well as `projects.PROJECTNAME.architect.test.options`
115
115
116
-
### Use scss files:
116
+
### Use SCSS files:
117
117
118
118
You can use the overall scss file or pick the relevant parts.
119
119
E.g. you can import the overall scss files to your `src/styles.scss` by adding the following imports based on your bundler in use.
120
120
121
-
#### Webpack based bundlers (e.g. Angular or Vue CLI)
121
+
#### Rollup based bundlers (e.g. Parcel, Vite)
122
+
123
+
For Rollup based bundlers like Vite or Parcel we're providing the following SCSS endpoint:
124
+
125
+
#####`@use` syntax
126
+
127
+
[source,scss]
128
+
----
129
+
@use "@db-ui/core/sources/css/rollup.assets-paths" as rollupAssetsPaths;
130
+
@use "@db-ui/core/sources/css/enterprise/db-ui-core" with (
0 commit comments