-
Notifications
You must be signed in to change notification settings - Fork 210
Add styling properties to Avatar and Charts docs #4285
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
Open
juuso-vaadin
wants to merge
8
commits into
latest
Choose a base branch
from
juusos-styling-patch
base: latest
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
6f6573d
Add color properties to Avatar styling documentation
juuso-vaadin c7206bc
Update Charts Styling docs
juuso-vaadin e9f621c
Add style properties to Charts docs
juuso-vaadin b31dd7c
Create styling
juuso-vaadin 693d251
Additions to Charts docs
juuso-vaadin 1279f85
Additions to Charts docs
juuso-vaadin e6c4fed
Update styling.adoc
jouni eec2af0
Fix path
juuso-vaadin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,202 @@ | ||||||
--- | ||||||
title: Style Properties | ||||||
page-title: Vaadin Charts style properties | ||||||
description: Styling API reference for the Vaadin Charts. | ||||||
meta-description: Learn how to style Vaadin Charts with custom themes and CSS. Discover tips and examples to create visually appealing and functional data visualizations. | ||||||
order: 50 | ||||||
--- | ||||||
|
||||||
|
||||||
= Styling | ||||||
|
||||||
include::../../_styling-section-theming-props.adoc[tag=style-properties] | ||||||
|
||||||
=== Common Properties | ||||||
|
||||||
[cols="1,2,2"] | ||||||
|=== | ||||||
| Feature | Property | Default Value | ||||||
|
||||||
|Background | ||||||
|`--vaadin-charts-background` | ||||||
|`--lumo-base-color` | ||||||
|
||||||
|Axis line | ||||||
|`--vaadin-charts-axis-line` | ||||||
|`--lumo-contrast-5pct` | ||||||
|
||||||
|Grid line | ||||||
|`--vaadin-charts-grid-line` | ||||||
|`--lumo-contrast-20pct` | ||||||
|
||||||
|X-axis line width | ||||||
|`--vaadin-charts-xaxis-line-width` | ||||||
|`0` | ||||||
|
||||||
|=== | ||||||
|
||||||
=== Data Series Colors | ||||||
|
||||||
[cols="1,2,2"] | ||||||
|=== | ||||||
| Feature | Property | Default Value | ||||||
|
||||||
|Charts color 0 | ||||||
|`--vaadin-charts-color-0` | ||||||
|`#5ac2f7` | ||||||
|
||||||
|Charts color 1 | ||||||
|`--vaadin-charts-color-1` | ||||||
|`#1676f3` | ||||||
|
||||||
|Charts color 2 | ||||||
|`--vaadin-charts-color-2` | ||||||
|`#ff7d94` | ||||||
|
||||||
|Charts color 3 | ||||||
|`--vaadin-charts-color-3` | ||||||
|`#c5164e` | ||||||
|
||||||
|Charts color 4 | ||||||
|`--vaadin-charts-color-4` | ||||||
|`#15c15d` | ||||||
|
||||||
|Charts color 5 | ||||||
|`--vaadin-charts-color-5` | ||||||
|`#0e8151` | ||||||
|
||||||
|Charts color 6 | ||||||
|`--vaadin-charts-color-6` | ||||||
|`#c18ed2` | ||||||
|
||||||
|Charts color 7 | ||||||
|`--vaadin-charts-color-7` | ||||||
|`#9233b3` | ||||||
|
||||||
|Charts color 8 | ||||||
|`--vaadin-charts-color-8` | ||||||
|`#fda253` | ||||||
|
||||||
|Charts color 9 | ||||||
|`--vaadin-charts-color-9` | ||||||
|`#e24932` | ||||||
|
||||||
|Color for positive values | ||||||
|`--vaadin-charts-color-positive` | ||||||
|`--vaadin-charts-color-4` | ||||||
|
||||||
|Color for negative values | ||||||
|`--vaadin-charts-color-negative` | ||||||
|`--vaadin-charts-color-9` | ||||||
|
||||||
|=== | ||||||
|
||||||
=== Text Colors | ||||||
|
||||||
[cols="1,2,2"] | ||||||
|=== | ||||||
| Feature | Property | Default Value | ||||||
|
||||||
|Chart title | ||||||
|`--vaadin-charts-title-label` | ||||||
|`--lumo-header-text-color` | ||||||
|
||||||
|Axis title | ||||||
|`--vaadin-charts-axis-title` | ||||||
|`--lumo-secondary-text-color` | ||||||
|
||||||
|Axis label | ||||||
|`--vaadin-charts-axis-label` | ||||||
|`--lumo-secondary-text-color` | ||||||
|
||||||
|Data label | ||||||
|`--vaadin-charts-data-label` | ||||||
|`--lumo-body-text-color` | ||||||
|
||||||
|Secondary label | ||||||
|`--vaadin-charts-secondary-label` | ||||||
|`--lumo-secondary-text-color` | ||||||
|
||||||
|Disabled label | ||||||
|`--vaadin-charts-disabled-label` | ||||||
|`--lumo-disabled-text-color` | ||||||
|
||||||
|=== | ||||||
|
||||||
=== Contrasts | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
[cols="1,2,2"] | ||||||
|=== | ||||||
| Feature | Property | Default Value | ||||||
|
||||||
|Contrast | ||||||
|`--vaadin-charts-contrast` | ||||||
|`--lumo-contrast` | ||||||
|
||||||
|Contrast 5% | ||||||
|`--vaadin-charts-contrast-5pct` | ||||||
|`--lumo-contrast-5pct` | ||||||
|
||||||
|Contrast 10% | ||||||
|`--vaadin-charts-contrast-10pct` | ||||||
|`--lumo-contrast-10pct` | ||||||
|
||||||
|Contrast 20% | ||||||
|`--vaadin-charts-contrast-20pct` | ||||||
|`--lumo-contrast-20pct` | ||||||
|
||||||
|Contrast 60% | ||||||
|`--vaadin-charts-contrast-60pct` | ||||||
|`--lumo-contrast-60pct` | ||||||
|
||||||
|=== | ||||||
|
||||||
=== Button | ||||||
Style properties for range selector buttons. | ||||||
|
||||||
[cols="1,2,2"] | ||||||
|=== | ||||||
| Feature | Property | Default Value | ||||||
|
||||||
|Button label | ||||||
|`--vaadin-charts-button-label` | ||||||
|`--lumo-primary-text-color` | ||||||
|
||||||
|Button background | ||||||
|`--vaadin-charts-button-background` | ||||||
|`--lumo-contrast-5pct` | ||||||
|
||||||
|Button hover background | ||||||
|`--vaadin-charts-button-hover-background` | ||||||
|`--lumo-primary-color-10pct` | ||||||
|
||||||
|Button active label | ||||||
|`--vaadin-charts-button-active-label` | ||||||
|`--lumo-primary-contrast-color` | ||||||
|
||||||
|Button active background | ||||||
|`--vaadin-charts-button-active-background` | ||||||
|`--lumo-primary-color` | ||||||
|
||||||
|=== | ||||||
|
||||||
=== Tooltips | ||||||
Tooltips within a chart. | ||||||
|
||||||
[cols="1,2,2"] | ||||||
|=== | ||||||
| Feature | Property | Default Value | ||||||
|
||||||
|Tooltip background | ||||||
|`--vaadin-charts-tooltip-background` | ||||||
|`--lumo-base-color` | ||||||
|
||||||
|Tooltip border | ||||||
|`--vaadin-charts-tooltip-border-color` | ||||||
|`inherit` | ||||||
|
||||||
|Tooltip background opacity | ||||||
|`--vaadin-charts-tooltip-background-opacity` | ||||||
|`1` | ||||||
|
||||||
|=== |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.