diff --git a/.github/workflows/ci-check.yml b/.github/workflows/ci-check.yml
index 102b59c78..9b361239f 100644
--- a/.github/workflows/ci-check.yml
+++ b/.github/workflows/ci-check.yml
@@ -23,8 +23,6 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v4
- with:
- fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v4
with:
@@ -32,21 +30,11 @@ jobs:
- name: Setup yarn
run: npm install -g yarn
- name: Install deps
- id: dependencies
run: yarn install --frozen-lockfile
timeout-minutes: 15
- name: Build
run: yarn build
- name: Bundlewatch
run: yarn bundlewatch
- - name: Install Chromium
- run: yarn workspace @cloudtower/eagle exec playwright install --with-deps chromium
- name: Test
run: yarn test:ci
- - name: Check new fixed colors
- if: ${{ !cancelled() && steps.dependencies.outcome == 'success' }}
- env:
- PR_BASE_SHA: ${{ github.event.pull_request.base.sha }}
- run: yarn workspace @cloudtower/eagle lint:colors:changed "$PR_BASE_SHA"
- - name: Compare computed styles
- run: yarn workspace @cloudtower/eagle test:styles
diff --git a/packages/eagle/__test__/color-lint/check-changed-colors.test.cjs b/packages/eagle/__test__/color-lint/check-changed-colors.test.cjs
deleted file mode 100644
index e929e8557..000000000
--- a/packages/eagle/__test__/color-lint/check-changed-colors.test.cjs
+++ /dev/null
@@ -1,151 +0,0 @@
-const assert = require("node:assert/strict");
-const { execFileSync, spawnSync } = require("node:child_process");
-const { mkdirSync, mkdtempSync, rmSync, writeFileSync } = require("node:fs");
-const { tmpdir } = require("node:os");
-const path = require("node:path");
-
-const cwd = mkdtempSync(path.join(tmpdir(), "eagle-color-lint-"));
-const gate = path.resolve(
- __dirname,
- "../../tools/color-lint/check-changed-colors.cjs",
-);
-const git = (...args) =>
- execFileSync("git", ["-c", "core.hooksPath=/dev/null", ...args], {
- cwd,
- encoding: "utf8",
- stdio: ["ignore", "pipe", "pipe"],
- }).trim();
-const write = (file, source) =>
- writeFileSync(path.join(cwd, file), source + "\n");
-const commit = (message) => {
- git("add", ".");
- git("commit", "-m", message);
- return git("rev-parse", "HEAD");
-};
-const check = (base) =>
- spawnSync(process.execPath, [gate, base], { cwd, encoding: "utf8" });
-
-try {
- git("init", "-q");
- git("config", "user.name", "Eagle Color lint");
- git("config", "user.email", "color-lint@example.invalid");
- mkdirSync(path.join(cwd, "src"));
- const styles = [
- ".historical { color: #00122e; }",
- ".design-pending { border-color: #123456; }",
- ".multiline {",
- " color:",
- " #0080ff;",
- "}",
- ];
- write("src/styles.scss", styles.join("\n"));
- write("src/old.scss", ".old { color: #00122e; }");
- const base = commit("Historical colors");
-
- git("mv", "src/old.scss", "src/旧 样式.scss");
- write(
- "src/styles.scss",
- [
- ...styles,
- ".runtime { color: var(--text-neutral-primary); }",
- ".different-alpha { color: rgba(0, 21, 64, .3); }",
- ".different-rgb { color: rgb(0 127.9 255); }",
- ".still-pending { color: #123456; }",
- ".identifiers { animation-name: white; background: url(#0080ff); }",
- "$text-light-primary: var(--text-neutral-primary);",
- ".runtime-alias { color: $text-light-primary; }",
- ].join("\n"),
- );
- write(
- "src/runtime.tsx",
- "export const Runtime =
;",
- );
- commit("Unrelated edits and runtime references");
- const allowed = check(base);
- assert.equal(allowed.status, 0, allowed.stderr);
-
- styles[3] = " background-color:";
- write(
- "src/styles.scss",
- [
- ...styles,
- ".copy { color: #00122e; }",
- ".alias { --label-color: #{$text_light_primary}; }",
- ".alpha { color: rgba($text-neutral-quaternary, .3019607843137255); }",
- ".named { color: white; }",
- ".interpolation { --button-color: #{rgb(0 128 255)}; }",
- ".mixin { @include Autofill($white); }",
- ".srgb { color: color(srgb 1 1 1 / 100%); }",
- ].join("\n"),
- );
- write("src/script.ts", "export const colors = { color: 'rgb(0 128 255)' };");
- write(
- "src/[preview].scss",
- "/* stylelint-disable */\n.preview { color: #00122e; }",
- );
- write(
- "src/view.tsx",
- [
- "import { css } from '@linaria/core';",
- "export const Style = css`",
- " background: linear-gradient(#0080ff, var(--fill-neutral-white));",
- "`;",
- "export const View = ;",
- ].join("\n"),
- );
- commit("New fixed colors with equivalents");
- const blocked = check(base);
- assert.equal(blocked.status, 1, blocked.stderr);
- assert.match(
- blocked.stderr,
- /src\/styles\.scss:4: #0080ff .*--fill-outstanding-base/,
- );
- assert.match(
- blocked.stderr,
- /src\/styles\.scss:7: #00122e .*--text-neutral-primary/,
- );
- assert.match(
- blocked.stderr,
- /src\/styles\.scss:8: \$text_light_primary .*--text-neutral-primary/,
- );
- assert.match(
- blocked.stderr,
- /src\/styles\.scss:9: rgba\(.*--text-neutral-quaternary/,
- );
- assert.match(
- blocked.stderr,
- /src\/styles\.scss:10: white .*--fill-neutral-white/,
- );
- assert.match(
- blocked.stderr,
- /src\/styles\.scss:11: rgb\(0 128 255\) .*--fill-outstanding-base/,
- );
- assert.match(
- blocked.stderr,
- /src\/styles\.scss:12: \$white .*--fill-neutral-white/,
- );
- assert.match(
- blocked.stderr,
- /src\/styles\.scss:13: color\(srgb 1 1 1 \/ 100%\) .*--fill-neutral-white/,
- );
- assert.match(
- blocked.stderr,
- /src\/script\.ts:1: rgb\(0 128 255\) .*--fill-outstanding-base/,
- );
- assert.match(
- blocked.stderr,
- /src\/\[preview\]\.scss:2: #00122e .*--text-neutral-primary/,
- );
- assert.match(
- blocked.stderr,
- /src\/view\.tsx:3: #0080ff .*--fill-outstanding-base/,
- );
- assert.match(
- blocked.stderr,
- /src\/view\.tsx:5: #00122e .*--text-neutral-primary/,
- );
- assert.doesNotMatch(blocked.stderr, /styles\.scss:[12]:|旧 样式\.scss/);
- console.log("Changed color lint checks passed.");
-} finally {
- rmSync(cwd, { recursive: true, force: true });
-}
diff --git a/packages/eagle/__test__/color-lint/color-lint.test.cjs b/packages/eagle/__test__/color-lint/color-lint.test.cjs
index 7e2264988..2fd8815b1 100644
--- a/packages/eagle/__test__/color-lint/color-lint.test.cjs
+++ b/packages/eagle/__test__/color-lint/color-lint.test.cjs
@@ -25,11 +25,12 @@ async function run() {
const result = await lint(`.fixture { color: ${value}; }`, "scss");
assert.ok(
result.results[0].warnings.length > 0,
- `Missing warning: ${value}`,
+ `Missing color diagnostic: ${value}`,
);
assert.ok(
- result.results[0].warnings.every((item) => item.severity === "warning"),
+ result.results[0].warnings.every((item) => item.severity === "error"),
);
+ assert.ok(result.errored, `Hardcoded color must fail lint: ${value}`);
}
const valid = await lint(
".fixture { color: $text-light-primary; background: var(--fill); border-color: currentColor; }",
@@ -43,6 +44,13 @@ async function run() {
assert.ok(
linaria.results[0].warnings.some((item) => item.rule === "color-no-hex"),
);
+ const exception = await lint(
+ "const S = css`\n/* stylelint-disable-next-line color-no-hex -- Test suppression for a color with an equivalent token. */\ncolor: #00122e;\nbackground: #00122e;\n`;",
+ "tsx",
+ );
+ assert.equal(exception.results[0].warnings.length, 1);
+ assert.equal(exception.results[0].warnings[0].line, 4);
+ assert.ok(exception.errored, "The next declaration must still fail lint");
const broken = await lint('const S = css`color: "unterminated`;', "tsx");
assert.ok(broken.errored, "Syntax errors must remain errors");
console.log(`Color lint checks passed (${version.trim()})`);
diff --git a/packages/eagle/docs/theme-color-gaps.md b/packages/eagle/docs/theme-color-gaps.md
index 3bc1ad400..acc627a02 100644
--- a/packages/eagle/docs/theme-color-gaps.md
+++ b/packages/eagle/docs/theme-color-gaps.md
@@ -4,9 +4,7 @@
透明度也逐项比较:例如 rgba(...,.1) 与八位十六进制 ...1A(约 .101961)并非严格等值,保留原透明度,不将精度差异视为设计确认。
-PR 保留全量颜色警告。增量检查只在新增或改动行涉及颜色用法、且该固定颜色已有等值 Eagle token 时令 CI 失败。历史用法和暂时没有等值 token 的固定颜色继续由原有规则提示。样式可直接使用 CSS 变量,也可通过公开的 `Color`/`Effect` 保留运行时引用。
-
-在本地可运行 `yarn workspace @cloudtower/eagle lint:colors:changed ` 检查已提交的变更。检查使用生成的默认浅色 token 值。旧 Sass 别名的值取自主题迁移前 `523ffb98` 的公开 Sass 文件。增量检查覆盖可静态识别的 sRGB 色值和 Sass 别名,动态颜色计算和跨文件数据流留给代码审查。
+全量颜色 lint 会阻断未放行的硬编码。待设计确认的值在使用处注明原因,并通过对应规则的单行注释放行。审查时确认是否已有等值 token。样式可直接使用 CSS 变量,也可通过公开的 `Color`/`Effect` 保留运行时引用。
## Eagle 保留值
diff --git a/packages/eagle/docs/theme.md b/packages/eagle/docs/theme.md
index a86e077d8..ba3da6d01 100644
--- a/packages/eagle/docs/theme.md
+++ b/packages/eagle/docs/theme.md
@@ -53,7 +53,9 @@ hook 不保存偏好,也不在卸载时恢复主题。原有 antd4Configs/an
## 检查
根 `yarn test:ci` 包含组件单测、颜色规则回归与 lint;主题完整性在构建时校验。
-颜色硬编码使用 Stylelint/ast-grep 提示 warning,配置或语法错误仍会失败;没有历史 baseline。
+Stylelint/ast-grep 将硬编码颜色作为 error 阻断检查。没有完全等值的 token 时,保留原值并在使用处注明原因,
+用 `stylelint-disable-next-line <规则名> -- No equivalent theme token.` 放行单行 CSS,
+或在 TS/TSX 的目标行前写原因和 `// ast-grep-ignore: <规则名>`。其余声明继续检查。
独立排查可用 `test:colors`、`lint:colors`、`lint:colors:ts`;包内测试前须先构建。
安装 ast-grep 时须执行 postinstall,避免留下未真正扫描的占位程序。
diff --git a/packages/eagle/package.json b/packages/eagle/package.json
index 0be676ffe..de94f1e0a 100644
--- a/packages/eagle/package.json
+++ b/packages/eagle/package.json
@@ -32,9 +32,8 @@
"prebuild": "yarn generate:theme",
"lint:colors": "stylelint \"src/**/*.{ts,tsx,css,scss}\"",
"lint:colors:ts": "ast-grep scan --color=never",
- "lint:colors:changed": "node tools/color-lint/check-changed-colors.cjs",
- "check:theme": "yarn generate:theme && git diff --exit-code -- src/styles/token src/styles/common/variables.scss",
- "test:colors": "node __test__/color-lint/color-lint.test.cjs && ast-grep test --skip-snapshot-tests && node __test__/color-lint/check-changed-colors.test.cjs",
+ "check:theme": "yarn generate:theme && git diff --exit-code -- src/styles/token docs/theme-tokens.md",
+ "test:colors": "node __test__/color-lint/color-lint.test.cjs && ast-grep test --skip-snapshot-tests",
"posttest:ci": "yarn test:colors && yarn lint:colors && yarn lint:colors:ts",
"postbuild": "node -e \"for (const file of ['dist/variables.scss', 'dist/linaria.merged.scss']) require('fs').rmSync(file, { force: true })\"",
"test:styles": "playwright test --config playwright.config.cjs",
@@ -102,7 +101,6 @@
"@types/react-transition-group": "4.2.4",
"@types/xterm": "^3.0.0",
"@vitejs/plugin-react": "^4.2.1",
- "colord": "^2.9.3",
"copy-to-clipboard": "^3.3.3",
"dotenv": "^16.4.7",
"history": "^4.9.0",
@@ -117,7 +115,6 @@
"postcss-import": "^15",
"postcss-scss": "^4",
"postcss-url": "^10.1.3",
- "postcss-value-parser": "^4.2.0",
"rc-select": "^11.5.3",
"react": "17.0.2",
"react-dom": "17.0.2",
diff --git a/packages/eagle/src/core/AccordionCard/index.tsx b/packages/eagle/src/core/AccordionCard/index.tsx
index 3a6a53222..024eae6d8 100644
--- a/packages/eagle/src/core/AccordionCard/index.tsx
+++ b/packages/eagle/src/core/AccordionCard/index.tsx
@@ -19,6 +19,7 @@ const Card = styled.div`
border-color: var(--stroke-outstanding-base);
> header {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
background: rgba(#0080ff, 0.1);
}
}
diff --git a/packages/eagle/src/core/Banner/banner.style.ts b/packages/eagle/src/core/Banner/banner.style.ts
index dabb79b1e..d217db71f 100644
--- a/packages/eagle/src/core/Banner/banner.style.ts
+++ b/packages/eagle/src/core/Banner/banner.style.ts
@@ -54,12 +54,16 @@ export const BasicBanner = css`
.banner-action {
padding: 2px 8px;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: rgba(255, 255, 255, 0.16);
&:hover {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: rgba(255, 255, 255, 0.28);
}
&:active {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: rgba(255, 255, 255, 0.16);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.5);
}
}
@@ -83,6 +87,7 @@ export const BasicBanner = css`
opacity: 0.8;
}
&:hover {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: rgba(255, 255, 255, 0.28);
.icon-wrapper {
opacity: 1;
diff --git a/packages/eagle/src/core/BlankState/style.ts b/packages/eagle/src/core/BlankState/style.ts
index 7a9d2cba5..ac987c0cd 100644
--- a/packages/eagle/src/core/BlankState/style.ts
+++ b/packages/eagle/src/core/BlankState/style.ts
@@ -8,6 +8,7 @@ export const BlankStateWrapper = css`
flex-direction: column;
align-items: center;
justify-content: center;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
color: rgba(0, 21, 64, 0.3);
&.large {
max-width: 648px;
diff --git a/packages/eagle/src/core/Breadcrumb/index.tsx b/packages/eagle/src/core/Breadcrumb/index.tsx
index 714fcd520..50a38295d 100644
--- a/packages/eagle/src/core/Breadcrumb/index.tsx
+++ b/packages/eagle/src/core/Breadcrumb/index.tsx
@@ -44,6 +44,8 @@ const Breadcrumb: React.FunctionComponent = (props) => {
>
@@ -68,6 +70,8 @@ const Breadcrumb: React.FunctionComponent = (props) => {
>
diff --git a/packages/eagle/src/core/Button/index.tsx b/packages/eagle/src/core/Button/index.tsx
index bb5cb055e..6bace981f 100644
--- a/packages/eagle/src/core/Button/index.tsx
+++ b/packages/eagle/src/core/Button/index.tsx
@@ -60,10 +60,12 @@ const ButtonStyle = css`
&.ant-btn.ant-btn-ordinary,
&.ant-btn.ant-btn-ordinary-onTint,
&.ant-btn.ant-btn-quiet {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
color: var(--color, #06101f);
font-weight: var(--font-weight);
background: var(--background-color, var(--fill-neutral-white));
border-width: var(--border-width, 1px);
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
border-color: var(--border-color, #d9d9d9);
&[ant-click-animating-without-extra-node="true"]:after {
@@ -138,6 +140,7 @@ const ButtonStyle = css`
--background-color-hover: var(--fill-outstanding-bright);
--background-color-active: var(--fill-outstanding-dark);
--background-color-focus: var(--fill-outstanding-base);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
--box-shadow-color-focus: #{rgba(0, 136, 255, 0.16)};
}
@@ -146,6 +149,7 @@ const ButtonStyle = css`
--background-color-hover: var(--fill-serious-bright);
--background-color-active: var(--fill-serious-dark);
--background-color-focus: var(--fill-serious-bright);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
--box-shadow-color-focus: #{rgba(255, 74, 74, 0.16)};
}
@@ -161,28 +165,40 @@ const ButtonStyle = css`
--font-weight: bold;
--border-width: 0;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
--background-color: #{rgba(0, 136, 255, 0.1)};
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
--background-color-hover: #{rgba(0, 136, 255, 0.16)};
--background-color-active: var(--fill-outstanding-lightactive);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
--background-color-focus: #{rgba(0, 136, 255, 0.1)};
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
--box-shadow-color-focus: #{rgba(0, 136, 255, 0.16)};
}
&.ant-btn-secondary.ant-btn-dangerous {
--color: var(--text-colorful-serious);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
--background-color: #{rgba(255, 74, 74, 0.1)};
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
--background-color-hover: #{rgba(255, 74, 74, 0.16)};
--background-color-active: var(--fill-serious-lightactive);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
--background-color-focus: #{rgba(255, 74, 74, 0.1)};
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
--box-shadow-color-focus: #{rgba(255, 74, 74, 0.16)};
}
&.ant-btn-secondary.btn-primary-orange {
--color: var(--text-colorful-notice);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
--background-color: #{rgba(255, 187, 0, 0.1)};
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
--background-color-hover: #{rgba(255, 187, 0, 0.16)};
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
--background-color-active: #{rgba(255, 187, 0, 0.2)};
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
--background-color-focus: #{rgba(255, 187, 0, 0.1)};
}
@@ -192,6 +208,7 @@ const ButtonStyle = css`
--border-width: 0;
--background-color: var(--fill-neutral-white);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
--box-shadow-color-focus: #{rgba(0, 136, 255, 0.16)};
box-shadow: none;
@@ -202,6 +219,7 @@ const ButtonStyle = css`
&:active,
&.__pseudo-states-hover,
&.__pseudo-states-active {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
filter: drop-shadow(0px 2px 8px rgba(0, 136, 255, 0.1));
}
}
@@ -211,6 +229,7 @@ const ButtonStyle = css`
--color: var(--text-colorful-serious);
--background-color: var(--fill-neutral-white);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
--box-shadow-color-focus: #{rgba(255, 74, 74, 0.16)};
&:not([disabled]),
@@ -219,6 +238,7 @@ const ButtonStyle = css`
&:active,
&.__pseudo-states-hover,
&.__pseudo-states-active {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
filter: drop-shadow(0px 2px 8px rgba(255, 74, 74, 0.1));
}
}
@@ -234,6 +254,7 @@ const ButtonStyle = css`
&:active,
&.__pseudo-states-hover,
&.__pseudo-states-active {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
filter: drop-shadow(0px 2px 8px rgba(255, 187, 0, 0.1));
}
}
@@ -246,6 +267,7 @@ const ButtonStyle = css`
--background-color: var(--fill-neutral-white);
--background-color-hover: var(--fill-neutral-opaque-2);
--background-color-active: var(--fill-neutral-opaque-3);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
--box-shadow-color-focus: #{rgba(0, 136, 255, 0.16)};
box-shadow: var(--effect-shadow-button-ordinary);
@@ -261,6 +283,7 @@ const ButtonStyle = css`
--border-color: var(--fill-outstanding-base);
--background-color: var(--fill-neutral-white);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
--background-color-hover: #{linear-gradient(
0deg,
rgba(0, 136, 255, 0.16),
@@ -273,6 +296,7 @@ const ButtonStyle = css`
var(--fill-outstanding-lightactive)
),
var(--fill-neutral-white)};
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
--box-shadow-color-focus: #{rgba(0, 136, 255, 0.16)};
box-shadow: var(--effect-shadow-button-ordinary);
@@ -283,6 +307,7 @@ const ButtonStyle = css`
--border-color: var(--fill-serious-base);
--background-color: var(--fill-neutral-white);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
--background-color-hover: #{linear-gradient(
0deg,
rgba(255, 74, 74, 0.16),
@@ -295,6 +320,7 @@ const ButtonStyle = css`
var(--fill-serious-lightactive)
),
var(--fill-neutral-white)};
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
--box-shadow-color-focus: #{rgba(255, 74, 74, 0.16)};
}
@@ -305,6 +331,7 @@ const ButtonStyle = css`
--background-color: var(--fill-neutral-white);
--background-color-hover: var(--fill-neutral-trans-3);
--background-color-active: var(--fill-neutral-trans-4);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
--box-shadow-color-focus: #{rgba(0, 136, 255, 0.16)};
box-shadow: none;
@@ -315,8 +342,10 @@ const ButtonStyle = css`
--border-color: var(--stroke-neutral-white);
--background-color: var(--fill-neutral-white);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
--background-color-hover: #{rgba(0, 136, 255, 0.16)};
--background-color-active: var(--fill-outstanding-lightactive);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
--box-shadow-color-focus: #{rgba(0, 136, 255, 0.16)};
box-shadow: none;
@@ -325,8 +354,10 @@ const ButtonStyle = css`
&.ant-btn-ordinary-onTint.ant-btn-dangerous {
--color: var(--text-colorful-serious);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
--background-color-hover: #{rgba(255, 74, 74, 0.16)};
--background-color-active: var(--fill-serious-lightactive);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
--box-shadow-color-focus: #{rgba(255, 74, 74, 0.16)};
}
@@ -338,6 +369,7 @@ const ButtonStyle = css`
--background-color-hover: var(--fill-neutral-trans-3);
--background-color-active: var(--fill-neutral-trans-4);
--background-color-focus: var(--fill-neutral-white);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
--box-shadow-color-focus: #{rgba(0, 136, 255, 0.16)};
box-shadow: none;
}
@@ -345,8 +377,10 @@ const ButtonStyle = css`
&.ant-btn-quiet.ant-btn-dangerous {
--color: var(--text-colorful-serious);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
--background-color-hover: #{rgba(255, 74, 74, 0.16)};
--background-color-active: var(--fill-serious-lightactive);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
--box-shadow-color-focus: #{rgba(255, 74, 74, 0.16)};
}
@@ -354,9 +388,11 @@ const ButtonStyle = css`
--color: var(--text-colorful-outstanding);
--background-color: transparent;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
--background-color-hover: #{rgba(0, 136, 255, 0.16)};
--background-color-active: var(--fill-outstanding-lightactive);
--background-color-focus: var(--fill-neutral-white);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
--box-shadow-color-focus: #{rgba(0, 136, 255, 0.16)};
}
diff --git a/packages/eagle/src/core/ButtonGroup/index.tsx b/packages/eagle/src/core/ButtonGroup/index.tsx
index 969214692..4152e4345 100644
--- a/packages/eagle/src/core/ButtonGroup/index.tsx
+++ b/packages/eagle/src/core/ButtonGroup/index.tsx
@@ -9,6 +9,7 @@ export const ButtonStyle = css`
const ButtonGroupContainer = styled.div`
white-space: nowrap;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
filter: drop-shadow(0px 2px 8px rgba(0, 136, 255, 0.1));
& > .ant-btn {
diff --git a/packages/eagle/src/core/Card/CardWrapper.tsx b/packages/eagle/src/core/Card/CardWrapper.tsx
index baae46fa0..7944bd3f0 100644
--- a/packages/eagle/src/core/Card/CardWrapper.tsx
+++ b/packages/eagle/src/core/Card/CardWrapper.tsx
@@ -10,6 +10,7 @@ interface IProps {
}
const boxShadow = css`
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
box-shadow: 0px 0.119595px 0.438513px rgba(129, 138, 153, 0.14),
0px 0.271728px 0.996336px rgba(129, 138, 153, 0.106447),
0px 0.472931px 1.73408px rgba(129, 138, 153, 0.0912224),
@@ -39,6 +40,7 @@ const CardWrapper = styled(Wrapper)`
&:hover {
transition: all 200ms ease;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
box-shadow: 0px 9px 22px rgb(107 125 153 / 23%),
0px 1.12694px 2.75474px rgb(107 125 153 / 12%);
transform: translateY(-4px);
diff --git a/packages/eagle/src/core/DetailCard/index.tsx b/packages/eagle/src/core/DetailCard/index.tsx
index 48e7776c6..a4e371694 100644
--- a/packages/eagle/src/core/DetailCard/index.tsx
+++ b/packages/eagle/src/core/DetailCard/index.tsx
@@ -22,6 +22,7 @@ const CardWrapper = styled.div`
font-weight: 700;
font-size: 14px;
line-height: 22px;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
color: rgba(0, 21, 64, 0.3);
text-align: center;
}
diff --git a/packages/eagle/src/core/ExpandableList/ExpandIcon.tsx b/packages/eagle/src/core/ExpandableList/ExpandIcon.tsx
index 27be51c0e..981882b9e 100644
--- a/packages/eagle/src/core/ExpandableList/ExpandIcon.tsx
+++ b/packages/eagle/src/core/ExpandableList/ExpandIcon.tsx
@@ -25,6 +25,7 @@ const Style = css`
background-color: var(--fill-outstanding-light);
svg {
path {
+ /* stylelint-disable-next-line color-named -- No equivalent theme token. */
fill: blue;
}
}
diff --git a/packages/eagle/src/core/ExpandableList/RoundOrder.tsx b/packages/eagle/src/core/ExpandableList/RoundOrder.tsx
index 0d6be702c..2d5a31a20 100644
--- a/packages/eagle/src/core/ExpandableList/RoundOrder.tsx
+++ b/packages/eagle/src/core/ExpandableList/RoundOrder.tsx
@@ -9,6 +9,7 @@ const RoundedOrderStyle = css`
width: 24px;
border-radius: 20px;
color: var(--text-colorful-outstanding);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: rgba(0, 136, 255, 0.1);
display: flex;
align-items: center;
diff --git a/packages/eagle/src/core/FormItem/index.tsx b/packages/eagle/src/core/FormItem/index.tsx
index b7dd16224..f6fa09860 100644
--- a/packages/eagle/src/core/FormItem/index.tsx
+++ b/packages/eagle/src/core/FormItem/index.tsx
@@ -27,9 +27,11 @@ const FormItemStyle = css`
&.ant-form-item-has-error {
.ant-input {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
border-color: #ff4d4f !important;
}
.ant-input-password {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
border-color: #ff4d4f !important;
}
}
diff --git a/packages/eagle/src/core/InputInteger/index.tsx b/packages/eagle/src/core/InputInteger/index.tsx
index 50e98888b..cb4c60adb 100644
--- a/packages/eagle/src/core/InputInteger/index.tsx
+++ b/packages/eagle/src/core/InputInteger/index.tsx
@@ -57,6 +57,7 @@ export const AntdIntStyled = styled(AntdInputNumber)<{
&:active,
&.ant-input-number-focused {
&.ant-input-number {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
border-color: #0096ff;
box-shadow: var(--effect-outline-activeFocus);
z-index: $input-hover-index;
@@ -66,6 +67,7 @@ export const AntdIntStyled = styled(AntdInputNumber)<{
&:hover,
&.ant-input-number-focused {
&.ant-input-number {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
border-color: #e75a3a;
box-shadow: var(--effect-outline-error);
}
diff --git a/packages/eagle/src/core/InputTagItem/index.tsx b/packages/eagle/src/core/InputTagItem/index.tsx
index a56a0572b..0d464acd6 100644
--- a/packages/eagle/src/core/InputTagItem/index.tsx
+++ b/packages/eagle/src/core/InputTagItem/index.tsx
@@ -5,7 +5,9 @@ const InputTagItem = styled.span`
line-height: 18px;
padding: 0 4px;
border-radius: 4px;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: rgba(235, 239, 245, 0.6);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
border: 1px solid rgba(223, 228, 235, 0.6);
display: flex;
align-items: center;
diff --git a/packages/eagle/src/core/LineChart/styled.ts b/packages/eagle/src/core/LineChart/styled.ts
index ea2d11cea..ef722638a 100644
--- a/packages/eagle/src/core/LineChart/styled.ts
+++ b/packages/eagle/src/core/LineChart/styled.ts
@@ -87,6 +87,7 @@ export const LegendItemsStyle = css`
opacity: 0.3;
&:not(.hoverering-self) .color-block {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
background: #b4beca !important;
border-radius: 2px;
}
@@ -119,6 +120,7 @@ export const LegendItemsStyleDropdown = css`
opacity: 0.3;
&:not(.hoverering-self) .color-block {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
background: #b4beca !important;
border-radius: 2px;
}
diff --git a/packages/eagle/src/core/Loading/style.ts b/packages/eagle/src/core/Loading/style.ts
index 08d8e0097..c858911ca 100644
--- a/packages/eagle/src/core/Loading/style.ts
+++ b/packages/eagle/src/core/Loading/style.ts
@@ -17,6 +17,7 @@ export const LoadingLine1 = css`
left: 9.33px;
top: 40.5px;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: linear-gradient(
180deg,
var(--fill-outstanding-base) 0%,
@@ -36,6 +37,7 @@ export const LoadingLine2 = css`
left: 40.8px;
top: 8.4px;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: linear-gradient(
180deg,
var(--fill-outstanding-base) 0%,
@@ -54,6 +56,7 @@ export const LoadingLine3 = css`
left: 52.9px;
top: 51.8px;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: linear-gradient(
180deg,
var(--fill-outstanding-base) 0%,
diff --git a/packages/eagle/src/core/LocalUpload/LocalUpload.style.ts b/packages/eagle/src/core/LocalUpload/LocalUpload.style.ts
index a2846a852..74a04f13a 100644
--- a/packages/eagle/src/core/LocalUpload/LocalUpload.style.ts
+++ b/packages/eagle/src/core/LocalUpload/LocalUpload.style.ts
@@ -120,6 +120,7 @@ export const UploadWrapper = styled.div`
}
&.file-error.single {
border-color: var(--stroke-serious-base);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: rgba(255, 74, 74, 0.1);
}
&.file-validating.single {
@@ -153,6 +154,7 @@ export const UploadWrapper = styled.div`
&:not(.ant-upload-disabled):not(.file-error):hover,
&.ant-upload-drag-hover:not(.ant-upload-disabled):not(.file-error) {
border-color: var(--stroke-outstanding-base);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: rgba(0, 136, 255, 0.1);
}
&.ant-upload-disabled {
@@ -172,6 +174,7 @@ export const UploadWrapper = styled.div`
/* 解析中的文件名颜色,两个类名是为了盖过 Typo 自带的 color */
.file-content.validating {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
color: rgba(0, 21, 64, 0.3);
}
@@ -231,6 +234,7 @@ export const FileInfoWrapperStyle = css`
color: var(--text-colorful-serious);
}
&.file-error-wrapper {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: rgba(255, 74, 74, 0.1);
}
&.disabled {
diff --git a/packages/eagle/src/core/LogView/LogView.style.ts b/packages/eagle/src/core/LogView/LogView.style.ts
index 76c2b9c84..c24428080 100644
--- a/packages/eagle/src/core/LogView/LogView.style.ts
+++ b/packages/eagle/src/core/LogView/LogView.style.ts
@@ -58,6 +58,7 @@ export const LogTerminal = styled.div`
}
&::-webkit-scrollbar-thumb:hover {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
background-color: #4a607a; /* 滚动条悬停时的颜色 */
}
}
diff --git a/packages/eagle/src/core/Metric/styled.ts b/packages/eagle/src/core/Metric/styled.ts
index 504bc44a7..d70e434b6 100644
--- a/packages/eagle/src/core/Metric/styled.ts
+++ b/packages/eagle/src/core/Metric/styled.ts
@@ -87,6 +87,7 @@ export const LegendItemStyle = css`
opacity: 0.4;
.color-block {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
background: #b4beca !important;
}
}
@@ -151,6 +152,7 @@ export const MetricWrapper = styled.div`
border-radius: 4px;
font-size: 12px;
color: var(--text-neutral-ontint);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: rgba(0, 0, 0, 0.75);
transform: translateX(-50%);
}
@@ -164,7 +166,9 @@ export const TooltipColumn = styled.div`
display: flex;
align-items: center;
justify-content: space-between;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background-color: rgba(0, 0, 0, 0.75);
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
color: #b4beca;
font-size: 12px;
padding: 3px 6px;
diff --git a/packages/eagle/src/core/Nav/style.tsx b/packages/eagle/src/core/Nav/style.tsx
index 6daafec02..f423835bc 100644
--- a/packages/eagle/src/core/Nav/style.tsx
+++ b/packages/eagle/src/core/Nav/style.tsx
@@ -202,6 +202,7 @@ export const NavCenterStyle = css`
width: 100%;
height: 12px;
position: absolute;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: linear-gradient(
to bottom,
rgba(255, 255, 255, 0),
diff --git a/packages/eagle/src/core/Radio/index.tsx b/packages/eagle/src/core/Radio/index.tsx
index 768d23b3d..4d04aed2a 100644
--- a/packages/eagle/src/core/Radio/index.tsx
+++ b/packages/eagle/src/core/Radio/index.tsx
@@ -139,6 +139,7 @@ const RadioButtonStyle = css`
}
&.ant-radio-button-wrapper-checked {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: rgba(0, 136, 255, 0.1);
}
diff --git a/packages/eagle/src/core/SegmentControl/index.tsx b/packages/eagle/src/core/SegmentControl/index.tsx
index 4300318f6..768f21e9e 100644
--- a/packages/eagle/src/core/SegmentControl/index.tsx
+++ b/packages/eagle/src/core/SegmentControl/index.tsx
@@ -45,6 +45,7 @@ const ColorSegment = css`
.${Antd5PrefixCls}-segmented-item-disabled
) {
background-color: var(--fill-neutral-lightwhite);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
color: rgba(44, 56, 82, 0.75);
}
// on animate remove hover bg color
diff --git a/packages/eagle/src/core/Select/select.style.ts b/packages/eagle/src/core/Select/select.style.ts
index fd7a16049..3c444811e 100644
--- a/packages/eagle/src/core/Select/select.style.ts
+++ b/packages/eagle/src/core/Select/select.style.ts
@@ -197,5 +197,6 @@ export const SelectSizeStyle = css`
`;
export const PlaceholderTextStyle = css`
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
color: rgba(0, 21, 64, 0.3);
`;
diff --git a/packages/eagle/src/core/Skeleton/Content.tsx b/packages/eagle/src/core/Skeleton/Content.tsx
index 093f1296d..201ab0fae 100644
--- a/packages/eagle/src/core/Skeleton/Content.tsx
+++ b/packages/eagle/src/core/Skeleton/Content.tsx
@@ -22,6 +22,7 @@ const SkeletonContentStyle = css`
top: -50%;
flex-shrink: 0;
opacity: 0.8;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: linear-gradient(
90deg,
rgba(255, 255, 255, 0) 15%,
diff --git a/packages/eagle/src/core/StatusCapsule/index.tsx b/packages/eagle/src/core/StatusCapsule/index.tsx
index 0b7840c77..b4a1bd8a8 100644
--- a/packages/eagle/src/core/StatusCapsule/index.tsx
+++ b/packages/eagle/src/core/StatusCapsule/index.tsx
@@ -51,6 +51,7 @@ const StatusCapsuleStyle = css`
}
&.tag-hover:hover,
&.__pseudo-states-hover {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background-color: rgba(0, 136, 255, 0.16);
}
}
@@ -61,6 +62,7 @@ const StatusCapsuleStyle = css`
}
&.tag-hover:hover,
&.__pseudo-states-hover {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background-color: rgba(255, 74, 74, 0.16);
}
}
@@ -71,6 +73,7 @@ const StatusCapsuleStyle = css`
}
&.tag-hover:hover,
&.__pseudo-states-hover {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background-color: rgba(255, 187, 0, 0.16);
}
}
@@ -81,6 +84,7 @@ const StatusCapsuleStyle = css`
}
&.tag-hover:hover,
&.__pseudo-states-hover {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background-color: rgba(30, 201, 127, 0.16);
}
}
diff --git a/packages/eagle/src/core/Steps/style.ts b/packages/eagle/src/core/Steps/style.ts
index 25ca73667..d37c8968a 100644
--- a/packages/eagle/src/core/Steps/style.ts
+++ b/packages/eagle/src/core/Steps/style.ts
@@ -121,9 +121,11 @@ export const HorizontalStyle = css`
.#{$item}-active {
max-width: calc(100% - var(--item-min-width) * 2);
.#{$item}-container {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background-color: rgba(0, 136, 255, 0.1);
}
&::after {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
border-left-color: rgba(0, 136, 255, 0.1) !important;
}
}
@@ -184,6 +186,7 @@ export const VerticalStyle = css`
}
.#{$item}-active {
.ant-steps-item-container {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
background: rgba(#0080ff, 0.1);
}
}
@@ -201,6 +204,7 @@ export const HorizontalStepContentStyle = css`
align-items: center;
width: 18px;
height: 18px;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
color: rgba(44, 56, 82, 0.75);
justify-content: center;
}
@@ -218,6 +222,7 @@ export const VerticalStepContentStyle = css`
align-items: center;
min-width: 20px;
min-height: 20px;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
color: rgba(44, 56, 82, 0.75);
justify-content: center;
}
diff --git a/packages/eagle/src/core/Styled/index.tsx b/packages/eagle/src/core/Styled/index.tsx
index 5120e8135..c018b9fc7 100644
--- a/packages/eagle/src/core/Styled/index.tsx
+++ b/packages/eagle/src/core/Styled/index.tsx
@@ -134,6 +134,7 @@ export const FormWrapper = styled.div`
export const FormSectionTitle = styled.h4`
padding: 25px 0 15px 0;
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
border-bottom: 1px solid #e1e5eb;
margin-bottom: 16px;
`;
@@ -157,6 +158,7 @@ export const FormField = styled.div`
`;
export const ErrorSpan = styled.span`
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
color: #e75a3a;
margin-right: 10px;
`;
@@ -164,6 +166,7 @@ export const ErrorSpan = styled.span`
export const Divider = styled.div`
width: 100%;
height: 1px;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: rgba(213, 219, 227, 0.6);
margin: 24px 0;
`;
@@ -179,6 +182,7 @@ export const Dot = styled.span`
display: inline-block;
width: 4px;
height: 4px;
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
background: #8e9aa9;
opacity: 0.4;
border-radius: 50%;
@@ -222,11 +226,23 @@ export const TagSpan = styled.span<{ color: TagColor }>`
display: inline-block;
background: ${({ color }) => {
switch (color) {
+ // TagColor variant name.
+ // ast-grep-ignore: no-hardcoded-color-tsx
case "red":
+ // No equivalent theme token.
+ // ast-grep-ignore: no-hardcoded-color-tsx
return "linear-gradient(262.79deg, #FA5F3C 0%, #FF9412 100%)";
+ // TagColor variant name.
+ // ast-grep-ignore: no-hardcoded-color-tsx
case "yellow":
+ // No equivalent theme token.
+ // ast-grep-ignore: no-hardcoded-color-tsx
return "linear-gradient(260.13deg, #FFA600 0%, #FFD900 100%)";
+ // TagColor variant name.
+ // ast-grep-ignore: no-hardcoded-color-tsx
case "blue":
+ // No equivalent theme token.
+ // ast-grep-ignore: no-hardcoded-color-tsx
return "linear-gradient(276.05deg, #0066FF 10.65%, #5CA8FF 89.35%)";
}
}};
@@ -246,10 +262,12 @@ export const FullView = styled.div`
export const NameTag = styled.span`
font-size: 90%;
font-weight: bold;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background-color: rgba(240, 243, 247, 0.6);
padding: 1px 4px 1px;
margin-left: 2px;
margin-right: 2px;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
border: 1px solid rgba(213, 219, 227, 0.6);
border-radius: 4px;
`;
@@ -278,9 +296,11 @@ export const FormItemDiv = styled.div`
margin-top: 4px;
width: 100%;
padding: 14px;
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
background: #f2f4f6;
font-size: 13px;
line-height: 1.8;
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
color: #8e9aa9;
}
.form-item-label {
@@ -310,6 +330,7 @@ export const FormItemDiv = styled.div`
}
}
.form-item-error {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
color: #e75a3a;
height: 0;
overflow: hidden;
@@ -323,7 +344,9 @@ export const FormItemDiv = styled.div`
.form-item-control.field-error .form-item-error {
> input:not(.ant-input),
:not(.ant-select) input {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
border: 1px solid #e75a3a;
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
color: #e75a3a;
}
}
@@ -341,6 +364,7 @@ export const FieldTitle = styled.div`
font-size: var(--field-title-font-size, 12px);
font-weight: bold;
padding-bottom: 6px;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
border-bottom: 1px solid rgba(213, 219, 227, 0.6);
margin-bottom: 16px;
@@ -379,6 +403,7 @@ export const ExpandArrow = styled.i`
export const WarningAlert = css`
&.ant-alert-warning {
border: 0;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: rgba(255, 187, 0, 0.1);
border-radius: 6px;
}
@@ -395,6 +420,7 @@ export const NoticeAlert = css`
display: flex;
flex-direction: row;
padding: 7px 12px;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: rgba(255, 187, 0, 0.1);
border-radius: 6px;
color: var(--fill-notice-dark);
@@ -425,6 +451,7 @@ export const InfoAlert = css`
display: flex;
flex-direction: row;
padding: 7px 12px;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: rgba(0, 136, 255, 0.1);
border-radius: 6px;
color: var(--fill-outstanding-dark);
@@ -459,6 +486,7 @@ export const OperationWraper = styled.div`
`;
export const TertiaryText = styled.div`
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
color: rgba(0, 21, 64, 0.3);
`;
@@ -498,6 +526,7 @@ export const InputStyle = css`
&:focus,
&.__pseudo-states-active,
&.__pseudo-states-focus {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
border-color: #0096ff;
box-shadow: var(--effect-outline-activeFocus);
z-index: $input-hover-index;
@@ -507,11 +536,14 @@ export const InputStyle = css`
&.ant-input.error:not([disabled]),
&.ant-picker.error:not([disabled]),
&.ant-input-number.error:not([disabled]) {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
border-color: #e75a3a;
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
color: #e75a3a;
&:hover,
&.__pseudo-states-hover {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
border-color: #e75a3a;
box-shadow: var(--effect-outline-hover);
}
@@ -520,6 +552,7 @@ export const InputStyle = css`
&:focus,
&.__pseudo-states-active,
&.__pseudo-states-focus {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
border-color: #e75a3a;
box-shadow: var(--effect-outline-error);
}
@@ -530,6 +563,7 @@ export const InputStyle = css`
&.ant-input-number[disabled],
&.ant-input-number.ant-input-number-disabled {
background: var(--fill-neutral-trans-3);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
color: rgba(0, 21, 64, 0.3);
border-color: var(--stroke-neutral-trans-3);
}
@@ -573,19 +607,23 @@ export const InputStyle = css`
&.ant-input-affix-wrapper-focused,
&.__pseudo-states-active,
&.__pseudo-states-focus {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
border-color: #0096ff;
box-shadow: var(--effect-outline-activeFocus);
}
}
&.ant-input-affix-wrapper.error:not(.ant-input-affix-wrapper-disabled) {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
border-color: #e75a3a;
> .ant-input {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
color: #e75a3a;
}
&:hover,
&.__pseudo-states-hover {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
border-color: #e75a3a;
box-shadow: var(--effect-outline-hover);
}
@@ -595,6 +633,7 @@ export const InputStyle = css`
&.ant-input-affix-wrapper-focused,
&.__pseudo-states-active,
&.__pseudo-states-focus {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
border-color: #e75a3a;
box-shadow: var(--effect-outline-error);
}
@@ -602,6 +641,7 @@ export const InputStyle = css`
&.ant-input-affix-wrapper.ant-input-affix-wrapper-disabled {
background: var(--fill-neutral-trans-3);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
color: rgba(0, 21, 64, 0.3);
border-color: var(--stroke-neutral-trans-3);
}
@@ -637,6 +677,7 @@ export const InputStyle = css`
export const KitInputStyle = css`
&.input-tags {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
border: 1px solid rgba(213, 219, 227, 0.6);
border-radius: 4px;
}
@@ -649,6 +690,7 @@ export const KitInputStyle = css`
&:hover {
border-color: var(--stroke-outstanding-base);
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
box-shadow: 0 0 0px 2px rgba(#0080ff, 0.1);
}
@@ -669,10 +711,12 @@ export const KitInputStyle = css`
top: 50%;
transform: translateY(-50%);
.anticon-close-circle {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
color: rgba(0, 0, 0, 0.25);
font-size: 12px;
cursor: pointer;
&:hover {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
color: rgba(0, 0, 0, 0.45);
}
}
@@ -772,6 +816,7 @@ export const ContentWrapper = styled.div`
export const Desc = styled.div`
font-size: 14px;
font-weight: 500;
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
color: #3e4652;
line-height: 18px;
@@ -804,6 +849,7 @@ export const radioStyle = css`
font-size: 14px;
font-weight: 500;
line-height: 32px;
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
color: #3e4652;
}
`;
diff --git a/packages/eagle/src/core/Tab/Tab.style.ts b/packages/eagle/src/core/Tab/Tab.style.ts
index acfc79d31..2aae96261 100644
--- a/packages/eagle/src/core/Tab/Tab.style.ts
+++ b/packages/eagle/src/core/Tab/Tab.style.ts
@@ -118,6 +118,7 @@ export const TabMenuWrapper = styled.div`
&.__selected {
padding-left: 16px;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: rgba(0, 136, 255, 0.1);
color: var(--text-colorful-outstanding);
}
@@ -159,6 +160,7 @@ export const MoreThanTooltipStyle = css`
&.__selected {
padding: 6px;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: rgba(0, 136, 255, 0.1);
color: var(--text-colorful-outstanding);
diff --git a/packages/eagle/src/core/Table/TableWidget.tsx b/packages/eagle/src/core/Table/TableWidget.tsx
index 94fac0ace..c611e9c69 100644
--- a/packages/eagle/src/core/Table/TableWidget.tsx
+++ b/packages/eagle/src/core/Table/TableWidget.tsx
@@ -9,12 +9,14 @@ const TableLoadingStyle = css`
height: 100%;
.table-loading-item {
padding: 12px 4px;
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
border-bottom: 1px solid rgba(#ccd4e3, 0.18);
display: flex;
> * {
height: 16px;
margin: 4px;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: rgba(204, 212, 227, 0.18);
border-radius: 2px;
}
@@ -29,11 +31,13 @@ const TableLoadingStyle = css`
:nth-child(1) {
padding: 8px 4px;
> * {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: rgba(107, 125, 153, 0.18);
}
}
:nth-child(1) {
> * {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: rgba(163, 180, 204, 0.18);
}
}
diff --git a/packages/eagle/src/core/Table/index.tsx b/packages/eagle/src/core/Table/index.tsx
index 6a4ae8e70..f2c6182d1 100644
--- a/packages/eagle/src/core/Table/index.tsx
+++ b/packages/eagle/src/core/Table/index.tsx
@@ -143,6 +143,7 @@ export const tableStyleCover = css`
.ant-table-cell-fix-left-last::after {
box-shadow: none;
width: 1px;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: rgba(213, 219, 227, 0.6);
}
}
@@ -151,6 +152,7 @@ export const tableStyleCover = css`
.ant-table-cell-fix-right-first::after {
box-shadow: none;
width: 1px;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: rgba(213, 219, 227, 0.6);
}
}
@@ -182,6 +184,7 @@ export const tableStyleCover = css`
white-space: nowrap;
&:hover {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
color: #0096ff;
}
@@ -265,6 +268,7 @@ export const tableStyleCover = css`
}
&.active-row {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
box-shadow: inset 0px 0px 0 2px rgba(0, 136, 255, 0.1);
border-radius: 8px;
@@ -272,6 +276,7 @@ export const tableStyleCover = css`
border-top-color: var(--stroke-neutral-white);
}
td {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: rgba(0, 136, 255, 0.1);
border-bottom-color: transparent;
border-top-color: transparent;
@@ -283,6 +288,7 @@ export const tableStyleCover = css`
border-radius: 0 8px 8px 0;
}
&:hover {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: rgba(0, 136, 255, 0.1);
}
}
diff --git a/packages/eagle/src/core/TableForm/const.ts b/packages/eagle/src/core/TableForm/const.ts
index b6ef5f848..2a1e75669 100644
--- a/packages/eagle/src/core/TableForm/const.ts
+++ b/packages/eagle/src/core/TableForm/const.ts
@@ -3,6 +3,8 @@ export const COLOR_MAP = {
primary: Color.text.colorful.outstanding,
info: Color.text.colorful.outstanding,
success: Color.text.colorful.positive,
+ // No equivalent theme token.
+ // ast-grep-ignore: no-hardcoded-color-typescript
warning: "#FFA500",
danger: Color.text.colorful.serious,
error: Color.text.colorful.serious,
diff --git a/packages/eagle/src/core/TableForm/style.ts b/packages/eagle/src/core/TableForm/style.ts
index d01cffa05..f040a783a 100644
--- a/packages/eagle/src/core/TableForm/style.ts
+++ b/packages/eagle/src/core/TableForm/style.ts
@@ -16,6 +16,7 @@ export const SubtitleStyle = css`
color: var(--text-colorful-outstanding);
}
&.warning {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
color: #ffa500;
}
&.success {
@@ -106,6 +107,7 @@ export const TableFormWrapper = styled.div`
background-color: var(--fill-neutral-trans-1);
}
&.isDragging {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background-color: rgba(0, 136, 255, 0.1);
}
}
diff --git a/packages/eagle/src/core/TimeZoneSelect/index.tsx b/packages/eagle/src/core/TimeZoneSelect/index.tsx
index bd40c594d..3164050e7 100644
--- a/packages/eagle/src/core/TimeZoneSelect/index.tsx
+++ b/packages/eagle/src/core/TimeZoneSelect/index.tsx
@@ -97,11 +97,13 @@ const OptionWrapperStyle = cx(
}
&.ant-select-item-option-active {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: rgba(0, 136, 255, 0.16);
.timezone-title {
color: var(--text-colorful-outstanding);
}
.timezone-tag {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: rgba(0, 136, 255, 0.1);
color: var(--text-colorful-outstanding);
}
diff --git a/packages/eagle/src/core/Token/index.tsx b/packages/eagle/src/core/Token/index.tsx
index 439026f60..48e8407a2 100644
--- a/packages/eagle/src/core/Token/index.tsx
+++ b/packages/eagle/src/core/Token/index.tsx
@@ -55,18 +55,22 @@ const TokenStyle = css`
}
&.ant-tag-blue {
color: var(--fill-outstanding-base);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background-color: rgba(0, 136, 255, 0.1);
}
&.ant-tag-red {
color: var(--fill-serious-base);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background-color: rgba(255, 74, 74, 0.1);
}
&.ant-tag-yellow {
color: var(--fill-notice-dark);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background-color: rgba(255, 187, 0, 0.1);
}
&.ant-tag-green {
color: var(--fill-positive-dark);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background-color: rgba(30, 201, 127, 0.1);
}
&.ant-tag-gray {
diff --git a/packages/eagle/src/coreX/BarChart/index.tsx b/packages/eagle/src/coreX/BarChart/index.tsx
index a5025a438..560aaa798 100644
--- a/packages/eagle/src/coreX/BarChart/index.tsx
+++ b/packages/eagle/src/coreX/BarChart/index.tsx
@@ -7,6 +7,7 @@ const StackBar = css`
height: 8px;
box-sizing: border-box;
border-radius: 2px;
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
background: #f5f7fa;
display: flex;
width: 100%;
diff --git a/packages/eagle/src/coreX/ChartWithTooltip/index.tsx b/packages/eagle/src/coreX/ChartWithTooltip/index.tsx
index ebcb1f23b..13b6bbf59 100644
--- a/packages/eagle/src/coreX/ChartWithTooltip/index.tsx
+++ b/packages/eagle/src/coreX/ChartWithTooltip/index.tsx
@@ -53,6 +53,7 @@ const ChartTooltipRow = styled.div`
align-items: center;
font-size: 13px;
line-height: 24px;
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
color: #cccccc;
white-space: nowrap;
diff --git a/packages/eagle/src/coreX/CronCalendar/index.tsx b/packages/eagle/src/coreX/CronCalendar/index.tsx
index d8b98152d..d200ebf22 100644
--- a/packages/eagle/src/coreX/CronCalendar/index.tsx
+++ b/packages/eagle/src/coreX/CronCalendar/index.tsx
@@ -20,6 +20,7 @@ const CronCalendarWrapper = css`
> .ant-picker-calendar,
> .ant-picker-calendar .ant-picker-panel {
width: 100%;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background-color: rgba(245, 247, 250, 0.6);
border-top: none;
@@ -45,14 +46,17 @@ const CronCalendarWrapper = css`
}
.ant-picker-cell {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
color: rgba(62, 70, 82, 0.6);
opacity: 0.4;
}
.ant-picker-cell-in-view {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
color: rgba(62, 70, 82, 0.6);
opacity: 1;
}
.ant-picker-cell-in-view > .active {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
color: #3e4652;
}
@@ -62,13 +66,16 @@ const CronCalendarWrapper = css`
`;
const Title = css`
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
color: rgba(129, 138, 153, 0.6);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
box-shadow: inset 0px -1px 0px rgba(213, 219, 227, 0.6);
backdrop-filter: blur(10px);
padding: 7px 10px;
`;
const Control = css`
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
color: rgba(62, 70, 82, 0.6);
display: flex;
justify-content: space-between;
@@ -78,6 +85,7 @@ const Control = css`
.anticon {
cursor: pointer;
&:hover {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
color: #0096ff;
}
}
@@ -95,6 +103,7 @@ const Cell = css`
width: 2px;
height: 2px;
border-radius: 1px;
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
background: #0096ff;
&:not(:last-child) {
@@ -104,6 +113,7 @@ const Cell = css`
.bar {
width: 9px;
height: 2px;
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
background: #0096ff;
border-radius: 2px;
}
diff --git a/packages/eagle/src/coreX/CronPlan/index.tsx b/packages/eagle/src/coreX/CronPlan/index.tsx
index 67897f58d..2775308d2 100644
--- a/packages/eagle/src/coreX/CronPlan/index.tsx
+++ b/packages/eagle/src/coreX/CronPlan/index.tsx
@@ -37,6 +37,7 @@ const CronPlanWrapper = css`
border-color: var(--stroke-outstanding-base);
> header {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
background: rgba(#0080ff, 0.1);
}
}
@@ -48,6 +49,7 @@ const CronPlanWrapper = css`
.field-item {
display: flex;
padding: 10px 0;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
border-bottom: 1px solid rgba(213, 219, 227, 0.6);
&:last-child {
@@ -58,11 +60,13 @@ const CronPlanWrapper = css`
label {
line-height: 32px;
width: 100px;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
color: rgba(62, 70, 82, 0.6);
}
}
.help {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
color: rgba(62, 70, 82, 0.6);
margin-top: 5px;
}
@@ -84,6 +88,7 @@ const CronPlanHeader = css`
}
.retain {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
color: rgba(129, 138, 153, 0.6);
}
@@ -120,6 +125,7 @@ const CronPlanHeader = css`
.close {
padding-left: 14px;
margin-left: 14px;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
border-left: 1px solid rgba(129, 138, 153, 0.6);
cursor: pointer;
}
@@ -128,21 +134,26 @@ const CronPlanHeader = css`
const ModeTabs = css`
.ant-btn.ant-btn-link {
padding: 1px 10px;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
color: rgba(62, 70, 82, 0.6);
border-radius: 4px;
&.active {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: rgba(0, 128, 255, 0.1);
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
color: #0096ff;
}
}
padding-bottom: 4px;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
border-bottom: 1px solid rgba(213, 219, 227, 0.6);
`;
const Wrapper = css`
padding: 10px 0;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
border-bottom: 1px solid rgba(213, 219, 227, 0.6);
.ant-input,
@@ -154,11 +165,13 @@ const Wrapper = css`
.options {
padding: 12px 0 12px 16px;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
border-left: 2px solid rgba(129, 138, 153, 0.6);
margin: 5px 0 5px 8px;
}
.week-day-option,
.month-day-option {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
background: #f5f7fa;
box-sizing: border-box;
border-radius: 16px;
@@ -166,12 +179,15 @@ const Wrapper = css`
&:focus {
color: inherit;
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
border-color: #d9d9d9;
}
}
.week-day-option {
&.active {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
background-color: #0096ff;
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
border-color: #0096ff;
color: var(--text-neutral-ontint);
}
@@ -186,7 +202,9 @@ const Wrapper = css`
margin-bottom: 8px;
&.active {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
background-color: #0096ff;
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
border-color: #0096ff;
color: var(--text-neutral-ontint);
}
diff --git a/packages/eagle/src/coreX/DateRangePicker/DateRangePicker.style.ts b/packages/eagle/src/coreX/DateRangePicker/DateRangePicker.style.ts
index 2ba5ed5fd..5a43dde9a 100644
--- a/packages/eagle/src/coreX/DateRangePicker/DateRangePicker.style.ts
+++ b/packages/eagle/src/coreX/DateRangePicker/DateRangePicker.style.ts
@@ -89,8 +89,8 @@ const CalendarMonthWrapper = styled.div`
z-index: 2;
&.pinned {
- box-shadow:
- 0px 4px 12px rgba(225, 230, 241, 0.4),
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
+ box-shadow: 0px 4px 12px rgba(225, 230, 241, 0.4),
inset 0px -1px 0px var(--stroke-neutral-trans-1);
}
}
@@ -109,7 +109,9 @@ const CalendarMonthWrapper = styled.div`
justify-content: center;
&.highlight {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
border-color: #e6f4ff;
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
background: #e6f4ff;
&.first-highlight {
@@ -123,6 +125,7 @@ const CalendarMonthWrapper = styled.div`
top: 0;
width: calc(50% + 20px);
height: 100%;
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
background: #e6f4ff;
border-top-left-radius: 50%;
border-bottom-left-radius: 50%;
@@ -140,6 +143,7 @@ const CalendarMonthWrapper = styled.div`
top: 0;
width: calc(50% + 20px);
height: 100%;
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
background: #e6f4ff;
border-top-right-radius: 50%;
border-bottom-right-radius: 50%;
@@ -183,10 +187,12 @@ const CalendarMonthWrapper = styled.div`
&.today {
color: var(--text-colorful-outstanding);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
border-color: rgba(0, 136, 255, 0.16);
}
&.highlight {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
border-color: #e6f4ff;
}
@@ -264,6 +270,7 @@ const InputTimeWrapper = styled.div`
color: var(--text-neutral-primary);
&::placeholder {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
color: rgba(0, 21, 64, 0.3);
}
@@ -280,6 +287,7 @@ const InputTimeWrapper = styled.div`
.connect-symbol {
margin: 0 2px;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
color: rgba(0, 21, 64, 0.3);
&.inputted {
@@ -313,6 +321,7 @@ const AbsoluteTimeWrapper = styled.div`
const AbsoluteTimeSectionWrapper = styled.div`
padding: 8px 12px;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
box-shadow: inset 0px 1px 0px rgba(211, 218, 235, 0.3);
.time-input-main {
@@ -393,6 +402,7 @@ const RelativeTimeWrapper = styled.div`
cursor: pointer;
&:hover {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: rgba(0, 136, 255, 0.16);
color: var(--text-colorful-outstanding);
}
@@ -413,6 +423,7 @@ const RelativeTimeWrapper = styled.div`
&.disabled {
background: var(--fill-neutral-trans-1);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
color: rgba(0, 21, 64, 0.3);
cursor: not-allowed;
}
@@ -494,6 +505,7 @@ const DateRangePickerWrapper = styled.div`
color: var(--text-neutral-primary);
.concat-symbol-block {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
color: rgba(0, 21, 64, 0.3);
}
@@ -507,6 +519,7 @@ const DateRangePickerWrapper = styled.div`
text-align: center;
&::placeholder {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
color: rgba(0, 21, 64, 0.3);
text-align: center;
}
@@ -591,6 +604,7 @@ const DateRangePickerHistory = styled.div`
cursor: pointer;
&:hover {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: rgba(0, 136, 255, 0.16);
color: var(--text-colorful-outstanding);
}
diff --git a/packages/eagle/src/coreX/GoBackButton/index.tsx b/packages/eagle/src/coreX/GoBackButton/index.tsx
index 59ab70ef6..92392a830 100644
--- a/packages/eagle/src/coreX/GoBackButton/index.tsx
+++ b/packages/eagle/src/coreX/GoBackButton/index.tsx
@@ -13,6 +13,7 @@ const GobackButtonStyle = css`
cursor: pointer;
.link-text {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
color: rgba(0, 21, 64, 0.3);
}
diff --git a/packages/eagle/src/coreX/InfoRowList/InfoRow.tsx b/packages/eagle/src/coreX/InfoRowList/InfoRow.tsx
index c687c235b..cdc03417b 100644
--- a/packages/eagle/src/coreX/InfoRowList/InfoRow.tsx
+++ b/packages/eagle/src/coreX/InfoRowList/InfoRow.tsx
@@ -22,6 +22,7 @@ const Col = styled.div`
font-size: 12px;
line-height: 18px;
padding: 8px 0;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
box-shadow: inset 0px -1px 0px rgba(213, 219, 227, 0.6);
&:last-of-type {
diff --git a/packages/eagle/src/coreX/InfoRowList/InfoRowList.tsx b/packages/eagle/src/coreX/InfoRowList/InfoRowList.tsx
index c7ca3c693..300efefd2 100644
--- a/packages/eagle/src/coreX/InfoRowList/InfoRowList.tsx
+++ b/packages/eagle/src/coreX/InfoRowList/InfoRowList.tsx
@@ -46,6 +46,7 @@ const ContentWrapper = styled.div`
`;
const NullText = styled.div`
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
color: rgba(0, 21, 64, 0.3);
`;
diff --git a/packages/eagle/src/coreX/KubeConfigModal/KubeConfigModal.style.ts b/packages/eagle/src/coreX/KubeConfigModal/KubeConfigModal.style.ts
index edc1d0d63..ea8e0fa63 100644
--- a/packages/eagle/src/coreX/KubeConfigModal/KubeConfigModal.style.ts
+++ b/packages/eagle/src/coreX/KubeConfigModal/KubeConfigModal.style.ts
@@ -65,6 +65,7 @@ export const ErrorContentWrapper = styled.div`
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
background-image: linear-gradient(211.41deg, #929dad 0%, #d3dbe3 100%);
}
`;
diff --git a/packages/eagle/src/coreX/Sider/index.tsx b/packages/eagle/src/coreX/Sider/index.tsx
index d814d4d3a..1188488be 100644
--- a/packages/eagle/src/coreX/Sider/index.tsx
+++ b/packages/eagle/src/coreX/Sider/index.tsx
@@ -131,6 +131,7 @@ const NavLinkStyle = css`
width: 100% !important;
&[disabled] {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
color: rgba(0, 0, 0, 0.25) !important;
opacity: 1 !important;
}
diff --git a/packages/eagle/src/coreX/TabMenu/index.tsx b/packages/eagle/src/coreX/TabMenu/index.tsx
index 49a6dccb3..bade638bb 100644
--- a/packages/eagle/src/coreX/TabMenu/index.tsx
+++ b/packages/eagle/src/coreX/TabMenu/index.tsx
@@ -69,6 +69,7 @@ const TabMenuStyle = css`
}
&.tab-menu-item-selected {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
background: rgba(#0080ff, 0.16);
}
@@ -79,9 +80,11 @@ const TabMenuStyle = css`
&.tab-menu-item-selected {
color: var(--text-colorful-outstanding);
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
background: rgba(#0080ff, 0.1);
&:hover {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
background: rgba(#0080ff, 0.16);
}
@@ -125,6 +128,7 @@ const TabMenuStyle = css`
left: 0;
transform: translate(-50%, -50%);
transition: opacity 100ms linear;
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
fill: rgba(#0080ff, 0.2);
}
}
@@ -151,6 +155,7 @@ const TabMenuStyle = css`
&:hover,
&:active {
.sub-title {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
background: rgba(#0080ff, 0.16);
}
.sub-title > .slash-arrow {
@@ -211,6 +216,7 @@ const TabMenuStyle = css`
&.tab-menu-item-group.tab-menu-item-selected {
.main-title {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
color: rgba(#2d3a56, 0.6);
}
diff --git a/packages/eagle/src/styles/component/menu.scss b/packages/eagle/src/styles/component/menu.scss
index 8db076736..d661587b7 100644
--- a/packages/eagle/src/styles/component/menu.scss
+++ b/packages/eagle/src/styles/component/menu.scss
@@ -8,7 +8,9 @@
border: none;
> .ant-dropdown-menu {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
border: 1px solid #dfe4eb;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
box-shadow: 0px 8px 16px rgba(129, 138, 153, 0.18),
0px 0px 4px rgba(235, 239, 245, 0.6);
@@ -18,6 +20,7 @@
font-size: 12px;
line-height: 18px;
padding: 4px 16px;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
color: rgba(129, 138, 153, 0.6);
}
@@ -39,6 +42,7 @@
color: var(--gray-gray-80);
&:not(.ant-dropdown-menu-item-disabled):hover {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
background-color: rgba(#0080ff, 0.1);
color: var(--blue-blue-60);
}
@@ -50,6 +54,7 @@
&.ant-dropdown-menu-item-danger {
color: var(--text-colorful-serious);
&:hover {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
background-color: rgba(#f0483e, 0.1);
color: var(--text-colorful-serious);
}
@@ -65,6 +70,7 @@
.ant-dropdown-menu-submenu-title-divider {
margin-left: 0;
margin-right: 0;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: rgba(213, 219, 227, 0.6);
}
diff --git a/packages/eagle/src/styles/override.scss b/packages/eagle/src/styles/override.scss
index 1060a2ddc..5da3e17a0 100644
--- a/packages/eagle/src/styles/override.scss
+++ b/packages/eagle/src/styles/override.scss
@@ -58,6 +58,7 @@
border-color: var(--stroke-neutral-trans-2);
}
&.error:not(.ant-picker-disabled) {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
border-color: #e75a3a;
}
}
@@ -82,6 +83,7 @@
height: 20px;
line-height: 20px;
font-size: 20px;
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
color: #3e4652;
position: unset;
@@ -129,9 +131,11 @@
&.footer-cancel-button,
&.ant-btn-ghost {
background: transparent;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
color: rgba(62, 70, 82, 0.6);
&:hover {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: rgba(223, 228, 235, 0.6);
}
}
@@ -159,6 +163,7 @@
color: var(--gray-gray-80);
font-weight: bold;
padding-bottom: 6px;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
border-bottom: 1px solid rgba(213, 219, 227, 0.6);
margin-bottom: 16px;
@@ -274,6 +279,7 @@ $footer-height: 64px;
.ant-modal-footer {
padding: 16px 24px;
border-top: none;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
box-shadow: inset 0px 1px 0px rgba(235, 239, 245, 0.6);
}
}
@@ -307,6 +313,7 @@ $footer-height: 64px;
.ant-modal-footer {
padding: 32px 60px;
border-top: none;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
box-shadow: inset 0px 1px 0px rgba(235, 239, 245, 0.6);
}
}
@@ -314,6 +321,7 @@ $footer-height: 64px;
.ant-dropdown-menu-item-divider,
.ant-dropdown-menu-submenu-title-divider {
margin: 4px 12px;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: rgba(235, 239, 245, 0.6);
}
@@ -322,6 +330,7 @@ $footer-height: 64px;
.ant-select-selector {
pointer-events: none;
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
border-color: #d9d9d9 !important;
background: var(--gray-gray-40);
@@ -341,9 +350,11 @@ $footer-height: 64px;
}
.select:focus .ant-select-selection {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
border-color: #29adff;
border-right-width: 1px !important;
outline: 0;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
box-shadow: 0 0 0 2px rgba(0, 150, 255, 0.2);
}
@@ -388,7 +399,9 @@ $footer-height: 64px;
}
.ant-upload-drag {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
background: #f5f7fa;
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
border: 1px dashed rgba(129, 138, 153, 0.6);
box-sizing: border-box;
border-radius: 4px;
@@ -472,6 +485,7 @@ $footer-height: 64px;
}
.ant-modal-mask {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: rgba(107, 125, 153, 0.3);
transition: background 320ms ease;
}
@@ -500,6 +514,7 @@ $footer-height: 64px;
}
.ant-alert-warning {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: rgba(255, 187, 0, 0.1);
.ant-alert-message {
color: var(--fill-notice-dark);
@@ -507,6 +522,7 @@ $footer-height: 64px;
}
.ant-alert-error {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: rgba(255, 74, 74, 0.1);
.ant-alert-message {
color: var(--text-colorful-serious);
@@ -514,6 +530,7 @@ $footer-height: 64px;
}
.ant-alert-success {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: rgba(30, 201, 127, 0.1);
.ant-alert-message {
color: var(--fill-positive-dark);
@@ -521,6 +538,7 @@ $footer-height: 64px;
}
.ant-alert-info {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background: rgba(0, 136, 255, 0.1);
.ant-alert-message {
color: var(--fill-outstanding-dark);
@@ -625,18 +643,21 @@ td .ant-btn-link {
.badge-error {
.ant-badge-count {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
background: radial-gradient(100% 100% at 0% 100%, #ff5c78 0%, #dc0000 100%);
}
}
.badge-warning {
.ant-badge-count {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
background: radial-gradient(100% 100% at 0% 100%, #ffd505 0%, #f39600 100%);
}
}
.badge-info {
.ant-badge-count {
+ /* stylelint-disable-next-line color-no-hex -- No equivalent theme token. */
background: radial-gradient(100% 100% at 0% 100%, #5bcaff 0%, #0066ff 100%);
}
}
@@ -661,49 +682,54 @@ td .ant-btn-link {
// FIXME: what's this ??
.menu-shadow-box {
- box-shadow:
- rgba(45, 58, 86, 0.3) 0px 25px 80px 0px,
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
+ box-shadow: rgba(45, 58, 86, 0.3) 0px 25px 80px 0px,
rgba(107, 125, 153, 0.18) 0px 0px 20px 0px;
}
.menu-shadow-filter {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
filter: drop-shadow(rgba(45, 58, 86, 0.3) 0px 25px 80px)
drop-shadow(rgba(107, 125, 153, 0.18) 0px 0px 20px);
}
.menu-shadow-above-button-box {
- box-shadow:
- 0px -12px 40px 0px rgba(45, 58, 86, 0.3),
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
+ box-shadow: 0px -12px 40px 0px rgba(45, 58, 86, 0.3),
0px 0px 10px 0px rgba(107, 125, 153, 0.18);
}
.menu-shadow-above-button-filter {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
filter: drop-shadow(0px -12px 40px rgba(45, 58, 86, 0.3))
drop-shadow(0px 0px 10px rgba(107, 125, 153, 0.18));
}
.panel-shadow-box {
- box-shadow:
- rgba(45, 58, 86, 0.3) 0px 25px 80px 0px,
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
+ box-shadow: rgba(45, 58, 86, 0.3) 0px 25px 80px 0px,
rgba(107, 125, 153, 0.18) 0px 0px 20px 0px;
}
.panel-shadow-filter {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
filter: drop-shadow(rgba(45, 58, 86, 0.3) 0px 25px 80px)
drop-shadow(rgba(107, 125, 153, 0.18) 0px 0px 20px);
}
.panel-shadow-above-button-box {
- box-shadow:
- 0px -25px 80px 0px rgba(45, 58, 86, 0.3),
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
+ box-shadow: 0px -25px 80px 0px rgba(45, 58, 86, 0.3),
0px 0px 20px 0px rgba(107, 125, 153, 0.18);
}
.panel-shadow-above-button-filter {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
filter: drop-shadow(0px -25px 80px rgba(45, 58, 86, 0.3))
drop-shadow(0px 0px 20px rgba(107, 125, 153, 0.18));
}
.card-shadow-box {
- box-shadow:
- rgba(10, 37, 85, 0.18) 0px 8px 16px 0px,
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
+ box-shadow: rgba(10, 37, 85, 0.18) 0px 8px 16px 0px,
rgba(10, 37, 85, 0.18) 0px 0px 4px -2px;
}
.card-shadow-filter {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
filter: drop-shadow(rgba(10, 37, 85, 0.18) 0px 8px 16px)
drop-shadow(rgba(10, 37, 85, 0.18) 0px 0px 4px);
}
@@ -712,37 +738,47 @@ td .ant-btn-link {
box-shadow: var(--effect-shadow-button-cta);
}
.push-button-cta-filter {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
filter: drop-shadow(0px 1px 2px 0px rgba(44, 56, 82, 0.18));
}
.push-button-ordinary-box {
box-shadow: var(--effect-shadow-button-ordinary);
}
.push-button-ordinary-filter {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
filter: drop-shadow(0px 1px 2px -1px rgba(44, 56, 82, 0.18));
}
.button-grow-blue-box {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
box-shadow: 0px 2px 8px 0px rgba(0, 136, 255, 0.1);
}
.button-grow-blue-filter {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
filter: drop-shadow(0px 2px 8px 0px rgba(0, 136, 255, 0.1));
}
.button-grow-green-box {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
box-shadow: 0px 2px 8px 0px rgba(30, 201, 127, 0.1);
}
.button-grow-green-filter {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
filter: drop-shadow(0px 2px 8px 0px rgba(30, 201, 127, 0.1));
}
.button-grow-yellow-box {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
box-shadow: 0px 2px 8px 0px rgba(255, 187, 0, 0.1);
}
.button-grow-yellow-filter {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
filter: drop-shadow(0px 2px 8px 0px rgba(255, 187, 0, 0.1));
}
.button-grow-red-box {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
box-shadow: 0px 2px 8px 0px rgba(255, 74, 74, 0.1);
}
.button-grow-red-filter {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
filter: drop-shadow(0px 2px 8px 0px rgba(255, 74, 74, 0.1));
}
@@ -756,12 +792,14 @@ td .ant-btn-link {
box-shadow: var(--effect-outline-activeFocus);
}
.dropdown-button-for-select-active-and-focus-filter {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
filter: drop-shadow(0px 0px 0px 4px rgba(0, 136, 255, 0.16));
}
.dropdown-button-for-select-active-and-focus-error-box {
box-shadow: var(--effect-outline-error);
}
.dropdown-button-for-select-active-and-focus-error-filter {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
filter: drop-shadow(0px 0px 0px 4px rgba(255, 74, 74, 0.16));
}
@@ -778,9 +816,11 @@ td .ant-btn-link {
}
&.ant-tag-red {
color: var(--fill-serious-base);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background-color: rgba(255, 74, 74, 0.1);
&.tag-hover:hover,
&.__pseudo-states-hover {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background-color: rgba(255, 74, 74, 0.16);
}
}
@@ -790,17 +830,21 @@ td .ant-btn-link {
}
&.ant-tag-yellow {
color: var(--fill-notice-dark);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background-color: rgba(255, 187, 0, 0.1);
&.tag-hover:hover,
&.__pseudo-states-hover {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background-color: rgba(255, 187, 0, 0.16);
}
}
&.ant-tag-green {
color: var(--fill-positive-dark);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background-color: rgba(30, 201, 127, 0.1);
&.tag-hover:hover,
&.__pseudo-states-hover {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background-color: rgba(30, 201, 127, 0.16);
}
}
@@ -810,17 +854,21 @@ td .ant-btn-link {
}
&.ant-tag-blue {
color: var(--fill-outstanding-base);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background-color: rgba(0, 136, 255, 0.1);
&.tag-hover:hover,
&.__pseudo-states-hover {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background-color: rgba(0, 136, 255, 0.16);
}
}
&.ant-tag-purple {
color: var(--text-colorful-purple);
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background-color: rgba(126, 65, 255, 0.1);
&.tag-hover:hover,
&.__pseudo-states-hover {
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- No equivalent theme token. */
background-color: rgba(126, 65, 255, 0.16);
}
}
diff --git a/packages/eagle/stylelint.config.cjs b/packages/eagle/stylelint.config.cjs
index 92d5f7e72..f6c795e3f 100644
--- a/packages/eagle/stylelint.config.cjs
+++ b/packages/eagle/stylelint.config.cjs
@@ -1,11 +1,12 @@
// shortcut: internal rule registry is unavailable; replace the rule snapshot when access is restored.
module.exports = {
- extends: ["./tools/color-lint/stylelint/linaria-colors.cjs"],
+ extends: ["./tools/color-lint/stylelint/colors.cjs"],
overrides: [
{
files: ["**/*.{ts,tsx}"],
customSyntax: require.resolve("./tools/color-lint/linaria-scss.cjs"),
},
+ { files: ["**/*.{css,scss}"], customSyntax: "postcss-scss" },
],
ignoreFiles: [
"src/styles/token/**", // Generated theme definitions.
diff --git a/packages/eagle/tools/color-lint/check-changed-colors.cjs b/packages/eagle/tools/color-lint/check-changed-colors.cjs
deleted file mode 100644
index 0ab4fa5e1..000000000
--- a/packages/eagle/tools/color-lint/check-changed-colors.cjs
+++ /dev/null
@@ -1,93 +0,0 @@
-const { execFileSync } = require("node:child_process");
-
-const git = (...args) =>
- execFileSync("git", ["--literal-pathspecs", ...args], {
- encoding: "utf8",
- maxBuffer: 16 * 1024 * 1024,
- });
-
-function changedRanges(base) {
- const files = new Map();
- const output = git(
- "diff",
- "--relative",
- "--name-status",
- "-z",
- "-M",
- "--diff-filter=ACMR",
- base,
- "HEAD",
- "--",
- "src",
- );
- const fields = output.split("\0");
- for (let i = 0; i < fields.length - 1; ) {
- const status = fields[i++];
- const original = fields[i++];
- const file = status.startsWith("R") ? fields[i++] : original;
- if (!/\.(?:css|scss|ts|tsx)$/.test(file)) continue;
- const patch = git(
- "diff",
- "--no-ext-diff",
- "--no-textconv",
- "--no-color",
- "--unified=0",
- "-M",
- base,
- "HEAD",
- "--",
- ...new Set([original, file]),
- );
- const ranges = [
- ...patch.matchAll(/^@@ -\d+(?:,\d+)? \+(\d+)(?:,(\d+))? @@/gm),
- ]
- .map(([, start, count = "1"]) => [
- Number(start),
- Number(start) + Number(count) - 1,
- ])
- .filter(([start, end]) => end >= start);
- if (ranges.length > 0) files.set(file, ranges);
- }
- return files;
-}
-
-async function check(baseRef) {
- const commit = git(
- "rev-parse",
- "--verify",
- "--end-of-options",
- baseRef + "^{commit}",
- ).trim();
- const files = changedRanges(git("merge-base", commit, "HEAD").trim());
- const violations = new Set();
- if (files.size > 0) {
- const { scanEquivalentColors } = await import("./equivalent-colors.mjs");
- for (const { file, start, end, message } of await scanEquivalentColors([
- ...files.keys(),
- ])) {
- // shortcut: use changed lines; compare columns if same-line edits cause noise.
- if (
- files.get(file)?.some(([first, last]) => start <= last && end >= first)
- ) {
- violations.add(file + ":" + start + ": " + message);
- }
- }
- }
-
- if (violations.size > 0) {
- console.error([...violations].join("\n"));
- process.exitCode = 1;
- } else {
- console.log("No new fixed colors with equivalent Eagle tokens.");
- }
-}
-
-if (!process.argv[2]) {
- console.error("Usage: yarn lint:colors:changed ");
- process.exitCode = 2;
-} else {
- check(process.argv[2]).catch((error) => {
- console.error(error);
- process.exitCode = 1;
- });
-}
diff --git a/packages/eagle/tools/color-lint/equivalent-colors.mjs b/packages/eagle/tools/color-lint/equivalent-colors.mjs
deleted file mode 100644
index d8bad343a..000000000
--- a/packages/eagle/tools/color-lint/equivalent-colors.mjs
+++ /dev/null
@@ -1,210 +0,0 @@
-import { execFileSync } from "node:child_process";
-import { relative } from "node:path";
-import { fileURLToPath } from "node:url";
-import { colord, extend } from "colord";
-import hwb from "colord/plugins/hwb";
-import names from "colord/plugins/names";
-import valueParser from "postcss-value-parser";
-import stylelint from "stylelint";
-import tokens from "../../src/styles/token/light.json" with { type: "json" };
-import legacyColors from "./legacy-sass-colors.json" with { type: "json" };
-
-extend([names, hwb]);
-
-const ruleName = "eagle/equivalent-fixed-color";
-const message = stylelint.utils.ruleMessages(ruleName, {
- fixed: (color, names) =>
- color +
- " has an equivalent Eagle token: " +
- names.join(", ") +
- ". Use a runtime CSS variable.",
-}).fixed;
-
-const sassVariable = /^\$[\w-]+$/;
-const colorFunction =
- /^(?:rgba?|hsla?|hwb|lab|lch|oklab|oklch|color|device-cmyk)$/i;
-const namedColorProperty =
- /(?:^[$]|^--|color|background|border|shadow|^outline|^fill$|^stroke$|^filter$|^column-rule|^text-decoration)/i;
-
-function colorKey(value) {
- const hex = /^#([\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$/i.exec(value);
- if (hex) {
- // Colord rounds hex alpha while parsing, so decode it before comparison.
- let digits = hex[1];
- if (digits.length <= 4) digits = digits.replace(/./g, "$&$&");
- const [red, green, blue, alpha = 255] = digits
- .match(/../g)
- .map((byte) => parseInt(byte, 16));
- return [red, green, blue, alpha / 255].map(channelKey).join(",");
- }
- if (/^(?:transparent|currentcolor)$/i.test(value)) return;
- const srgb =
- /^color\(\s*srgb\s+([-\d.e+]+%?)\s+([-\d.e+]+%?)\s+([-\d.e+]+%?)(\s*\/\s*[-\d.e+]+%?)?\s*\)$/i.exec(
- value,
- );
- if (srgb) {
- const channels = srgb
- .slice(1, 4)
- .map((part) => (part.endsWith("%") ? part : Number(part) * 100 + "%"));
- value = "rgb(" + channels.join(" ") + (srgb[4] ?? "") + ")";
- }
- const color = colord(value);
- if (!color.isValid()) return;
- const { r, g, b, a } = color.rgba;
- return [r, g, b, a].map(channelKey).join(",");
-}
-
-function channelKey(channel) {
- return Math.round(channel * 1e12) / 1e12;
-}
-
-const tokenNamesByColor = new Map();
-for (const [name, value] of Object.entries(tokens)) {
- const color = colorKey(value);
- if (!color) continue;
- const names = tokenNamesByColor.get(color) ?? [];
- names.push("--" + name);
- tokenNamesByColor.set(color, names);
-}
-
-function tokenMatches(value, allowNamed, resolveSass = () => undefined) {
- const matches = new Map();
- const parsed = valueParser(value.replace(/#\{([^{}]+)\}/g, "$1"));
- parsed.walk((node) => {
- if (node.type === "function" && node.value.toLowerCase() === "url") {
- return false;
- }
- const isColorFunction =
- node.type === "function" && colorFunction.test(node.value);
- const isWord =
- node.type === "word" &&
- (/^#/.test(node.value) || allowNamed || sassVariable.test(node.value));
- if (isColorFunction || isWord) {
- const source = valueParser.stringify(node);
- let fixedColor = sassVariable.test(source) ? resolveSass(source) : source;
- const sassRgba = /^rgba?\(\s*(\$[\w-]+)\s*,\s*([.\d]+%?)\s*\)$/i.exec(
- source,
- );
- if (sassRgba) {
- const base = colorKey(resolveSass(sassRgba[1]) ?? "");
- if (base) {
- const rgb = base.split(",").slice(0, 3);
- fixedColor = "rgba(" + [...rgb, sassRgba[2]].join(",") + ")";
- }
- }
- const names = tokenNamesByColor.get(colorKey(fixedColor ?? ""));
- if (names) matches.set(source, names);
- if (isColorFunction) return false;
- }
- });
- return matches;
-}
-
-function checkDeclarations(enabled) {
- return (root, result) => {
- if (!enabled) return;
- const variables = new WeakMap();
- root.walk((node) => {
- const declaration = node.type === "decl";
- if (
- !declaration &&
- !(node.type === "atrule" && node.name === "include")
- ) {
- return;
- }
- const resolveSass = (name) => {
- const variable = name.replaceAll("_", "-");
- for (let scope = node.parent; scope; scope = scope.parent) {
- const values = variables.get(scope);
- if (values?.has(variable)) return values.get(variable);
- }
- return Object.hasOwn(legacyColors, variable)
- ? legacyColors[variable]
- : undefined;
- };
- const value = declaration
- ? node.value.replace(/\s+!(?:default|global)\b/g, "")
- : node.params;
- for (const [color, names] of tokenMatches(
- value,
- declaration && namedColorProperty.test(node.prop),
- resolveSass,
- )) {
- stylelint.utils.report({
- message: message(color, names),
- node,
- start: node.source.start,
- end: node.source.end,
- result,
- ruleName,
- });
- }
- if (declaration && sassVariable.test(node.prop)) {
- const scope = node.parent;
- if (!variables.has(scope)) variables.set(scope, new Map());
- variables
- .get(scope)
- .set(
- node.prop.replaceAll("_", "-"),
- sassVariable.test(value) ? resolveSass(value) : value,
- );
- }
- });
- };
-}
-
-export default stylelint.createPlugin(ruleName, checkDeclarations);
-
-export async function scanEquivalentColors(files) {
- const cwd = process.cwd();
- const styles = await stylelint.lint({
- cwd,
- files: files.map((file) => file.replace(/[\\*?[\]{}()!]/g, "\\$&")),
- config: {
- extends: [
- fileURLToPath(new URL("../../stylelint.config.cjs", import.meta.url)),
- ],
- plugins: [fileURLToPath(import.meta.url)],
- rules: { [ruleName]: true },
- ignoreDisables: true,
- },
- formatter: "string",
- });
- if (styles.errored) throw new Error(styles.report);
-
- const diagnostics = styles.results.flatMap(({ source, warnings }) =>
- warnings
- .filter(({ rule }) => rule === ruleName)
- .map(({ line, endLine, text }) => ({
- file: relative(cwd, source),
- start: line,
- end: endLine ?? line,
- message: text,
- })),
- );
-
- const scripts = styles.results
- .filter(
- ({ source, ignored }) => !ignored && source && /\.tsx?$/.test(source),
- )
- .map(({ source }) => relative(cwd, source));
- if (scripts.length === 0) return diagnostics;
-
- const config = fileURLToPath(new URL("../../sgconfig.yml", import.meta.url));
- const output = execFileSync(
- "ast-grep",
- ["scan", "--config", config, "--json=compact", "--", ...scripts],
- { encoding: "utf8", maxBuffer: 16 * 1024 * 1024 },
- );
- for (const { text, range, file } of JSON.parse(output)) {
- for (const [color, names] of tokenMatches(text, true)) {
- diagnostics.push({
- file,
- start: range.start.line + 1,
- end: range.end.line + 1,
- message: message(color, names),
- });
- }
- }
- return diagnostics;
-}
diff --git a/packages/eagle/tools/color-lint/legacy-sass-colors.json b/packages/eagle/tools/color-lint/legacy-sass-colors.json
deleted file mode 100644
index 69694cc43..000000000
--- a/packages/eagle/tools/color-lint/legacy-sass-colors.json
+++ /dev/null
@@ -1,491 +0,0 @@
-{
- "$backgrounds-light-full-screen-contrast": "#ffffff",
- "$backgrounds-light-grouped": "#edf0f7",
- "$backgrounds-light-primary": "#ffffff",
- "$black": "#000000",
- "$blue": "#0096ff",
- "$blue-100": "#1d326c",
- "$blue-40": "#009dff",
- "$blue-50": "#0080ff",
- "$blue-60": "#0080ff",
- "$blue-80": "#005ed1",
- "$blue-a10": "rgba(0, 136, 255, 0.1)",
- "$blue-a16": "rgba(0, 136, 255, 0.16)",
- "$blue-a20": "rgba(0, 136, 255, 0.2)",
- "$blue-a4": "rgba(0, 136, 255, 0.04)",
- "$blue-blue-40": "#009dff",
- "$blue-blue-50": "#0080ff",
- "$blue-blue-60": "#005ed1",
- "$blue-blue-90": "#1d326c",
- "$blue-blue-a04-50": "rgba(0, 136, 255, 0.0392156862745098)",
- "$blue-blue-a10-50": "rgba(0, 136, 255, 0.10196078431372549)",
- "$blue-blue-a16-50": "rgba(0, 136, 255, 0.1607843137254902)",
- "$blue-blue-a20-50": "rgba(0, 136, 255, 0.2)",
- "$blue-s10": "#0087e6",
- "$blue-s20": "#0078cc",
- "$blue-s30": "#0069b3",
- "$blue-s40": "#005a99",
- "$blue-s50": "#004b80",
- "$blue-t10": "#1aa1ff",
- "$blue-t20": "#33abff",
- "$blue-t30": "#4db6ff",
- "$blue-t40": "#66c0ff",
- "$blue-t50": "#80cbff",
- "$blue-t60": "#99d5ff",
- "$blue-t70": "#b3e0ff",
- "$blue-t80": "#cceaff",
- "$blue-t90": "#e6f5ff",
- "$chart-01": "#41efc5",
- "$chart-02": "#5ed8ff",
- "$chart-03": "#cfec1b",
- "$chart-04": "#8c83ed",
- "$chart-05": "#de83ed",
- "$chart-06": "#ff9eea",
- "$chart-07": "#ffbf00",
- "$chart-blue-blue-1": "#ade5ff",
- "$chart-blue-blue-10": "#05318d",
- "$chart-blue-blue-2": "#7fd2ff",
- "$chart-blue-blue-3": "#51bcff",
- "$chart-blue-blue-4": "#19a3ff",
- "$chart-blue-blue-5": "#008cff",
- "$chart-blue-blue-6": "#0775f2",
- "$chart-blue-blue-7": "#1064da",
- "$chart-blue-blue-8": "#0f53c1",
- "$chart-blue-blue-9": "#0c3fa6",
- "$chart-cyan-cyan-1": "#a0ecec",
- "$chart-cyan-cyan-10": "#004155",
- "$chart-cyan-cyan-2": "#83e2e3",
- "$chart-cyan-cyan-3": "#67d8d9",
- "$chart-cyan-cyan-4": "#3ac4c6",
- "$chart-cyan-cyan-5": "#1aacb4",
- "$chart-cyan-cyan-6": "#048ba1",
- "$chart-cyan-cyan-7": "#00728e",
- "$chart-cyan-cyan-8": "#00607b",
- "$chart-cyan-cyan-9": "#005068",
- "$chart-green-green-1": "#a2f0d5",
- "$chart-green-green-10": "#05551b",
- "$chart-green-green-2": "#80e4bc",
- "$chart-green-green-3": "#62d9a4",
- "$chart-green-green-4": "#47cd8a",
- "$chart-green-green-5": "#21be6a",
- "$chart-green-green-6": "#06ac53",
- "$chart-green-green-7": "#0c9646",
- "$chart-green-green-8": "#0c8137",
- "$chart-green-green-9": "#0a6b29",
- "$chart-pink-pink-1": "#fed1fe",
- "$chart-pink-pink-10": "#64054b",
- "$chart-pink-pink-2": "#fdbcfd",
- "$chart-pink-pink-3": "#f99bf8",
- "$chart-pink-pink-4": "#f573f2",
- "$chart-pink-pink-5": "#ed5be5",
- "$chart-pink-pink-6": "#e136c6",
- "$chart-pink-pink-7": "#cf23a9",
- "$chart-pink-pink-8": "#b5158d",
- "$chart-pink-pink-9": "#910b6e",
- "$chart-purple-purple-1": "#e1c1ff",
- "$chart-purple-purple-10": "#2b1385",
- "$chart-purple-purple-2": "#cfa3ff",
- "$chart-purple-purple-3": "#be89ff",
- "$chart-purple-purple-4": "#a66bff",
- "$chart-purple-purple-5": "#8e51ff",
- "$chart-purple-purple-6": "#753bf1",
- "$chart-purple-purple-7": "#612fd4",
- "$chart-purple-purple-8": "#4e27b9",
- "$chart-purple-purple-9": "#3d1d9f",
- "$chart-red-red-1": "#ffbcc1",
- "$chart-red-red-10": "#571e1e",
- "$chart-red-red-2": "#ffa8a9",
- "$chart-red-red-3": "#ff8989",
- "$chart-red-red-4": "#fc726e",
- "$chart-red-red-5": "#f4554c",
- "$chart-red-red-6": "#de433b",
- "$chart-red-red-7": "#bb3935",
- "$chart-red-red-8": "#992f2d",
- "$chart-red-red-9": "#782725",
- "$chart-yellow-yellow-1": "#ffde6c",
- "$chart-yellow-yellow-10": "#483100",
- "$chart-yellow-yellow-2": "#fed158",
- "$chart-yellow-yellow-3": "#fec444",
- "$chart-yellow-yellow-4": "#feb630",
- "$chart-yellow-yellow-5": "#fea819",
- "$chart-yellow-yellow-6": "#e79305",
- "$chart-yellow-yellow-7": "#bb7a03",
- "$chart-yellow-yellow-8": "#926102",
- "$chart-yellow-yellow-9": "#6b4803",
- "$dim-double-dialogmask": "rgba(16, 26, 41, 0.6)",
- "$dim-light-under-dialog-box": "rgba(16, 26, 41, 0.1)",
- "$dim-light-under-menu": "rgba(63, 99, 148, 0.1)",
- "$dim-single-dialogmask": "rgba(16, 26, 41, 0.4)",
- "$dim-undermenu": "rgba(63, 99, 148, 0.10196078431372549)",
- "$fill-light-element-container-outstanding": "rgba(0, 136, 255, 0.1)",
- "$fill-neutral-light-white": "rgba(255, 255, 255, 0.6)",
- "$fill-neutral-lightwhite": "rgba(255, 255, 255, 0.6)",
- "$fill-neutral-opaque-1": "#f2f5fa",
- "$fill-neutral-opaque-2": "#edf0f7",
- "$fill-neutral-opaque-3": "#e4e9f2",
- "$fill-neutral-opaque-4": "#d8deeb",
- "$fill-neutral-opaque-5": "#ccd4e3",
- "$fill-neutral-opaque-6": "#a3b4cc",
- "$fill-neutral-opaque-7": "#6b7d99",
- "$fill-neutral-opaque-8": "#2d3a56",
- "$fill-neutral-trans-1": "rgba(237, 241, 250, 0.6)",
- "$fill-neutral-trans-2": "rgba(225, 230, 241, 0.6)",
- "$fill-neutral-trans-3": "rgba(211, 218, 235, 0.6)",
- "$fill-neutral-trans-3-trans-2-hover": "rgba(211, 218, 235, 0.6)",
- "$fill-neutral-trans-4": "rgba(192, 203, 224, 0.6)",
- "$fill-neutral-trans-5": "rgba(172, 186, 211, 0.6)",
- "$fill-neutral-trans-7": "rgba(10, 37, 85, 0.6)",
- "$fill-neutral-trans-8": "rgba(23, 38, 64, 0.8)",
- "$fill-neutral-white": "#ffffff",
- "$fill-notice-base": "#fea008",
- "$fill-notice-bright": "#feba33",
- "$fill-notice-dark": "#e07f00",
- "$fill-notice-deep": "#8e671b",
- "$fill-notice-light": "rgba(254, 160, 8, 0.10196078431372549)",
- "$fill-notice-light-hover": "rgba(255, 187, 0, 0.16)",
- "$fill-notice-lightactive": "rgba(254, 160, 8, 0.2)",
- "$fill-notice-lighthover": "rgba(254, 160, 8, 0.1607843137254902)",
- "$fill-notice-thin": "rgba(254, 160, 8, 0.0392156862745098)",
- "$fill-outstanding-base": "#0080ff",
- "$fill-outstanding-bright": "#009dff",
- "$fill-outstanding-dark": "#005ed1",
- "$fill-outstanding-deep": "#1d326c",
- "$fill-outstanding-light": "rgba(0, 136, 255, 0.10196078431372549)",
- "$fill-outstanding-light-active": "rgba(0, 136, 255, 0.2)",
- "$fill-outstanding-light-hover": "rgba(0, 136, 255, 0.16)",
- "$fill-outstanding-lightactive": "rgba(0, 136, 255, 0.2)",
- "$fill-outstanding-lighthover": "rgba(0, 136, 255, 0.1607843137254902)",
- "$fill-outstanding-thin": "rgba(0, 136, 255, 0.0392156862745098)",
- "$fill-positive-base": "#00ba5d",
- "$fill-positive-bright": "#23cf6d",
- "$fill-positive-dark": "#008f4c",
- "$fill-positive-deep": "#18544f",
- "$fill-positive-light": "rgba(30, 201, 127, 0.10196078431372549)",
- "$fill-positive-light-hover": "rgba(30, 201, 127, 0.16)",
- "$fill-positive-lightactive": "rgba(30, 201, 127, 0.2)",
- "$fill-positive-lighthover": "rgba(30, 201, 127, 0.1607843137254902)",
- "$fill-positive-thin": "rgba(30, 201, 127, 0.0392156862745098)",
- "$fill-purple-base": "#7e41ff",
- "$fill-purple-light": "rgba(126, 65, 255, 0.10196078431372549)",
- "$fill-purple-lightactive": "rgba(126, 65, 255, 0.2)",
- "$fill-purple-lighthover": "rgba(126, 65, 255, 0.1607843137254902)",
- "$fill-serious-base": "#f0483e",
- "$fill-serious-bright": "#ff5252",
- "$fill-serious-dark": "#c73d31",
- "$fill-serious-deep": "#7d2126",
- "$fill-serious-light": "rgba(255, 74, 74, 0.10196078431372549)",
- "$fill-serious-light-hover": "rgba(255, 74, 74, 0.16)",
- "$fill-serious-lightactive": "rgba(255, 74, 74, 0.2)",
- "$fill-serious-lighthover": "rgba(255, 74, 74, 0.1607843137254902)",
- "$fill-serious-thin": "rgba(255, 74, 74, 0.0392156862745098)",
- "$fills-element-light-container-general": "rgba(225, 230, 241, 0.6)",
- "$fills-element-light-container-notice": "rgba(255, 187, 0, 0.1)",
- "$fills-element-light-container-outstanding": "rgba(0, 136, 255, 0.1)",
- "$fills-element-light-container-outstanding-hover": "rgba(0, 136, 255, 0.16)",
- "$fills-element-light-container-positive": "rgba(30, 201, 127, 0.1)",
- "$fills-element-light-container-serious": "rgba(255, 74, 74, 0.1)",
- "$fills-element-light-container-storage": "rgba(126, 65, 255, 0.1)",
- "$fills-interaction-light-general-active": "rgba(192, 203, 224, 0.6)",
- "$fills-interaction-light-general-hover": "rgba(211, 218, 235, 0.6)",
- "$fills-interaction-light-notice-active": "rgba(255, 187, 0, 0.2)",
- "$fills-interaction-light-notice-hover": "rgba(255, 187, 0, 0.16)",
- "$fills-interaction-light-outstanding-active": "rgba(0, 136, 255, 0.2)",
- "$fills-interaction-light-outstanding-hover": "rgba(0, 136, 255, 0.16)",
- "$fills-interaction-light-positive-active": "rgba(30, 201, 127, 0.2)",
- "$fills-interaction-light-positive-hover": "rgba(30, 201, 127, 0.16)",
- "$fills-interaction-light-serious-active": "rgba(255, 74, 74, 0.2)",
- "$fills-interaction-light-serious-hover": "rgba(255, 74, 74, 0.16)",
- "$fills-light-general-general": "#0080ff",
- "$fills-light-general-general-bright": "#009dff",
- "$fills-light-general-general-dark": "#005ed1",
- "$fills-light-general-general-deep": "#1d326c",
- "$fills-light-general-general-deep-active": "rgba(29, 50, 108, 0.4)",
- "$fills-light-general-general-light": "rgba(0, 136, 255, 0.1)",
- "$fills-light-general-general-light-active": "rgba(0, 136, 255, 0.2)",
- "$fills-light-general-general-light-hover": "rgba(0, 136, 255, 0.16)",
- "$fills-light-general-general-thin": "rgba(0, 136, 255, 0.04)",
- "$fills-light-interaction-purple-hover": "rgba(126, 65, 255, 0.16)",
- "$fills-light-light-white": "rgba(255, 255, 255, 0.6)",
- "$fills-light-notice-notice": "#fea008",
- "$fills-light-notice-notice-bright": "#feba33",
- "$fills-light-notice-notice-dark": "#e07f00",
- "$fills-light-notice-notice-deep": "#8e671b",
- "$fills-light-notice-notice-light": "rgba(255, 187, 0, 0.1)",
- "$fills-light-notice-notice-light-active": "rgba(255, 187, 0, 0.2)",
- "$fills-light-notice-notice-light-hover": "rgba(255, 187, 0, 0.16)",
- "$fills-light-notice-notice-thin": "rgba(255, 187, 0, 0.04)",
- "$fills-light-opaque-1": "#f2f5fa",
- "$fills-light-opaque-2": "#edf0f7",
- "$fills-light-opaque-3": "#e4e9f2",
- "$fills-light-opaque-4": "#d8deeb",
- "$fills-light-opaque-5": "#ccd4e3",
- "$fills-light-positive-positive": "#00ba5d",
- "$fills-light-positive-positive-bright": "#23cf6d",
- "$fills-light-positive-positive-dark": "#008f4c",
- "$fills-light-positive-positive-deep": "#18544f",
- "$fills-light-positive-positive-light": "rgba(30, 201, 127, 0.1)",
- "$fills-light-positive-positive-light-active": "rgba(30, 201, 127, 0.2)",
- "$fills-light-positive-positive-light-hover": "rgba(30, 201, 127, 0.16)",
- "$fills-light-positive-positive-thin": "rgba(30, 201, 127, 0.04)",
- "$fills-light-serious-serious": "#f0483e",
- "$fills-light-serious-serious-bright": "#ff5252",
- "$fills-light-serious-serious-dark": "#c73d31",
- "$fills-light-serious-serious-deep": "#7d2126",
- "$fills-light-serious-serious-light": "rgba(255, 74, 74, 0.1)",
- "$fills-light-serious-serious-light-active": "rgba(255, 74, 74, 0.2)",
- "$fills-light-serious-serious-light-hover": "rgba(255, 74, 74, 0.16)",
- "$fills-light-serious-serious-thin": "rgba(255, 74, 74, 0.04)",
- "$fills-light-trans-1": "rgba(237, 241, 250, 0.6)",
- "$fills-light-trans-2": "rgba(225, 230, 241, 0.6)",
- "$fills-light-trans-3": "rgba(211, 218, 235, 0.6)",
- "$fills-light-trans-4": "rgba(192, 203, 224, 0.6)",
- "$fills-light-trans-5": "rgba(172, 186, 211, 0.6)",
- "$fills-light-white": "#ffffff",
- "$fills-opaque-primary-light": "#ffffff",
- "$fills-opaque-quaternary-light": "#d8deeb",
- "$fills-opaque-quinary-light": "#ccd4e3",
- "$fills-opaque-secondary-light": "#edf0f7",
- "$fills-opaque-terdiary-light": "#e4e9f2",
- "$fills-trans-primary-light": "rgba(237, 241, 250, 0.6)",
- "$fills-trans-quaternary-light": "rgba(192, 203, 224, 0.6)",
- "$fills-trans-quinary-light": "rgba(172, 186, 211, 0.6)",
- "$fills-trans-secondary-light": "rgba(225, 230, 241, 0.6)",
- "$fills-trans-terdiary-light": "rgba(211, 218, 235, 0.6)",
- "$fisheye-gray-010": "#f7f8fa",
- "$fisheye-gray-060": "#8e9aa9",
- "$fisheye-gray-090": "#30343a",
- "$gradient-blue-1-last": "#0066ff",
- "$gradient-blue-1-start": "#5bcaff",
- "$gradient-blue-2-last": "#005ed1",
- "$gradient-blue-2-start": "#0080ff",
- "$gradient-gray-1-last": "#6b7d99",
- "$gradient-gray-1-start": "#ccd4e3",
- "$gradient-green-1-last": "#009449",
- "$gradient-green-1-start": "#36e0a4",
- "$gradient-purple-1-last": "#6a38ff",
- "$gradient-purple-1-start": "#c67eff",
- "$gradient-red-1-last": "#dc0000",
- "$gradient-red-1-start": "#ff5c78",
- "$gradient-white-l100r60-last": "rgba(255, 255, 255, 0.6)",
- "$gradient-white-l100r60-start": "#ffffff",
- "$gradient-white-to-gray-1-last": "#edf0f7",
- "$gradient-white-to-gray-1-start": "#ffffff",
- "$gradient-white-to-gray-2-last": "#edf0f7",
- "$gradient-white-to-gray-2-start": "#ffffff",
- "$gradient-yellow-1-last": "#f39600",
- "$gradient-yellow-1-start": "#ffd505",
- "$gray-10": "#f2f5fa",
- "$gray-100": "#0d1b36",
- "$gray-110": "#0a1833",
- "$gray-120": "#00122e",
- "$gray-20": "#edf0f7",
- "$gray-30": "#e4e9f2",
- "$gray-40": "#d8deeb",
- "$gray-50": "#ccd4e3",
- "$gray-60": "#a3b4cc",
- "$gray-70": "#6b7d99",
- "$gray-80": "#2d3a56",
- "$gray-90": "#172640",
- "$gray-a30-10": "rgba(0, 21, 64, 0.3)",
- "$gray-a60-1": "rgba(237, 241, 250, 0.6)",
- "$gray-a60-2": "rgba(225, 230, 241, 0.6)",
- "$gray-a60-3": "rgba(211, 218, 235, 0.6)",
- "$gray-a60-4": "rgba(192, 203, 224, 0.6)",
- "$gray-a60-5": "rgba(172, 186, 211, 0.6)",
- "$gray-a60-6": "rgba(107, 128, 167, 0.6)",
- "$gray-a60-7": "rgba(10, 37, 85, 0.6)",
- "$gray-a60-8": "rgba(44, 56, 82, 0.6)",
- "$gray-a75-8": "rgba(44, 56, 82, 0.75)",
- "$gray-a80-9": "rgba(23, 38, 64, 0.8)",
- "$gray-gray-10": "#f2f5fa",
- "$gray-gray-100": "#0d1b36",
- "$gray-gray-110": "#0a1833",
- "$gray-gray-120": "#00122e",
- "$gray-gray-20": "#edf0f7",
- "$gray-gray-30": "#e4e9f2",
- "$gray-gray-40": "#d8deeb",
- "$gray-gray-50": "#ccd4e3",
- "$gray-gray-60": "#a3b4cc",
- "$gray-gray-70": "#6b7d99",
- "$gray-gray-80": "#2d3a56",
- "$gray-gray-90": "#172640",
- "$gray-gray-a30-10": "rgba(0, 21, 64, 0.30196078431372547)",
- "$gray-gray-a60-1": "rgba(237, 241, 250, 0.6)",
- "$gray-gray-a60-2": "rgba(225, 230, 241, 0.6)",
- "$gray-gray-a60-3": "rgba(211, 218, 235, 0.6)",
- "$gray-gray-a60-4": "rgba(192, 203, 224, 0.6)",
- "$gray-gray-a60-5": "rgba(172, 186, 211, 0.6)",
- "$gray-gray-a60-6": "rgba(107, 128, 167, 0.6)",
- "$gray-gray-a60-7": "rgba(10, 37, 85, 0.6)",
- "$gray-gray-a60-8": "rgba(44, 56, 82, 0.6)",
- "$gray-gray-a75-8": "rgba(44, 56, 82, 0.7490196078431373)",
- "$gray-gray-a80-6": "rgba(107, 128, 167, 0.8)",
- "$gray-gray-a80-9": "rgba(23, 38, 64, 0.8)",
- "$green": "#25c764",
- "$green-100": "#18544f",
- "$green-40": "#23cf6d",
- "$green-60": "#00ba5d",
- "$green-80": "#008f4c",
- "$green-a10": "rgba(30, 201, 127, 0.1)",
- "$green-a16": "rgba(30, 201, 127, 0.16)",
- "$green-a20": "rgba(30, 201, 127, 0.2)",
- "$green-a4": "rgba(30, 201, 127, 0.04)",
- "$green-green-40": "#23cf6d",
- "$green-green-50": "#00ba5d",
- "$green-green-60": "#008f4c",
- "$green-green-90": "#18544f",
- "$green-green-a04-50": "rgba(30, 201, 127, 0.0392156862745098)",
- "$green-green-a10-50": "rgba(30, 201, 127, 0.10196078431372549)",
- "$green-green-a16-50": "rgba(30, 201, 127, 0.1607843137254902)",
- "$green-green-a20-50": "rgba(30, 201, 127, 0.2)",
- "$green-s20": "#1e9f50",
- "$green-t20": "#51d283",
- "$green-t40": "#7cdda2",
- "$green-t60": "#a8e9c1",
- "$green-t80": "#d3f4e0",
- "$green-t90": "#e9f9f0",
- "$link-light-primary": "#0080ff",
- "$link-light-secondary": "#2c3852",
- "$link-light-serious": "#f0483e",
- "$link-neutralactive": "rgba(23, 38, 64, 0.8)",
- "$link-neutralhover": "rgba(44, 56, 82, 0.6)",
- "$link-neutralnormal": "rgba(44, 56, 82, 0.7490196078431373)",
- "$link-outstanding-active": "#005ed1",
- "$link-outstanding-hover": "#009dff",
- "$link-outstanding-normal": "#0080ff",
- "$link-outstandingactive": "#005ed1",
- "$link-outstandinghover": "#009dff",
- "$link-outstandingnormal": "#0080ff",
- "$link-seriousactive": "#c73d31",
- "$link-serioushover": "#ff5252",
- "$link-seriousnormal": "#f0483e",
- "$orange": "#ff9100",
- "$orange-s10": "#e68300",
- "$orange-s20": "#cc7400",
- "$orange-t20": "#ffa733",
- "$orange-t40": "#ffbd66",
- "$orange-t80": "#ffe9cc",
- "$orange-t90": "#fff4e6",
- "$pagebackground-grouped": "#edf0f7",
- "$pagebackground-primary": "#ffffff",
- "$purple": "#6150e2",
- "$purple-50": "#7e41ff",
- "$purple-a10-50": "rgba(126, 65, 255, 0.1)",
- "$purple-a16-50": "rgba(126, 65, 255, 0.16)",
- "$purple-a20-50": "rgba(126, 65, 255, 0.2)",
- "$purple-purple-50": "#7e41ff",
- "$purple-purple-a10-50": "rgba(126, 65, 255, 0.10196078431372549)",
- "$purple-purple-a16-50": "rgba(126, 65, 255, 0.1607843137254902)",
- "$purple-purple-a20-50": "rgba(126, 65, 255, 0.2)",
- "$purple-s20": "#4e40b5",
- "$purple-t20": "#8173e8",
- "$purple-t40": "#a096ee",
- "$purple-t60": "#c0b9f3",
- "$purple-t90": "#efeefc",
- "$red": "#e75a3a",
- "$red-100": "#7d2126",
- "$red-40": "#ff5252",
- "$red-60": "#f0483e",
- "$red-80": "#c73d31",
- "$red-a10": "rgba(255, 74, 74, 0.1)",
- "$red-a16": "rgba(255, 74, 74, 0.16)",
- "$red-a20": "rgba(255, 74, 74, 0.2)",
- "$red-a4": "rgba(255, 74, 74, 0.04)",
- "$red-red-40": "#ff5252",
- "$red-red-50": "#f0483e",
- "$red-red-60": "#c73d31",
- "$red-red-90": "#7d2126",
- "$red-red-a04-50": "rgba(255, 74, 74, 0.0392156862745098)",
- "$red-red-a10-50": "rgba(255, 74, 74, 0.10196078431372549)",
- "$red-red-a16-50": "rgba(255, 74, 74, 0.1607843137254902)",
- "$red-red-a20-50": "rgba(255, 74, 74, 0.2)",
- "$red-s10": "#d05134",
- "$red-s20": "#b9482e",
- "$red-t20": "#ec7b61",
- "$red-t30": "#ee8c75",
- "$red-t40": "#f19c89",
- "$red-t70": "#f8cec4",
- "$red-t80": "#faded8",
- "$red-t90": "#fdefeb",
- "$separators-opaque-light": "#d8deeb",
- "$separators-translucent-light": "rgba(172, 186, 211, 0.6)",
- "$stroke-neutral-lightwhite": "rgba(255, 255, 255, 0.6)",
- "$stroke-neutral-opaque-1": "#edf0f7",
- "$stroke-neutral-opaque-2": "#e4e9f2",
- "$stroke-neutral-opaque-3": "#ccd4e3",
- "$stroke-neutral-opaque-4": "#a3b4cc",
- "$stroke-neutral-trans-1": "rgba(225, 230, 241, 0.6)",
- "$stroke-neutral-trans-2": "rgba(211, 218, 235, 0.6)",
- "$stroke-neutral-trans-3": "rgba(172, 186, 211, 0.6)",
- "$stroke-neutral-trans-4": "rgba(107, 128, 167, 0.6)",
- "$stroke-neutral-white": "#ffffff",
- "$stroke-outstanding-base": "#0080ff",
- "$stroke-outstanding-light": "rgba(0, 136, 255, 0.1607843137254902)",
- "$stroke-serious-base": "#f0483e",
- "$stroke-serious-light": "rgba(255, 74, 74, 0.1607843137254902)",
- "$stroke-serious-thin": "rgba(255, 74, 74, 0.10196078431372549)",
- "$strokes-light-opaque-1": "#edf0f7",
- "$strokes-light-opaque-2": "#e4e9f2",
- "$strokes-light-opaque-3": "#ccd4e3",
- "$strokes-light-opaque-4": "#a3b4cc",
- "$strokes-light-outstanding": "#0080ff",
- "$strokes-light-outstanding-light": "rgba(0, 136, 255, 0.16)",
- "$strokes-light-serious": "#f0483e",
- "$strokes-light-serious-light": "rgba(255, 74, 74, 0.16)",
- "$strokes-light-trans-1": "rgba(225, 230, 241, 0.6)",
- "$strokes-light-trans-2": "rgba(211, 218, 235, 0.6)",
- "$strokes-light-trans-3": "rgba(172, 186, 211, 0.6)",
- "$strokes-light-trans-4": "rgba(107, 128, 167, 0.6)",
- "$strokes-translucent-1-light": "rgba(172, 186, 211, 0.6)",
- "$strokes-translucent-2-light": "rgba(10, 37, 85, 0.6)",
- "$text-colorful-notice": "#fea008",
- "$text-colorful-noticedark": "#e07f00",
- "$text-colorful-outstanding": "#0080ff",
- "$text-colorful-positive": "#00ba5d",
- "$text-colorful-positivedark": "#008f4c",
- "$text-colorful-purple": "#7e41ff",
- "$text-colorful-serious": "#f0483e",
- "$text-light-general": "#0080ff",
- "$text-light-notice": "#fea008",
- "$text-light-on-tint": "#ffffff",
- "$text-light-positive": "#00ba5d",
- "$text-light-primary": "#00122e",
- "$text-light-quaternary": "rgba(3, 30, 79, 0.18)",
- "$text-light-secondary": "rgba(44, 56, 82, 0.6)",
- "$text-light-serious": "#f0483e",
- "$text-light-storage": "#7e41ff",
- "$text-light-super": "#1d326c",
- "$text-light-tertiary": "rgba(0, 21, 64, 0.3)",
- "$text-neutral-ontint": "#ffffff",
- "$text-neutral-primary": "#00122e",
- "$text-neutral-quaternary": "rgba(0, 21, 64, 0.30196078431372547)",
- "$text-neutral-secondary": "rgba(44, 56, 82, 0.7490196078431373)",
- "$text-neutral-secondary-light": "rgba(44, 56, 82, 0.75)",
- "$text-neutral-super": "#1d326c",
- "$text-neutral-tertiary": "rgba(44, 56, 82, 0.6)",
- "$text-primary-light": "#2d3a56",
- "$text-quaternary-light": "rgba(107, 128, 167, 0.6)",
- "$text-secondary-light": "rgba(44, 56, 82, 0.6)",
- "$text-terdiary-light": "rgba(10, 37, 85, 0.6)",
- "$white": "#ffffff",
- "$white-a60": "rgba(255, 255, 255, 0.6)",
- "$white-white": "#ffffff",
- "$white-white-a60": "rgba(255, 255, 255, 0.6)",
- "$yellow-100": "#8e671b",
- "$yellow-40": "#feba33",
- "$yellow-60": "#fea008",
- "$yellow-80": "#e07f00",
- "$yellow-a10": "rgba(255, 187, 0, 0.1)",
- "$yellow-a10-50": "rgba(254, 160, 8, 0.1)",
- "$yellow-a16": "rgba(255, 187, 0, 0.16)",
- "$yellow-a20": "rgba(255, 187, 0, 0.2)",
- "$yellow-a4": "rgba(255, 187, 0, 0.04)",
- "$yellow-yellow-40": "#feba33",
- "$yellow-yellow-50": "#fea008",
- "$yellow-yellow-60": "#e07f00",
- "$yellow-yellow-90": "#8e671b",
- "$yellow-yellow-a04-50": "rgba(254, 160, 8, 0.0392156862745098)",
- "$yellow-yellow-a10-50": "rgba(254, 160, 8, 0.10196078431372549)",
- "$yellow-yellow-a16-50": "rgba(254, 160, 8, 0.1607843137254902)",
- "$yellow-yellow-a20-50": "rgba(254, 160, 8, 0.2)"
-}
diff --git a/packages/eagle/tools/color-lint/rules/no-hardcoded-color-tsx.yml b/packages/eagle/tools/color-lint/rules/no-hardcoded-color-tsx.yml
index 8e14005eb..b02f639fa 100644
--- a/packages/eagle/tools/color-lint/rules/no-hardcoded-color-tsx.yml
+++ b/packages/eagle/tools/color-lint/rules/no-hardcoded-color-tsx.yml
@@ -93,7 +93,7 @@ rule:
kind: import_statement
regex: '@linaria/(?:core|react)'
message: Use color variables; keep Linaria css/styled import names so Stylelint can inspect templates.
-severity: warning
+severity: error
utils:
style-interpolation:
inside:
diff --git a/packages/eagle/tools/color-lint/rules/no-hardcoded-color-typescript.yml b/packages/eagle/tools/color-lint/rules/no-hardcoded-color-typescript.yml
index 246ddce54..b891ba08c 100644
--- a/packages/eagle/tools/color-lint/rules/no-hardcoded-color-typescript.yml
+++ b/packages/eagle/tools/color-lint/rules/no-hardcoded-color-typescript.yml
@@ -53,7 +53,7 @@ rule:
kind: import_statement
regex: '@linaria/(?:core|react)'
message: Use color variables; keep Linaria css/styled import names so Stylelint can inspect templates.
-severity: warning
+severity: error
utils:
style-interpolation:
inside:
diff --git a/packages/eagle/tools/color-lint/stylelint/colors.cjs b/packages/eagle/tools/color-lint/stylelint/colors.cjs
index 70d124a9d..b2a504f0b 100644
--- a/packages/eagle/tools/color-lint/stylelint/colors.cjs
+++ b/packages/eagle/tools/color-lint/stylelint/colors.cjs
@@ -1,5 +1,5 @@
module.exports = {
- defaultSeverity: 'warning',
+ defaultSeverity: 'error',
rules: {
'color-no-hex': true,
'color-named': 'never',
diff --git a/packages/eagle/tools/color-lint/stylelint/linaria-colors.cjs b/packages/eagle/tools/color-lint/stylelint/linaria-colors.cjs
deleted file mode 100644
index 6d2ec783c..000000000
--- a/packages/eagle/tools/color-lint/stylelint/linaria-colors.cjs
+++ /dev/null
@@ -1,7 +0,0 @@
-module.exports = {
- extends: ['./colors.cjs'],
- overrides: [
- { files: ['**/*.{ts,tsx}'], customSyntax: '@linaria/postcss-linaria' },
- { files: ['**/*.{css,scss}'], customSyntax: 'postcss-scss' },
- ],
-};
diff --git a/packages/eagle/vitest.config.ts b/packages/eagle/vitest.config.ts
index 99a401819..72cee6c61 100644
--- a/packages/eagle/vitest.config.ts
+++ b/packages/eagle/vitest.config.ts
@@ -25,8 +25,11 @@ export default defineConfig({
nextStyleMapFileName,
JSON.stringify({
...JSON.parse(value),
- [selector]: cssText,
- })
+ [selector]: cssText.replace(
+ /^[\t ]*\/\* stylelint-disable-next-line [^\r\n]* \*\/\r?\n/gm,
+ "",
+ ),
+ }),
);
// Test workers may read the map while Vite transforms another file.
fs.renameSync(nextStyleMapFileName, styleMapFileName);
diff --git a/skills/migrate-eagle-theme/SKILL.md b/skills/migrate-eagle-theme/SKILL.md
index 129465f77..a5bcd92e2 100644
--- a/skills/migrate-eagle-theme/SKILL.md
+++ b/skills/migrate-eagle-theme/SKILL.md
@@ -121,7 +121,9 @@ body 弹层必须进入所属作用域并继承 token。具体颜色从实际挂
接入方待办见 [Notion 方案第 3.1.1 节](https://app.notion.com/p/40849a7f5c9481d7a5cbf7229f518640)。
运行接入方已有的单测、类型检查、构建和颜色 lint,复用共享 Stylelint/ast-grep 配置,
-只声明必要的扫描排除。保持规则级别,并确认 ast-grep 安装后执行了 postinstall,实际扫描程序可用。
+沿用接入方的规则级别。没有完全等值 token 的旧颜色在使用处注明原因,通过
+`stylelint-disable-next-line` 或 `ast-grep-ignore` 只放行对应行和规则。
+确认 ast-grep 安装后执行了 postinstall,实际扫描程序可用。
检查产物中的运行时引用和配套声明;验证浅色外观、hover/选中/禁用/错误、body 弹层及异步挂载。
没有正式暗色数据时,可用明确标记的测试主题验证传播,但必须说明暗色视觉验收仍待完成。