-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Update color palette for one from Tailwind CSS with higher contrast #49658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
3d46743 to
a4d0ab8
Compare
pierrejeambrun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like where this is going. I agree the dark mode background was too dark too.
pierrejeambrun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe the main page content background is not dark enough now. The contrast is too subtle I think, it's hard (at least for me to read) things in light gray such as History, Health, or Stats.
| none: { | ||
| "50": { value: "#F7FBFD" }, | ||
| "100": { value: "#F3F9FB" }, | ||
| "200": { value: "#E4F2F7" }, | ||
| "300": { value: "#D8ECF3" }, | ||
| "400": { value: "#C8E5EE" }, | ||
| "500": { value: "#BDDFEB" }, | ||
| "600": { value: "#ADD8E6" }, | ||
| "700": { value: "#5FB2CE" }, | ||
| "800": { value: "#30819C" }, | ||
| "900": { value: "#18414E" }, | ||
| "950": { value: "#0C2027" }, | ||
| }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are missing the none color palette. How are no status tasks displayed ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The none color palette is defined in the semantic tokens section and uses the "gray" color palette.
I've darkened the background and lightened the color for "History", "Health", "Stats" to increase contrast. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
I tried this and it looks good! |
|
Is there something blocking merging this PR? |
Just a more detailed review to be sure that everything is working as expected. Brent is planing on doing that but as this will land for 3.1.0 I assume he's focusing on more pressing bug fixes. Also I think we still need to fix the issue mentioned in #49658 (review) (after that I think we can merge it and iterate before 3.1.0 to unblock it, cc: @bbovenzi) |
| "900": { value: "oklch(25.9% 0.062 265.566)" }, | ||
| "950": { value: "oklch(17.9% 0.050 265.487)" }, | ||
| }, | ||
| // TAILWIND 4.0 COLORS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we put a url to tailwind 4.0 here for future reference?
bbovenzi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
@odaneau-astro Do you mind taking a second look at the colors on our buttons and inputs? Would be nice to get this in for 3.1 |
|
Will have some free time next week to address these issues. What's the cutoff for 3.1? |
|
@odaneau-astro Sounds good. I think late August. |
.github/workflows/lighthouse-ci.yml
Outdated
| timeout-minutes: 15 | ||
| name: Lighthouse Accessibility Audit | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: "Cleanup repo" | ||
| shell: bash | ||
| run: docker run -v "${GITHUB_WORKSPACE}:/workspace" -u 0:0 bash -c "rm -rf /workspace/*" | ||
| - name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )" | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| with: | ||
| persist-credentials: false | ||
| - name: "Prepare and cleanup runner" | ||
| run: ./scripts/ci/prepare_and_cleanup_runner.sh | ||
| - name: Setup pnpm | ||
| uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 | ||
| with: | ||
| version: 9 | ||
| run_install: false | ||
| - name: "Setup node" | ||
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | ||
| with: | ||
| node-version: 21 | ||
| cache: 'pnpm' | ||
| cache-dependency-path: 'airflow-core/src/airflow/**/pnpm-lock.yaml' | ||
| - name: "Restore eslint cache (ui)" | ||
| uses: apache/infrastructure-actions/stash/restore@1c35b5ccf8fba5d4c3fdf25a045ca91aa0cbc468 | ||
| with: | ||
| path: airflow-core/src/airflow/ui/node_modules/ | ||
| key: cache-ui-node-modules-v1-${{ runner.os }}-${{ hashFiles('airflow-core/src/airflow/ui/**/pnpm-lock.yaml') }} | ||
| id: restore-eslint-cache-ui | ||
| - run: cd airflow-core/src/airflow/ui && pnpm install --frozen-lockfile && pnpm build | ||
| env: | ||
| FORCE_COLOR: 2 | ||
| - name: "Save eslint cache (ui)" | ||
| uses: apache/infrastructure-actions/stash/save@1c35b5ccf8fba5d4c3fdf25a045ca91aa0cbc468 | ||
| with: | ||
| path: airflow-core/src/airflow/ui/node_modules/ | ||
| key: cache-ui-node-modules-v1-${{ runner.os }}-${{ hashFiles('airflow-core/src/airflow/ui/**/pnpm-lock.yaml') }} | ||
| if-no-files-found: 'error' | ||
| retention-days: '2' | ||
| if: steps.restore-eslint-cache-ui.outputs.stash-hit != 'true' | ||
| - name: Run Lighthouse CI | ||
| run: | | ||
| npm install -g @lhci/cli@0.15.x | ||
| lhci autorun No newline at end of file |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions
|
Closed in favor of #53981 |
✅ Changes made: - Introduce semantic tokens for colors used across all components. This allows for user customization in the future (see apache#53443). - Added the Tailwind V4 color tokens to theme.ts in place of the default Chakra UI colors. This color palette offers better accessibility across both dark and light modes. - Updated the existing semantic tokens to use the newly added Tailwind color tokens instead of default Chakra colors. - Replaced all references to color Tokens with Semantic tokens to allow changing colors later without having to change the components. closes: apache#49658
✅ Changes made: - Introduce semantic tokens for colors used across all components. This allows for user customization in the future (see #53443). - Added the Tailwind V4 color tokens to theme.ts in place of the default Chakra UI colors. This color palette offers better accessibility across both dark and light modes. - Updated the existing semantic tokens to use the newly added Tailwind color tokens instead of default Chakra colors. - Replaced all references to color Tokens with Semantic tokens to allow changing colors later without having to change the components. closes: #49658
✅ Changes made: - Introduce semantic tokens for colors used across all components. This allows for user customization in the future (see apache#53443). - Added the Tailwind V4 color tokens to theme.ts in place of the default Chakra UI colors. This color palette offers better accessibility across both dark and light modes. - Updated the existing semantic tokens to use the newly added Tailwind color tokens instead of default Chakra colors. - Replaced all references to color Tokens with Semantic tokens to allow changing colors later without having to change the components. closes: apache#49658 (cherry picked from commit 1046874)
✅ Changes made: - Introduce semantic tokens for colors used across all components. This allows for user customization in the future (see apache#53443). - Added the Tailwind V4 color tokens to theme.ts in place of the default Chakra UI colors. This color palette offers better accessibility across both dark and light modes. - Updated the existing semantic tokens to use the newly added Tailwind color tokens instead of default Chakra colors. - Replaced all references to color Tokens with Semantic tokens to allow changing colors later without having to change the components. closes: apache#49658
✅ Changes made: - Introduce semantic tokens for colors used across all components. This allows for user customization in the future (see apache#53443). - Added the Tailwind V4 color tokens to theme.ts in place of the default Chakra UI colors. This color palette offers better accessibility across both dark and light modes. - Updated the existing semantic tokens to use the newly added Tailwind color tokens instead of default Chakra colors. - Replaced all references to color Tokens with Semantic tokens to allow changing colors later without having to change the components. closes: apache#49658
✅ Changes made: - Introduce semantic tokens for colors used across all components. This allows for user customization in the future (see apache#53443). - Added the Tailwind V4 color tokens to theme.ts in place of the default Chakra UI colors. This color palette offers better accessibility across both dark and light modes. - Updated the existing semantic tokens to use the newly added Tailwind color tokens instead of default Chakra colors. - Replaced all references to color Tokens with Semantic tokens to allow changing colors later without having to change the components. closes: apache#49658
✅ Changes made: - Introduce semantic tokens for colors used across all components. This allows for user customization in the future (see apache#53443). - Added the Tailwind V4 color tokens to theme.ts in place of the default Chakra UI colors. This color palette offers better accessibility across both dark and light modes. - Updated the existing semantic tokens to use the newly added Tailwind color tokens instead of default Chakra colors. - Replaced all references to color Tokens with Semantic tokens to allow changing colors later without having to change the components. closes: apache#49658
✅ Changes made: - Introduce semantic tokens for colors used across all components. This allows for user customization in the future (see apache#53443). - Added the Tailwind V4 color tokens to theme.ts in place of the default Chakra UI colors. This color palette offers better accessibility across both dark and light modes. - Updated the existing semantic tokens to use the newly added Tailwind color tokens instead of default Chakra colors. - Replaced all references to color Tokens with Semantic tokens to allow changing colors later without having to change the components. closes: apache#49658
✅ Changes made: - Introduce semantic tokens for colors used across all components. This allows for user customization in the future (see apache#53443). - Added the Tailwind V4 color tokens to theme.ts in place of the default Chakra UI colors. This color palette offers better accessibility across both dark and light modes. - Updated the existing semantic tokens to use the newly added Tailwind color tokens instead of default Chakra colors. - Replaced all references to color Tokens with Semantic tokens to allow changing colors later without having to change the components. closes: apache#49658
✅ Changes made: - Introduce semantic tokens for colors used across all components. This allows for user customization in the future (see apache#53443). - Added the Tailwind V4 color tokens to theme.ts in place of the default Chakra UI colors. This color palette offers better accessibility across both dark and light modes. - Updated the existing semantic tokens to use the newly added Tailwind color tokens instead of default Chakra colors. - Replaced all references to color Tokens with Semantic tokens to allow changing colors later without having to change the components. closes: apache#49658
✅ Changes made: - Introduce semantic tokens for colors used across all components. This allows for user customization in the future (see apache#53443). - Added the Tailwind V4 color tokens to theme.ts in place of the default Chakra UI colors. This color palette offers better accessibility across both dark and light modes. - Updated the existing semantic tokens to use the newly added Tailwind color tokens instead of default Chakra colors. - Replaced all references to color Tokens with Semantic tokens to allow changing colors later without having to change the components. closes: apache#49658
✅ Changes made: - Introduce semantic tokens for colors used across all components. This allows for user customization in the future (see apache#53443). - Added the Tailwind V4 color tokens to theme.ts in place of the default Chakra UI colors. This color palette offers better accessibility across both dark and light modes. - Updated the existing semantic tokens to use the newly added Tailwind color tokens instead of default Chakra colors. - Replaced all references to color Tokens with Semantic tokens to allow changing colors later without having to change the components. closes: apache#49658
✅ Changes made: - Introduce semantic tokens for colors used across all components. This allows for user customization in the future (see apache#53443). - Added the Tailwind V4 color tokens to theme.ts in place of the default Chakra UI colors. This color palette offers better accessibility across both dark and light modes. - Updated the existing semantic tokens to use the newly added Tailwind color tokens instead of default Chakra colors. - Replaced all references to color Tokens with Semantic tokens to allow changing colors later without having to change the components. closes: apache#49658
✅ Changes made: - Introduce semantic tokens for colors used across all components. This allows for user customization in the future (see apache#53443). - Added the Tailwind V4 color tokens to theme.ts in place of the default Chakra UI colors. This color palette offers better accessibility across both dark and light modes. - Updated the existing semantic tokens to use the newly added Tailwind color tokens instead of default Chakra colors. - Replaced all references to color Tokens with Semantic tokens to allow changing colors later without having to change the components. closes: apache#49658
✅ Changes made: - Introduce semantic tokens for colors used across all components. This allows for user customization in the future (see apache#53443). - Added the Tailwind V4 color tokens to theme.ts in place of the default Chakra UI colors. This color palette offers better accessibility across both dark and light modes. - Updated the existing semantic tokens to use the newly added Tailwind color tokens instead of default Chakra colors. - Replaced all references to color Tokens with Semantic tokens to allow changing colors later without having to change the components. closes: apache#49658
✅ Changes made: - Introduce semantic tokens for colors used across all components. This allows for user customization in the future (see apache#53443). - Added the Tailwind V4 color tokens to theme.ts in place of the default Chakra UI colors. This color palette offers better accessibility across both dark and light modes. - Updated the existing semantic tokens to use the newly added Tailwind color tokens instead of default Chakra colors. - Replaced all references to color Tokens with Semantic tokens to allow changing colors later without having to change the components. closes: apache#49658
✅ Changes made: - Introduce semantic tokens for colors used across all components. This allows for user customization in the future (see apache#53443). - Added the Tailwind V4 color tokens to theme.ts in place of the default Chakra UI colors. This color palette offers better accessibility across both dark and light modes. - Updated the existing semantic tokens to use the newly added Tailwind color tokens instead of default Chakra colors. - Replaced all references to color Tokens with Semantic tokens to allow changing colors later without having to change the components. closes: apache#49658
✅ Changes made: - Introduce semantic tokens for colors used across all components. This allows for user customization in the future (see apache#53443). - Added the Tailwind V4 color tokens to theme.ts in place of the default Chakra UI colors. This color palette offers better accessibility across both dark and light modes. - Updated the existing semantic tokens to use the newly added Tailwind color tokens instead of default Chakra colors. - Replaced all references to color Tokens with Semantic tokens to allow changing colors later without having to change the components. closes: apache#49658
✅ Changes made: - Introduce semantic tokens for colors used across all components. This allows for user customization in the future (see apache#53443). - Added the Tailwind V4 color tokens to theme.ts in place of the default Chakra UI colors. This color palette offers better accessibility across both dark and light modes. - Updated the existing semantic tokens to use the newly added Tailwind color tokens instead of default Chakra colors. - Replaced all references to color Tokens with Semantic tokens to allow changing colors later without having to change the components. closes: apache#49658
✅ Changes made: - Introduce semantic tokens for colors used across all components. This allows for user customization in the future (see apache#53443). - Added the Tailwind V4 color tokens to theme.ts in place of the default Chakra UI colors. This color palette offers better accessibility across both dark and light modes. - Updated the existing semantic tokens to use the newly added Tailwind color tokens instead of default Chakra colors. - Replaced all references to color Tokens with Semantic tokens to allow changing colors later without having to change the components. closes: apache#49658
✅ Changes made: - Introduce semantic tokens for colors used across all components. This allows for user customization in the future (see apache#53443). - Added the Tailwind V4 color tokens to theme.ts in place of the default Chakra UI colors. This color palette offers better accessibility across both dark and light modes. - Updated the existing semantic tokens to use the newly added Tailwind color tokens instead of default Chakra colors. - Replaced all references to color Tokens with Semantic tokens to allow changing colors later without having to change the components. closes: apache#49658
✅ Changes made: - Introduce semantic tokens for colors used across all components. This allows for user customization in the future (see apache#53443). - Added the Tailwind V4 color tokens to theme.ts in place of the default Chakra UI colors. This color palette offers better accessibility across both dark and light modes. - Updated the existing semantic tokens to use the newly added Tailwind color tokens instead of default Chakra colors. - Replaced all references to color Tokens with Semantic tokens to allow changing colors later without having to change the components. closes: apache#49658
✅ Changes made: - Introduce semantic tokens for colors used across all components. This allows for user customization in the future (see apache/airflow#53443). - Added the Tailwind V4 color tokens to theme.ts in place of the default Chakra UI colors. This color palette offers better accessibility across both dark and light modes. - Updated the existing semantic tokens to use the newly added Tailwind color tokens instead of default Chakra colors. - Replaced all references to color Tokens with Semantic tokens to allow changing colors later without having to change the components. closes: apache/airflow#49658 (cherry picked from commit 10468747fef650ab4100a08fff059f0cd6908cf9) GitOrigin-RevId: 54548996d9ca591d144067f9561a438070dc3b9b



✅ Changes made:
🎯 Motivation:
📷 Preview:


closes: #49658