Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
fundamental-styles
Advanced tools
Fundamental Library Styles is a Design System and HTML/CSS Component Library used to build modern Product User Experiences with SAP Fiori look and feel with any web technology. Learn more about this project at - http://sap.github.io/fundamental-styles/
Fundamental Library Styles is a light-weight presentation layer that can be used with developers' UI framework of choice (e.g.Angular, React, Vue, etc.). Developers can build consistent Fiori apps in any web-based technology, by combining Fundamental Styles, library of stylesheets and HTML tags.
Learn more at http://sap.github.io/fundamental-styles/
We are also working on Angular , React and Vue implementations.
The library is modular, so you can use as little or as much as you need.
The fully compiled, minified library is available via unpkg CDN for inclusion in your application.
For prerelease
version use
<link href='https://unpkg.com/fundamental-styles@prerelease/dist/fundamental-styles.css' rel='stylesheet'>
For latest
stable version use
<link href='https://unpkg.com/fundamental-styles@latest/dist/fundamental-styles.css' rel='stylesheet'>
You can also include specific version of library into your html via using
<link href='https://unpkg.com/fundamental-styles@{versionNumber}/dist/fundamental-styles.css' rel='stylesheet'>
where you should replace {versionNumber}
with desired version number. For example with 0.20.3
To use particular theme you need to include two CSS variables files:
<link href='https://unpkg.com/@sap-theming/theming-base-content/content/Base/baseLib/{themeName}/css_variables.css' rel='stylesheet'>
<link href='https://unpkg.com/fundamental-styles@{versionNumber}/dist/theming/{themeName}.css' rel='stylesheet'>
Available values for themeName
are
sap_horizon
,
sap_horizon_dark
,
sap_horizon_hcb
,
sap_horizon_hcw
,
sap_fiori_3
,
sap_fiori_3_dark
,
sap_fiori_3_hcb
,
sap_fiori_3_hcw
,
sap_fiori_3_light_dark
The compiled CSS for the full library and modules, e.g., core, layout, etc., are distributed via NPM.
npm install fundamental-styles --save
NOTE: We only distribute compiled CSS for each component, not the full project or HTML for specific components.
See the Icon Component for a list of icon class names. See Project Configuration below for instructions to include SAP Fiori icons in your project.
This project does not contain fonts and icons - they must be added to your project separately. Download the @sap-theming library. After adding fonts and icons to your project, include the following in your CSS:
@font-face {
font-family: "72";
src: url("~@sap-theming/theming-base-content/content/Base/baseLib/baseTheme/fonts/72-Regular-full.woff") format("woff");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "72";
src: url("~@sap-theming/theming-base-content/content/Base/baseLib/baseTheme/fonts/72-Bold-full.woff") format("woff");
font-weight: 700;
font-style: normal;
}
@font-face {
font-family: "72";
src: url("~@sap-theming/theming-base-content/content/Base/baseLib/baseTheme/fonts/72-Light-full.woff") format("woff");
font-weight: 300;
font-style: normal;
}
@font-face {
font-family: "SAP-icons";
src: url("~@sap-theming/theming-base-content/content/Base/baseLib/sap_horizon/fonts/SAP-icons.woff") format("woff");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'BusinessSuiteInAppSymbols';
src: url('~@sap-theming/theming-base-content/content/Base/baseLib/sap_horizon/fonts/BusinessSuiteInAppSymbols.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'SAP-icons-TNT';
src: url('~@sap-theming/theming-base-content/content/Base/baseLib/sap_horizon/fonts/SAP-icons-TNT.woff') format('woff');
font-weight: normal;
font-style: normal;
}
html {
font-size: 16px;
}
Clone Repository Clone the repo using the git software of your choice or using the git command git clone https://github.com/SAP/fundamental-styles.git
Install NPM Dependencies: npm install
Serve the development playground and documentation website locally
npm start
npm run start:prod
The project has the following prerequisites:
Our Service Level Agreement. Fundamental Library Styles is aiming to deliver:
Bleeding in
means that CSS global reset won't
affect the component and bleeding out
means that the component styling should not affect other HTML elements)This library is also being consumed by Fundamental Library for Angular , Fundamental Library for React, and Fundamental Library for Vue.
The above SLA is the primary difference between this library and the earlier Fundamental.
If you encounter an issue, you can create a ticket or post on the Fundamentals Slack channel .
If you want to contribute, please check the Contribution Guidelines. Also check the Development Guidelines and Visual Testing Guide.
The fundamental-styles
library follows Semantic Versioning. These components strictly adhere to
the [MAJOR].[MINOR].[PATCH]
numbering system (also known as [BREAKING].[FEATURE].[FIX]
).
Merges to the main
branch will be published as a prerelease. Pre-releases will include an rc version (_
e.g._ [MAJOR].[MINOR].[PATCH]-rc.[RC]
).
The following circumstances will be considered a MAJOR or BREAKING change:
role
, aria-*
, data-*
)
Note: Fundamental Styles provides CSS directly, and HTML as reference to consumers. Because of the reference relationship of the HTML seen in Fundamental Styles, we want to be very clear when we alter that reference so that it is properly reflected in JS implementation libraries. Because of this, even non-visual changes will be treated as breaking.
The following circumstances will NOT be considered a MAJOR or BREAKING change:
Thanks to Chromatic for providing the visual testing platform that helps us review UI changes and catch visual regressions.
0.37.4-rc.0 (2024-07-19)
Note: Version bump only for package fundamental-styles
FAQs
Fundamental Library Styles is a Design System and HTML/CSS Component Library used to build modern Product User Experiences with SAP Fiori look and feel with any web technology. Learn more about this project at - http://sap.github.io/fundamental-styles/
The npm package fundamental-styles receives a total of 16,941 weekly downloads. As such, fundamental-styles popularity was classified as popular.
We found that fundamental-styles demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.