Main content ah kal rawh Docs navigation ah kal rawh
Check
in English

Customize theih a ni

Sass hmanga Bootstrap theme dan, customize dan leh tihzauh dan te, global option hrang hrang boatload te, color system zau tak leh a dangte zir rawh.

A tlangpuiin

Bootstrap hi customize dan hrang hrang a awm a. I kawng tha ber chu i project, i build tools complexity, Bootstrap version i hman dan, browser support leh thil dang tam takah a innghat thei a ni.

Kan hman dan duh ber pahnih chu:

  1. Kan source files te i hman theih nan leh i tihzauh theih nan package manager kaltlangin Bootstrap hman.
  2. Bootstrap-a compiled distribution files emaw jsDelivr emaw hmangin Bootstrap -a styles te chu add onto emaw override emaw theih a ni.

Hetah hian package manager tinte hman dan tur chipchiar takin kan sawi thei lo nain, i Sass compiler hmanga Bootstrap hman dan tur kaihhruaina engemaw zat kan pe thei ang

Distribution files hmang duh tan chuan getting started page chu enfiah la, chu files te dah dan tur leh HTML page entirnan. Chuta tang chuan i hman duh layout, component leh behavior te chu docs ah en la.

Bootstrap i hriat chian chhoh zel chuan, kan global options hman dan tur te, kan color system hman dan tur leh thlak dan tur te, kan components kan siam dan tur te, CSS custom properties kan list lian zel tur hman dan tur te, leh engtin nge kan hman dan tur te chipchiar zawka hriat duh chuan he section hi chhui chhunzawm zel ang che Bootstrap hmanga i siam hunah i code optimize theih nan.

CSP leh embedded SVG te pawh a awm bawk

Bootstrap component engemaw zatah hian kan CSS-ah hian embedded SVGs a awm a, chu chuan browser leh device hrang hrangah component hrang hrangte chu a inmil leh awlsam taka style turin a siam a ni. For organizations with more strict CSP configurations , kan embedded SVGs instance zawng zawng kan document vek a (chu zawng zawng chu via apply a ni background-image) chutiang chuan i duhthlannate uluk zawkin i enfiah thei ang.

Based on community conversation , i codebase-a hei hi address theihna tur option thenkhat chu URL-te chu locally hosted assets hmanga thlak , images te paih leh inline images hman (component zawng zawngah a theih loh), leh i CSP siam danglam te a ni. Kan rawtna chu nangmah ngeiin security policy te uluk taka enfiah a, a tul chuan hmalam panna kawng tha ber tur ngaihtuah hi a ni.