<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="https://cecilapp.github.io/theme-flexsearch/xsl/atom.xsl" media="all"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://cecilapp.github.io/theme-flexsearch/docs/guides/</id>
  <title>FlexSearch - Guides</title>
  <subtitle><![CDATA[Demo of the FlexSearch component theme for Cecil.]]></subtitle>
  <link href="https://cecilapp.github.io/theme-flexsearch/docs/guides/atom.xml" rel="self" type="application/atom+xml" />
  <link href="https://cecilapp.github.io/theme-flexsearch/docs/guides/" rel="alternate" type="text/html" />
  <updated>2026-10-20T02:19:12+00:00</updated>
  <author>
    <name>FlexSearch</name>
    <uri>https://cecilapp.github.io/theme-flexsearch/</uri>
  </author>
  <entry xml:lang="en">
    <id>https://cecilapp.github.io/theme-flexsearch/docs/guides/styles/</id>
    <title>Styles</title>
    <published>2026-10-20T02:19:06+00:00</published>
    <link href="https://cecilapp.github.io/theme-flexsearch/docs/guides/styles/" rel="alternate" type="text/html" />
    <content type="html">
      <![CDATA[<h1>Styles</h1>
<p>Colors and sizes of the search box are defined as CSS custom properties, with light and dark defaults.</p>
<h2 id="dark-mode">Dark mode</h2>
<p>The dark mode follows the system preference, unless the root element has a <code translate="no">data-theme</code> attribute, as set by the theme selector of this demo: try it with the button next to the search box.</p>
<h2 id="custom-properties">Custom properties</h2>
<p>Override the custom properties in your own stylesheet, for example to use the accent color of your website:</p>
<pre><code class="language-css hljs css" translate="no"><span class="hljs-selector-pseudo">:root</span> {
  <span class="hljs-attribute">--flexsearch-accent</span>: <span class="hljs-number">#163c56</span>;
  <span class="hljs-attribute">--flexsearch-selected-bg</span>: <span class="hljs-number">#f2d07f</span>;
}</code></pre>
<p>All elements have a <code translate="no">flexsearch-*</code> class, so the styles can also be fully replaced.</p>]]>
    </content>
  </entry>
  <entry xml:lang="en">
    <id>https://cecilapp.github.io/theme-flexsearch/docs/guides/translations/</id>
    <title>Translations</title>
    <published>2026-10-20T02:19:06+00:00</published>
    <link href="https://cecilapp.github.io/theme-flexsearch/docs/guides/translations/" rel="alternate" type="text/html" />
    <content type="html">
      <![CDATA[<h1>Translations</h1>
<p>The search box is translated in English and French, and an index is generated for each language of the website: switch to French with the link in the footer, the search only returns French pages.</p>
<h2 id="add-a-language">Add a language</h2>
<p>Extract the strings to translate in another language with the following command, then translate the generated file:</p>
<pre><code class="language-bash hljs bash" translate="no">cecil util:translations:extract --locale=&lt;locale&gt; --save --theme=flexsearch</code></pre>]]>
    </content>
  </entry>
</feed>
