@squidit/vue-css
v1.7.11
Published
Vue CSS is an abstraction in Vue3 of the Squid CSS framework
Downloads
12
Readme
Welcome to Squid Design System
⚡ Get the experience by browsing one of our platforms!
This framework provides low level utilities and UI components for building custom experiences.
Style
Our Design System can be seen here
Components
UI Components are currently offered as Vue3 (Web) components.
Installation
- Node version >= 18
- To use this library in your Vue3 project, you can install it via npm or yarn:
npm install @squidit/css @squidit/vue-css
# or
yarn add @squidit/css @squidit/vue-css
- Import CSS into your global style (
style.scss
):
$fontsFolderPath: '~@squidit/css/dist/fonts'; /* Overwrite default font path */
@import '~@squidit/css/src/scss/squid.scss'; /* Import all Framework Styles */
- Use
VueCssPlugin
into yourmain.ts
:
import App from './App.vue'
import { createApp } from 'vue'
import VueCssPlugin from '@squidit/vue-css'
import './style.scss'
createApp(App).use(VueCssPlugin).mount('#app')
vue-css
includes i18n in its own structure, if you want to use it, just pass the messages in the plugin options:
const getProjectMessages = () => ({
en: {test: 'Test'},
es: {test: 'Prueba'},
pt: {test: 'Teste'},
de: {test: 'prüfen'},
})
app.use(VueCssPlugin, { messages: getProjectMessages() })
- To control the language used:
<script setup lang="ts">
import { t, changeLocale } from '@squidit/vue-css'
changeLocale('pt')
const test = t('test')
</script>
<template>
{{ test }}
{{ t('test') }}
</template>
<style scoped></style>
How to Use
After installation, you can import and use the components as needed in your Vue3 components:
<script setup lang="ts">
import { SqLoader } from '@squidit/vue-css'
</script>
<template>
<SqLoader />
</template>
<style scoped></style>
Customization
This library allows high flexibility and customization of the components. You can modify the default styles of the components using specific props or by overriding the styles via CSS.
License
This project is licensed under the MIT License.