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

feat: added partners #308

Merged
merged 2 commits into from
Jul 11, 2022
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
142 changes: 142 additions & 0 deletions priv/static/themes/partners-dark.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@


@font-face {
font-family: Averta Std;
font-style: normal;
font-display: swap;
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
font-weight: 400;
src: local("AvertaStd-Regular"), local("Averta Std Regular"), url(https://sportsbet.io/sportsbet-io/files/fonts/averta-std/regular.woff2) format("woff2");
}

@font-face {
font-family: Averta Std;
font-style: normal;
font-display: swap;
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
font-weight: 500;
src: local("AvertaStd-Semibold"), local("Averta Std Semibold"), url(https://sportsbet.io/sportsbet-io/files/fonts/averta-std/semibold.woff2) format("woff2");
}

.partners-dark {

--base--space: 16px;
--base--font-size: 14;
--base--line-height: 20px;

--border-style: Solid;
--border-width: 1px;
--border: 1px solid;

--breakpoint--small: 500px;
--breakpoint--medium: 800px;
--breakpoint--large: 1080px;
--breakpoint--xlarge: 1200px;

--font-face--regular--font-family: Averta Std;
--font-face--regular--font-style: normal;
--font-face--regular--font-display: swap;
--font-face--regular--unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
--font-face--regular--font-weight: 400;
--font-face--regular--src: local("AvertaStd-Regular"), local("Averta Std Regular"), url(https://sportsbet.io/sportsbet-io/files/fonts/averta-std/regular.woff2) format("woff2");

--font-face--semibold--font-family: Averta Std;
--font-face--semibold--font-style: normal;
--font-face--semibold--font-display: swap;
--font-face--semibold--unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
--font-face--semibold--font-weight: 500;
--font-face--semibold--src: local("AvertaStd-Semibold"), local("Averta Std Semibold"), url(https://sportsbet.io/sportsbet-io/files/fonts/averta-std/semibold.woff2) format("woff2");

--font-family: Averta Std, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
--font-size: 1200px;
--font-weight--normal: 400;
--font-weight--semibold: 500;

--max-width--default: 1024;
--max-width--large: 1440;

--opacity--disabled: 0.35;

--radius--small: 0.25rem;
--radius--medium: 0.5rem;
--radius--large: 0.75rem;
--radius--xlarge: 1rem;
--radius--full: 9999px;
--radius--default: 0.5rem;

--space--xsmall: 4px;
--space--small: 8px;
--space--default: 16px;
--space--medium: 24px;
--space--large: 32px;
--space--xlarge: 40px;

--transition-duration--slow: Piccolo 100;
--transition-duration--default: 0;

--z-index--carousel-control: 5;
--z-index--dialog: 1000;
--z-index--toggle: 1;

space: var(--base--space);
font-size: var(--base--font-size);
line-height: var(--base--line-height);
color: var(--color--text);
background-color: var(--color--background);
font-family: var(--font-family);
font-weight: var(--font-face--regular--font-weight);

--color--text: var(--color--bulma-100);
--color--background: var(--color--goku-100);


--box-shadow--sm: undefined;
--box-shadow: undefined;
--box-shadow--md: undefined;
--box-shadow--default: undefined;
--box-shadow--lg: undefined;
--box-shadow--xl: undefined;


--color--krillin-100: #F5A300;
--color--krillin-60: #undefined;
--color--krillin-10: #FDF5E2;
--color--chi-chi-100: #FF1F39;
--color--chi-chi-60: #undefined;
--color--chi-chi-10: #FFEBED;
--color--roshi-100: #0BC15A;
--color--roshi-60: #undefined;
--color--roshi-10: #DAFDE9;
--color--dodoria-100: #DC3618;
--color--dodoria-60: #undefined;
--color--dodoria-10: #FCE4E0;
--color--cell-100: #28697B;
--color--cell-60: #undefined;
--color--cell-10: #E0F0F5;
--color--raditz-100: #undefined;
--color--raditz-60: #undefined;
--color--raditz-10: #F3EBE2;
--color--whis-100: #0D53D3;
--color--whis-60: #undefined;
--color--whis-10: #E4ECF9;
--color--frieza-100: #5C33CF;
--color--frieza-60: #undefined;
--color--frieza-10: #b6a3e9;
--color--nappa-100: #A52755;
--color--nappa-60: #undefined;
--color--nappa-10: #F9E7EE;
--color--piccolo-120: #undefined;
--color--piccolo-100: #4E46B4;
--color--piccolo-80: #undefined;
--color--hit-120: #undefined;
--color--hit-100: #77777E;
--color--hit-80: #undefined;
--color--beerus-100: #E0E0E1;
--color--goku-120: #undefined;
--color--goku-100: #F5F5F6;
--color--gohan-120: #undefined;
--color--gohan-100: #FFFFFF;
--color--goten-100: #FFFFFF;
--color--bulma-100: #222225;
--color--trunks-100: #77777E;
}
143 changes: 143 additions & 0 deletions priv/static/themes/partners-light.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@


@font-face {
font-family: Averta Std;
font-style: normal;
font-display: swap;
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
font-weight: 400;
src: local("AvertaStd-Regular"), local("Averta Std Regular"), url(https://sportsbet.io/sportsbet-io/files/fonts/averta-std/regular.woff2) format("woff2");
}

@font-face {
font-family: Averta Std;
font-style: normal;
font-display: swap;
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
font-weight: 500;
src: local("AvertaStd-Semibold"), local("Averta Std Semibold"), url(https://sportsbet.io/sportsbet-io/files/fonts/averta-std/semibold.woff2) format("woff2");
}

.partners-light {

--base--space: 16px;
--base--font-size: 14;
--base--line-height: 20px;

--border-style: Solid;
--border-width: 1px;
--border: 1px solid;

--breakpoint--small: 500px;
--breakpoint--medium: 800px;
--breakpoint--large: 1080px;
--breakpoint--xlarge: 1200px;

--font-face--regular--font-family: Averta Std;
--font-face--regular--font-style: normal;
--font-face--regular--font-display: swap;
--font-face--regular--unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
--font-face--regular--font-weight: 400;
--font-face--regular--src: local("AvertaStd-Regular"), local("Averta Std Regular"), url(https://sportsbet.io/sportsbet-io/files/fonts/averta-std/regular.woff2) format("woff2");

--font-face--semibold--font-family: Averta Std;
--font-face--semibold--font-style: normal;
--font-face--semibold--font-display: swap;
--font-face--semibold--unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
--font-face--semibold--font-weight: 500;
--font-face--semibold--src: local("AvertaStd-Semibold"), local("Averta Std Semibold"), url(https://sportsbet.io/sportsbet-io/files/fonts/averta-std/semibold.woff2) format("woff2");

--font-family: Averta Std, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
--font-size: 1200px;
--font-weight--normal: 400;
--font-weight--semibold: 500;

--max-width--default: 1024;
--max-width--large: 1440;

--opacity--disabled: 0.35;

--radius--small: 0.25rem;
--radius--medium: 0.5rem;
--radius--large: 0.75rem;
--radius--xlarge: 1rem;
--radius--full: 9999px;
--radius--default: 0.5rem;

--space--xsmall: 4px;
--space--small: 8px;
--space--default: 16px;
--space--medium: 24px;
--space--large: 32px;
--space--xlarge: 40px;

--transition-duration--slow: Piccolo 100;
--transition-duration--default: 0;

--z-index--carousel-control: 5;
--z-index--dialog: 1000;
--z-index--toggle: 1;

space: var(--base--space);
font-size: var(--base--font-size);
line-height: var(--base--line-height);
color: var(--color--text);
background-color: var(--color--background);
font-family: var(--font-family);
font-weight: var(--font-face--regular--font-weight);

--color--text: var(--color--bulma-100);
--color--background: var(--color--goku-100);


--box-shadow--sm: X0 Y0 B1 S0 rgba(0, 0, 0, 0.4), X0 Y6 B6 S-6 rgba(0, 0, 0, 0.16);
--box-shadow: undefined;
--box-shadow--md: undefined;
--box-shadow--default: undefined;
--box-shadow--lg: X0 Y0 B1 S0 rgba(0, 0, 0, 0.4), X0 Y8 B24 S-6 rgba(0, 0, 0, 0.16);
--box-shadow--xl: X0 Y0 B1 S0 rgba(0, 0, 0, 0.2), X0 Y0 B32 S-8 rgba(0, 0, 0, 0.12),
X0 Y32 B32 S-8 rgba(0, 0, 0, 0.08);


--color--krillin-100: #F5A300;
--color--krillin-60: #undefined;
--color--krillin-10: #FDF5E2;
--color--chi-chi-100: #FF1F39;
--color--chi-chi-60: #undefined;
--color--chi-chi-10: #FFEBED;
--color--roshi-100: #0BC15A;
--color--roshi-60: #undefined;
--color--roshi-10: #DAFDE9;
--color--dodoria-100: #DC3618;
--color--dodoria-60: #undefined;
--color--dodoria-10: #FCE4E0;
--color--cell-100: #28697B;
--color--cell-60: #undefined;
--color--cell-10: #E0F0F5;
--color--raditz-100: #undefined;
--color--raditz-60: #undefined;
--color--raditz-10: #F3EBE2;
--color--whis-100: #0D53D3;
--color--whis-60: #undefined;
--color--whis-10: #E4ECF9;
--color--frieza-100: #5C33CF;
--color--frieza-60: #undefined;
--color--frieza-10: #b6a3e9;
--color--nappa-100: #A52755;
--color--nappa-60: #undefined;
--color--nappa-10: #F9E7EE;
--color--piccolo-120: #undefined;
--color--piccolo-100: #4E46B4;
--color--piccolo-80: #undefined;
--color--hit-120: #undefined;
--color--hit-100: #77777E;
--color--hit-80: #undefined;
--color--beerus-100: #E0E0E1;
--color--goku-120: #undefined;
--color--goku-100: #F5F5F6;
--color--gohan-120: #undefined;
--color--gohan-100: #FFFFFF;
--color--goten-100: #FFFFFF;
--color--bulma-100: #222225;
--color--trunks-100: #77777E;
}
20 changes: 12 additions & 8 deletions scripts/typescript/figma-importer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ const themes: ThemeConf[] = [
name: 'lab',
fileId: 'd5oitzaWXGiOuMjKDatC1W',
},
{
name: 'partners',
fileId: 'aMBmdNX4cfv885xchXHIHo'
}
];

const getFigmaObjTree = async (
Expand Down Expand Up @@ -274,11 +278,11 @@ ${fontFaceCss}
--box-shadow--xl: ${figmaConfig['light-box-shadow-xl']};

${colorIds
.map(
(x) => `
.map(
(x) => `
--color--${x}: #${`${figmaConfig[`light-color-${x}`]}`.replace("#", "")};`
)
.join('')}
)
.join('')}
}
`;

Expand All @@ -295,11 +299,11 @@ ${fontFaceCss}
--box-shadow--xl: ${figmaConfig['dark-box-shadow-xl']};

${colorIds
.map(
(x) => `
.map(
(x) => `
--color--${x}: #${`${figmaConfig[`dark-color-${x}`] || figmaConfig[`light-color-${x}`]}`.replace("#", "")};`
)
.join('')}
)
.join('')}
}
`;

Expand Down