Maksutov Design MAKSUTOV DESIGN
Web design Design system PWA RU / EN

Ayurveda Reader

A web app for reading classical Ayurvedic texts: 9 books, 841 chapters and more than 34,500 verses in the original, transliteration and translation. I designed the interface, built a design system with light and dark themes, drew 91 icons, thought through the mobile version and implemented everything in plain JavaScript

01 / scope and task

A library of primary sources that is comfortable to read on any screen

9books: from the Ashtanga Hridaya to the Rasaratna Samuccaya
841chapters in one reader
34,500+verses: Devanagari, IAST and translation
241encyclopedia articles in 45 sections
397Sanskrit terms in the glossary
84diseases in a separate glossary
113home remedies
60questions in the constitution test

The original task was to make readable what is usually read in PDFs and scans: Sanskrit text next to scholarly transliteration and translation, commentaries and terms with explanations. Any verse should be found in seconds, and a long chapter should be readable without eye strain

So the interface works as a book and a reference at the same time: contents and sections on the left, a calm text column on the right. Around reading grew an encyclopedia, glossaries, home remedies, a food timing table and a constitution test — and all of it lives in one component system

02 / interface structure

Left navigation, one reading column and nothing extra

The screen is built from two zones. The 280 px left column is navigation: the logo, language and theme switches, search across all books, a book selector, chapters by part (sthana) and ten app sections. The right area is content: a welcome and book cards on the home page, a narrow text column with a comfortable line length in the reader

A thin strip with links to the Telegram channel and bot and a visitor counter is fixed at the bottom, and above it sits a collapsed medical disclaimer that can be closed. On a phone the left column turns into a slide-in menu

ayurvedareader.ru
01 — home: the library
01 — home: the libraryA welcome, statistics in chips and a grid of nine book cards. Every book got its own colored icon
ayurvedareader.ru
02 — reader
02 — readerThe chapter title, a "Devanagari / translit" switch, jump to a verse by number and a verse card with three layers of text

Anatomy of a verse card

  • Verse number11 px, 700, small caps with 0.88 px tracking, color --verse-num
  • DevanagariNoto Sans Devanagari, 18 px, 36 px line height — Sanskrit is read large
  • IASTGeorgia italic, 14 px, a calm grey-brown — scholarly transliteration
  • TranslationGeorgia, 15.5 px, line height 1.82 — the main layer of meaning
  • Actionsshare the verse, read Sanskrit, Russian or English aloud (Web Speech API)
  • Commentarya collapsible "Commentary" block with a green bar on the left and the author

03 / screens

Nine sections — one system

The sections differ in content but are built from the same parts: the same cards, chips, search fields, icons and spacing. Thanks to this the user does not learn the interface again on every screen

ayurvedareader.ru
03 — search across all books
03 — search across all booksInstant search through the text of nine books with highlighted matches: the word "dosha" gives 1,443 results, each leading to a verse
ayurvedareader.ru
04 — encyclopedia
04 — encyclopedia45 sections with colored icons, an article counter and a short description. A section opens a list of articles, and an article opens full text with sources
ayurvedareader.ru
05 — an encyclopedia article
05 — an encyclopedia articleAn article: a title, a short summary, structured text and a list of sources at the bottom
ayurvedareader.ru
06 — glossary of terms
06 — glossary of terms397 Sanskrit terms with transliteration, an explanation, a link to an encyclopedia article and a share button
ayurvedareader.ru
07 — glossary of diseases
07 — glossary of diseases84 diseases: dosha, category, description and a treatment hint, linked to chapters of the primary sources
ayurvedareader.ru
08 — home remedies
08 — home remedies113 remedies as a searchable list and cards with composition and method of use
ayurvedareader.ru
09 — food timing table
09 — food timing tableA table of the best time to eat each food: category filters and an "from which hour to which hour" scale for every product
ayurvedareader.ru
10 — constitution test
10 — constitution test60 questions in three sections — vata, pitta, kapha: a 0 to 6 slider, progress and a final result
ayurvedareader.ru
11 — sources
11 — sourcesA list of the editions used: translators, commentators and the origin of every text on the site

04 / design system

A full design system: colors, fonts, icons, components and states

The design system lives in CSS variables and one shared set of components — every screen stands on it. Below it is taken apart completely: color tokens for two themes, three font families and a type scale, 91 icons, components live, as well as radii, shadows, layers and animations. All examples on this page are real HTML, not pictures

4.1

Colors

A warm "paper" palette, light and dark themes

The palette is built around warm paper and a brown "ink" accent line: a warm cream background, near-black brown text and a dark gold accent. There are no cold colors in the interface — only icon color coding and the three dosha colors in the test use them. All colors are variables on :root, and the dark theme overrides them with the body.dark class

Light theme

--bg#faf8f4
--bg-sidebar#f2ede4
--bg-card#ffffff
--bg-verse#fffef8
--bg-comment#f7f5f0
--bg-hover#ede8dd
--bg-active#d9c9a8
--text#2c2416
--text-muted#776a52
--text-sidebar#4a3e2c
--accent#7a5c2e
--accent-light#c9a96e
--border#e0d8c8
--border-strong#c8bda8
--verse-num#9a7d4a
--comment-tag#7a8a6a
--search-bg#fffdf8
--term-bgrgba(122,92,46,.10)
--term-borderrgba(122,92,46,.30)
--accent-glowrgba(122,92,46,.15)

Dark theme

--bg#1a1712
--bg-sidebar#141210
--bg-card#1f1c17
--bg-verse#1f1c17
--bg-comment#18160f
--bg-hover#2a261d
--bg-active#3d3220
--text#e8dfc8
--text-muted#9a8d6e
--text-sidebar#c8b898
--accent#c9a96e
--accent-light#e8c98a
--border#2e2a20
--border-strong#3e3828
--verse-num#c9a96e
--comment-tag#8a9a7a
--search-bg#1f1c17
--term-bgrgba(201,169,110,.12)
--term-borderrgba(201,169,110,.30)
--accent-glowrgba(201,169,110,.15)

Dosha colors in the constitution test

Vataair · lightness, movement
Pittafire · warmth, metabolism
Kaphaearth and water · stability

The accent changes between themes: #7a5c2e (dark gold) in light, #c9a96e (light gold) in dark, so the contrast of buttons and links is kept. Interactive states take their color from --bg-hover and --bg-active, and term highlighting from --term-bg and --term-border

4.2

Typography

Georgia · system-ui · Noto Sans Devanagari

The system has three font families, each with its own role. Georgia (serif) is for headings, translation and transliteration: it gives a "book" tone. system-ui is for the interface and body text: the native font of the operating system, zero loading. Noto Sans Devanagari is the only loaded font, needed for Sanskrit

Display / H1Georgia 700 · 32 / 38.4 px
Classical Samhitas of Ayurveda
Chapter titleGeorgia 700 · 27.2 / 34 px
Chapter 1. Ayushkamiya Adhyaya
Subtitlesystem-ui italic · 14 / 22.4 px
the wish for long life
Bodysystem-ui 400 · 15 / 27 px
Glory to the peerless physician, who destroyed without remainder diseases such as raga (passion) and others.
DevanagariNoto Sans Devanagari 400 · 18 / 36 px · +0.36
रागादि-रोगान् सततानुषक्तान् अ-शेष-काय-प्रसृतान्
IASTGeorgia italic · 14 / 25.2 px · +0.14
rāgādi-rogān satatānuṣaktān a-śeṣa-kāya-prasṛtān
TranslationGeorgia 400 · 15.5 / 28.2 px
Now we shall expound the chapter Ayushkamiya — so said Atreya and the other sages.
Commentsystem-ui 400 · 14.5 / 26.1 px
Commentary by I. I. Vetrov: the word "ayus" unites the life of body, senses, mind and soul.
Label / eyebrowsystem-ui 700 · 10–11 px · small caps +0.8–1 px
Sutrasthana · verse 1 · commentary
UI controlsArial 600 · 12–13 px
Home · Ashtanga Hridaya · Search the text…
RoleFamilySize / line heightWeightStyle / tracking
HeadingsGeorgia, Times New Roman, serif27–32 px / 34–38 px700normal
Body textsystem-ui, -apple-system, sans-serif15–16 px / 27 px400normal
SanskritNoto Sans Devanagari, serif18 px / 36 px400+0.36 px
IAST and translationGeorgia14–15.5 px / 25–28 px400italic for IAST, +0.14 px
Labelssystem-ui9–11 px / 16 px700small caps, +0.8–1 px
Buttons and fieldsArial11–13 px600+0.24–0.33 px

Four reading sizes

The user picks the text size with the "A" button and it is saved in the browser: the scale applies to body text and all derived sizes

small · 14 px

Small

normal · 16 px

Normal

large · 18 px

Large

xlarge · 21 px

Extra large

4.3

Icons

91 line SVGs, one style

All icons were redrawn in a single style: a 24×24 grid, a 1.8 px line with rounded ends and a rounded colored backing with a 6.5 radius and 16% opacity. The backing and line color is one and the same, different for each icon. This helps the eye tell sections apart, and the menu comes out even. Icons are stored as a JS dictionary "key → color + outline" and inserted into the interface through one function

Grid
24 × 24 px, viewBox 0 0 24 24
Backing
rect 21 × 21, rx 6.5, fill-opacity 0.16
Line
stroke 1.8, round caps and joins
Color
one color per icon: backing and outline

Section menu · 11

terms
pulse
mortar
book
books
clock
beaker
user
friends
heart
chat

Interface · 17

lotus
offline
speaker
lock
copy
send
close
pencil
dna
medical
pray
arrow_back
readbook
feat_term
feat_search
feat_theme
share

Books · 9

leaf
scroll
scalpel
magnifier
flask
sprout
bookmark
baby
flask-conical

Food timing · 9

ft_dairy
ft_spice
ft_fruit
ft_oil
ft_nuts
ft_veggie
ft_grain
ft_drink
ft_shroom

Encyclopedia · 45

enc_foundations
enc_prakriti
enc_nutrition
enc_herbs
enc_yoga
enc_massage
enc_beauty
enc_lifestyle
enc_digestion
enc_psychology
enc_panchakarma
enc_diagnostics
enc_marma
enc_seasonal
enc_quiz
enc_prana
enc_rasayana
enc_dinacharya
enc_food_wisdom
enc_tantra
enc_home_remedy
enc_cleanse
enc_kitchen
enc_alchemy
enc_elements
enc_family
enc_polarity
enc_philosophy
enc_history
enc_mudra
enc_sound
enc_gems
enc_pediatrics
enc_pk_protocol
enc_aroma
enc_eye
enc_preparations
enc_womens
enc_pk_joshi
enc_srota
enc_clinical
enc_chakra
enc_aroma_form
enc_vedic
enc_three_paths

Icons look the same in light and dark themes: the backing is translucent, so it "takes color" from the background

4.4

Components

Buttons, fields, cards, verse, commentary, test

Components are built live from the same tokens — hover to see the states. Below are the main ones

Buttons, chips and switches

9 books841 chapters
⌂ HomeAVerse № →→
EN☀

All interactive elements are "pills" or tiles with an 8–20 px radius; the active state is filled with --bg-active, the main action with the accent color

Input fields and book selector

Search the text…

CHOOSE A BOOK

Ashtanga Hridaya▾

Section menu

SECTIONS

Glossary of terms
Encyclopedia
Food timing
Constitution test

Chapter list

SUTRASTHANA
1.Ayushkamiya Adhyaya
2.Dinacharya Adhyaya
3.Ritucharya Adhyaya

VERSE 1

रागादि-रोगान् सततानुषक्तान् अ-शेष-काय-प्रसृतान् अ-शेषान्

rāgādi-rogān satatānuṣaktān a-śeṣa-kāya-prasṛtān a-śeṣān

Now we shall expound the chapter Ayushkamiya (the wish for long life) – so said Atreya and the other sages.

RU

▸ CommentaryI.I. Vetrov

VERSE 1

रागादि-रोगान् सततानुषक्तान् अ-शेष-काय-प्रसृतान् अ-शेषान्

rāgādi-rogān satatānuṣaktān a-śeṣa-kāya-prasṛtān a-śeṣān

Now we shall expound the chapter Ayushkamiya (the wish for long life) – so said Atreya and the other sages.

RU

▸ CommentaryI.I. Vetrov

Term highlighting

…who destroyed diseases such as raga (passion) and moha (delusion)…

Book and section cards

Ashtanga HridayaVagbhata · 7th c. CE118 chapters · 7000+ verses
CharakaCharaka · Dridhabala · 1st–4th c. CE120 chapters · 9000+ verses
Constitution (prakriti)
4 articles

Three constitution types and how to find your own.

Herbs and plants
20 articles

Key plants: properties, use and dosage.

Test and timeline

0 / 60 questions
Vata20 questions
1. By nature I am very active and usually do things quickly
062
Milk06:00 – 21:00

States

  • Defaultcalm state
  • Hover--bg-hover, accent border, card lifts by 2 px
  • Active--bg-active and heavier text
  • Focusfocus-visible: an outline; for fields — an accent border
  • Disabledopacity 0.4
  • Playing--accent-glow on the read-aloud button
4.5

Spacing, radii, shadows, layers, animations

The remaining tokens of the system

Besides color and type, the system describes shape and behavior: which elements get which radii, how deep a card "lies", what is above what and how everything animates

Radii
2–4 pxterm highlighting, small elements
8 px--radius: buttons, fields, verse cards
10–14 pxbook and section cards, action buttons
16–20 pxchips, chapter header buttons
24 px and 999 pxpills, progress and switches
50%round icons and avatar
Shadows
--shadow-sm0 1px 3px rgba(0,0,0,.06)
--shadow-md0 4px 16px rgba(0,0,0,.08)
Popover0 6px 24px rgba(0,0,0,.25)
Modal0 12px 48px rgba(0,0,0,.3)
Sidebar4px 0 32px rgba(0,0,0,.22)
Focus ring0 0 0 2px var(--accent)
z-index layers
10sticky elements
200–300left panel and overlay
350–500modals and chat
9000–9999tooltips and banners
Animations and transitions
--transition0.18s ease — hover and states
versePulseverse highlight when following a link
verseTargetPulsea soft pulse of the target verse
chatDotstyping indicator in the chatbot
Breakpoints
≤ 700 pxmain column, lists, cards
≤ 640 pxchapter header, buttons, density
≤ 600 pxthe left panel becomes a slide-in menu
4.6

Dark theme

body.dark · token overrides

The dark theme is not an inversion but a separate palette: the background became dark brown, the accent light gold, cards slightly lighter than the background. The switch is in the left panel header and the choice is remembered in the browser. Pictures and icons do not change: the icon backings are transparent

ayurvedareader.ru
12 — the reader in the dark theme
12 — the reader in the dark themeThe same verse and the same layers of text — a different palette. The contrast of body text stays high, and the gold accent marks headings and verse numbers
ayurvedareader.ru
13 — home in the dark theme
13 — home in the dark themeBook cards and statistic chips on dark paper

05 / mobile version

The phone is the main reading scenario

People mostly read on the phone, so the mobile version is not a shrunken desktop. The left panel turns into a slide-in menu, the reading interface takes the full width, and long lists collapse

Slide-in menuThe left panel opens with a button in the corner and closes with a tap on the dimmed background. The "Sections" block is collapsed by default so the chapter is visible at once.
ReadingThe text column takes the full width, the line height is kept, and the chapter buttons wrap into one row.
Comfortable touch targetsMenu and list items are full-width tiles, and the test slider is large and moves with a finger.
Dark themeGood for evening reading — it switches the same way as on desktop.
14 — home, menu, reader and search
14 — home, menu, reader and searchFour states in a row: a welcome, the slide-in menu, a chapter with a verse and search results
15 — encyclopedia, glossary, test and food timing
15 — encyclopedia, glossary, test and food timingThe same components on a narrow screen: cards stack in one column, scales take the full width
16 — the dark theme on a phone
16 — the dark theme on a phoneHome and the constitution test in the dark theme

06 / technical description

A static site in plain JavaScript with no bundler

The app is a static single-page site: HTML, one CSS file and ES modules with no frameworks or build step. It opens right in the browser, needs no registration and works offline as a PWA after the first visit

0frameworks and bundlers
~600 KBinitial load
~28 MBbook texts, loaded lazily
v565release number for cache busting

Architecture

  • Single-page site with hash routing: a link like #ashtanga/c0 leads to a specific chapter.
  • ES modules: app.js is the core, books.js the book registry, glossary, diseases, quiz, foodtable, cabinet, chatbot, icons.
  • Data: every book is a separate file loaded when opened, so the first screen is light.
  • Texts were extracted from printed editions and brought to a single "original → IAST → translation" format.

PWA and offline

  • Service worker: Cache First for static files and Network First for data; the cache is versioned (ayurveda-v565).
  • Manifest: standalone mode, 192 and 512 px icons, maskable icons and an "Ashtanga Hridaya" shortcut.
  • Offline banner says that books already read are available.
  • Cache busting: one ?v=NN version in index.html, app.js, books.js and sw.js.

Browser features

  • Search across all books on the client with highlighted matches and a result counter.
  • Read aloud for a verse through the Web Speech API: Sanskrit (hi-IN), Russian and English.
  • Share API for a link to a verse, and copying the link.
  • Settings in localStorage: theme, text size, interface language.
  • Bilingual: the interface and data have Russian and English fields (*_en).

Server side

  • Expert cabinet: sign-in through the Telegram Login Widget, no passwords; chapter edits and crowd-sourced suggestions.
  • Backend: serverless functions on Vercel; if they are unavailable the site stays static.
  • AI assistant: search over loaded verses and a Gemini API call.
  • Telegram bot and channel: subscription and a daily post with a verse.
  • Analytics: a visitor counter and Yandex.Metrica.
FileSizePurpose
style.css~92 KBa single stylesheet: tokens, components, two themes, 3 breakpoints
app.js~201 KBcore: routing, reading, search, read aloud, settings
books.js~244 KBregistry of nine books, part and chapter names (RU/EN)
glossary.js~206 KB397 Sanskrit terms and in-text hints
quiz.js~21 KB60 questions and constitution scoring
icons.js~14 KB91 icons and the icon(key) function
sw.js~3 KBservice worker for offline mode

Snippet: an icon as a function

icons.js
// key → color and outline; the backing and the line share one color
export function icon(key) {
  const [c, paths] = G[key];
  return `<svg class="app-icon" viewBox="0 0 24 24" fill="none">
    <rect x="1.5" y="1.5" width="21" height="21" rx="6.5" fill="${c}" fill-opacity="0.16"/>
    <g stroke="${c}" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">${paths}</g></svg>`;
}

07 / accessibility and details

Attention to detail: from a skip link to read aloud

  • A "Skip to content" link at the start of the page and meaningful aria labels on buttons.
  • A live region for screen readers and a separate offline banner with role=status.
  • Text size in four levels, the choice is saved.
  • A dark theme for evening reading.
  • Read-aloud for a verse: Sanskrit, Russian, English.
  • Visible keyboard focus and tooltips on action icons.
  • A medical disclaimer that can be closed but is always available.
  • A sources block in every encyclopedia article.

08 / SEO and metadata

What a search engine sees

The page has extended metadata: a title and description with key queries ("classical Ayurveda samhitas", "Ashtanga Hridaya", "Charaka Samhita", "prakriti test"), canonical, Open Graph and Twitter Card with a 1200×630 image, a manifest and home-screen icons. Site search and encyclopedia articles give the text a "long tail" of queries

  • Title: "Classical Samhitas of Ayurveda — a free online library"
  • A description with numbers: verses, books, glossary, encyclopedia
  • Open Graph and Twitter Card, a 1200×630 image
  • Canonical, manifest, apple-touch-icon
  • Keywords: ayurveda, samhita, Ashtanga Hridaya, Charaka, Sushruta

Discuss a project

Need an interface like this?

I will design a web app or site from scratch: structure, design system, responsive layouts and markup. Tell me about your task — I will reply within a day

Order a design