forked from EightfoldAI/octuple
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: optimize build size (EightfoldAI#66)
- Loading branch information
1 parent
0204af4
commit d60be50
Showing
11 changed files
with
110 additions
and
347 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
import { addons } from '@storybook/addons'; | ||
import { themes } from '@storybook/theming'; | ||
import octupleTheme from './octupleTheme'; | ||
|
||
addons.setConfig({ | ||
theme: octupleTheme | ||
}); | ||
theme: octupleTheme, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,229 +1,7 @@ | ||
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro&display=swap" rel="stylesheet"> | ||
<link href="https://cdn.jsdelivr.net/npm/@mdi/font@6.5.95/css/materialdesignicons.min.css" rel="stylesheet"> | ||
|
||
<style> | ||
html, body { | ||
font-family: 'Source Sans Pro', sans-serif; | ||
font-size: 16px; | ||
} | ||
h2 { | ||
margin-block-start: 0; | ||
} | ||
|
||
.display1 { | ||
font-family: 'Source Sans Pro', sans-serif; | ||
font-weight: 300; | ||
font-size: 6rem; | ||
line-height: 7rem; | ||
letter-spacing: -0.03rem; | ||
} | ||
|
||
.display2 { | ||
font-family: 'Source Sans Pro', sans-serif; | ||
font-weight: 300; | ||
font-size: 5rem; | ||
line-height: 6rem; | ||
letter-spacing: -0.03rem; | ||
} | ||
|
||
.display3 { | ||
font-family: 'Source Sans Pro', sans-serif; | ||
font-weight: 400; | ||
font-size: 4rem; | ||
line-height: 4.5rem; | ||
letter-spacing: -0.02rem; | ||
} | ||
|
||
.display4 { | ||
font-family: 'Source Sans Pro', sans-serif; | ||
font-weight: 400; | ||
font-size: 3.5rem; | ||
line-height: 4rem; | ||
letter-spacing: -0.02rem; | ||
} | ||
|
||
.header1 { | ||
font-family: 'Source Sans Pro', sans-serif; | ||
font-weight: 600; | ||
font-size: 2.5rem; | ||
line-height: 3rem; | ||
letter-spacing: -0.02rem; | ||
} | ||
|
||
.header2 { | ||
font-family: 'Source Sans Pro', sans-serif; | ||
font-weight: 600; | ||
font-size: 2rem; | ||
line-height: 2.5rem; | ||
letter-spacing: -0.01rem; | ||
} | ||
|
||
.header3 { | ||
font-family: 'Source Sans Pro', sans-serif; | ||
font-weight: 600; | ||
font-size: 1.5rem; | ||
line-height: 2rem; | ||
} | ||
|
||
.header4 { | ||
font-family: 'Source Sans Pro', sans-serif; | ||
font-weight: 600; | ||
font-size: 1.25rem; | ||
line-height: 1.5rem; | ||
} | ||
|
||
.header5 { | ||
font-family: 'Source Sans Pro', sans-serif; | ||
font-weight: 600; | ||
font-size: 1rem; | ||
line-height: 1.25rem; | ||
} | ||
|
||
.header6 { | ||
font-family: 'Source Sans Pro', sans-serif; | ||
font-weight: 600; | ||
font-size: 0.875rem; | ||
line-height: 1.25rem; | ||
} | ||
|
||
.subtitle1 { | ||
font-family: 'Source Sans Pro', sans-serif; | ||
font-weight: 400; | ||
font-size: 2rem; | ||
line-height: 2.5rem; | ||
letter-spacing: -0.015rem; | ||
} | ||
|
||
.subtitle2 { | ||
font-family: 'Source Sans Pro', sans-serif; | ||
font-weight: 600; | ||
font-size: 1.5rem; | ||
line-height: 2rem; | ||
letter-spacing: -0.01rem; | ||
} | ||
|
||
.pre-display { | ||
font-family: 'Source Sans Pro', sans-serif; | ||
font-weight: 600; | ||
font-size: 1.25rem; | ||
line-height: 1.75rem; | ||
text-transform: uppercase; | ||
} | ||
|
||
.button1 { | ||
font-family: 'Source Sans Pro', sans-serif; | ||
font-weight: 600; | ||
font-size: 1.25rem; | ||
line-height: 1.5rem; | ||
} | ||
.button1.open-sans { | ||
font-family: 'Open Sans', sans-serif; | ||
} | ||
|
||
.button2 { | ||
font-family: 'Source Sans Pro', sans-serif; | ||
font-weight: 600; | ||
font-size: 1rem; | ||
line-height: 1.25rem; | ||
} | ||
.button2.open-sans { | ||
font-family: 'Open Sans', sans-serif; | ||
} | ||
|
||
.button3 { | ||
font-family: 'Source Sans Pro', sans-serif; | ||
font-weight: 600; | ||
font-size: 0.875rem; | ||
line-height: 1rem; | ||
} | ||
.button3.open-sans { | ||
font-family: 'Open Sans', sans-serif; | ||
} | ||
|
||
.body1 { | ||
font-family: 'Source Sans Pro', sans-serif; | ||
font-weight: 400; | ||
font-size: 1.125rem; | ||
line-height: 1.5rem; | ||
} | ||
.body1.semibold { | ||
font-weight: 600; | ||
} | ||
.body1.open-sans { | ||
font-family: 'Open Sans', sans-serif; | ||
} | ||
|
||
.body2 { | ||
font-family: 'Source Sans Pro', sans-serif; | ||
font-weight: 400; | ||
font-size: 1rem; | ||
line-height: 1.5rem; | ||
} | ||
.body2.semibold { | ||
font-weight: 600; | ||
} | ||
.body2.open-sans { | ||
font-family: 'Open Sans', sans-serif; | ||
} | ||
|
||
.body3 { | ||
font-family: 'Source Sans Pro', sans-serif; | ||
font-weight: 400; | ||
font-size: 0.875rem; | ||
line-height: 1.25rem; | ||
} | ||
.body3.semibold { | ||
font-family: 'Source Sans Pro', sans-serif; | ||
font-weight: 600; | ||
} | ||
.body3.open-sans { | ||
font-family: 'Open Sans', sans-serif; | ||
} | ||
|
||
.caption { | ||
font-family: 'Source Sans Pro', sans-serif; | ||
font-weight: 400; | ||
font-size: 0.75rem; | ||
line-height: 1rem; | ||
} | ||
|
||
.icon-material-l { | ||
font-family: 'Material Design Icons'; | ||
font-size: 1.5rem; | ||
} | ||
|
||
.icon-material-m { | ||
font-family: 'Material Design Icons'; | ||
font-size: 1.25rem; | ||
} | ||
|
||
.icon-material-s { | ||
font-family: 'Material Design Icons'; | ||
font-size: 1rem; | ||
} | ||
|
||
.icon-material-xs { | ||
font-family: 'Material Design Icons'; | ||
font-size: 0.875rem; | ||
} | ||
|
||
.octuple-menu .logo-text { | ||
font-size: 2.5rem; | ||
line-height: 3rem; | ||
font-weight: 700; | ||
font-family: 'Source Sans Pro', sans-serif; | ||
} | ||
|
||
input[type=text], input[type=search] { | ||
padding: 0.5rem; | ||
font-family: 'Source Sans Pro', sans-serif; | ||
font-size: 1rem; | ||
} | ||
|
||
.field-label .text-style { | ||
font-weight: 600; | ||
font-size: 1rem; | ||
line-height: 1.25rem; | ||
font-family: 'Source Sans Pro', sans-serif; | ||
} | ||
</style> | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
@import 'abstracts/variables'; | ||
@import 'abstracts/functions'; | ||
|
||
@import 'themes/definitions-light'; | ||
@import 'themes/default-theme'; | ||
|
||
@import 'base/typography'; | ||
@import 'base/css-reset'; | ||
|
||
@import 'abstracts/mixins'; | ||
|
||
:global { | ||
@import 'themes/default-theme'; | ||
@import 'base/typography'; | ||
@import 'base/css-reset'; | ||
} |
Oops, something went wrong.