Skip to content

Commit 6a95f14

Browse files
committed
fix grey/white theme colors #233
1 parent 9183c06 commit 6a95f14

File tree

14 files changed

+44
-54
lines changed

14 files changed

+44
-54
lines changed

docs/src/pages/components/Icon.vue

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,35 +23,35 @@
2323
<example-box card-title="Default">
2424
<div slot="demo">
2525
<md-icon>home</md-icon>
26-
<md-icon class="md-primary">home</md-icon>
27-
<md-icon class="md-accent">home</md-icon>
28-
<md-icon class="md-warn">home</md-icon>
26+
<md-icon class="md-primary">menu</md-icon>
27+
<md-icon class="md-accent">people</md-icon>
28+
<md-icon class="md-warn">access_time</md-icon>
2929
</div>
3030

3131
<div slot="code">
3232
<code-block lang="xml">
3333
&lt;md-icon&gt;home&lt;/md-icon&gt;
34-
&lt;md-icon class=&quot;md-primary&quot;&gt;home&lt;/md-icon&gt;
35-
&lt;md-icon class=&quot;md-accent&quot;&gt;home&lt;/md-icon&gt;
36-
&lt;md-icon class=&quot;md-warn&quot;&gt;home&lt;/md-icon&gt;
34+
&lt;md-icon class=&quot;md-primary&quot;&gt;menu&lt;/md-icon&gt;
35+
&lt;md-icon class=&quot;md-accent&quot;&gt;people&lt;/md-icon&gt;
36+
&lt;md-icon class=&quot;md-warn&quot;&gt;access_time&lt;/md-icon&gt;
3737
</code-block>
3838
</div>
3939
</example-box>
4040

4141
<example-box card-title="Themes">
4242
<div slot="demo">
4343
<md-icon md-theme="light-blue" class="md-primary">home</md-icon>
44-
<md-icon md-theme="green" class="md-primary">home</md-icon>
45-
<md-icon md-theme="brown" class="md-primary">home</md-icon>
46-
<md-icon md-theme="orange" class="md-primary">home</md-icon>
44+
<md-icon md-theme="green" class="md-primary">menu</md-icon>
45+
<md-icon md-theme="brown" class="md-primary">people</md-icon>
46+
<md-icon md-theme="orange" class="md-primary">access_time</md-icon>
4747
</div>
4848

4949
<div slot="code">
5050
<code-block lang="xml">
5151
&lt;md-icon md-theme=&quot;light-blue&quot; class=&quot;md-primary&quot;&gt;home&lt;/md-icon&gt;
52-
&lt;md-icon md-theme=&quot;green&quot; class=&quot;md-primary&quot;&gt;home&lt;/md-icon&gt;
53-
&lt;md-icon md-theme=&quot;brown&quot; class=&quot;md-primary&quot;&gt;home&lt;/md-icon&gt;
54-
&lt;md-icon md-theme=&quot;orange&quot; class=&quot;md-primary&quot;&gt;home&lt;/md-icon&gt;
52+
&lt;md-icon md-theme=&quot;green&quot; class=&quot;md-primary&quot;&gt;menu&lt;/md-icon&gt;
53+
&lt;md-icon md-theme=&quot;brown&quot; class=&quot;md-primary&quot;&gt;people&lt;/md-icon&gt;
54+
&lt;md-icon md-theme=&quot;orange&quot; class=&quot;md-primary&quot;&gt;access_time&lt;/md-icon&gt;
5555
</code-block>
5656
</div>
5757
</example-box>

docs/src/pages/components/InkRipple.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
</div>
2929

3030
<div slot="example">
31-
<example-box card-title="As a component">
31+
<example-box card-title="Default">
3232
<div slot="demo">
3333
<div class="has-ripple">
3434
<md-ink-ripple></md-ink-ripple>

docs/src/routes.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,6 @@ const components = [
153153
name: 'components:spinner',
154154
component: Spinner
155155
},
156-
{
157-
path: '/components/switch',
158-
name: 'components:switch',
159-
component: Switch
160-
},
161156
{
162157
path: '/components/subheader',
163158
name: 'components:subheader',

src/components/mdButton/mdButton.theme

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
&.md-button:not([disabled]) {
33
&.md-raised {
44
&:not(.md-icon-button) {
5-
color: #{'BACKGROUND-COLOR-900'};
6-
background-color: #{'BACKGROUND-COLOR-50'};
5+
color: #{'BACKGROUND-CONTRAST'};
6+
background-color: #{'BACKGROUND-COLOR'};
77

88
&:hover {
99
background-color: #{'BACKGROUND-COLOR-200'};
1010
}
1111
}
1212

1313
&.md-icon-button:not(.md-raised) {
14-
color: #{'BACKGROUND-COLOR'};
14+
color: #{'BACKGROUND-CONTRAST'};
1515
}
1616
}
1717

@@ -24,8 +24,8 @@
2424
}
2525

2626
&.md-clean {
27-
color: #{'BACKGROUND-COLOR-900'};
28-
background-color: #{'BACKGROUND-COLOR-50'};
27+
color: #{'BACKGROUND-CONTRAST'};
28+
background-color: #{'BACKGROUND-COLOR'};
2929

3030
&:hover {
3131
background-color: #{'BACKGROUND-COLOR-200'};

src/components/mdButtonToggle/mdButtonToggle.theme

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
}
1313

1414
.md-toggle {
15-
color: #{'BACKGROUND-CONTRAST-600'};
16-
background-color: #{'BACKGROUND-COLOR-500'};
15+
color: #{'BACKGROUND-CONTRAST-0.54'};
16+
background-color: #{'BACKGROUND-CONTRAST-0.26'};
1717

1818
&:hover:not([disabled]) {
19-
background-color: #{'BACKGROUND-COLOR-600'};
19+
background-color: #{'BACKGROUND-CONTRAST-0.38'};
2020
}
2121

2222
+ .md-toggle:after {
23-
background-color: #{'BACKGROUND-COLOR-600'};
23+
background-color: #{'BACKGROUND-CONTRAST-0.12'};
2424
}
2525
}
2626

@@ -29,11 +29,11 @@
2929
background-color: #{'PRIMARY-COLOR'};
3030

3131
&:hover:not([disabled]) {
32-
background-color: #{'PRIMARY-COLOR-600'};
32+
background-color: #{'PRIMARY-COLOR'};
3333
}
3434

3535
+ .md-toggle:after {
36-
background-color: #{'PRIMARY-COLOR-700'};
36+
background-color: #{'PRIMARY-COLOR-600'};
3737
}
3838
}
3939

@@ -42,11 +42,11 @@
4242
background-color: #{'ACCENT-COLOR'};
4343

4444
&:hover:not([disabled]) {
45-
background-color: #{'ACCENT-COLOR-600'};
45+
background-color: #{'ACCENT-COLOR'};
4646
}
4747

4848
+ .md-toggle:after {
49-
background-color: #{'ACCENT-COLOR-700'};
49+
background-color: #{'ACCENT-COLOR-600'};
5050
}
5151
}
5252

@@ -55,11 +55,11 @@
5555
background-color: #{'WARN-COLOR'};
5656

5757
&:hover:not([disabled]) {
58-
background-color: #{'WARN-COLOR-600'};
58+
background-color: #{'WARN-COLOR'};
5959
}
6060

6161
+ .md-toggle:after {
62-
background-color: #{'WARN-COLOR-700'};
62+
background-color: #{'WARN-COLOR-600'};
6363
}
6464
}
6565

src/components/mdCard/mdCard.theme

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.THEME_NAME {
22
&.md-card {
3-
background-color: #{'BACKGROUND-COLOR-A100'};
3+
background-color: #{'BACKGROUND-COLOR'};
44

55
&.md-primary {
66
background-color: #{'PRIMARY-COLOR'};
@@ -75,7 +75,7 @@
7575

7676
.md-card-expand {
7777
.md-card-actions {
78-
background-color: #{'BACKGROUND-COLOR-A100'};
78+
background-color: #{'BACKGROUND-COLOR'};
7979
}
8080
}
8181
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.THEME_NAME {
22
&.md-dialog-container .md-dialog {
3-
background-color: #{'BACKGROUND-COLOR-A100'};
3+
background-color: #{'BACKGROUND-COLOR'};
44
color: #{'BACKGROUND-CONTRAST'};
55
}
66
}

src/components/mdList/mdList.theme

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.THEME_NAME {
22
&.md-list {
3-
background-color: #{'BACKGROUND-COLOR-A100'};
3+
background-color: #{'BACKGROUND-COLOR'};
44
color: #{'BACKGROUND-CONTRAST'};
55

66
&.md-transparent {
@@ -50,7 +50,7 @@
5050

5151
.md-list-item-expand {
5252
.md-list-item-container {
53-
background-color: #{'BACKGROUND-COLOR-A100'};
53+
background-color: #{'BACKGROUND-COLOR'};
5454

5555
&:hover,
5656
&:focus {

src/components/mdMenu/mdMenu.theme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.THEME_NAME {
22
&.md-menu-content {
3-
background-color: #{'BACKGROUND-COLOR-A100'};
3+
background-color: #{'BACKGROUND-COLOR'};
44
color: #{'BACKGROUND-CONTRAST'};
55

66
.md-menu-item {

src/components/mdSidenav/mdSidenav.theme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.THEME_NAME {
22
&.md-sidenav {
33
.md-sidenav-content {
4-
background-color: #{'BACKGROUND-COLOR-A100'};
4+
background-color: #{'BACKGROUND-COLOR'};
55
color: #{'BACKGROUND-CONTRAST'};
66
}
77
}

0 commit comments

Comments
 (0)