Skip to content

Commit

Permalink
refactor(WhitebirdUi): separate fonts from index.css
Browse files Browse the repository at this point in the history
  • Loading branch information
arthur-fontaine committed Nov 11, 2023
1 parent 94edb5a commit 160c306
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
1 change: 1 addition & 0 deletions apps/whitebird-ui/.storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script type="module">
import '../src/index.css'
import '../src/fonts.css'
import { token } from '../styled-system/tokens'

document.head.insertAdjacentHTML(
Expand Down
10 changes: 8 additions & 2 deletions apps/whitebird-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,17 @@
"./vue/*": "./dist/vue/*.vue",
"./vue/*.vue": "./dist/vue/*.vue",
"./react/*": "./dist/react/*",
"./react/*.tsx": "./dist/react/*.tsx"
"./react/*.tsx": "./dist/react/*.tsx",
"./css": "./dist/whitebird.css",
"./css/whitebird": "./dist/whitebird.css",
"./css/whitebird.css": "./dist/whitebird.css",
"./css/fonts": "./src/fonts.css",
"./css/fonts.css": "./src/fonts.css"
},
"files": [
"dist",
"src/panda/whitebird-preset.ts"
"src/panda/whitebird-preset.ts",
"src/fonts.css"
],
"scripts": {
"prepare": "panda codegen",
Expand Down
1 change: 0 additions & 1 deletion apps/whitebird-ui/panda.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export default defineConfig({
// Whether to use css reset
preflight: true,

// /src/components/**/*.tsx
include: [
'./src/components/**/*.{js,jsx,ts,tsx,kaz}',
'./src/stories/**/*.{js,jsx,ts,tsx,kaz}',
Expand Down
3 changes: 3 additions & 0 deletions apps/whitebird-ui/src/fonts.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk&family=Space+Mono&display=swap');
@import url('https://fontlibrary.org//face/terminal-grotesque');
@import url('https://cdn.jsdelivr.net/npm/remixicon@latest/fonts/remixicon.css');
4 changes: 0 additions & 4 deletions apps/whitebird-ui/src/index.css
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk&family=Space+Mono&display=swap');
@import url('https://fontlibrary.org//face/terminal-grotesque');
@import url('https://cdn.jsdelivr.net/npm/remixicon@latest/fonts/remixicon.css');

@layer reset, base, tokens, recipes, utilities;

0 comments on commit 160c306

Please sign in to comment.