Skip to content

Commit b5a7002

Browse files
authored
Merge pull request #12 from deiteris/stage
Add variables to adjust heading colors
2 parents b29f807 + 6188986 commit b5a7002

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,42 @@ A component to generate documentation for an API resource from AMF model.
1313
This version only works with AMF model version 2 (AMF parser >= 4.0.0).
1414
For compatibility with previous model version use `3.x.x` version of the component.
1515

16+
## Styling
17+
18+
`<api-endpoint-documentation>` provides the following custom properties and mixins for styling:
19+
20+
Custom property | Description | Default
21+
----------------|-------------|----------
22+
`--arc-font-headline-color` | Color of the method title | ``
23+
`--arc-font-headline-font-size` | Font size of the method title | ``
24+
`--arc-font-headline-letter-spacing` | Letter spacing of the method title | ``
25+
`--arc-font-headline-line-height` | Line height of the method title | ``
26+
`--arc-font-headline-narrow-font-size` | Font size of the method title in mobile-friendly view | ``
27+
`--arc-font-title-color` | Color of the overview section title | ``
28+
`--arc-font-title-font-size` | Font size of the overview section title | ``
29+
`--arc-font-title-line-height` | Line height of the overview section title | ``
30+
`--arc-font-title-narrow-font-size` | Font size of the overview section title in mobile-friendly view | ``
31+
`--arc-font-subhead-color` | Color of the collapsible section title | ``
32+
`--arc-font-subhead-font-size` | Font size of the collapsible section title | ``
33+
`--arc-font-subhead-line-height` | Line height of the collapsible section title | ``
34+
`--arc-font-subhead-narrow-font-size` | Font size of the collapsible section title in mobile-friendly view | ``
35+
`--api-endpoint-documentation-description-color` | | `rgba(0, 0, 0, 0.74)`
36+
`--api-endpoint-documentation-bottom-navigation-color` | | `#000`
37+
`--api-endpoint-documentation-method-doc-border-top-color` | | `#E5E5E5`
38+
`--api-endpoint-documentation-method-doc-border-top-style` | | `dashed`
39+
`--api-endpoint-documentation-tryit-width` | | `40%`
40+
`--api-endpoint-documentation-tryit-max-width` | | ``
41+
`--api-endpoint-documentation-tryit-background-color` | | `#ECEFF1`
42+
`--api-endpoint-documentation-tryit-panels-background-color` | | `#fff`
43+
`--api-endpoint-documentation-tryit-panels-border-radius` | | `3px`
44+
`--api-endpoint-documentation-tryit-panels-border-color` | | `#EEEEEE`
45+
`--api-endpoint-documentation-tryit-panels-border-style` | | `solid`
46+
`--api-endpoint-documentation-tryit-title-border-bottom-color` | | `#bac6cb`
47+
`--api-endpoint-documentation-tryit-title-border-bottom-style` | | `solid`
48+
`--no-info-message-font-style` | | `italic`
49+
`--no-info-message-font-size` | | `16px`
50+
`--no-info-message-color` | | `rgba(0, 0, 0, 0.74)`
51+
1652
## Usage
1753

1854
### Installation

src/Styles.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export default css`:host {
55
}
66
77
.title {
8+
color: var(--arc-font-headline-color);
89
font-size: var(--arc-font-headline-font-size);
910
letter-spacing: var(--arc-font-headline-letter-spacing);
1011
line-height: var(--arc-font-headline-line-height);
@@ -14,6 +15,7 @@ export default css`:host {
1415
}
1516
1617
.heading2 {
18+
color: var(--arc-font-title-color);
1719
font-size: var(--arc-font-title-font-size);
1820
font-weight: var(--arc-font-title-font-weight);
1921
line-height: var(--arc-font-title-line-height);
@@ -22,6 +24,7 @@ export default css`:host {
2224
2325
.heading3 {
2426
flex: 1;
27+
color: var(--arc-font-subhead-color);
2528
font-size: var(--arc-font-subhead-font-size);
2629
font-weight: var(--arc-font-subhead-font-weight);
2730
line-height: var(--arc-font-subhead-line-height);

0 commit comments

Comments
 (0)