0.0.1 • Published 8 months ago

actify-vue v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

🚀 Introduction

Actify is a React Components Library based on Material Design 3 Web Components. Inspired by Vuetify. Some features:

  • Vite: Use Vite to build libs and docs.
  • Icon: Icon are based on lucide-icon.
  • Tailwind CSS: Build with Tailwind CSS.
  • Tailwind Variants: For variants and smart className merge.
  • Floating UI: The future of Popper to deal with smart anchor positioning.
  • Framer Motion: It powers the amazing animations and interactions in Framer, the web builder for creative pros. Zero code, maximum speed.
  • Theme System: A powerful color system that makes it easy to style your application with a consistent color palette.

🌻 Get Started

# with npm
npm install actify

# with yarn
yarn add actify

⚙️ Set tailwind.config.js

/** @type {import('tailwindcss').Config} */
module.exports = {
  content: ['./node_modules/actify/lib/*.{js,mjs}'],
  theme: {
    extend: {
      colors: {
        primary: 'rgb(var(--color-primary, 0 106 106) / <alpha-value>)',
        'on-primary':
          'rgb(var(--color-on-primary, 255 255 255) / <alpha-value>)',
        secondary: 'rgb(var(--color-secondary, 74 99 99) / <alpha-value>)',
        'on-secondary':
          'rgb(var(--color-on-secondary, 255 255 255) / <alpha-value>)',
        tertiary: 'rgb(var(--color-tertiary, 75 96 124) / <alpha-value>)',
        'on-tertiary':
          'rgb(var(--color-on-tertiary, 255 255 255) / <alpha-value>)',
        error: 'rgb(var(--color-error, 186 26 26) / <alpha-value>)',
        'on-error': 'rgb(var(--color-on-error, 255 255 255) / <alpha-value>)',
        surface: 'rgb(var(--color-surface, 250 253 252) / <alpha-value>)',
        'on-surface': 'rgb(var(--color-on-surface, 25 28 28) / <alpha-value>)',
        outline: 'rgb(var(--color-outline, 111 121 121) / <alpha-value>)'
      }
    }
  },
  plugins: []
}

🎨 Config color theme (optional)

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    --color-primary: 0 106 106;
    --color-on-primary: 255 255 255;
    /* ... */
  }
}

🎉 Example

import { Button } from 'actify-vue'

export default () => {
  return <Button>Hello Actify</Button>
}