Skip to content

fix(theme): button gradient color and add line-height back#2771

Merged
Timeless0911 merged 2 commits intomainfrom
syt/fix-brand-new-color
Nov 18, 2025
Merged

fix(theme): button gradient color and add line-height back#2771
Timeless0911 merged 2 commits intomainfrom
syt/fix-brand-new-color

Conversation

@SoonIter
Copy link
Member

Summary

chore(theme): button gradient color and add doc.scss

Related Issue

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings November 17, 2025 11:51
@netlify
Copy link

netlify bot commented Nov 17, 2025

Deploy Preview for rspress-v2 ready!

Name Link
🔨 Latest commit 411ad31
🔍 Latest deploy log https://app.netlify.com/projects/rspress-v2/deploys/691b2d3b4cbb7a000893e038
😎 Deploy Preview https://deploy-preview-2771--rspress-v2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the gradient styling in the theme by extracting a hardcoded color value into a CSS variable and applies consistent styling. The changes improve maintainability by eliminating duplicate gradient definitions and add a line-height property to documentation content.

  • Introduces a new CSS variable --rp-home-hero-secondary-color for the gradient's secondary color (#a673ff)
  • Refactors the button component to reuse the existing gradient variable instead of duplicating the gradient definition
  • Adds a base line-height of 1.75rem to documentation content

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
packages/core/src/theme/styles/vars/home-vars.css Introduces --rp-home-hero-secondary-color variable and uses it in the light mode gradient
packages/core/src/theme/components/Button/index.scss Refactors to use --rp-home-hero-title-bg variable instead of duplicating gradient definition
packages/core/src/theme/components/DocContent/doc.scss Adds base line-height of 1.75rem to documentation content
Comments suppressed due to low confidence (1)

packages/core/src/theme/styles/vars/home-vars.css:46

  • The dark mode gradient (line 46) still uses the hardcoded color #a673ff instead of the new --rp-home-hero-secondary-color variable. This creates inconsistency with the light mode implementation. Consider also defining --rp-home-hero-secondary-color in the dark mode section or using the variable from light mode to maintain consistency.
    #a673ff 100%

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@SoonIter SoonIter changed the title chore(theme): button gradient color and add doc.scss fix(theme): button gradient color and add line-height back Nov 17, 2025
@Timeless0911 Timeless0911 merged commit 28b4cda into main Nov 18, 2025
8 of 9 checks passed
@Timeless0911 Timeless0911 deleted the syt/fix-brand-new-color branch November 18, 2025 05:56
@github-actions
Copy link
Contributor

Rsdoctor Bundle Diff Analysis

📁 web

Path: website/doc_build/web/rsdoctor-data.json

⚠️ No baseline data found - Unable to perform comparison analysis

Metric Current Baseline Change
📊 Total Size 14.3 MB - -
📄 JavaScript 13.7 MB - -
🎨 CSS 109.1 KB - -
🌐 HTML 0 B - -
📁 Other Assets 496.7 KB - -

Generated by Rsdoctor GitHub Action

@SoonIter SoonIter mentioned this pull request Nov 20, 2025
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants