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

chore: font organization #523

Merged
merged 7 commits into from
Jul 30, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion apps/vue-storybook/.storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import vClickOutside from 'click-outside-vue3'
import VueCompareImage from 'vue3-compare-image'
import { createPinia } from 'pinia'
import filters from '@explorer-1/vue/src/utils/filters'
import '@explorer-1/common/src/scss/styles.scss'
import '@explorer-1/common/src/scss/styles-with-fonts.scss'
import { withGlobals, globalTypes } from './withGlobals'
import customTheme from '@explorer-1/common-storybook/src/config/customTheme'
import '@explorer-1/common-storybook/src/config/canvas.css'
Expand Down
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@explorer-1/common",
"version": "1.0.5",
Scotchester marked this conversation as resolved.
Show resolved Hide resolved
"version": "1.0.6",
"private": false,
"publishConfig": {
"access": "public"
Expand Down
12 changes: 4 additions & 8 deletions packages/common/src/scss/_fonts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@
font-weight: 600;
font-style: italic;
font-display: swap;
src: url('../fonts/metropolis/Metropolis-SemiBoldItalic.woff2')
format('woff2');
src: url('../fonts/metropolis/Metropolis-SemiBoldItalic.woff2') format('woff2');
}

@font-face {
Expand Down Expand Up @@ -84,24 +83,21 @@
font-weight: 700;
font-style: italic;
font-display: swap;
src: url('../fonts/archivo-narrow/ArchivoNarrow-BoldItalic.woff2')
format('woff2');
src: url('../fonts/archivo-narrow/ArchivoNarrow-BoldItalic.woff2') format('woff2');
}

@font-face {
font-family: 'Archivo Narrow';
font-weight: 600;
font-style: normal;
font-display: swap;
src: url('../fonts/archivo-narrow/ArchivoNarrow-SemiBold.woff2')
format('woff2');
src: url('../fonts/archivo-narrow/ArchivoNarrow-SemiBold.woff2') format('woff2');
}

@font-face {
font-family: 'Archivo Narrow';
font-weight: 600;
font-style: italic;
font-display: swap;
src: url('../fonts/archivo-narrow/ArchivoNarrow-SemiBoldItalic.woff2')
format('woff2');
src: url('../fonts/archivo-narrow/ArchivoNarrow-SemiBoldItalic.woff2') format('woff2');
}
2 changes: 0 additions & 2 deletions packages/common/src/scss/_typography.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
@use 'sass:math';
@tailwind base;
@tailwind utilities;
Scotchester marked this conversation as resolved.
Show resolved Hide resolved

// Conversion util for easier definition of font sizes by pixel size
@function pxToRem($pxValue) {
Expand Down
2 changes: 2 additions & 0 deletions packages/common/src/scss/styles-with-fonts.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@import 'styles.scss';
@import 'fonts';
1 change: 0 additions & 1 deletion packages/common/src/scss/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

// main elements
@import 'forms';
@import 'fonts';
@import 'aspect-ratios';
@import 'grid';
@import 'typography';
Expand Down
2 changes: 1 addition & 1 deletion packages/html/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import initBlockAccordion from './assets/js/components/_BlockAccordion.js'
import initBackToTop from './assets/js/components/_BackToTop.js'
import initHeaderInternal from './assets/js/components/_HeaderInternal.js'
import initHeroMedia from './assets/js/components/_HeroMedia.js'
import './assets/scss/styles.scss'
import './assets/scss/styles-with-fonts.scss'

initBackToTop()
initBlockAccordion()
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@explorer-1/vue",
"version": "0.1.9",
"version": "0.1.10",
"private": false,
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import filters from './utils/filters'
// @ts-ignore
import vClickOutside from 'click-outside-vue3'
import VueCompareImage from 'vue3-compare-image'
import './assets/scss/styles.scss'
import './assets/scss/styles-with-fonts.scss'
import App from './App.vue'

const pinia = createPinia()
Expand Down
Loading