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

adding chartColors to theme #1158

Merged
merged 1 commit into from
Nov 2, 2023
Merged
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
5 changes: 5 additions & 0 deletions .changeset/chartColors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'react-magma-dom': patch
---

Adding in chartColors to theme.
41 changes: 37 additions & 4 deletions packages/react-magma-dom/src/theme/magma.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export interface Colors {

focus: string;
focusInverse: string;

border: string;
borderInverse: string;
}
Expand Down Expand Up @@ -291,6 +291,8 @@ export interface ThemeInterface {
headingFont: string;
iconSizes: IconSizes;
iterableColors: string[];
chartColors?: string[];
chartColorsInverse?: string[];
spacingMultiplier: number;
spaceScale: SpacingScale;
headingExpressiveFont: string;
Expand Down Expand Up @@ -369,7 +371,7 @@ const typeScale = {
size15: {
fontSize: '72px',
lineHeight: '84px',
}
},
};

const primaryColors = {
Expand Down Expand Up @@ -522,7 +524,8 @@ export const magma = {

// Typography
typeScale: typeScale,
typographyVisualStyles: { // Productive
typographyVisualStyles: {
// Productive
headingXLarge: {
mobile: typeScale.size07,
desktop: typeScale.size09,
Expand Down Expand Up @@ -572,7 +575,7 @@ export const magma = {
},
typographyExpressiveVisualStyles: {
heading2XLarge: {
mobile: typeScale.size13,
mobile: typeScale.size13,
desktop: typeScale.size15,
fontWeight: 600,
},
Expand Down Expand Up @@ -756,6 +759,36 @@ export const magma = {
'#005249',
],

chartColors: [
'#009AF3',
'#E0004D',
'#1EA746',
'#FA6600',
'#B12FAD',
'#00A393',
'#005F96',
'#8F0033',
'#136A2D',
'#B84900',
'#711E6E',
'#005249',
],

chartColorsInverse: [
'#1FB0FF',
'#FF337A',
'#65E000',
'#FF9147',
'#D45ED0',
'#00E0CA',
'#85D4FF',
'#FF99BD',
'#FFB685',
'#C7FF99',
'#E9AFE7',
'#99FFF5',
],

tabs: {
approxTabSize: {
horizontal: 120,
Expand Down
Loading