Skip to content

Commit f7b80cd

Browse files
authored
fix(common-css): change common-css npm package (#6213)
BREAKING CHANGE: move common-css package from @sap-ui/common-css to @fundamental-styles/common-css
1 parent aef974f commit f7b80cd

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

packages/common-css/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Learn more at [http://sap.github.io/fundamental-styles/](http://sap.github.io/fu
2525
SAP UI Common CSS Package can stand on its own. To install the package:
2626

2727
```bash
28-
npm i @sap-ui/common-css
28+
npm i @fundamental-styles/common-css
2929
```
3030

3131
## Theming Prerequisites
@@ -50,14 +50,14 @@ Links:
5050
Include the compiled CSS file from the dist folder.
5151
Full build:
5252
```bash
53-
<link rel="stylesheet" href="node_modules/@sap-ui/common-css/dist/common-css.css" />
53+
<link rel="stylesheet" href="node_modules/@fundamental-styles/common-css/dist/common-css.css" />
5454
```
5555

5656
Modular imports (e.g., only colors or borders):
5757

5858
```bash
59-
<link rel="stylesheet" href="node_modules/@sap-ui/common-css/dist/sap-colors.css" />
60-
<link rel="stylesheet" href="node_modules/@sap-ui/common-css/dist/sap-border.css" />
59+
<link rel="stylesheet" href="node_modules/@fundamental-styles/common-css/dist/sap-colors.css" />
60+
<link rel="stylesheet" href="node_modules/@fundamental-styles/common-css/dist/sap-border.css" />
6161

6262
```
6363

@@ -66,11 +66,11 @@ If you are using a build tool like Webpack, Vite, or Parcel, you can import the
6666

6767
```bash
6868
// Import the full build
69-
@import "~@sap-ui/common-css/dist/common-css.css";
69+
@import "~@fundamental-styles/common-css/dist/common-css.css";
7070

7171
// Or import specific modules
72-
@import "~@sap-ui/common-css/dist/sap-colors.css";
73-
@import "~@sap-ui/common-css/dist/sap-border.css";
72+
@import "~@fundamental-styles/common-css/dist/sap-colors.css";
73+
@import "~@fundamental-styles/common-css/dist/sap-border.css";
7474

7575
```
7676

@@ -83,8 +83,8 @@ The sass folder includes:
8383
- _common-settings.scss
8484

8585
```bash
86-
@import "~@sap-ui/common-css/sass/_common-variables.scss";
87-
@import "~@sap-ui/common-css/sass/_common-mixins.scss";
86+
@import "~@fundamental-styles/common-css/sass/_common-variables.scss";
87+
@import "~@fundamental-styles/common-css/sass/_common-mixins.scss";
8888

8989
.my-element {
9090
@include sap-padding(1rem);
@@ -99,7 +99,7 @@ The sass folder includes:
9999
## Folder Structure
100100

101101
```bash
102-
@sap-ui/common-css/
102+
@fundamental-styles/common-css/
103103
104104
├── dist/
105105
│ ├── common-css.css // Full build

packages/common-css/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@sap-ui/common-css",
2+
"name": "@fundamental-styles/common-css",
33
"version": "0.41.0-rc.85",
44
"license": "Apache-2.0",
55
"homepage": "https://sap.github.io/fundamental-styles/",

packages/styles/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
"homepage": "https://sap.github.io/fundamental-styles/",
1515
"peerDependencies": {
1616
"@sap-theming/theming-base-content": "SAP_THEMING_VERSION",
17-
"@sap-ui/common-css": "VERSION_PLACEHOLDER"
17+
"@fundamental-styles/common-css": "VERSION_PLACEHOLDER"
1818
}
1919
}

0 commit comments

Comments
 (0)