forked from stitchesjs/stitches
-
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.
Fix issue typing import and font-face rules (stitchesjs#809)
- Loading branch information
1 parent
bfe80ee
commit c8615f7
Showing
4 changed files
with
188 additions
and
30 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
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 |
---|---|---|
@@ -0,0 +1,79 @@ | ||
import { globalCss } from '@stitches/core' | ||
|
||
void globalCss({ | ||
"@font-face": { | ||
fontFamily: "Roboto", | ||
fontStyle: "normal", | ||
fontWeight: "100", | ||
src: "url('/Roboto-Thin.ttf') format('truetype')" | ||
}, | ||
body: { | ||
color: 'ActiveText', | ||
}, | ||
}) | ||
|
||
void globalCss({ | ||
"@font-face": [ | ||
{ | ||
fontFamily: "Roboto", | ||
fontStyle: "normal", | ||
fontWeight: "100", | ||
src: "url('/Roboto-Thin.ttf') format('truetype')", | ||
}, | ||
], | ||
body: { | ||
color: 'ActiveText', | ||
}, | ||
}) | ||
|
||
void globalCss({ | ||
"@font-face": { | ||
fontFamily: "Roboto", | ||
fontStyle: "normal", | ||
fontWeight: "100", | ||
src: "url('/Roboto-Thin.ttf') format('truetype')", | ||
}, | ||
body: { | ||
color: 'ActiveText', | ||
}, | ||
}, { | ||
"@font-face": [ | ||
{ | ||
fontFamily: "Roboto", | ||
fontStyle: "normal", | ||
fontWeight: "100", | ||
src: "url('/Roboto-Thin.ttf') format('truetype')", | ||
}, | ||
{ | ||
fontFamily: "Roboto", | ||
fontStyle: "normal", | ||
fontWeight: "400", | ||
src: "url('/Roboto-Regular.ttf') format('truetype')", | ||
}, | ||
], | ||
body: { | ||
color: 'ActiveText', | ||
}, | ||
}) | ||
|
||
void globalCss({ | ||
"@import": "some.css", | ||
body: { | ||
color: 'ActiveText', | ||
}, | ||
}) | ||
|
||
void globalCss({ | ||
"@import": "some.css", | ||
body: { | ||
color: 'ActiveText', | ||
}, | ||
}, { | ||
"@import": [ | ||
"some.css", | ||
"someother.css", | ||
], | ||
body: { | ||
color: 'ActiveText', | ||
}, | ||
}) |
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 |
---|---|---|
@@ -0,0 +1,79 @@ | ||
import { globalCss } from '@stitches/react' | ||
|
||
void globalCss({ | ||
"@font-face": { | ||
fontFamily: "Roboto", | ||
fontStyle: "normal", | ||
fontWeight: "100", | ||
src: "url('/Roboto-Thin.ttf') format('truetype')" | ||
}, | ||
body: { | ||
color: 'ActiveText', | ||
}, | ||
}) | ||
|
||
void globalCss({ | ||
"@font-face": [ | ||
{ | ||
fontFamily: "Roboto", | ||
fontStyle: "normal", | ||
fontWeight: "100", | ||
src: "url('/Roboto-Thin.ttf') format('truetype')", | ||
}, | ||
], | ||
body: { | ||
color: 'ActiveText', | ||
}, | ||
}) | ||
|
||
void globalCss({ | ||
"@font-face": { | ||
fontFamily: "Roboto", | ||
fontStyle: "normal", | ||
fontWeight: "100", | ||
src: "url('/Roboto-Thin.ttf') format('truetype')", | ||
}, | ||
body: { | ||
color: 'ActiveText', | ||
}, | ||
}, { | ||
"@font-face": [ | ||
{ | ||
fontFamily: "Roboto", | ||
fontStyle: "normal", | ||
fontWeight: "100", | ||
src: "url('/Roboto-Thin.ttf') format('truetype')", | ||
}, | ||
{ | ||
fontFamily: "Roboto", | ||
fontStyle: "normal", | ||
fontWeight: "400", | ||
src: "url('/Roboto-Regular.ttf') format('truetype')", | ||
}, | ||
], | ||
body: { | ||
color: 'ActiveText', | ||
}, | ||
}) | ||
|
||
void globalCss({ | ||
"@import": "some.css", | ||
body: { | ||
color: 'ActiveText', | ||
}, | ||
}) | ||
|
||
void globalCss({ | ||
"@import": "some.css", | ||
body: { | ||
color: 'ActiveText', | ||
}, | ||
}, { | ||
"@import": [ | ||
"some.css", | ||
"someother.css", | ||
], | ||
body: { | ||
color: 'ActiveText', | ||
}, | ||
}) |