Skip to content

Improve hub index card UI for light and dark mode#2331

Closed
enzostvs wants to merge 2 commits intomainfrom
improve-index-card-ui
Closed

Improve hub index card UI for light and dark mode#2331
enzostvs wants to merge 2 commits intomainfrom
improve-index-card-ui

Conversation

@enzostvs
Copy link
Copy Markdown
Member

@enzostvs enzostvs commented Mar 24, 2026

  • Add proper dark mode backgrounds with subtle accent-tinted gradients instead of dark:bg-none which left cards flat
  • Use accent colors for headings in dark mode instead of generic gray
  • Add bottom border separator between card header and links
  • Unify link hover styles with accent-colored text across all cards
  • Strengthen border visibility (200 in light, 800 in dark)
  • Enhanced hover effects with shadow-md and border color transitions
  • Differentiate Storage Buckets card with sky color palette
  • Improve "new" badge dark mode styling

Note

Low Risk
Low risk: documentation-only Tailwind class tweaks that affect visual styling/hover states but not content or behavior.

Overview
Updates docs/hub/index.md to restyle the Hub landing-page navigation cards with accent-tinted gradients and stronger borders in dark mode, plus improved hover transitions/shadows.

Adds a header/link separator and standardizes link colors/hover states per card accent; also switches the Storage Buckets card to a sky palette and refines the new badge styling.

Written by Cursor Bugbot for commit 8c081fc. This will update automatically on new commits. Configure here.

- Add proper dark mode backgrounds with subtle accent-tinted gradients
  instead of `dark:bg-none` which left cards flat
- Use accent colors for headings in dark mode instead of generic gray
- Add bottom border separator between card header and links
- Unify link hover styles with accent-colored text across all cards
- Strengthen border visibility (200 in light, 800 in dark)
- Enhanced hover effects with shadow-md and border color transitions
- Differentiate Storage Buckets card with sky color palette
- Improve "new" badge dark mode styling

Made-with: Cursor
@enzostvs enzostvs marked this pull request as draft March 24, 2026 20:27
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

<a class="no-underline! hover:opacity-60 transform transition-colors hover:translate-x-px" href="./datasets-data-files-configuration">Data files Configuration</a>
<div class="group flex flex-col space-y-2 rounded-xl border border-red-200 bg-linear-to-br from-red-50 to-white px-6 py-5 transition-all hover:shadow-md hover:border-red-300 dark:border-red-800/80 dark:from-red-500/10 dark:to-gray-900/80 dark:hover:border-red-600">
<div class="flex items-center py-0.5 text-lg font-semibold text-red-600 dark:text-red-400 pb-2 mb-1 border-b border-red-100 dark:border-red-800/50">
<svg class="shrink-0 mr-1.5 text-red-400 dark:text-red-400" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 25 25"><ellipse cx="12.5" cy="5" fill="currentColor" fill-opacity="0.25" rx="7.5" ry="2"></ellipse><path d="M12.5 15C16.6421 15 20 14.1046 20 13V20C20 21.1046 16.6421 22 12.5 22C8.35786 22 5 21.1046 5 20V13C5 14.1046 8.35786 15 12.5 15Z" fill="currentColor" opacity="0.5"></path><path d="M12.5 7C16.6421 7 20 6.10457 20 5V11.5C20 12.6046 16.6421 13.5 12.5 13.5C8.35786 13.5 5 12.6046 5 11.5V5C5 6.10457 8.35786 7 12.5 7Z" fill="currentColor" opacity="0.5"></path><path d="M5.23628 12C5.08204 12.1598 5 12.8273 5 13C5 14.1046 8.35786 15 12.5 15C16.6421 15 20 14.1046 20 13C20 12.8273 19.918 12.1598 19.7637 12C18.9311 12.8626 15.9947 13.5 12.5 13.5C9.0053 13.5 6.06886 12.8626 5.23628 12Z" fill="currentColor"></path></svg> Datasets</div>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Datasets SVG icon color inconsistent with other cards

Low Severity

The Datasets card SVG uses text-red-400 dark:text-red-400 while every other card follows the pattern text-{color}-500 dark:text-{color}-400. The light-mode icon color is one shade lighter than it should be (red-400 instead of red-500), and the dark:text-red-400 override is redundant since it matches the base value. This likely should be text-red-500 dark:text-red-400 to match the unified styling across all cards.

Fix in Cursor Fix in Web

@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@enzostvs enzostvs closed this Mar 24, 2026
@enzostvs enzostvs deleted the improve-index-card-ui branch March 24, 2026 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants