<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Custom-Properties on Commentary of Takao</title><link>https://takao.blog/es/tags/custom-properties/</link><description>Recent content in Custom-Properties on Commentary of Takao</description><generator>Hugo -- gohugo.io</generator><language>es</language><copyright>Commentary of Takao</copyright><lastBuildDate>Sun, 12 Jul 2026 04:12:51 +0900</lastBuildDate><atom:link href="https://takao.blog/es/tags/custom-properties/index.xml" rel="self" type="application/rss+xml"/><item><title>Propiedades personalizadas CSS: Patrones estratégicos para estilos escalables</title><link>https://takao.blog/es/web/css-custom-properties/</link><pubDate>Tue, 09 Apr 2024 00:00:00 +0900</pubDate><guid>https://takao.blog/es/web/css-custom-properties/</guid><description>&lt;img src="https://takao.blog/img/thumbnail/css-custom-properties-es.png" alt="Featured image of post Propiedades personalizadas CSS: Patrones estratégicos para estilos escalables" /&gt;&lt;p&gt;CSS Custom Properties (variables CSS) han cambiado fundamentalmente cómo escribimos y mantenemos hojas de estilo. A diferencia de las variables de preprocesadores, son dinámicas, participan en la cascada y la herencia.&lt;/p&gt;
&lt;h2 id="gestión-de-design-tokens"&gt;Gestión de design tokens
&lt;/h2&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-css" data-lang="css"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;:&lt;span style="color:#a6e22e"&gt;root&lt;/span&gt; { --color-primary-500: &lt;span style="color:#ae81ff"&gt;#3b82f6&lt;/span&gt;; --space-md: &lt;span style="color:#ae81ff"&gt;1&lt;/span&gt;&lt;span style="color:#66d9ef"&gt;rem&lt;/span&gt;; --font-sans: &lt;span style="color:#e6db74"&gt;&amp;#34;Inter&amp;#34;&lt;/span&gt;, system-ui, &lt;span style="color:#66d9ef"&gt;sans-serif&lt;/span&gt;; }
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Usa nomenclatura BEM-inspirada: &lt;code&gt;--bloque__elemento--modificador&lt;/code&gt; para tokens de componente y &lt;code&gt;--categoria-propiedad-variante&lt;/code&gt; para globales.&lt;/p&gt;
&lt;h2 id="cambio-de-tema"&gt;Cambio de tema
&lt;/h2&gt;&lt;p&gt;Define tema claro en &lt;code&gt;:root&lt;/code&gt; y sobreescribe en &lt;code&gt;[data-theme=&amp;quot;dark&amp;quot;]&lt;/code&gt;. Añade &lt;code&gt;prefers-color-scheme&lt;/code&gt; para respetar la preferencia del sistema.&lt;/p&gt;</description></item></channel></rss>