File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -13,20 +13,21 @@ export const FieldLabel = styled.span`
13
13
` ;
14
14
15
15
export const TypePrefix = FieldLabel . extend `
16
- color: ${ props => transparentize ( 0.4 , props . theme . colors . text ) } ;
16
+ color: ${ props => transparentize ( 0.2 , props . theme . schemaView . typeNameColor ) } ;
17
17
` ;
18
18
19
19
export const TypeName = FieldLabel . extend `
20
- color: ${ props => transparentize ( 0.8 , props . theme . colors . text ) } ;
20
+ color: ${ props => props . theme . schemaView . typeNameColor } ;
21
21
` ;
22
+
22
23
export const TypeTitle = FieldLabel . extend `
23
- color: ${ props => transparentize ( 0.5 , props . theme . colors . text ) } ;
24
+ color: ${ props => props . theme . schemaView . typeTitleColor } ;
24
25
` ;
25
26
26
27
export const TypeFormat = TypeName ;
27
28
28
29
export const RequiredLabel = FieldLabel . withComponent ( 'div' ) . extend `
29
- color: #e53935 ;
30
+ color: ${ props => props . theme . schemaView . requireLabelColor } ;
30
31
font-size: 11px;
31
32
font-weight: normal;
32
33
margin-left: 20px;
Original file line number Diff line number Diff line change 1
- import { adjustHue , desaturate , lighten } from 'polished' ;
1
+ import { adjustHue , desaturate , lighten , transparentize } from 'polished' ;
2
2
3
3
const defaultTheme : ThemeInterface = {
4
4
spacingUnit : 20 ,
@@ -29,6 +29,9 @@ const defaultTheme: ThemeInterface = {
29
29
schemaView : {
30
30
linesColor : theme => lighten ( 0.25 , desaturate ( 0.35 , theme . colors . main ) ) ,
31
31
defaultDetailsWidth : '75%' ,
32
+ typeNameColor : theme => transparentize ( 0.8 , theme . colors . text ) ,
33
+ typeTitleColor : theme => theme . schemaView . typeNameColor ,
34
+ requireLabelColor : theme => theme . colors . error ,
32
35
} ,
33
36
baseFont : {
34
37
size : '14px' ,
@@ -129,6 +132,9 @@ export interface ResolvedThemeInterface {
129
132
schemaView : {
130
133
linesColor : string ;
131
134
defaultDetailsWidth : string ;
135
+ typeNameColor : string ;
136
+ typeTitleColor : string ;
137
+ requireLabelColor : string ;
132
138
} ;
133
139
baseFont : {
134
140
size : string ;
You can’t perform that action at this time.
0 commit comments