From 67afbe1db92ff00082a7a9b159d1528553d4ab56 Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Thu, 22 Feb 2018 12:48:51 -0500 Subject: [PATCH] refactor(theming): update default colors and add examples closes #13988 --- .../components/badge/test/basic/index.html | 56 +++++-- .../badge/test/standalone/index.html | 16 +- .../components/button/test/anchor/index.html | 25 ++- .../components/button/test/basic/index.html | 24 ++- .../components/button/test/fill/index.html | 148 ++++++++++++------ .../components/button/test/round/index.html | 40 +++-- .../button/test/standalone/index.html | 53 ++++++- .../components/checkbox/test/basic/index.html | 36 ++++- .../checkbox/test/standalone/index.html | 21 ++- .../src/components/note/test/basic/index.html | 77 +++++++-- .../note/test/standalone/index.html | 8 +- .../radio-group/test/standalone/index.html | 17 +- .../radio/test/standalone/index.html | 50 ++++-- .../searchbar/test/toolbar/index.html | 25 ++- .../src/components/text/test/basic/index.html | 2 +- .../toggle/test/standalone/index.html | 22 ++- .../components/toolbar/test/colors/index.html | 12 ++ .../toolbar/test/standalone/index.html | 12 ++ .../toolbar/test/translucent/index.html | 25 ++- .../core/src/themes/ionic.theme.default.scss | 12 +- 20 files changed, 510 insertions(+), 171 deletions(-) diff --git a/packages/core/src/components/badge/test/basic/index.html b/packages/core/src/components/badge/test/basic/index.html index 228a464937..0d2fbb2b81 100644 --- a/packages/core/src/components/badge/test/basic/index.html +++ b/packages/core/src/components/badge/test/basic/index.html @@ -21,28 +21,44 @@ Badges Right - 99 Default Badge + 00 - 99 Primary Badge + 11 - 99 Secondary Badge + 22 + + + Tertiary Badge + 33 + + + Success Badge + 44 + + + Warning Badge + 55 - 99 Danger Badge + 66 - 99 Light Badge + 77 + + + Medium Badge + 88 - 99 Dark Badge + 99 primary @@ -53,28 +69,44 @@ Badges Left - 99 Default Badge + 00 - 99 Primary Badge + 11 - 99 Secondary Badge + 22 + + + Tertiary Badge + 33 + + + Success Badge + 44 + + + Warning Badge + 55 - 99 Danger Badge + 66 - 99 Light Badge + 77 + + + Medium Badge + 88 - 99 Dark Badge + 99 diff --git a/packages/core/src/components/badge/test/standalone/index.html b/packages/core/src/components/badge/test/standalone/index.html index 504b1872be..e338f881ed 100644 --- a/packages/core/src/components/badge/test/standalone/index.html +++ b/packages/core/src/components/badge/test/standalone/index.html @@ -9,12 +9,18 @@ + + 99 + + 11 22 - 33 - 44 - 55 - 66 - 99 + 33 + 44 + 55 + 66 + 77 + 88 + 99 diff --git a/packages/core/src/components/button/test/anchor/index.html b/packages/core/src/components/button/test/anchor/index.html index 6fcb095f82..df31899846 100644 --- a/packages/core/src/components/button/test/anchor/index.html +++ b/packages/core/src/components/button/test/anchor/index.html @@ -22,30 +22,43 @@

Primary - Primary.activated + Primary.activated

Secondary - Secondary.activated + Secondary.activated +

+

+ Tertiary + Tertiary.activated +

+

+ Success + Success.activated

Warning - Warning.activated + Warning.activated

Danger - Danger.activated + Danger.activated

Light - Light.activated + Light.activated +

+

+ Medium + Medium.activated

Dark - Dark.activated + Dark.activated

Disabled + Secondary Disabled

diff --git a/packages/core/src/components/button/test/basic/index.html b/packages/core/src/components/button/test/basic/index.html index 4438d72995..8731872fa6 100644 --- a/packages/core/src/components/button/test/basic/index.html +++ b/packages/core/src/components/button/test/basic/index.html @@ -23,37 +23,47 @@

Primary - Primary.activated + Primary.activated

Secondary - Secondary.activated + Secondary.activated

Tertiary - Tertiary.activated + Tertiary.activated +

+ +

+ Success + Success.activated

Warning - Warning.activated + Warning.activated

Danger - Danger.activated + Danger.activated

Light - Light.activated + Light.activated +

+ +

+ Medium + Medium.activated

Dark - Dark.activated + Dark.activated

diff --git a/packages/core/src/components/button/test/fill/index.html b/packages/core/src/components/button/test/fill/index.html index 84ddceb7bc..dd145b4e9d 100644 --- a/packages/core/src/components/button/test/fill/index.html +++ b/packages/core/src/components/button/test/fill/index.html @@ -20,61 +20,109 @@ Default Default.activated

+

Primary - Primary.activated -

-

- Secondary - Secondary.activated -

-

- Warning - Warning.activated -

-

- Danger - Danger.activated -

-

- Light - Light.activated -

-

- Dark - Dark.activated -

-

- Disabled + Primary.activated

- Default - Default.activated -

-

- Primary - Primary.activated -

-

- Secondary - Secondary.activated -

-

- Danger - Danger.activated -

-

- Light - Light.activated -

-

- Dark - Dark.activated -

-

- Disabled -

+ Secondary + Secondary.activated +

+ +

+ Tertiary + Tertiary.activated +

+ +

+ Success + Success.activated +

+ +

+ Warning + Warning.activated +

+ +

+ Danger + Danger.activated +

+ +

+ Light + Light.activated +

+ +

+ Medium + Medium.activated +

+ +

+ Dark + Dark.activated +

+

+ Disabled + Secondary Disabled +

+ +

+ Default + Default.activated +

+ +

+ Primary + Primary.activated +

+ +

+ Secondary + Secondary.activated +

+ +

+ Tertiary + Tertiary.activated +

+ +

+ Success + Success.activated +

+ +

+ Warning + Warning.activated +

+ +

+ Danger + Danger.activated +

+ +

+ Light + Light.activated +

+ +

+ Medium + Medium.activated +

+ +

+ Dark + Dark.activated +

+

+ Disabled + Secondary Disabled +

diff --git a/packages/core/src/components/button/test/round/index.html b/packages/core/src/components/button/test/round/index.html index 1a041584f3..e6e112bac7 100644 --- a/packages/core/src/components/button/test/round/index.html +++ b/packages/core/src/components/button/test/round/index.html @@ -16,24 +16,32 @@ - button - button light - button secondary - button warning - button danger - button dark + Default + Primary + Secondary + Tertiary + Success + Warning + Danger + Light + Medium + Dark - button - button light - button secondary - button warning - button danger - button dark + Default + Primary + Secondary + Tertiary + Success + Warning + Danger + Light + Medium + Dark - clear - block - full - strong + Clear + Block + Full + Strong diff --git a/packages/core/src/components/button/test/standalone/index.html b/packages/core/src/components/button/test/standalone/index.html index 10d9cb5de3..6af368b6cc 100644 --- a/packages/core/src/components/button/test/standalone/index.html +++ b/packages/core/src/components/button/test/standalone/index.html @@ -9,11 +9,52 @@ - Primary - Secondary - Warning - Danger - Light - Dark +

+ Primary + Secondary + Tertiary + Success + Warning + Danger + Light + Medium + Dark +

+ +

+ Primary + Secondary + Tertiary + Success + Warning + Danger + Light + Medium + Dark +

+ +

+ Primary + Secondary + Tertiary + Success + Warning + Danger + Light + Medium + Dark +

+ +

+ Light + Medium + Dark +

+ +

+ Light + Medium + Dark +

diff --git a/packages/core/src/components/checkbox/test/basic/index.html b/packages/core/src/components/checkbox/test/basic/index.html index 821181463e..000728e47c 100644 --- a/packages/core/src/components/checkbox/test/basic/index.html +++ b/packages/core/src/components/checkbox/test/basic/index.html @@ -20,40 +20,62 @@ Default
+ Primary - + + Secondary - + + + + Tertiary + + + + + Success + + + Warning - + + Danger - + + Light - + + + + Medium + + + Dark - + + Unchecked by Default + Disabled - diff --git a/packages/core/src/components/checkbox/test/standalone/index.html b/packages/core/src/components/checkbox/test/standalone/index.html index 5812fefc43..c263f80497 100644 --- a/packages/core/src/components/checkbox/test/standalone/index.html +++ b/packages/core/src/components/checkbox/test/standalone/index.html @@ -9,13 +9,22 @@ + - - - - - - + + + + + + + + + + + + + + diff --git a/packages/core/src/components/note/test/basic/index.html b/packages/core/src/components/note/test/basic/index.html index 8a0ecdeafb..7f85c7af04 100644 --- a/packages/core/src/components/note/test/basic/index.html +++ b/packages/core/src/components/note/test/basic/index.html @@ -21,29 +21,55 @@ Notes Right - 99 Default Note + 99 + - 99 Primary Note + 99 + - 99 Secondary Note + 99 + + + Tertiary Note + 99 + + + + Success Note + 99 + + + + Warning Note + 99 + + - 99 Danger Note + 99 + - 99 Light Note + 99 + - 99 - Dark Note + Medium Note + 99 + + + Dark Note + 99 + + primary Dynamic Note Color (toggle) @@ -53,28 +79,53 @@ Notes Left - 99 Default Note + 99 + - 99 Primary Note + 99 + - 99 Secondary Note + 99 + + + Tertiary Note + 99 + + + + Success Note + 99 + + + + Warning Note + 99 + + - 99 Danger Note + 99 + - 99 Light Note + 99 + + + Medium Note + 99 + + - 99 Dark Note + 99 diff --git a/packages/core/src/components/note/test/standalone/index.html b/packages/core/src/components/note/test/standalone/index.html index b891026531..d510842ad1 100644 --- a/packages/core/src/components/note/test/standalone/index.html +++ b/packages/core/src/components/note/test/standalone/index.html @@ -9,14 +9,18 @@ - + Default Note - + Primary Note Secondary Note + Tertiary Note + Success Note + Warning Note Danger Note Light Note + Medium Note Dark Note diff --git a/packages/core/src/components/radio-group/test/standalone/index.html b/packages/core/src/components/radio-group/test/standalone/index.html index 06fab200e6..3015fd3f8b 100644 --- a/packages/core/src/components/radio-group/test/standalone/index.html +++ b/packages/core/src/components/radio-group/test/standalone/index.html @@ -11,12 +11,27 @@ + + + + - + + + + + + diff --git a/packages/core/src/components/radio/test/standalone/index.html b/packages/core/src/components/radio/test/standalone/index.html index afccec1483..8062c23302 100644 --- a/packages/core/src/components/radio/test/standalone/index.html +++ b/packages/core/src/components/radio/test/standalone/index.html @@ -9,20 +9,42 @@ - - - - - - - +

+ + + + + + + + + + + + +

- - - - - - - +

+ + + + + + + + + + + + +

+ + diff --git a/packages/core/src/components/searchbar/test/toolbar/index.html b/packages/core/src/components/searchbar/test/toolbar/index.html index 61a53eb821..dfeae9418f 100644 --- a/packages/core/src/components/searchbar/test/toolbar/index.html +++ b/packages/core/src/components/searchbar/test/toolbar/index.html @@ -46,7 +46,17 @@ -` + +
Search - Secondary Toolbar
+ + + + +
Search - Tertiary Toolbar
+ + + +
Search - Success Toolbar
@@ -62,16 +72,21 @@ +
Search - Light Toolbar
+ + + + +
Search - Medium Toolbar
+ + +
Search - Dark Toolbar
-
Search - Light Toolbar
- - - diff --git a/packages/core/src/components/text/test/basic/index.html b/packages/core/src/components/text/test/basic/index.html index d5e159d0a9..353e872f49 100644 --- a/packages/core/src/components/text/test/basic/index.html +++ b/packages/core/src/components/text/test/basic/index.html @@ -29,7 +29,7 @@ -

H4: The quick brown fox jumps over the lazy dog

+

H4: The quick brown fox jumps over the lazy dog

diff --git a/packages/core/src/components/toggle/test/standalone/index.html b/packages/core/src/components/toggle/test/standalone/index.html index 08906c4eeb..bf632b9e0f 100644 --- a/packages/core/src/components/toggle/test/standalone/index.html +++ b/packages/core/src/components/toggle/test/standalone/index.html @@ -9,12 +9,22 @@ - - - - - - + + + + + + + + + + + + + + + + diff --git a/packages/core/src/components/toolbar/test/colors/index.html b/packages/core/src/components/toolbar/test/colors/index.html index 33ef06818f..4678037ad9 100644 --- a/packages/core/src/components/toolbar/test/colors/index.html +++ b/packages/core/src/components/toolbar/test/colors/index.html @@ -22,6 +22,14 @@ Secondary + + Tertiary + + + + Success + + Warning @@ -34,6 +42,10 @@ Light + + Medium + + Dark diff --git a/packages/core/src/components/toolbar/test/standalone/index.html b/packages/core/src/components/toolbar/test/standalone/index.html index 3e055c90c4..f48e47dc8e 100644 --- a/packages/core/src/components/toolbar/test/standalone/index.html +++ b/packages/core/src/components/toolbar/test/standalone/index.html @@ -21,6 +21,14 @@ Secondary + + Tertiary + + + + Success + + Warning @@ -33,6 +41,10 @@ Light + + Medium + + Dark diff --git a/packages/core/src/components/toolbar/test/translucent/index.html b/packages/core/src/components/toolbar/test/translucent/index.html index ab9e852413..0c4e96d97b 100644 --- a/packages/core/src/components/toolbar/test/translucent/index.html +++ b/packages/core/src/components/toolbar/test/translucent/index.html @@ -14,22 +14,31 @@ Toolbar - Translucent - Toolbar - Primary Translucent + Primary - Translucent - Toolbar - Secondary Translucent + Secondary - Translucent - - Toolbar - Light Translucent + + Tertiary - Translucent - - Toolbar - Danger Translucent + + Success - Translucent - Toolbar - Warning Translucent + Warning - Translucent + + + Danger - Translucent + + + Light - Translucent + + + Medium - Translucent - Toolbar - Dark Translucent + Dark - Translucent diff --git a/packages/core/src/themes/ionic.theme.default.scss b/packages/core/src/themes/ionic.theme.default.scss index 2008224f8e..367ef90a10 100644 --- a/packages/core/src/themes/ionic.theme.default.scss +++ b/packages/core/src/themes/ionic.theme.default.scss @@ -4,15 +4,15 @@ // ---------------------------------- // Private color variables, use colors() to override -$primary: #488aff; -$secondary: #32db64; -$tertiary: #f4a942; +$primary: #3880ff; +$secondary: #0cd1e8; +$tertiary: #7044ff; $success: #10dc60; $warning: #ffce00; -$danger: #f53d3d; -$light: #f4f4f4; +$danger: #f04141; +$light: #f4f5f8; $medium: #989aa2; -$dark: #222; +$dark: #222428; // Allows users to override an individual color $colors: () !default;