
Product
Reachability for Ruby Now in Beta
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.
@davincihealthcare/elty-design-system-vue
Advanced tools
This collection of reusable Vue components is designed to help you easily integrate and maintain a consistent design system across your company's projects. Whether you're building a new application or updating an existing one, these components are ready t
This collection of reusable Vue components is designed to help you easily integrate and maintain a consistent design system across your company's projects. Whether you're building a new application or updating an existing one, these components are ready to be used and customized to match your brand guidelines.
The library is available in two major versions:
To get started with using these components in your Vue project, follow these simple steps
First install Tailwindcss following the steps at https://tailwindcss.com/docs/installation/framework-guides
Then install required plugins and the design system package itself:
# Version 1 (default)
yarn add @davincihealthcare/elty-design-system-vue
# Version 2 (contains breaking changes and better alignment with the design system)
yarn add @davincihealthcare/elty-design-system-vue@v2
Required peer dependencies:
yarn add -D tailwindcss postcss autoprefixer @tailwindcss/forms @tailwindcss/typography
in tailwind.config file
import {EltyTailwindPlugin, EltyTailwindPreset} from '@davincihealthcare/elty-design-system-vue'
module.exports = {
...
content: [..., './node_modules/@davincihealthcare/elty-design-system-vue/**/*.{tsx,js}'],
plugins: [
require('@tailwindcss/forms'),
require('@tailwindcss/typography'),
EltyTailwindPlugin
]
...
}
in tailwind.config file
import {EltyTailwindPluginWithoutStyle, EltyTailwindPreset} from '@davincihealthcare/elty-design-system-vue'
module.exports = {
...
content: [..., './node_modules/@davincihealthcare/elty-design-system-vue/**/*.{tsx,js}'],
presets: [EltyTailwindPreset],
plugins: [
require('@tailwindcss/forms'),
require('@tailwindcss/typography'),
EltyTailwindPluginWithoutStyle
]
...
}
The Preset way of loading the css was introduced from version 1.18.0
Note: content needs a new entry in the array, alongside other you may already have. You may also change the require with a neater
in main.ts file
import { createApp } from 'vue';
import { EltyVuePlugin } from '@davincihealthcare/elty-design-system-vue';
...
const app = createApp();
app.use(EltyVuePlugin);
...
remember to use the related vue plugin (it will install form validation rules)!
// Import the component you need
import { ElButton } from '@davincihealthcare/elty-design-system-vue';
Now, you can use the imported component in your templates:
<template>
<div>
<ElButton label="Click me" @click="onClick" />
</div>
</template>
<script lang="ts" setup>
import { ElButton } from '@davincihealthcare/elty-design-system-vue';
const onClick = () => {
window.alert('click');
};
</script>
As it has been set the following as peer dependencies
please check for compatibility issues if you experience something strange
This section handles the styling for your Vue component library, leveraging Tailwind CSS for efficiency. Here's a breakdown of the process:
Base Styles (src/style.css):
This file is where you define the foundational CSS styles that you want to use in conjunction with Tailwind. Focus on including essential styles that are unlikely to change frequently. This helps maintain a clean separation between your core design principles and the dynamic nature of Tailwind classes.
Tailwind Processing (yarn build):
Running yarn build triggers postcss, a CSS preprocessor. It scans src/style.css and replaces Tailwind directives (@apply, etc.) with actual CSS classes based on your Tailwind configuration. The processed output is saved as dist/style.css.
CJS Conversion (yarn build-prejss):
A separate script (potentially yarn build-prejss) is called during yarn build. It takes the processed CSS file (dist/style.css) and generates a CommonJS module (dist/style.cjs). This format is necessary because your src/tailwind.plugin.ts file will import it (explained below).
Tailwind Integration (src/tailwind.plugin.ts):
This file defines the Tailwind plugin used within your library. It imports the generated dist/style.cjs file. When you integrate your library into another project that has Tailwind installed, this import will work seamlessly because the library will include the compiled style.cjs file.
Key Points:
You don't need to worry about providing dist/style.cjs separately. It's included in the built library package. Your library's components can leverage Tailwind classes by referencing them directly.
Migration instructions are available in MIGRATION.md
FAQs
This collection of reusable Vue components is designed to help you easily integrate and maintain a consistent design system across your company's projects. Whether you're building a new application or updating an existing one, these components are ready t
We found that @davincihealthcare/elty-design-system-vue demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.

Research
/Security News
Malicious npm packages use Adspect cloaking and fake CAPTCHAs to fingerprint visitors and redirect victims to crypto-themed scam sites.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.