Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: color palette #60

Closed
wants to merge 1 commit into from
Closed
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
26 changes: 17 additions & 9 deletions src/components/tokens/Colors.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,22 @@ import { Meta, ColorPalette, ColorItem } from '@storybook/blocks';

<Meta title="Colors" />



<ColorPalette>
<ColorItem title="--surface" subtitle="Used for the background of the pages" colors={{ Light: '#E9EBEF', Dark: '#1F2433' }} />
<ColorItem title="--primary" subtitle="Used as the primary color" colors={{ Light: '#D2D7E5', Dark: '#253151' }} />
<ColorItem title="--accent" subtitle="Used for the accent color" colors={{ Light: '#223360', Dark: '#DFDDD7' }} />
<ColorItem title="--on-accent" subtitle="Used for the text over the accent color" colors={{ Light: '#DFDDD7', Dark: '#223360' }} />
<ColorItem title="--on" subtitle="Used for the text main color" colors={{ Light: '#2D2D2D', Dark: '#F7FAFF' }} />
<ColorItem title="--on-alt" subtitle="Used for textes alternative colors" colors={{ Light: '#5D5D65', Dark: '#C0C0CA' }} />
<ColorItem title="--success" subtitle="" colors={{ Light: '#279B48', Dark: '#4ECB71' }} />
<ColorItem title="--warning" subtitle="" colors={{ Light: '#E58600', Dark: '#FF9601' }} />
<ColorItem title="--error" subtitle="" colors={{ Light: '#EE342B', Dark: '#FF443B' }} />
<ColorItem title="--surface" subtitle="Used for the background of the pages" colors={{ Light: '#e9ebef', Dark: '#253151' }} />
<ColorItem title="--primary" subtitle="Used as the primary color" colors={{ Light: '#d2d7e5', Dark: '#36415c' }} />
<ColorItem title="--accent" subtitle="Used for the accent color" colors={{ Light: '#223360', Dark: '#dfddd7' }} />
<ColorItem title="--on-accent" subtitle="Used for the text over the accent color" colors={{ Light: '#dfddd7', Dark: '#36415c' }} />
<ColorItem title="--on" subtitle="Used for the text main color" colors={{ Light: '#2d2d2d', Dark: '#f7faff' }} />
<ColorItem title="--on-alt" subtitle="Used for textes alternative colors" colors={{ Light: '#5d5d65', Dark: '#c0c0ca' }} />
<ColorItem title="--success" subtitle="" colors={{ Light: '#279b48', Dark: '#4ecb71' }} />
<ColorItem title="--warning" subtitle="" colors={{ Light: '#e58600', Dark: '#ff9601' }} />
<ColorItem title="--error" subtitle="" colors={{ Light: '#ee342b', Dark: '#ff6681' }} />
<ColorItem title="--highlight" subtitle="" colors={{ Light: '#c9cedc', Dark: '#54607f' }} />
<ColorItem title="--statusbar" subtitle="" colors={{ Light: '#000000', Dark: '#ffffff' }} />
<ColorItem title="--stroke" subtitle="" colors={{ Light: '#afafaf', Dark: '#444e69' }} />
<ColorItem title="--accent-tr1" subtitle="" colors={{ Light: '#2233604c', Dark: '#b6b5b24c' }} />
<ColorItem title="--primary-text" subtitle="" colors={{ Light: '#2d2d2d', Dark: '#f7faff' }} />
<ColorItem title="--secondary-text" subtitle="" colors={{ Light: '#5d5d65', Dark: '#c0c0ca' }} />
</ColorPalette>
40 changes: 26 additions & 14 deletions src/global/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,42 +17,54 @@
:root {
--surface: #e9ebef;
--primary: #d2d7e5;
--primary-text: #2d2d2d;
--secondary-text: #5d5d65;
--accent: #223360;
--on-accent: #dfddd7;
Comment on lines 19 to 23
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

non sono d'accordo

--on: #2d2d2d;
--on-alt: #5d5d65;
--success: #279b48;
--highlight: #c9cedc;
--warning: #e58600;
--error: #ee342b;
--statusbar: #000000;
--stroke: #afafaf;
--accent-tr1: #2233604c;
--sans-font-family: 'Gantari Variable', 'sans-serif';
--icon-font-family: 'Material Symbols Rounded';
--background-card-url: url('/dist/didroom-components/assets/rect.png');
}

.dark {
--surface: #1f2433;
--primary: #253151;
--surface: #253151;
--primary: #36415c;
--primary-text: #f7faff;
--secondary-text: #c0c0ca;
--accent: #dfddd7;
--on-accent: #223360;
--on: #f7faff;
--on-alt: #c0c0ca;
--on-accent: #36415c;
--success: #4ecb71;
--highlight: #54607f;
--warning: #ff9601;
--error: #ff443b;
--error: #ff6681;
--statusbar: #ffffff;
--stroke: #444e69;
--accent-tr1: #b6b5b24c;
--background-card-url: url('/dist/didroom-components/assets/rect-dark.png');
}

@media (prefers-color-scheme: dark) {
:root {
--surface: #1f2433;
--primary: #253151;
--surface: #253151;
--primary: #36415c;
--primary-text: #f7faff;
--secondary-text: #c0c0ca;
--accent: #dfddd7;
--on-accent: #223360;
--on: #f7faff;
--on-alt: #c0c0ca;
--on-accent: #36415c;
--success: #4ecb71;
--highlight: #54607f;
--warning: #ff9601;
--error: #ff443b;
--error: #ff6681;
--statusbar: #ffffff;
--stroke: #444e69;
--accent-tr1: #b6b5b24c;
--background-card-url: url('/dist/didroom-components/assets/rect-dark.png');
}
}
Expand Down
Loading