Actify is a React Components Library based on Material Design 3 Web Components. Highly 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.
# with npm
npm install actify
# with yarn
yarn add actify
/** @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: []
}
- go to actify theme config page
- select your primary color
- copy the bottom live css code
- paste it to tailwind css main.css
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
:root {
--color-primary: 0 106 106;
--color-on-primary: 255 255 255;
/* ... */
}
}
import { Button } from 'actify'
export default () => {
return <Button>Hello Actify</Button>
}