Skip to main content
Phase 0 & 1 Component Catalog

Design System & UI Primitives

Single source of truth for Glogonx NPO UI design tokens, primitives, accessibility focus states, and shell components.

Demo data

1. Design Tokens (§5)

Colour palette, typography scale, spacing, and radius tokens defined in styles/theme.css.

Paper

#F7F6F2

Page background

Surface

#FFFFFF

Cards, panels

Ink

#101A33

Primary text, dark sections

Slate

#5A6478

Secondary text, meta

Line

#E3E1DA

Hairlines, borders, dividers

Indigo

#2B3F8C

Interactive, links, brand chrome

Indigo Ink

#1B2A63

Indigo hover / dark fills

Marigold

#F5A524

Primary CTA, progress, celebration

Marigold Deep

#C77F0D

AA Large marigold text (18px+ reg, 14px+ bold)

Leaf

#147D5E

Verified, success, compliance met

Clay

#B3401E

Error, destructive, overdue

Amber Note

#8A6A12

Warning text

2. Button Primitive (4 Variants × States)

Control radius 8px, 2px indigo focus ring with 2px offset. Touch safe lg size (48px).

Primary (Marigold) & Secondary (Indigo)

Primary for single action per viewport. Secondary for outline controls.

Ghost & Destructive (Clay)

Ghost for subtle actions. Destructive for irreversible actions.

Button Sizes

sm (32px), md (40px), lg (48px — touch safe minimum per §9)

3. Forms & Inputs

Form controls use --color-indigo for checked/active state (Clarification #2). Hairline borders, explicit errors.

Input States

Legal registered name

Enter an amount of ₹100 or more.

Select & Radio Group

Donation Frequency

Checkbox & Switch Controls

Checked state uses Indigo fill per Clarification #2 rule.

4. Chips, Status & Signature Elements

Status badges, Progress Rail, and G-Score signature element (§5.6).

Status Chips & Badges

Leaf for compliance, Clay for error, Marigold surface with Ink text for small labels.

80G VerifiedFCRA ExpiredCSR ReviewMonthly DonorGoal Met 🎉Draft

Progress Rail & Demo Data

Thin Marigold rail for campaign funding progress.

Campaign Progress (72%)

72% raisedGoal met

Demo Honesty Marker

Demo data

Signature: G-Score Dial (§5.6)

Indigo ring, Marigold score arc, tabular score.

78
G-Score

5. Cards & Data Tables

Surface radius 20px, 1px solid hairline borders, no shadows on cards. Tabular numerals for amounts.

Recent Donations (Tabular)

Live demo transaction records from Zustand store fixture
DonorCategoryDateAmount (₹)Status
Kavya R.Monthly15 Sep 2026₹2,500Completed
Arun KumarOne-time14 Sep 2026₹1,000Completed
Anonymous DonorOne-time12 Sep 2026₹500Completed

Coimbatore Rural Education

Active

Interactive card (hover changes border to Indigo, no shadow)

Providing digital learning devices for 240 students across 4 panchayat schools.

82% raisedGoal met
Raised ₹2,46,000 of ₹3,00,000

Empty State Card

Demonstrating standard empty state primitive inside container

No grants saved yet

Match your NGO profile against CSR funding opportunities in Notifie.

6. Overlays, Feedback & Skeleton States

Drawer right panel, Dialog modal popover, Toast notification, Skeleton loading shimmers.

Overlay Triggers

Click to test focus trapping, ESC key close, backdrop wash.

Tabs Primitive

Toast Notification (Pop Shadow)

Donation Received

₹2,500 from Kavya R. added to local store.

Submission Error

Enter a valid 10-digit PAN number.

Skeleton Loading States

Animated pulse shimmers used during simulated latency.

Error State Primitive

Failed to fetch funding alerts

The server simulation encountered a latency timeout. Check your connectivity and try again.

7. App Shell & Marketing Shells

Marketing header & 4-col footer, App shell with collapsible Left Rail (248px expanded / 64px collapsed).

A. Marketing Navigation & Footer Shell

Glogonx Logo
Glogonx

Marketing Page Canvas Area

This area hosts public marketing routes (/ , /pricing, /discover, /c/[slug]). Header switches to surface background on 80px scroll.

B. App Shell (Left Rail Interactive Preview)

App Dashboard Canvas

Demo data

Total Raised

₹4,82,300

Active Donors

318

G-Score

78 / 100

8. Keyboard Walkthrough Checklist (§9 Accessibility Gate)

Verification of keyboard focus states on all interactive elements across `/styleguide`. All elements feature visible 2px Indigo ring with 2px offset (`focus-visible:ring-2 focus-visible:ring-indigo focus-visible:ring-offset-2`).

Tab Navigation Focus Ring Verification Checklist

Format required by gate criteria: itemized checklist of interactive targets reachable via Tab key.

[x] 1. Skip-to-main content anchor link (visible on focus at top)
[x] 2. Quick Nav Jump Buttons (1. Tokens ... 8. Focus Checklist)
[x] 3. Button Primitives (Primary, Secondary, Ghost, Destructive, Sizes)
[x] 4. Input Fields (NGO Name, Email address, Amount, Error input)
[x] 5. Select Dropdowns (State / Region, Locale selector)
[x] 6. Radio Group Items (One-time gift, Monthly subscription)
[x] 7. Checkbox Controls (Tax Receipt, Give anonymously)
[x] 8. Switch Toggles (Cover platform fee, WhatsApp updates)
[x] 9. Table Density Controls (Comfortable vs Compact)
[x] 10. Overlay Triggers (Open Drawer, Open Dialog, Toggle Toast)
[x] 11. Marketing Header Links & Locale Switcher (Platform, Pricing, Discover, Notifie, Start free)
[x] 12. App Shell Left Rail Items (Home, Campaigns, Forms, Donors, Notifie, Events, Social, Wallet, Settings)
[x] 13. Left Rail Collapse/Expand Toggle Button
[x] 14. Reset Demo State Button