Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
ant-design-dtinsight-theme
Advanced tools
数栈UI4.0规范样式
1、package.json 中添加依赖
{
"dependencies": {
"ant-design-dtinsight-theme": "1.0.2"
}
}
2、src/root.tsx 文件中导入 src/stylesheet/dt-theme以及reset.less
// reset.less中已经引入了antd.less,故在项目中无需再引入antd样式文件
import 'ant-design-dtinsight-theme/src/stylesheet/dt-theme/reset.less';
import 'ant-design-dtinsight-theme/src/stylesheet/dt-theme/index.less';
使用方式:在scss文件中导入此项目中的const.scss文件
@import 'ant-design-dtinsight-theme/src/stylesheet/dt-theme/const.scss';
变量详解:
// 全局变量
// ==== 基础色 ====
$primaryColor: #3F87FF; // 主色
$hoverColor: #5C99FF; // 按钮 hover
$clickColor: #2672F0; // 按钮 点击
$deriveColor: #F2F9FF; // 衍生色 列表选中底色 部分tab选中底色
// ==== 无相色 ====
$black3: #333333; // 标题 主文字颜色
$black6: #666666; // 次要信息 tab未选中颜色
$black9: #999999; // 默认状态输入框内提示信息 按钮内icon颜色
$blackBF: #BFBFBF; // disable 字体颜色
$blackDD: #DDDDDD; // border颜色
$blackE8: #E8E8E8; // 列表里分割线颜色 disable按钮底色
$blackFA: #FAFAFA; // 灰色底色
// ==== 辅助色 ====
$red: #FF5F5C; // 错误提示文字、按钮色 运行失败提示色 必填项*颜色
$yellow: #FFB310; // 警示提示icon 待运行等状态颜色
$green: #16DE9A; // 成功icon 运行/发布成功状态颜色
// ==== 字体大小 ====
$font12: 12px; // 主字体大小 应用于列表内容、下拉、选择、输入框、弹窗等控件文字
$font14: 14px; // 左侧菜单栏字体、主标题字体、弹窗标题字体大小
$font16: 16px; // 顶部导航字体、部分需要强调标题字体大小
$font20: 20px; // 较少使用,引用与部分大标题
// ==== 图表配色 ====
$color1: #6384F0;
$color2: #339CFF;
$color3: #00C3E5;
$color4: #16DFB4;
$color5: #15D275;
$color6: #86E159;
# 默认分支为 master , 发布为此版本更新
$ npm run release
#【自定义】版本发布名称为 v1.0.0-test
$ npm run release -- -r v1.0.0-test
# 指定升级版本为【次】版本号
$ npm run release -- -r minor
# 指定升级版本为【主】版本号
$ npm run release -- -r major
# 指定升级版本为【修订】版本号
$ npm run release -- -r patch
# 指定发布分支
$ npm run release -- -b branchName
# 指定发布分支以及发布名称
$ npm run release -- -b branchName -r versionName
1.0.0
1.0.1
FAQs
This is a document of dtinsight-theme based on Ant Design.
The npm package ant-design-dtinsight-theme receives a total of 1 weekly downloads. As such, ant-design-dtinsight-theme popularity was classified as not popular.
We found that ant-design-dtinsight-theme demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.