Skip to content

Commit

Permalink
style(format): ran prettier after upgrading to v2.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mlaursen committed Sep 13, 2021
1 parent 54295ed commit 06110af
Show file tree
Hide file tree
Showing 17 changed files with 109 additions and 106 deletions.
18 changes: 9 additions & 9 deletions examples/create-react-app-typescript/src/_everything.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@use '@react-md/theme/dist/color-palette' as *;
@forward 'react-md' with (
// update these variables as needed for your app
$rmd-theme-primary: $rmd-purple-500,
$rmd-theme-secondary: $rmd-pink-a-200,
$rmd-theme-light: true,

$rmd-theme-dark-elevation: 'prefers-color-scheme',
$rmd-utils-auto-dense: false,
);
@forward 'react-md' with
(
// update these variables as needed for your app
$rmd-theme-primary: $rmd-purple-500,
$rmd-theme-secondary: $rmd-pink-a-200,
$rmd-theme-light: true,
$rmd-theme-dark-elevation: 'prefers-color-scheme',
$rmd-utils-auto-dense: false
);
18 changes: 9 additions & 9 deletions examples/create-react-app/src/_everything.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@use '@react-md/theme/dist/color-palette' as *;
@forward 'react-md' with (
// update these variables as needed for your app
$rmd-theme-primary: $rmd-purple-500,
$rmd-theme-secondary: $rmd-pink-a-200,
$rmd-theme-light: true,

$rmd-theme-dark-elevation: 'prefers-color-scheme',
$rmd-utils-auto-dense: false,
);
@forward 'react-md' with
(
// update these variables as needed for your app
$rmd-theme-primary: $rmd-purple-500,
$rmd-theme-secondary: $rmd-pink-a-200,
$rmd-theme-light: true,
$rmd-theme-dark-elevation: 'prefers-color-scheme',
$rmd-utils-auto-dense: false
);
20 changes: 10 additions & 10 deletions examples/gatsby-typescript/src/styles/_everything.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@use '@react-md/theme/dist/color-palette' as *;
@forward 'react-md' with (
// update these variables as needed for your app
$rmd-theme-primary: $rmd-purple-500,
$rmd-theme-secondary: $rmd-pink-a-200,
$rmd-theme-light: true,

$rmd-theme-dark-elevation: 'prefers-color-scheme',
$rmd-utils-auto-dense: false,
);
@use "@react-md/theme/dist/color-palette" as *;
@forward "react-md" with
(
// update these variables as needed for your app
$rmd-theme-primary: $rmd-purple-500,
$rmd-theme-secondary: $rmd-pink-a-200,
$rmd-theme-light: true,
$rmd-theme-dark-elevation: "prefers-color-scheme",
$rmd-utils-auto-dense: false
);
2 changes: 1 addition & 1 deletion examples/gatsby-typescript/src/styles/global.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use './everything' as *;
@use "./everything" as *;

// generate all react-md styles with the custom theme
@include react-md-utils;
Expand Down
20 changes: 10 additions & 10 deletions examples/gatsby/src/styles/_everything.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@use '@react-md/theme/dist/color-palette' as *;
@forward 'react-md' with (
// update these variables as needed for your app
$rmd-theme-primary: $rmd-purple-500,
$rmd-theme-secondary: $rmd-pink-a-200,
$rmd-theme-light: true,

$rmd-theme-dark-elevation: 'prefers-color-scheme',
$rmd-utils-auto-dense: false,
);
@use "@react-md/theme/dist/color-palette" as *;
@forward "react-md" with
(
// update these variables as needed for your app
$rmd-theme-primary: $rmd-purple-500,
$rmd-theme-secondary: $rmd-pink-a-200,
$rmd-theme-light: true,
$rmd-theme-dark-elevation: "prefers-color-scheme",
$rmd-utils-auto-dense: false
);
2 changes: 1 addition & 1 deletion examples/gatsby/src/styles/global.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use './everything' as *;
@use "./everything" as *;

// generate all react-md styles with the custom theme
@include react-md-utils;
Expand Down
18 changes: 9 additions & 9 deletions examples/nextjs-typescript/src/_everything.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@use '@react-md/theme/dist/color-palette' as *;
@forward 'react-md' with (
// update these variables as needed for your app
$rmd-theme-primary: $rmd-purple-500,
$rmd-theme-secondary: $rmd-pink-a-200,
$rmd-theme-light: true,

$rmd-theme-dark-elevation: 'prefers-color-scheme',
$rmd-utils-auto-dense: false,
);
@forward 'react-md' with
(
// update these variables as needed for your app
$rmd-theme-primary: $rmd-purple-500,
$rmd-theme-secondary: $rmd-pink-a-200,
$rmd-theme-light: true,
$rmd-theme-dark-elevation: 'prefers-color-scheme',
$rmd-utils-auto-dense: false
);
18 changes: 9 additions & 9 deletions examples/nextjs/src/_everything.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@use '@react-md/theme/dist/color-palette' as *;
@forward 'react-md' with (
// update these variables as needed for your app
$rmd-theme-primary: $rmd-purple-500,
$rmd-theme-secondary: $rmd-pink-a-200,
$rmd-theme-light: true,

$rmd-theme-dark-elevation: 'prefers-color-scheme',
$rmd-utils-auto-dense: false,
);
@forward 'react-md' with
(
// update these variables as needed for your app
$rmd-theme-primary: $rmd-purple-500,
$rmd-theme-secondary: $rmd-pink-a-200,
$rmd-theme-light: true,
$rmd-theme-dark-elevation: 'prefers-color-scheme',
$rmd-utils-auto-dense: false
);
11 changes: 6 additions & 5 deletions packages/documentation/src/_everything.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
@use '@react-md/theme/dist/color-palette' as *;
@forward 'react-md' with (
$rmd-theme-primary: $rmd-teal-500,
$rmd-theme-secondary: $rmd-pink-a-200,
$rmd-utils-auto-dense: true,
);
@forward 'react-md' with
(
$rmd-theme-primary: $rmd-teal-500,
$rmd-theme-secondary: $rmd-pink-a-200,
$rmd-utils-auto-dense: true
);

$solarized-base-03: #002b36;
$solarized-base-02: #073642;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,28 +34,26 @@ First, create or update `src/_everything.scss`:

```scss
@use "@react-md/theme/dist/color-palette" as *;
@forward "react-md" with (
$rmd-theme-light: false,
// I am bad at colors and chose 2 random ones from https://flatuicolors.com/palette/defo
// probably looks terrible so wouldn't recommend copying this example
$rmd-theme-primary: #3498db,
$rmd-theme-secondary: #d35400,

// make buttons bigger
$rmd-button-text-horizontal-padding: 1.5rem,
$rmd-button-text-border-radius: 0.25rem,
$rmd-button-text-height: 3rem,

// add more padding to the base list
$rmd-list-vertical-padding: 1rem,
$rmd-list-dense-vertical-padding: 0.75rem,

// make each list item a bit more dense
$rmd-list-item-height: 2.5rem,
$rmd-list-item-dense-height: 2rem,
$rmd-list-item-medium-height: 3rem,
$rmd-list-item-dense-medium-height: 2.75rem,
);
@forward "react-md" with
(
$rmd-theme-light: false,
// I am bad at colors and chose 2 random ones from https://flatuicolors.com/palette/defo
// probably looks terrible so wouldn't recommend copying this example
$rmd-theme-primary: #3498db,
$rmd-theme-secondary: #d35400,
// make buttons bigger
$rmd-button-text-horizontal-padding: 1.5rem,
$rmd-button-text-border-radius: 0.25rem,
$rmd-button-text-height: 3rem,
// add more padding to the base list
$rmd-list-vertical-padding: 1rem,
$rmd-list-dense-vertical-padding: 0.75rem,
// make each list item a bit more dense
$rmd-list-item-height: 2.5rem,
$rmd-list-item-dense-height: 2rem,
$rmd-list-item-medium-height: 3rem,
$rmd-list-item-dense-medium-height: 2.75rem
);
```

Finally, update the root styles to import the react-md packages and generate the
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
@use 'react-md' as * with (
$rmd-utils-desktop-min-width: 92em,
$rmd-utils-large-desktop-min-width: 120em,
);
@use 'react-md' as * with
(
$rmd-utils-desktop-min-width: 92em,
$rmd-utils-large-desktop-min-width: 120em
);

.container {
@include rmd-grid(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// sass-lint:disable class-name-format
@use '@react-md/theme/dist/color-palette' as color;
@use 'react-md' as * with (
$rmd-theme-primary: color.$rmd-teal-500,
$rmd-theme-secondary: color.$rmd-pink-a-200,
);
@use 'react-md' as * with
(
$rmd-theme-primary: color.$rmd-teal-500,
$rmd-theme-secondary: color.$rmd-pink-a-200
);

.container {
@include rmd-theme-update-var(background, $rmd-white-base);
Expand Down
20 changes: 11 additions & 9 deletions packages/documentation/src/guides/customizing-your-theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ everything from `react-md` with the overrides required for your app.

```scss
@use "@react-md/theme/dist/color-palette" as *;
@forward "react-md" with (
$rmd-theme-primary: $rmd-teal-500,
$rmd-theme-secondary: $rmd-deep-orange-a-400,
);
@forward "react-md" with
(
$rmd-theme-primary: $rmd-teal-500,
$rmd-theme-secondary: $rmd-deep-orange-a-400
);
```

`src/index.scss`
Expand All @@ -53,11 +54,12 @@ app.

```scss
@use "@react-md/theme/dist/color-palette" as *;
@forward "react-md" with (
$rmd-theme-light: false,
$rmd-theme-primary: $rmd-teal-500,
$rmd-theme-secondary: $rmd-deep-orange-a-400,
);
@forward "react-md" with
(
$rmd-theme-light: false,
$rmd-theme-primary: $rmd-teal-500,
$rmd-theme-secondary: $rmd-deep-orange-a-400
);
```

`src/index.scss`
Expand Down
2 changes: 1 addition & 1 deletion packages/media/src/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/// @group media
////

@use "sass:math";
@use 'sass:math';

@import '~@react-md/theme/dist/mixins';
@import '~@react-md/utils/dist/functions';
Expand Down
2 changes: 1 addition & 1 deletion packages/media/src/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/// @group media
////

@use "sass:math";
@use 'sass:math';

@import '~@react-md/theme/dist/color-palette';

Expand Down
2 changes: 1 addition & 1 deletion packages/theme/src/_color-a11y.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/// @group theme
////

@use "sass:math";
@use 'sass:math';

@import './color-palette';

Expand Down
2 changes: 1 addition & 1 deletion packages/typography/src/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/// @group typography
////

@use "sass:math";
@use 'sass:math';

/// Gets the global variable value for a provided typography style name. This
/// assumes that the global variable exists already.
Expand Down

0 comments on commit 06110af

Please sign in to comment.