<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Vladislav Ignatieff</title><description>Личный блог о технологиях, AI, блокчейне, приватности и разработке. Посты из Telegram-канала @ignxblog.</description><link>https://ignx.ru/</link><item><title>Русский заголовок здесь</title><link>https://ignx.ru/posts/2026/tpost/</link><guid isPermaLink="true">https://ignx.ru/posts/2026/tpost/</guid><description>English description for SEO</description><pubDate>Wed, 06 May 2026 10:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&amp;lt;div data-i18n-block=&quot;en&quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;English content here. You can write &lt;strong&gt;Markdown&lt;/strong&gt; and use HTML.&lt;/p&gt;
&lt;h2&gt;Subheading&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;List item 1&lt;/li&gt;
&lt;li&gt;List item 2&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;lt;/div&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;div data-i18n-block=&quot;ru&quot; style=&quot;display:none&quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;Русский контент здесь. Можно использовать &lt;strong&gt;разметку&lt;/strong&gt; и HTML.&lt;/p&gt;
&lt;h2&gt;Подзаголовок&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Пункт списка 1&lt;/li&gt;
&lt;li&gt;Пункт списка 2&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;lt;/div&amp;gt;&lt;/p&gt;
</content:encoded></item><item><title>Customizing AstroPaper theme color schemes</title><link>https://ignx.ru/posts/2026/customizing-astropaper-theme-color-schemes/</link><guid isPermaLink="true">https://ignx.ru/posts/2026/customizing-astropaper-theme-color-schemes/</guid><description>How you can enable/disable light &amp; dark mode; and customize color schemes of AstroPaper theme.</description><pubDate>Fri, 09 Jan 2026 15:00:15 GMT</pubDate><content:encoded>&lt;p&gt;This post will explain how you can enable/disable light &amp;amp; dark mode for the website. Moreover, you&apos;ll learn how you can customize color schemes of the entire website.&lt;/p&gt;
&lt;h2&gt;Table of contents&lt;/h2&gt;
&lt;h2&gt;Enable/disable light &amp;amp; dark mode&lt;/h2&gt;
&lt;p&gt;AstroPaper theme will include light and dark mode by default. In other words, there will be two color schemes_ one for light mode and another for dark mode. This default behavior can be disabled in &lt;code&gt;SITE&lt;/code&gt; configuration object.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;export const SITE = {
  website: &quot;https://astro-paper.pages.dev/&quot;, // replace this with your deployed domain
  author: &quot;Sat Naing&quot;,
  profile: &quot;https://satnaing.dev/&quot;,
  desc: &quot;A minimal, responsive and SEO-friendly Astro blog theme.&quot;,
  title: &quot;AstroPaper&quot;,
  ogImage: &quot;astropaper-og.jpg&quot;,
  lightAndDarkMode: true, // [!code highlight]
  postPerIndex: 4,
  postPerPage: 4,
  scheduledPostMargin: 15 * 60 * 1000, // 15 minutes
  showArchives: true,
  showBackButton: true, // show back button in post detail
  editPost: {
    enabled: true,
    text: &quot;Suggest Changes&quot;,
    url: &quot;https://github.com/satnaing/astro-paper/edit/main/&quot;,
  },
  dynamicOgImage: true,
  lang: &quot;en&quot;, // html lang code. Set this empty and default will be &quot;en&quot;
  timezone: &quot;Asia/Bangkok&quot;, // Default global timezone (IANA format) https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
} as const;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;To disable &lt;code&gt;light &amp;amp; dark mode&lt;/code&gt; set &lt;code&gt;SITE.lightAndDarkMode&lt;/code&gt; to &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h2&gt;Choose initial color scheme&lt;/h2&gt;
&lt;p&gt;By default, if we disable &lt;code&gt;SITE.lightAndDarkMode&lt;/code&gt;, we will only get system&apos;s prefers-color-scheme.&lt;/p&gt;
&lt;p&gt;Thus, to choose an initial color scheme instead of prefers-color-scheme, we have to set color scheme in the &lt;code&gt;initialColorScheme&lt;/code&gt; variable inside &lt;code&gt;theme.ts&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// Initial color scheme
// Can be &quot;light&quot;, &quot;dark&quot;, or empty string for system&apos;s prefers-color-scheme
const initialColorScheme = &quot;&quot;; // &quot;light&quot; | &quot;dark&quot; // [!code hl]

function getPreferTheme(): string {
  // get theme data from local storage (user&apos;s explicit choice)
  const currentTheme = localStorage.getItem(&quot;theme&quot;);
  if (currentTheme) return currentTheme;

  // return initial color scheme if it is set (site default)
  if (initialColorScheme) return initialColorScheme;

  // return user device&apos;s prefer color scheme (system fallback)
  return window.matchMedia(&quot;(prefers-color-scheme: dark)&quot;).matches
    ? &quot;dark&quot;
    : &quot;light&quot;;
}

// ...
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The &lt;strong&gt;initialColorScheme&lt;/strong&gt; variable can hold two values_ &lt;code&gt;&quot;light&quot;&lt;/code&gt;, &lt;code&gt;&quot;dark&quot;&lt;/code&gt;. You can leave the empty string (default) if you don&apos;t want to specify an initial color scheme.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&quot;&quot;&lt;/code&gt; - system&apos;s prefers-color-scheme. (default)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&quot;light&quot;&lt;/code&gt; - use light mode as initial color scheme.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&quot;dark&quot;&lt;/code&gt; - use dark mode as initial color scheme.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;lt;details&amp;gt;
&amp;lt;summary&amp;gt;Why initialColorScheme is not inside config.ts?&amp;lt;/summary&amp;gt;
To avoid color flickering on page reload, we have to place the theme initialization JavaScript code as early as possible when the page loads. The theme script is split into two parts: a minimal inline script in the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; that sets the theme immediately, and the full script that loads asynchronously. This approach prevents FOUC (Flash of Unstyled Content) while maintaining optimal performance.
&amp;lt;/details&amp;gt;&lt;/p&gt;
&lt;h2&gt;Customize color schemes&lt;/h2&gt;
&lt;p&gt;Both light &amp;amp; dark color schemes of AstroPaper theme can be customized in the &lt;code&gt;global.css&lt;/code&gt; file.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;@import &quot;tailwindcss&quot;;
@import &quot;./typography.css&quot;;

@custom-variant dark (&amp;amp;:where([data-theme=dark], [data-theme=dark] *));

:root,
html[data-theme=&quot;light&quot;] {
  --background: #fdfdfd;
  --foreground: #282728;
  --accent: #006cac;
  --muted: #e6e6e6;
  --border: #ece9e9;
}

html[data-theme=&quot;dark&quot;] {
  --background: #212737;
  --foreground: #eaedf3;
  --accent: #ff6b01;
  --muted: #343f60bf;
  --border: #ab4b08;
}
/* ... */
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In the AstroPaper theme, the &lt;code&gt;:root&lt;/code&gt; and &lt;code&gt;html[data-theme=&quot;light&quot;]&lt;/code&gt; selectors define the light color scheme, while &lt;code&gt;html[data-theme=&quot;dark&quot;]&lt;/code&gt; defines the dark color scheme.&lt;/p&gt;
&lt;p&gt;To customize your own color scheme, specify your light colors inside &lt;code&gt;:root, html[data-theme=&quot;light&quot;]&lt;/code&gt;, and your dark colors inside &lt;code&gt;html[data-theme=&quot;dark&quot;]&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Here is the detail explanation of color properties.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Color Property&lt;/th&gt;
&lt;th&gt;Definition &amp;amp; Usage&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--background&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Primary color of the website. Usually the main background.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--foreground&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Secondary color of the website. Usually the text color.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--accent&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Accent color of the website. Link color, hover color etc.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--muted&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Card and scrollbar background color for hover state etc.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--border&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Border color. Used for border utilities and visual separation&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Here is an example of changing the light color scheme.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/* ... */
:root,
html[data-theme=&quot;light&quot;] {
  --background: #f6eee1;
  --foreground: #012c56;
  --accent: #e14a39;
  --muted: #efd8b0;
  --border: #dc9891;
}
/* ... */
&lt;/code&gt;&lt;/pre&gt;
&lt;blockquote&gt;
&lt;p&gt;Check out some &lt;a href=&quot;https://astro-paper.pages.dev/posts/predefined-color-schemes/&quot;&gt;predefined color schemes&lt;/a&gt; AstroPaper has already crafted for you.&lt;/p&gt;
&lt;/blockquote&gt;
</content:encoded></item></channel></rss>