Skip to content

Conversation

@odaneau-astro
Copy link
Contributor

@odaneau-astro odaneau-astro commented Apr 23, 2025

✅ Changes made:

  • Added the Tailwind V4 color tokens to theme.ts in place of the default Chakra UI colors.
  • Replaced the default semantic tokens with the ones generated from the Tailwind color tokens
  • Updated the custom task state semantic tokens to use the newly added Tailwind color tokens
  • Updated references in the Navbar and Navbar button to use a dedicated semantic token for easier modification in the future

🎯 Motivation:

  • Usability: Clearer color naming and predictable gradations improve maintainability and scalability of the design system.
  • Consistency: Tailwind’s color system is familiar to many developers and aligns well with modern UI trends. The color palette is carefully crafted by expert designers and is suitable for a wide range of different design styles.

📷 Preview:
image
image

closes: #49658

@boring-cyborg boring-cyborg bot added the area:UI Related to UI/UX. For Frontend Developers. label Apr 23, 2025
@odaneau-astro odaneau-astro force-pushed the main branch 2 times, most recently from 3d46743 to a4d0ab8 Compare April 23, 2025 20:28
@ashb ashb added this to the Airflow 3.0.1 milestone Apr 24, 2025
@odaneau-astro odaneau-astro requested a review from bbovenzi April 24, 2025 19:45
Copy link
Member

@pierrejeambrun pierrejeambrun left a 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.

Copy link
Member

@pierrejeambrun pierrejeambrun left a 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.

Comment on lines 127 to 139
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" },
},
Copy link
Member

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 ?

Copy link
Contributor Author

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.

@odaneau-astro
Copy link
Contributor Author

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.

I've darkened the background and lightened the color for "History", "Health", "Stats" to increase contrast.

Copy link
Member

@pierrejeambrun pierrejeambrun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Looks good overall.

Just noticed that the DurationChart colors are not working as expected (access directly a 'state' color such as failed.600.
Screenshot 2025-05-13 at 11 44 03

I think Brent plans on doing an in depth review of this PR for 3.1.0.

@eladkal
Copy link
Contributor

eladkal commented May 21, 2025

I tried this and it looks good!
Personally I prefer more grey color rather than blue.

@eladkal
Copy link
Contributor

eladkal commented Jun 10, 2025

Is there something blocking merging this PR?

@pierrejeambrun
Copy link
Member

pierrejeambrun commented Jun 10, 2025

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
Copy link
Contributor

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?

Copy link
Contributor

@bbovenzi bbovenzi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should do more to double check the background set for all of our inputs, buttons and dropdowns:
Screenshot 2025-06-12 at 12 54 01 PM

As Pierre mentioned, we need to fix how we pass colors to the duration charts:
Screenshot 2025-06-12 at 12 55 54 PM

@bbovenzi
Copy link
Contributor

bbovenzi commented Jul 2, 2025

@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

@odaneau-astro
Copy link
Contributor Author

Will have some free time next week to address these issues. What's the cutoff for 3.1?

@bbovenzi
Copy link
Contributor

@odaneau-astro Sounds good. I think late August.

@odaneau-astro odaneau-astro requested a review from potiuk as a code owner July 22, 2025 15:36
Comment on lines 33 to 78
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

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {{contents: read}}
@odaneau-astro
Copy link
Contributor Author

odaneau-astro commented Jul 31, 2025

Closed in favor of #53981

kaxil pushed a commit to odaneau-astro/airflow that referenced this pull request Sep 10, 2025
✅ 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
bbovenzi pushed a commit that referenced this pull request Sep 10, 2025
✅ 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
kaxil pushed a commit to astronomer/airflow that referenced this pull request Sep 11, 2025
✅ 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)
@kaxil kaxil removed this from the Airflow 3.1.0 milestone Sep 14, 2025
suman-himanshu pushed a commit to suman-himanshu/airflow that referenced this pull request Sep 17, 2025
✅ 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
Brunda10 pushed a commit to Brunda10/airflow that referenced this pull request Sep 17, 2025
✅ 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
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Sep 30, 2025
✅ 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
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 1, 2025
✅ 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
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 2, 2025
✅ 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
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 3, 2025
✅ 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
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 4, 2025
✅ 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
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 5, 2025
✅ 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
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 5, 2025
✅ 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
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 7, 2025
✅ 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
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 8, 2025
✅ 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
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 9, 2025
✅ 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
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 10, 2025
✅ 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
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 11, 2025
✅ 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
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 12, 2025
✅ 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
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 14, 2025
✅ 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
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 15, 2025
✅ 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
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 17, 2025
✅ 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
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 19, 2025
✅ 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
kosteev pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Oct 24, 2025
✅ 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants