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

@clair/theme-default

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clair/theme-default

common styles for clair design

  • 0.7.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-87.5%
Maintainers
2
Weekly downloads
 
Created
Source

Clair Styles

Common styles for ClairDesign.

使用指南

直接引入

import '@clair/dist/index.css'

如果希望启用一系列 focus-visible 的样式,需要使用 focus-visible polyfill。

自定义主题

// 可以参照 `src/_variable.scss` 文件覆盖变量
$--primary-color: #f0f;

@import '~@clair/scss/index';

如果希望启用一系列 focus-visible 的样式,请自行引入 polyfill。,并使用 PostCSS 插件 进行处理。

相关链接

开发指南

1. 启动

开发新组件时,请在 html/ 目录下新建一个 HTML 文件,如 html/component.html,内容复制 html/_template.html 即可。

然后执行命令:

# 注意替换文件名
npx parcel ./html/component.html
# OR
yarn dev component

2. 构建

采用 dart-sass 编译,因为安装快。(PS: parcel 现在也是使用 dart-sass 哟)

使用下面的命令可完成构建:

npm run build
# OR
./scripts/build.sh

Resources

FAQs

Package last updated on 21 Sep 2020

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