Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@clr/ui

Package Overview
Dependencies
Maintainers
5
Versions
356
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clr/ui

CSS for Clarity

  • 16.4.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16K
decreased by-9.58%
Maintainers
5
Weekly downloads
 
Created
Source

Installing Clarity UI npm version

  1. Install Clarity UI package through npm:

    npm install @clr/ui
    
  2. Include 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/@clr/ui/clr-ui.min.css">
    
  3. Add the cds-theme="light" (or cds-theme="dark" for dark theme) to the body tag:

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

Legacy Styles (pre-v16)

Clarity recently introduced the Clarity Design System within the @cds/core library. As of v16, the Clarity team has migrated that system and styles to this and the @clr/angular package. This change came with UI changes that teams may not be prepared to make without proper planning, so the Clarity team has retained the existing styles but that has been moved to a legacy file that will be removed in v17 (~Jan-Feb/2024). To use those legacy styles, reference the file from its new location.

```
<link rel="stylesheet" href="path/to/node_modules/@clr/ui/legacy-clr-ui.min.css">
<!-- OR -->
<link rel="stylesheet" href="path/to/node_modules/@clr/ui/legacy-clr-ui-dark.min.css">
```

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 07 May 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc