Skip to content

Commit ce496cb

Browse files
committed
Pink header by default, with custom property to override.
1 parent 572f85e commit ce496cb

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,17 @@ server mount point (e.g. `/api/docs` or *empty string* for the root path). Note
7979
that this requires a host that serves the application from all paths that
8080
should be handled by the doc viewer.
8181

82+
### Styling
83+
84+
`iron-component-page` uses the default theme from
85+
[`iron-doc-viewer`](https://github.com/PolymerElements/iron-doc-viewer). See
86+
its documentation for styling. The following custom properties and mixins are
87+
also available:
88+
89+
Custom property | Description | Default
90+
----------------|-------------|----------
91+
`--iron-component-page-header-color` | Background color of main header. | `paper-pink-600`
92+
8293
### Previous versions
8394

8495
The 3.x `iron-component-page` described here has major breaking changes versus

iron-component-page.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
@apply --paper-font-headline;
4040
color: white;
4141
background-color: #5a5a5a;
42+
background-color: var(--iron-component-page-header-color, var(--paper-pink-700));
4243
}
4344

4445
[drawer-toggle] {

0 commit comments

Comments
 (0)