Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions source/_sass/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ html {

body {
padding-top: $header-height;
background-color: $gray-01;
background-color: var(--dev-bg-primary);
color: var(--dev-fg-primary);
}

.anchor[id],
Expand All @@ -59,17 +60,17 @@ body {
}

code {
background-color: $white;
background-color: var(--dev-bg-secondary);
border-radius: 2px;
color: color.adjust($base-font-color, $lightness: -20%, $space: hsl);
color: var(--dev-fg-tertiary);
font-family: $monospace;
font-size: $base-font-size;
padding: 2px 4px;
box-shadow: inset 0 0 2px #bbb;
}

a code {
color: color.adjust($base-link-color, $lightness: -10%, $space: hsl);
color: var(--dev-fg-tertiary);
}

.container {
Expand Down Expand Up @@ -238,7 +239,7 @@ a code {
}

.modal-content {
background-color: $gray-01;
background-color: var(--dev-bg-primary);
}

.header--skinny {
Expand Down
8 changes: 4 additions & 4 deletions source/_sass/base/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ a {
}

hr {
border-bottom: 1px solid $base-border-color;
border-bottom: 1px solid var(--dev-fg-primary);
border-left: none;
border-right: none;
border-top: none;
Expand All @@ -89,14 +89,14 @@ img {
}

blockquote {
border-left: 2px solid $base-border-color;
color: color.adjust($base-font-color, $lightness: 15%, $space: hsl);
border-left: 2px solid var(--dev-fg-primary);
color: var(--dev-fg-secondary);
margin: $base-line-height 0;
padding-left: $base-line-height * 0.5;
}

cite {
color: color.adjust($base-font-color, $lightness: 25%, $space: hsl);
color: var(--dev-fg-secondary);
font-style: italic;

&:before {
Expand Down
16 changes: 7 additions & 9 deletions source/_sass/base/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,30 +31,28 @@ $header-line-height: 1.3;
$base-border-radius: em(3);

// Background Color
$base-background-color: #fff;
$base-background-color: var(--dev-bg-primary);

// Font Colors
$base-font-color: $gray-03;
$base-font-color: var(--dev-fg-primary);
$base-text-color: $base-font-color;
$base-accent-color: $lightblue;

// Link Colors
$base-link-color: $base-accent-color;
$hover-link-color: color.adjust($base-accent-color, $lightness: -15%, $space: hsl);
$base-link-color: var(--dev-link);
$hover-link-color: var(--dev-link-hover);
$base-button-color: $base-link-color;
$hover-button-color: $hover-link-color;

// Border color
$base-border-color: $gray-03;

// Flash Colors
$alert-color: $yellow;
$error-color: $red;
$notice-color: $yellow;
$success-color: $green;

// Forms
$form-border-color: $base-border-color;
$form-border-color-hover: color.adjust($base-border-color, $lightness: -10%, $space: hsl);
$form-border-color: var(--dev-border-primary);
$form-border-color-hover: var(--dev-border-tertiary);
$form-border-color-focus: $base-accent-color;
$form-border-radius: $base-border-radius;
$form-box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
Expand Down
70 changes: 49 additions & 21 deletions source/_sass/colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,27 +54,16 @@ $bigbox--green: #22a048;
$bigbox--darkgreen: color.adjust($bigbox--green, $lightness: -20%, $space: hsl);
$bigbox--dark-blue: color.adjust($darkerlightblue, $lightness: -20%, $space: hsl);

$color-guides: $yellow;
$color-docs: $pink;
$color-community: $purple;
$color-more: $green;
$color-getting-started: $dark-red;
$color-sdk: $lightblue;
$color-appstore: $orange;
$color-other: $dark-grey;

$gray-01: #f4f4f4;
$gray-02: #444;
$gray-03: #484848;
$gray-04: #eee;
$gray-05: #e5e4e4;
$gray-06: #d6d6d6;
$gray-07: #272822;
$gray-08: #ddd;
$gray-09: #bebebe;
$gray-10: #d9d9d9;
$gray-11: #666;
$gray-12: #ccc;
$gray-02: #eee;
$gray-03: #e5e4e4;
$gray-04: #d9d9d9;
$gray-05: #bebebe;
$gray-06: #beef69;
$gray-07: #666;
$gray-08: #444;
$gray-09: #272822;
$gray-10: #12130f;

$bigbox--blue: $lightblue;
$bigbox--green: #22a048;
Expand All @@ -85,7 +74,8 @@ $color-community: $purple;
$color-more: $green;
$color-getting-started: $dark-red;
$color-sdk: $lightblue;
$color-appstore: $gray-03;
$color-appstore: $gray-08;
$color-other: $dark-grey;
$color-blog: $orange-02;
$color-examples: #2c67ce;

Expand All @@ -97,3 +87,41 @@ $modifier-colors: $color-guides, $color-docs, $color-community, $color-more,
$color-blog;

$modifier-colors-fg: $white $white $white $white $white $white $white $white;

@media all {
:root {
/* Dark Mode Support */
color-scheme: light dark;

--dev-bg-primary: #{$gray-01};
--dev-bg-secondary: #{$white};
--dev-bg-tertiary: #{$gray-03};
--dev-bg-prominent: #{$gray-02};
--dev-fg-primary: #{$gray-08};
--dev-fg-secondary: #{$gray-07};
--dev-fg-tertiary: #{$gray-09};
--dev-fg-muted: #{$gray-05};
--dev-border-primary: #{$gray-04};
--dev-border-secondary: #{$gray-03};
--dev-border-tertiary: #{$gray-05};
--dev-link: #{$pebble-blue};
--dev-link-hover: #{$pebble-blue-alt};
}
}

@media screen and (prefers-color-scheme: dark) {
:root {
--dev-bg-primary: #{$gray-10};
--dev-bg-secondary: #{$gray-09};
--dev-bg-tertiary: #{$black};
--dev-bg-prominent: #{$gray-08};
--dev-fg-primary: #{$white};
--dev-fg-secondary: #{$breakfast-room-white};
--dev-fg-tertiary: #{$gray-01};
--dev-border-primary: #{$black};
--dev-border-secondary: #{$gray-10};
--dev-border-tertiary: #{$gray-09};
--dev-link: #{color.adjust(#16b5d8, $lightness: 20%, $space: hsl)};
--dev-link-hover: #{$pebble-blue};
}
}
12 changes: 7 additions & 5 deletions source/_sass/elements/bigbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,17 @@
}

.bigbox--lightgray {
background-color: $gray-04;
background-color: $gray-02;
color: $gray-08;
}

.bigbox--gray {
background-color: $gray-05;
background-color: $gray-03;
color: $gray-08;
}

.bigbox--darkgray {
background-color: $gray-02;
background-color: $gray-08;
color: $white;
}

Expand Down Expand Up @@ -170,7 +172,7 @@
}

.bigbox__guides-building {
background-color: $gray-02;
background-color: $gray-08;
color: $breakfast-room-white;
background-image: url('/assets/images/landing-page/back_for_more_bg.png');
}
Expand All @@ -182,7 +184,7 @@
}

.bigbox__guides-interactive {
background-color: $gray-02;
background-color: $gray-08;
color: $breakfast-room-white;
background-image: url('/assets/images/landing-page/interactive_bg.png');
}
4 changes: 2 additions & 2 deletions source/_sass/elements/buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ submit.btn {
font-size: inherit;
}

$btn-colors: $white $gray-02 $green $blue $red $purple $yellow $orange $lightblue $dark-red $orange-02 $android-green;
$btn-names: 'white' gray-02 'green' 'blue' 'red' 'purple' 'yellow' 'orange' 'lightblue' 'dark-red' 'orange-02' 'android-green';
$btn-colors: $white $dark-grey $green $blue $red $purple $yellow $orange $lightblue $dark-red $orange-02 $android-green;
$btn-names: 'white' 'dark-grey' 'green' 'blue' 'red' 'purple' 'yellow' 'orange' 'lightblue' 'dark-red' 'orange-02' 'android-green';

@each $color in $btn-colors {
$i: list.index($btn-colors, $color);
Expand Down
18 changes: 9 additions & 9 deletions source/_sass/elements/form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
input,
select,
textarea {
background-color: white;
border: 1px solid $gray-06;
background-color: var(--dev-bg-secondary);
border: 1px solid var(--dev-border-primary);
border-left: none;
border-radius: 0 5px 5px 0;
color: $gray-02;
color: var(--dev-fg-primary);
display: table-cell;
font-family: $sans-serif;
font-size: 15px;
Expand Down Expand Up @@ -57,11 +57,11 @@
}

.select-style {
background-color: white;
background-color: var(--dev-bg-secondary);
border-radius: 0 5px 5px 0;
border: 1px solid $gray-06;
border: 1px solid var(--dev-border-primary);
border-left-width: 0;
color: color.adjust(#444, $alpha: -0.5);
color: var(--dev-fg-secondary);
display: table-cell;
font-family: $sans-serif;
font-size: 15px;
Expand Down Expand Up @@ -91,11 +91,11 @@
}

label {
background-color: #fff;
border: 1px solid $gray-06;
background-color: var(--dev-bg-secondary);
border: 1px solid var(--dev-border-primary);
border-right: none;
border-radius: 5px 0 0 5px;
color: #111;
color: var(--dev-fg-tertiary);
display: table-cell;
font-size: 14px;
font-weight: 400;
Expand Down
8 changes: 4 additions & 4 deletions source/_sass/elements/gray-box.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

.gray-box {
background-color: $gray-04;
background-color: var(--dev-bg-prominent);
border-radius: $base-border-radius;
margin-bottom: 1em;
overflow-x: hidden;
Expand All @@ -38,15 +38,15 @@
}

h3 {
color: $gray-02;
color: var(--dev-fg-primary);
font-size: 1.3em;
font-weight: 600;
text-transform: uppercase;

a,
a:hover,
a:active {
color: $gray-02;
color: var(--dev-fg-primary);
}

a:hover,
Expand All @@ -61,7 +61,7 @@
}

.white-box {
background-color: $white;
background-color: var(--dev-bg-secondary);
border-radius: $base-border-radius;
margin-bottom: 1em;
padding: 0.5em;
Expand Down
2 changes: 1 addition & 1 deletion source/_sass/elements/highlight.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

.highlight {
background-color: $gray-07;
background-color: $gray-09;
border-radius: $base-border-radius;
color: #f8f8f2;
font: 13px/1.3em $monospace;
Expand Down
4 changes: 2 additions & 2 deletions source/_sass/elements/inline-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ul.inline-list {
}

.inline-list--piped li::after {
color: color.adjust($base-font-color, $lightness: 30%, $space: hsl);
color: var(--dev-fg-secondary);
content: ' | ';
display: inline;
}
Expand All @@ -41,7 +41,7 @@ ul.inline-list {
}

.inline-list--dashed li::after {
color: color.adjust($base-font-color, $lightness: 40%, $space: hsl);
color: var(--dev-fg-secondary);
content: ' — ';
display: inline;
}
Expand Down
16 changes: 6 additions & 10 deletions source/_sass/elements/markdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,10 @@
@extend %default-ol;
}

$table-border-color: $gray-06;
$table-border-color: var(--dev-border-primary);
$table-border: 1px solid $table-border-color;
$table-background: $white;
$table-header-background: $gray-02;
$table-header-background: $gray-08;
$table-header-color: $white;
$table-hover-color: color.adjust($table-background, $lightness: -5%, $space: hsl);
$table-stripe-color: color.adjust($table-background, $lightness: -4%, $space: hsl);
$table-stripe-color-hover: color.adjust($table-stripe-color, $lightness: -5%, $space: hsl);
$table-padding: 0.5em;

table {
Expand All @@ -46,7 +42,7 @@
}

tbody {
background-color: $table-background;
background-color: var(--dev-bg-secondary);

td {
border-bottom: 0;
Expand All @@ -57,14 +53,14 @@

tr:hover > td,
tr:hover > th {
background-color: $table-hover-color;
background-color: var(--dev-bg-prominent);
}

tr:nth-child(even) {
background-color: $table-stripe-color;
background-color: var(--dev-bg-primary);

&:hover > td {
background-color: $table-stripe-color-hover;
background-color: var(--dev-bg-tertiary);
}
}
}
Expand Down
Loading