<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>arms-nakamura</author_name>
  <author_url>https://blog.hatena.ne.jp/arms-nakamura/</author_url>
  <blog_title>arms inc. Engineers' Blog</blog_title>
  <blog_url>https://tech.arms-soft.co.jp/</blog_url>
  <categories>
    <anon>CSS</anon>
    <anon>フロントエンド</anon>
  </categories>
  <description>こんにちは、ナカムラです。 先日とてもカラフルなサイトを作った際に便利だったCSS変数の使い方をご紹介しようと思います。 汎用パーツの色ちがいを作る サイト内で共通で使うボタンなどのパーツは形は同じでもコンテンツ別に色を変えたい、ということはよくあるかと思います。 特にカラフルな配色のデザインの場合、この種類が多くなることがあります。 ベースとなるボタンのスタイルを作り、装飾用のクラスやデータ属性などのセレクターを追加して色を変更していく方法はよく使いますが、一つ一つ設定設定していくとCSSの記述が増えていきます。 少なければそれで良いのですが、コンテンツの色分けだけで5色以上、さらにエリアや…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.arms-soft.co.jp%2Fentry%2F2025%2F07%2F23%2F090000&quot; title=&quot;色違いの汎用パーツの管理をCSS変数で管理する - arms inc. Engineers&amp;#39; Blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn.user.blog.st-hatena.com/default_entry_og_image/154391842/1555659217502624</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-07-23 09:00:00</published>
  <title>色違いの汎用パーツの管理をCSS変数で管理する</title>
  <type>rich</type>
  <url>https://tech.arms-soft.co.jp/entry/2025/07/23/090000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
