image
Akan.js
English
Docs (V1)
image
Akan.js
You are viewing the Akan.js v1 docs.Go to the latest v2 docs
Docs (V1)
Released under the MIT License
Official Akan.js Consulting onAkansoft
Copyright © 2026 Akan.js All rights reserved.
System managed bybassman
Introduction
• Quick Start
• How it works
• Practice a Workflow
Tutorials
• Show Details
• Modifying Status
• Interact in Service
• Displaying with Slice
• UX with Pages
• Using Scalar
• Using Insight
• Relate Data
System Architecture
• Overview
• Backend System
• Frontend System
• Environment Variables
• Primitive Scalar Types
• Domain Based Modules
• CSS
Module Convention
• Overview
• model.constant.ts
• model.dictionary.ts
• model.document.ts
• model.service.ts
• model.signal.ts
• model.store.ts
• Model.Template.tsx
• Model.Unit.tsx
• Model.Util.tsx
• Model.View.tsx
• Model.Zone.tsx
Scalar Convention
• Overview
• scalar.constant.ts
• scalar.dictionary.ts
• scalar.document.ts
Introduction
• Quick Start
• How it works
• Practice a Workflow
Tutorials
• Show Details
• Modifying Status
• Interact in Service
• Displaying with Slice
• UX with Pages
• Using Scalar
• Using Insight
• Relate Data
System Architecture
• Overview
• Backend System
• Frontend System
• Environment Variables
• Primitive Scalar Types
• Domain Based Modules
• CSS
Module Convention
• Overview
• model.constant.ts
• model.dictionary.ts
• model.document.ts
• model.service.ts
• model.signal.ts
• model.store.ts
• Model.Template.tsx
• Model.Unit.tsx
• Model.Util.tsx
• Model.View.tsx
• Model.Zone.tsx
Scalar Convention
• Overview
• scalar.constant.ts
• scalar.dictionary.ts
• scalar.document.ts
Previous
Domain Based Modules
Next
Overview

CSS Styling Guidelines

Comprehensive styling guidelines for Akan.js components using TailwindCSS and DaisyUI ensuring consistency, maintainability and proper theming across applications.

Core Principles

Follow these fundamental principles for consistent styling:
principleDescriptionExample
Utility-FirstUse Tailwind's utility classes instead of custom CSS
Component CompositionDesign for composition with className overrides
Theme ConsistencyUse DaisyUI's semantic color system
Responsive DesignMobile-first layouts with breakpoint prefixes
AccessibilityEnsure proper contrast and focus states
Utility-First

Use Tailwind's utility classes instead of custom CSS

Component Composition

Design for composition with className overrides

Theme Consistency

Use DaisyUI's semantic color system

Responsive Design

Mobile-first layouts with breakpoint prefixes

Accessibility

Ensure proper contrast and focus states

Class Management (clsx)

Use clsx for conditional class handling and composition:

Component Best Practices

Forward className Prop
Semantic Color System
OptionTypeDefaultDescriptionExample
primarycolortheme-definedPrimary brand color
secondarycolortheme-definedSecondary brand color
base-100colortheme-definedBase background color
primary:color:theme-defined

Primary brand color

secondary:color:theme-defined

Secondary brand color

base-100:color:theme-defined

Base background color

Responsive Design
State Variants
Consistent Spacing

Additional Resources

  • TailwindCSS Documentation
  • DaisyUI Documentation
  • Tailwind CSS Cheat Sheet
CSS Styling Guidelines
Core Principles
Class Management (clsx)
Component Best Practices
Additional Resources