@explorer-1/vue
v0.3.9
Published
[](https://npmjs.com/package/@explorer-1/vue)
Keywords
Readme
@explorer-1/vue
Prerequisites
- Recommended build tool: Vite
Getting Started
Install @explorer-1/vue and @explorer-1/common with npm or similar:
npm install --save @explorer-1/vue @explorer-1/commonInstall secondary dependencies:
- @tailwindcss/forms
- click-outside-vue3
- dayjs
- mitt
- swiper
- vue
- vue-bind-once
- vue3-compare-image
- vue3-observe-visibility
npm install --save @tailwindcss/forms click-outside-vue3 dayjs mitt swiper vue vue-bind-once vue3-compare-image vue3-observe-visibilityConfiguration (Vite)
View files in the @explorer-1/vue package for examples on how to configure your Vue app with Vite.
- vite.config.ts
- postcss.config.js
- tailwind.config.js
- index.html -- Vite entrypoint
- main.ts -- Vue app entrypoint
- App.vue
Preloading Fonts
In the example App.vue, @explorer-1/vue/src/assets/scss/styles-with-fonts.scss is the main SCSS include. However, if you need to preload your fonts separately, you can do so by including ./assets/scss/styles.scss instead (excludes font declarations). You can then preload fonts using a dedicated stylesheet:
- Replace
@explorer-1/vue/src/assets/scss/styles-with-fonts.scsswith@explorer-1/vue/src/assets/scss/styles.scss - Preload fonts with this dedicated stylesheet:
@explorer-1/common/dist/assets/css/font-face.css
Using Components
Available components and usage guidance is documented in our Storybook.
