Skip to content

Commit

Permalink
refactor(themes): update theme preset mixins (#15164)
Browse files Browse the repository at this point in the history
* refactor(themes): update presets to only use the theme mixin

* refactor(themes): add indigo light preset

* refactor(themes): remove extra line from dark fluent preset
  • Loading branch information
simeonoff authored Dec 12, 2024
1 parent 217ea33 commit e372a9e
Show file tree
Hide file tree
Showing 13 changed files with 104 additions and 26 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
@use '../../themes' as *;

@include core();
@include typography($font-family: $material-typeface, $type-scale: $material-type-scale);
@include dark-theme($dark-material-palette);
@include typography(
$font-family: $material-typeface,
$type-scale: $material-type-scale
);
@include theme(
$schema: $dark-material-schema,
$palette: $dark-material-palette,
);
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
@use '../../themes' as *;

@include core();
@include typography($font-family: $material-typeface, $type-scale: $material-type-scale);
@include theme($light-material-palette);
@include typography(
$font-family: $material-typeface,
$type-scale: $material-type-scale
);
@include theme(
$schema: $light-material-schema,
$palette: $light-material-palette,
);
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
@use '../../themes' as *;

@include core();
@include typography($font-family: $bootstrap-typeface, $type-scale: $bootstrap-type-scale);
@include bootstrap-dark-theme($dark-bootstrap-palette);
@include typography(
$font-family: $bootstrap-typeface,
$type-scale: $bootstrap-type-scale
);
@include theme(
$schema: $dark-bootstrap-schema,
$palette: $dark-bootstrap-palette,
);
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
@use '../../themes' as *;

@include core();
@include typography($font-family: $bootstrap-typeface, $type-scale: $bootstrap-type-scale);
@include bootstrap-light-theme($light-bootstrap-palette);
@include typography(
$font-family: $bootstrap-typeface,
$type-scale: $bootstrap-type-scale
);
@include theme(
$schema: $light-bootstrap-schema,
$palette: $light-bootstrap-palette,
);
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
@use '../../themes' as *;

@include core();
@include typography($font-family: $material-typeface, $type-scale: $material-type-scale);
@include dark-theme($dark-green-palette);
@include typography(
$font-family: $material-typeface,
$type-scale: $material-type-scale
);
@include theme(
$schema: $dark-material-schema,
$palette: $dark-green-palette,
);
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
@use '../../themes' as *;

@include core();
@include typography($font-family: $fluent-typeface, $type-scale: $fluent-type-scale);
@include fluent-dark-theme($dark-fluent-excel-palette);
@include typography(
$font-family: $fluent-typeface,
$type-scale: $fluent-type-scale
);
@include theme(
$schema: $dark-fluent-schema,
$palette: $dark-fluent-excel-palette,
);
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
@use '../../themes' as *;

@include core();
@include typography($font-family: $fluent-typeface, $type-scale: $fluent-type-scale);
@include fluent-dark-theme($dark-fluent-word-palette);
@include typography(
$font-family: $fluent-typeface,
$type-scale: $fluent-type-scale
);
@include theme(
$schema: $dark-fluent-schema,
$palette: $dark-fluent-word-palette,
);
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
@use '../../themes' as *;

@include core();
@include typography($font-family: $fluent-typeface, $type-scale: $fluent-type-scale);
@include fluent-dark-theme($dark-fluent-palette);
@include typography(
$font-family: $fluent-typeface,
$type-scale: $fluent-type-scale
);
@include theme(
$schema: $dark-fluent-schema,
$palette: $dark-fluent-palette,
);
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
@use '../../themes' as *;

@include core();
@include typography($font-family: $fluent-typeface, $type-scale: $fluent-type-scale);
@include fluent-light-theme($light-fluent-excel-palette);
@include typography(
$font-family: $fluent-typeface,
$type-scale: $fluent-type-scale
);
@include theme(
$schema: $light-fluent-schema,
$palette: $light-fluent-excel-palette,
);
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
@use '../../themes' as *;

@include core();
@include typography($font-family: $fluent-typeface, $type-scale: $fluent-type-scale);
@include fluent-light-theme($light-fluent-word-palette);
@include typography(
$font-family: $fluent-typeface,
$type-scale: $fluent-type-scale
);
@include theme(
$schema: $light-fluent-schema,
$palette: $light-fluent-word-palette,
);
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
@use '../../themes' as *;

@include core();
@include typography($font-family: $fluent-typeface, $type-scale: $fluent-type-scale);
@include fluent-light-theme($light-fluent-palette);
@include typography(
$font-family: $fluent-typeface,
$type-scale: $fluent-type-scale
);
@include theme(
$schema: $light-fluent-schema,
$palette: $light-fluent-palette,
);
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
@use '../../themes' as *;

@include core();
@include typography($font-family: $indigo-typeface, $type-scale: $indigo-type-scale);
@include indigo-dark-theme($dark-indigo-palette);
@include typography(
$font-family: $indigo-typeface,
$type-scale: $indigo-type-scale
);
@include theme(
$schema: $dark-indigo-schema,
$palette: $dark-indigo-palette,
);
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
@use '../../themes' as *;

@include core();
@include typography($font-family: $indigo-typeface, $type-scale: $indigo-type-scale);
@include indigo-light-theme($light-indigo-palette);
@include typography(
$font-family: $indigo-typeface,
$type-scale: $indigo-type-scale
);
@include theme(
$schema: $light-indigo-schema,
$palette: $light-indigo-palette,
);

0 comments on commit e372a9e

Please sign in to comment.