-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Merge branch dev with rel-10.0 #24491
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,119 @@ | ||||||||||
| # LeptonX CSS Variables Documentation | ||||||||||
|
|
||||||||||
| LeptonX uses CSS custom properties (variables) prefixed with `--lpx-*` to provide a flexible theming system. These variables control colors, spacing, shadows, and component-specific styles throughout the application. | ||||||||||
|
|
||||||||||
| ## Brand & Semantic Colors | ||||||||||
|
|
||||||||||
| | Variable | Description | | ||||||||||
| |----------|-------------| | ||||||||||
| | `--lpx-brand` | Brand-specific accent color | | ||||||||||
| | `--lpx-brand-text` | Text color used on brand-colored backgrounds | | ||||||||||
|
|
||||||||||
| ## Base Colors | ||||||||||
|
|
||||||||||
| | Variable | Description | | ||||||||||
| |----------|-------------| | ||||||||||
| | `--lpx-light` | Light shade for subtle backgrounds or text | | ||||||||||
| | `--lpx-dark` | Dark shade for contrasting elements | | ||||||||||
|
|
||||||||||
| ## Layout & Surface Colors | ||||||||||
|
|
||||||||||
| | Variable | Description | | ||||||||||
| |----------|-------------| | ||||||||||
| | `--lpx-content-bg` | Main content area background color | | ||||||||||
| | `--lpx-content-text` | Default text color for content areas | | ||||||||||
| | `--lpx-card-bg` | Card component background color | | ||||||||||
| | `--lpx-card-title-text-color` | Card title text color | | ||||||||||
| | `--lpx-border-color` | Default border color for dividers and outlines | | ||||||||||
| | `--lpx-shadow` | Box shadow definition for elevated elements | | ||||||||||
|
|
||||||||||
| ## Navigation | ||||||||||
|
|
||||||||||
| | Variable | Description | | ||||||||||
| |----------|-------------| | ||||||||||
| | `--lpx-navbar-color` | Navbar background color | | ||||||||||
| | `--lpx-navbar-text-color` | Navbar default text/icon color | | ||||||||||
| | `--lpx-navbar-active-text-color` | Navbar active/hover text color | | ||||||||||
| | `--lpx-navbar-active-bg-color` | Navbar active item background color | | ||||||||||
|
|
||||||||||
| ## Utility | ||||||||||
|
|
||||||||||
| | Variable | Description | | ||||||||||
| |----------|-------------| | ||||||||||
| | `--lpx-radius` | Global border-radius value for rounded corners | | ||||||||||
|
|
||||||||||
| ## Global Override | ||||||||||
|
|
||||||||||
| Applies to all themes and pages: | ||||||||||
|
|
||||||||||
| ```css | ||||||||||
| :root { | ||||||||||
| /* Brand & Semantic */ | ||||||||||
| --lpx-brand: #f72585; | ||||||||||
|
|
||||||||||
| /* Base Colors */ | ||||||||||
| --lpx-light: #f5f7fb; | ||||||||||
| --lpx-dark: #0b0f19; | ||||||||||
|
|
||||||||||
| /* Layout & Surface */ | ||||||||||
| --lpx-content-bg: #101018; | ||||||||||
| --lpx-content-text: #cfd6e4; | ||||||||||
| --lpx-card-bg: #151a2b; | ||||||||||
| --lpx-card-title-text-color: #ffffff; | ||||||||||
| --lpx-border-color: #242836; | ||||||||||
| --lpx-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); | ||||||||||
|
|
||||||||||
| /* Navigation */ | ||||||||||
| --lpx-navbar-color: #0d1020; | ||||||||||
| --lpx-navbar-text-color: #aab2c8; | ||||||||||
| --lpx-navbar-active-text-color: #ffffff; | ||||||||||
| --lpx-navbar-active-bg-color: rgba(247, 37, 133, 0.15); | ||||||||||
|
|
||||||||||
| /* Utility */ | ||||||||||
| --lpx-radius: 10px; | ||||||||||
| } | ||||||||||
|
|
||||||||||
| ``` | ||||||||||
|
|
||||||||||
| ## Theme-Scoped Override | ||||||||||
|
|
||||||||||
| Applies only when a specific theme class is active (e.g., `.lpx-theme-dark` on `<html>` or `<body>`): | ||||||||||
|
|
||||||||||
| ```css | ||||||||||
| :root .lpx-theme-dark { | ||||||||||
|
||||||||||
| :root .lpx-theme-dark { | |
| .lpx-theme-dark { |
Copilot
AI
Dec 29, 2025
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 documentation states that theme-scoped overrides apply "when a specific theme class is active (e.g., .lpx-theme-dark on <html> or <body>)". However, the CSS selector shown (:root .lpx-theme-dark) does not match this description. The description and the code example are inconsistent. The selector should match the described behavior by using .lpx-theme-dark instead.
| :root .lpx-theme-dark { | |
| .lpx-theme-dark { |
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 variable
--lpx-brand-textis listed in the "Brand & Semantic Colors" table but is never shown in any of the code examples (Global Override, Theme-Scoped Override, or Component/Page-Specific Override). This creates inconsistency in the documentation where a variable is described but never demonstrated, leaving users uncertain about how to use it.