@skewedaspect/sleekspace-ui
v0.7.1
Published
A Vue 3 component library with a cyberpunk aesthetic, featuring OKLCH colors, beveled corners, and a powerful design token system
Maintainers
Readme
SleekSpace UI
A Vue 3 component library with a cyberpunk aesthetic, featuring OKLCH colors, beveled corners, and a powerful design token system.
Features
- Modern Vue 3 - Built with Composition API and full TypeScript support
- OKLCH Color Space - Perceptually uniform colors with runtime theming
- Design Token System - Three-tier hierarchy (Foundation → Semantic → Component)
- Beveled Corners - Native
corner-shape: bevelwith fallbacks - Tailwind CSS v4 - Seamless integration via
@themesystem - Custom Colors - Per-component color overrides
- IDE Support - Auto-generated types for Volar and WebStorm
Installation
npm install @skewedaspect/sleekspace-uiQuick Start
As a Plugin
import { createApp } from 'vue'
import SleekSpaceUI from '@skewedaspect/sleekspace-ui'
import '@skewedaspect/sleekspace-ui/style'
const app = createApp(App)
app.use(SleekSpaceUI)
app.mount('#app')Individual Components
<script setup>
import { SkButton, SkPanel } from '@skewedaspect/sleekspace-ui'
import '@skewedaspect/sleekspace-ui/style'
</script>
<template>
<SkPanel kind="primary" size="lg">
<SkButton kind="accent" variant="solid">
Click Me
</SkButton>
</SkPanel>
</template>Documentation
- Getting Started - Installation and basic usage
- TypeScript Setup - IDE configuration and type support
- Theming - Runtime themes and custom colors
- Tailwind Integration - Using tokens with Tailwind CSS v4
- Design Tokens - Token system architecture
- Components - Component reference
- Development - Contributing and testing
Component Kinds
Components support semantic color kinds for consistent theming:
<SkButton kind="primary">Primary Action</SkButton>
<SkButton kind="danger">Delete</SkButton>
<SkAlert kind="success">Operation successful!</SkAlert>
<SkPanel kind="info">Information panel</SkPanel>Available kinds: neutral, primary, accent, info, success, warning, danger
Custom Colors
Override component colors on a per-instance basis:
<SkButton
base-color="oklch(0.7 0.25 300)"
text-color="white"
>
Custom Purple Button
</SkButton>Development
npm install # Install dependencies
npm run dev # Start library watch + demo site
npm run build # Build everything
npm test # Run tests
npm run lint # Lint all workspacesThe demo site runs at http://localhost:3030 and provides live preview of all components with hot reload. This is the recommended way to develop and test components.
See Development Guide for detailed information.
Project Structure
This is a monorepo using npm workspaces:
packages/sleekspace-ui- Component librarypackages/docs-site- Demo and documentation site
License
MIT © Christopher S. Case
