Skip to content

Commit

Permalink
feat: Dark theme colors
Browse files Browse the repository at this point in the history
  • Loading branch information
meta-d committed Feb 7, 2024
1 parent 712e45a commit d676b73
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ $prefix: (ngm, model);
@function get-unthemable-tokens() {
@return (
border-color: theme('colors.gray.200'),
// container-elevation-shadow: mdc-elevation.elevation-box-shadow(8),
);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
:host {
@apply relative h-full flex-1 flex flex-col;

// --mat-sidenav-content-background-color: theme(colors.white);

&.pac-fullscreen {
position: fixed;
top: 0px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@
</div>
</div>

<div *ngIf="showDetails === 'newPages'" @inOut class="relative w-96 h-full bg-white flex flex-col text-slate-800 p-2 overflow-auto" >
<div *ngIf="showDetails === 'newPages'" @inOut class="pac-story-bar__detail-card relative w-96 h-full flex flex-col p-2 overflow-auto" >

<button mat-icon-button style="position: absolute;" class="absolute right-1 top-1" (click)="showDetails=null">
<mat-icon>close</mat-icon>
Expand All @@ -274,7 +274,7 @@
</div>
</div>

<div *ngIf="showDetails === 'widgets'" @inOut class="w-80 h-full bg-white flex flex-col text-slate-800 p-2 overflow-auto">
<div *ngIf="showDetails === 'widgets'" @inOut class="pac-story-bar__detail-card w-80 h-full flex flex-col p-2 overflow-auto">
<div class="text-base text-center my-4">
{{ 'Story.Toolbar.Charts' | translate: {Default: "Charts"} }}
</div>
Expand Down Expand Up @@ -350,9 +350,9 @@
</div>
</div>

<pac-story-designer *ngIf="showDetails === 'storyDesigner'" @inOut class="w-96 h-full bg-white text-slate-800"></pac-story-designer>
<pac-story-designer *ngIf="showDetails === 'storyDesigner'" @inOut class="pac-story-bar__detail-card w-96 h-full"></pac-story-designer>

<div *ngIf="showDetails === 'devices'" @inOut class="w-80 h-full bg-white flex flex-col text-slate-800 p-2 overflow-auto">
<div *ngIf="showDetails === 'devices'" @inOut class="pac-story-bar__detail-card w-80 h-full flex flex-col p-2 overflow-auto">

<div class="text-base text-center my-2">
{{ 'Story.Toolbar.Devices' | translate: {Default: 'Devices'} }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
&.pac-toolbar__on-right {
@apply flex-row-reverse;
}
}

.pac-story-bar__detail-card {
background-color: var(--mdc-elevated-card-container-color);
}

.mat-divider {
Expand All @@ -27,4 +30,5 @@

.pac-copilot-chat {
--pac-copilot-bg-color: transparent;
}
}

4 changes: 2 additions & 2 deletions apps/cloud/src/styles/dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ body.dark {

@include token-utils.create-token-values(ngm, (
bg-color: rgb(10 10 10),
card-bg-color: theme('colors.bluegray.800'),
card-border-color: theme('colors.bluegray.700'),
card-bg-color: rgb(22, 24, 28),
card-border-color: theme('colors.neutral.800'),
primary-color: theme('colors.bluegray.500'),
text-primary-color: theme('colors.bluegray.200'),
scrollbar-color: theme('colors.neutral.900'),
Expand Down
4 changes: 2 additions & 2 deletions libs/material-theme/src/styles/material/_dark.theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ $background: (
app-bar: theme('colors.neutral.900'),
background: black,
hover: rgba(white, 0.1), // TODO(kara): check style with Material Design UX
card: rgb(22, 24, 28), // rgb(23, 23, 23), // theme('colors.neutral.900'), //#192038, //#222b45,
dialog: theme('colors.neutral.900'),
card: rgb(22, 24, 28),
dialog: rgb(22, 24, 28),
disabled-button: rgba(white, 0.12),
raised-button: map.get($grey-palette, 800),
// focused-button: $light-focused,
Expand Down

0 comments on commit d676b73

Please sign in to comment.