Socket
Book a DemoInstallSign in
Socket

@clr/ui

Package Overview
Dependencies
Maintainers
4
Versions
379
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clr/ui

CSS for Clarity

latest
Source
npmnpm
Version
17.11.10
Version published
Maintainers
4
Created
Source

Installing Clarity UI npm version

  • Install Clarity UI package through npm:

    npm install @clr/ui
    
  • Include @cds/core/global.min.css, @cds/core/styles/theme.dark.min.css, and clr-ui.min.css in your HTML file and add the cds-theme attribute to your body tag:

    <link rel="stylesheet" href="path/to/node_modules/@cds/core/global.min.css">
    <link rel="stylesheet" href="path/to/node_modules/@cds/core/styles/theme.dark.min.css">
    <link rel="stylesheet" href="path/to/node_modules/@clr/ui/clr-ui.min.css">
    
  • Add the cds-theme="light" (or cds-theme="dark" for dark theme) to the body tag:

    <body cds-theme"light">
    
  • Write your HTML with the Clarity CSS class names and markup.

Versioning

The version of this library is aligned to the version of @clr/angular, and does not independently follow semantic versioning. While we strive to only introduce breaking changes in major versions, we may at times need to introduce a breaking change in a minor version in order to maintain alignment with the @clr/angular library. For projects that choose to use this package, we recommend pinning your project to a specific path version and treating each upgrade as a potentially breaking change.

FAQs

Package last updated on 24 Oct 2025

Did you know?

Socket

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.

Install

Related posts