Naif design system
Tokens, components and patterns extracted from the reference design and adapted for Persian and right-to-left interfaces. Token source file: app/assets/css/main.css and component themes app/app.config.ts ; full documentation at docs/design-system.md.
Colours
Color scales were sampled from the reference image. In code, use semantic colors only (primary, success, text-muted, etc.); raw shades are reserved for special cases.
Naif blue — primary
brand-50 … brand-950Primary button, active link, logo and highlights. The steps come from the Naif brand kit; shade 500 is Naif Blue (#3400E8).
- 50—
- 100—
- 200—
- 300—
- 400—
- 500—
- 600—
- 700—
- 800—
- 900—
- 950—
Special — secondary
premium-50 … premium-950Premium subscription and smart assistant. The brand book has no second colour, so this is the same Naif blue scale.
- 50—
- 100—
- 200—
- 300—
- 400—
- 500—
- 600—
- 700—
- 800—
- 900—
- 950—
Up green — success
gain-50 … gain-950Price increases, profit and successful status.
- 50—
- 100—
- 200—
- 300—
- 400—
- 500—
- 600—
- 700—
- 800—
- 900—
- 950—
Down red — error
loss-50 … loss-950Price decline, loss and errors.
- 50—
- 100—
- 200—
- 300—
- 400—
- 500—
- 600—
- 700—
- 800—
- 900—
- 950—
Neutral — neutral
ink-50 … ink-950The brand kit's slightly blue greys; 50 is Paper and 950 is Ink.
- 50—
- 100—
- 200—
- 300—
- 400—
- 500—
- 600—
- 700—
- 800—
- 900—
- 950—
Levels
Deepest to highest
bg-defaultPage canvas ·bg-mutedHeader, footer, tables and inputs ·bg-elevatedCards and menus ·bg-accentedPremium band and active state ·bg-invertedTooltip ·
Text
Strong to subtle
- A
text-highlightedTitle and price · - A
text-defaultBody text · - A
text-tonedEmphasised secondary text · - A
text-mutedDescription · - A
text-dimmedHeaders, symbols and axes ·
Borders and meaning
Semantic colours
border-defaultSeparator line ·border-accentedOutline button and chart zero line ·
Typography
Estedad is used across all pages with a seven-step type scale. The top three sizes scale fluidly with the viewport. Do not apply letter spacing to Persian text.
Active font: Estedad An open-source variable font (OFL), loaded locally from @fontsource-variable/estedad.
text-display32–48 pixels · 800 · Hero title
Live currency and gold price reference
text-h128–44 pixels · 800 · Two-column sections and premium band
In-depth price-trend analysis
text-h224–36 pixels · 700 · Section headings and CTA
All markets, one platform
text-h318 pixels · 600 · Card and feature headings
120+ price sources
text-body-lg16 pixels · 1.9 line height · Hero and section descriptions
Live prices, professional charts and a reliable API — all in one platform.
text-body14 pixels · 1.85 line height · Default text and table
Rates are collected from global markets and trusted data providers.
text-caption12 pixels · Labels, column headings and fine print
24h change · 7-day chart
Radius, shadow and gradient
Corner radius
Derived from --ui-radius = 0.25rem
md · ۶pxBadgeslg · ۸pxSmall button and selectorxl · ۱۲pxButtons, inputs and cards2xl · ۱۶pxTable and analysis card3xl · ۲۴pxCTA cardfullAsset icon and floating buttonShadows
shadow-glowPrimary buttonshadow-glow-premiumSpecial buttonshadow-floatFloating cards and tilesGradients
bg-announcementAnnouncement bannerbg-hero-glowGlow behind the herobg-cta-glowAI question card background (layers: bg-cta-arcs and bg-cta-purple)bg-hub-glowSource chart coreBrand text gradient — text-gradient-brand
Forms and navigation
Search
<AppSearch class="w-64" /> <!-- با کلید / فوکوس میگیرد -->
<UInput size="xl" icon="i-lucide-search" placeholder="جستجوی نماد…" />Choose range and tabs
<UTabs v-model="tab" :items="marketTabs" :content="false" variant="link" />Badges
Price changes always include an arrow and a color so they remain distinguishable for people with color blindness. Zero change is green.
Price change
<MarketPriceChange :value="0.18" />
<MarketPriceChange :value="-0.03" size="sm" />
<MarketPriceChange :value="1.41" variant="text" />Market data
Building blocks of rate tables. This page uses demo data.
Asset icon and name
<MarketAssetIcon icon="i-circle-flags-us" size="lg" />
<MarketAssetIcon icon="i-simple-icons-ethereum" bg="#627EEA" fg="#FFFFFF" />
<MarketAssetCell name="بیتکوین" symbol="BTC" :visual="rate.visual" />Mini chart and watchlist
<MarketSparkline :data="rate.sparkline" class="h-8 w-28" />Rates table
| Add to watchlist | Name | Price | 24h change |
|---|---|---|---|
Gold spot• XAU | 2,650.4 | Increase 0.35% | |
Silver spot• XAG | 31.12 | Increase 0.58% | |
Platinum spot• XPT | 1,318.4 | Decrease 0.42% |
<!-- const { rates } = useMarket() (قیمتها با واحد انتخابشده در تنظیمات) -->
<MarketRatesTable v-model:tab="tab" :rates="rates" :tabs="marketTabs" more-to="/rates" />Charts
All charts use Lightweight Charts, TradingView's open-source engine, with colors and fonts from design tokens. The chart is left-to-right: time flows left to right and the price axis is on the right. Dates follow the selected language.
Trading chart (TradingView style)
Drawing tools are on the left, OHLC details above the chart, interval and scale controls below, and settings in the gear beside the axes. Drawings are saved per symbol in your browser.
- Open
- 2,632.9
- Maximum
- 2,656.7
- Minimum
- 2,626.4
- Close
- 2,650.4
- Change
- +18.1 (+0.69%)
Volume825.8K
| Date | Open | Maximum | Minimum | Close |
|---|---|---|---|---|
| Jul 29, 2026 | 2,637.8 | 2,657.3 | 2,629.5 | 2,643.6 |
| Jul 30, 2026 | 2,647.9 | 2,660.8 | 2,640 | 2,640.5 |
| Jul 31, 2026 | 2,637.3 | 2,646.5 | 2,605.3 | 2,614.9 |
| Aug 1, 2026 | 2,614.5 | 2,656.2 | 2,604.1 | 2,642.4 |
| Aug 2, 2026 | 2,640.4 | 2,654.3 | 2,617.9 | 2,623.2 |
| Aug 3, 2026 | 2,619 | 2,639.1 | 2,612.4 | 2,631.4 |
| Aug 4, 2026 | 2,632.5 | 2,650.9 | 2,611.4 | 2,614.4 |
| Aug 5, 2026 | 2,615.2 | 2,629.5 | 2,593.2 | 2,608.5 |
| Aug 6, 2026 | 2,610.3 | 2,614.8 | 2,595.1 | 2,611.3 |
| Aug 7, 2026 | 2,615 | 2,635.4 | 2,606.8 | 2,626.8 |
| Aug 8, 2026 | 2,627 | 2,632.5 | 2,605.9 | 2,612.4 |
| Aug 9, 2026 | 2,612.5 | 2,620.5 | 2,582.5 | 2,591.5 |
| Aug 10, 2026 | 2,591.3 | 2,600.2 | 2,570 | 2,585.5 |
| Aug 11, 2026 | 2,583.1 | 2,593 | 2,569.2 | 2,570.1 |
| Aug 12, 2026 | 2,572.7 | 2,586.4 | 2,526.6 | 2,546.1 |
| Aug 13, 2026 | 2,548.2 | 2,571.8 | 2,537.2 | 2,553 |
| Aug 14, 2026 | 2,557.3 | 2,601.8 | 2,547.9 | 2,586.3 |
| Aug 15, 2026 | 2,583.2 | 2,593 | 2,556 | 2,561.5 |
| Aug 16, 2026 | 2,557.3 | 2,558.7 | 2,546.8 | 2,558.6 |
| Aug 17, 2026 | 2,555.2 | 2,580.1 | 2,543.2 | 2,564.2 |
| Aug 18, 2026 | 2,568.2 | 2,597.2 | 2,550.1 | 2,591.9 |
| Aug 19, 2026 | 2,589.6 | 2,589.6 | 2,550.2 | 2,567.5 |
| Aug 20, 2026 | 2,568.9 | 2,579.5 | 2,560.3 | 2,570.8 |
| Aug 21, 2026 | 2,570 | 2,599.3 | 2,563.9 | 2,591 |
| Aug 22, 2026 | 2,585.4 | 2,588.3 | 2,557.7 | 2,565.7 |
| Aug 23, 2026 | 2,569.2 | 2,587.7 | 2,544.1 | 2,547.5 |
| Aug 24, 2026 | 2,547 | 2,548.6 | 2,520.9 | 2,540.1 |
| Aug 25, 2026 | 2,539.6 | 2,571 | 2,529 | 2,554 |
| Aug 26, 2026 | 2,551.3 | 2,566.4 | 2,540.7 | 2,546.2 |
| Aug 27, 2026 | 2,545.5 | 2,576.1 | 2,545.4 | 2,567.8 |
| Aug 28, 2026 | 2,566.9 | 2,600.5 | 2,556.9 | 2,591.5 |
| Aug 29, 2026 | 2,592.8 | 2,611.2 | 2,578.6 | 2,589.2 |
| Aug 30, 2026 | 2,594.4 | 2,627.3 | 2,579.1 | 2,618.5 |
| Aug 31, 2026 | 2,622.3 | 2,654.7 | 2,613.5 | 2,652.4 |
| Sep 1, 2026 | 2,647.3 | 2,658.5 | 2,632.6 | 2,638.8 |
| Sep 2, 2026 | 2,639.8 | 2,651.5 | 2,622.6 | 2,635.3 |
| Sep 3, 2026 | 2,630.1 | 2,654.8 | 2,626.4 | 2,638 |
| Sep 4, 2026 | 2,639.3 | 2,658.2 | 2,629.4 | 2,641.8 |
| Sep 5, 2026 | 2,647 | 2,668.5 | 2,633.3 | 2,663.4 |
| Sep 6, 2026 | 2,668.2 | 2,686.2 | 2,661.2 | 2,673.5 |
| Sep 7, 2026 | 2,673.4 | 2,696 | 2,666.9 | 2,675.4 |
| Sep 8, 2026 | 2,677.7 | 2,719.1 | 2,676 | 2,705.8 |
| Sep 9, 2026 | 2,707.6 | 2,727.1 | 2,679.1 | 2,683.9 |
| Sep 10, 2026 | 2,684.4 | 2,703.5 | 2,658.3 | 2,676.6 |
| Sep 11, 2026 | 2,672.6 | 2,675.1 | 2,638 | 2,657.3 |
| Sep 12, 2026 | 2,655.3 | 2,670 | 2,631.4 | 2,636.5 |
| Sep 13, 2026 | 2,641.9 | 2,648.3 | 2,630.8 | 2,640.3 |
| Sep 14, 2026 | 2,637.6 | 2,641 | 2,600.6 | 2,610.9 |
| Sep 15, 2026 | 2,615.5 | 2,628.6 | 2,611.8 | 2,615.7 |
| Sep 16, 2026 | 2,610.2 | 2,634.5 | 2,603.7 | 2,630.5 |
| Sep 17, 2026 | 2,625.9 | 2,637.1 | 2,598.1 | 2,614.2 |
| Sep 18, 2026 | 2,614.5 | 2,624.7 | 2,602.5 | 2,617.5 |
| Sep 19, 2026 | 2,622.4 | 2,658 | 2,608 | 2,639 |
| Sep 20, 2026 | 2,636.2 | 2,675.2 | 2,629.9 | 2,658.2 |
| Sep 21, 2026 | 2,662.6 | 2,665.4 | 2,622.5 | 2,641.9 |
| Sep 22, 2026 | 2,640.7 | 2,647 | 2,621.7 | 2,624.4 |
| Sep 23, 2026 | 2,624.2 | 2,638.6 | 2,599.1 | 2,618.8 |
| Sep 24, 2026 | 2,622.3 | 2,657.3 | 2,619.2 | 2,645.6 |
| Sep 25, 2026 | 2,650.4 | 2,660.5 | 2,621.1 | 2,632.3 |
| Sep 26, 2026 | 2,632.9 | 2,656.7 | 2,626.4 | 2,650.4 |
<!-- کارت کامل؛ candleSample از data/market.ts (واحد پول و نرخ خرید/فروش را هم دارد) -->
<MarketCandleCard v-bind="candles" />
<!-- خود نمودار؛ ارتفاع را با کلاس بدهید -->
<ChartTrading
:candles="candles"
name="انس طلا"
symbol="XAUUSD"
unit="دلار"
:visual="{ icon: 'i-lucide-globe', bg: '#C9A227', fg: '#2B1D00' }"
market="بازار جهانی"
:quote="{ buy: 2650.1, sell: 2650.6 }"
label="نمودار معاملاتی انس طلا"
class="h-[38rem]"
/>Lines and bars
Gold ounce price trend; from 2,609.26 to 2,650.4, Minimum 2,570.64, maximum 2,650.4
Cumulative trend; from 46.6 to 44, Minimum 24.3, maximum 70
| Monday | +18.5 |
|---|---|
| Tuesday | -4.2 |
| Wednesday | +6.9 |
| Thursday | +22.4 |
<ChartLine :data="series" color="gradient" :grid="false" :y-axis="false" label="…" class="h-24" />
<ChartLine :data="series" color="success" area :labels="labels" label="…" class="h-48" />
<ChartBar :data="[1850, -420, 690, 2240]" :labels="labels" label="…" class="h-48" />Cards and decorative elements
Market cards
Gold spot
2,650.4 US dollar
Price trend for Gold spot; from 2,609.26 to 2,650.4, Minimum 2,570.64, maximum 2,650.4
| Monday | +18.5 |
|---|---|
| Tuesday | -4.2 |
| Wednesday | +6.9 |
| Thursday | +22.4 |
Cumulative trend chart; from 46.6 to 44, Minimum 24.3, maximum 70
Advanced profit and loss analysis
- Purchase value
- 26,504
- Unrealised profit
- 6,939 Increase 26.18%
- Daily loss
- 358 Decrease 1.35%
Today's API usage reached 80% of the daily limit: 80,000 of 100,000 requests.
<MarketSourceCard title="ارز" :visual="{ icon: 'i-circle-flags-us' }" to="#markets" />
<MarketStatsCard v-bind="analytics" />
<MarketInsightCard title="…" :rows="rows" />
<MarketAlertCard message="…" />Dashboard card
Dashboard cards in /panel on their own background
<PanelCard title="مصرف API" icon="i-lucide-activity" to="/panel/usage">
<template #meta>
<UBadge label="۶۴٪" color="neutral" variant="soft" size="sm" class="rounded-full" />
</template>
<PanelMeter :value="64" size="md" label="مصرف سهمیهی درخواست" />
<PanelBars :values="daily" :labels="days" unit="درخواست" label="…" class="mt-5 h-20" />
</PanelCard>Icon tiles
<BaseIconTile icon="i-lucide-trending-up" color="secondary" float />
<BaseIconTile icon="i-lucide-flame" variant="glass" shape="circle" />Device frame and logo
Application content
Icons
Two icon families: Lucide line icons for the interface, and Nucleo Glass icons when the icon serves as an illustration. Both are rendered with UIcon.
Glass icons
The back layer uses the brand color (or purple, green or red for color-suffixed variants); the front is frosted glass with a bright edge. Colors are embedded in the file and remain the same in both themes. Below 36 pixels they look crowded. Custom means it was not in Nucleo and was drawn in the same style.
On dark background
analyticsarrows-convergebellboltcandlesCustomcaret-maximize-diagonal-redcircle-check-greencircle-question-violetflameheartlayersmove-up-leftsparkle-violetsquare-chart-line-violetstar
On light background
analyticsarrows-convergebellboltcandlesCustomcaret-maximize-diagonal-redcircle-check-greencircle-question-violetflameheartlayersmove-up-leftsparkle-violetsquare-chart-line-violetstar
<!-- ویژگی و سرتیتر بخش: ۴۰ تا ۵۶ پیکسل -->
<UIcon name="i-glass-bolt" class="size-11" />
<UPageFeature icon="i-glass-layers" title="…" :ui="{ leadingIcon: 'size-11' }" />
<!-- تزئینی و شناور -->
<UIcon name="i-glass-sparkle-violet" class="size-12 drop-shadow-lg motion-safe:animate-float" />Which icon goes where?
Use glass icons only at large sizes as illustrations. Use line icons beside text and on buttons.
Glass
Feature lists, section headings, floating decorative icons and the brand panel. 40–56 pixels.
Outline (Lucide)
Buttons, menus, fields, tables and anywhere an icon performs an action. 16–24 pixels, matching the text color.
Page patterns
Homepage sections and their mappings to components and the reference design.
| Pattern | Component | |
|---|---|---|
| Announcement banner | AppAnnouncement ← UBanner | View |
| Header | AppHeader ← UHeader، UNavigationMenu، AppSearch | View |
| Hero | LandingHero ← MarketSymbolSearch، تصاویر سهبعدی فیگما | View |
| Rates table | MarketRatesTable ← UTabs، UTable | View |
| All in one platform | LandingFeatureHub ← BaseBorderGlow | View |
| Trend analysis | LandingAnalytics ← LandingAnalyticsPanel | View |
| Candlestick chart | LandingTrading ← ChartTrading | View |
| Premium subscription | LandingPremium ← UButton، MarketSparkline، MarketAssetIcon | View |
| Business products | LandingProducts ← UPageSection، UBadge، UButton (در صفحهی اصلی نیست) | View |
| Ask AI | LandingAskAi ← UTooltip، دکمههای شیشهای (glass-pill)، تصاویر سهبعدی فیگما | View |
| Footer | AppFooter ← BaseStoreBadge، UTooltip | View |
| Floating buttons | AppFloatingActions | View |
| Settings menu | AppSettingsPanel ← UPopover، USwitch | View |
| Log in | layouts/auth ← AuthOtpForm (UPinInput)، AuthBrandPanel | View |
| Sign up | layouts/auth ← AuthOtpForm (UCheckbox، UPinInput)، AuthBrandPanel | View |
| Dashboard | layouts/panel ← UDashboardGroup، UDashboardSidebar، PanelCard | View |