Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@itwin/itwinui-css
Advanced tools
CSS library for building beautiful and well working web UI components within Bentley Systems & iTwin.js applications.
An open-source design system that helps us build a unified web experience.
iTwinUI is a design system for building beautiful and well working web UI components within Bentley Systems & iTwin.js applications. It supports light and dark color schemes and also comes with high contrast versions of both.
iTwinUI-css consists of the following packages:
@itwin/itwinui-css
- the CSS for every component as well as some global styles@itwin/itwinui-variables
- CSS variables for iTwinUI's design tokensIf you're looking for React components, check out @itwin/itwinui-react
which is built on top of iTwinUI-css.
Install both packages:
npm install @itwin/itwinui-css @itwin/itwinui-variables
or if using yarn:
yarn add @itwin/itwinui-css @itwin/itwinui-variables
Import the global styles and variables (only needs to be done once per page):
@import '@itwin/itwinui-variables';
@import '@itwin/itwinui-css/global';
Note: If your project doesn't support export maps, then you might need to import the css from the real paths:
@import '@itwin/itwinui-variables/index.css'; @import '@itwin/itwinui-css/css/global.css';
Apply the iui-root
class at the root of your app, and use data-iui-theme
to specify theme (light
or dark
). See @itwin/itwinui-variables/README.md
for more details on theming.
<body class="iui-root" data-iui-theme="light">
<!-- your application code -->
</body>
Now you can start using our components:
@import '@itwin/itwinui-css/css/button.css';
<button class="iui-button" data-iui-variant="default">
<span>Hello world</span>
</button>
Check out our demo website for a preview of all our components.
Are you interested in helping iTwinUI grow and expand? You can submit feature requests or bugs by creating issues. Please read our CONTRIBUTING.md for more information.
Read our CHANGELOG.md to find recent changes.
FAQs
CSS library for building beautiful and well working web UI components within Bentley Systems & iTwin.js applications.
The npm package @itwin/itwinui-css receives a total of 1,422 weekly downloads. As such, @itwin/itwinui-css popularity was classified as popular.
We found that @itwin/itwinui-css demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.