<?xml 
version="1.0" encoding="utf-8"?>


<feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr='http://purl.org/syndication/thread/1.0' >
	<title>#relative - Seenthis</title>

	<link href="https://seenthis.net/tag/relative" />
        <id>https://seenthis.net/tag/relative</id>
        <updated>2026-09-11T07:37:26Z</updated>
        <link rel="self" href="https://seenthis.net/tag/relative/feed" />







	<entry>
	<id>urn:uuid:69c04d55-07d0-497e-880c-4b02576289e2</id>
	<title>CSS Relative Colors : Build UI Palettes Without a Color Picker</title>
	<author>
		<name>b_b  (@b_b)</name>
		<uri>https://seenthis.net/people/b_b</uri>
		<email>b_b@seenthis.net</email>
		
	</author>
	<published>2026-03-22T20:13:09Z</published>
	<updated>2026-03-22T20:13:09Z</updated>
	
	 <link href="https://seenthis.net/messages/1164105" />
	
	<link rel="edit" href="https://seenthis.net/api/messages/1164105"/>
	<summary>#CSS #Relative #Colors: Build UI #Palettes Without a Color Picker
https://theosoti.com/blog/css-relative-colors/


❝Relative colors shine when a component needs multiple accents. Here is a compact pattern for a callout card:

Keep derived tokens in one space so the relationships stay coherent. Mixing spaces is valid, but remember the source is converted to the output space for every calculation, which can subtly change the result.

The component only needs one input (--tone). Everything else follows.❞

```
.callout {
	--tone: #4b6bff;
	--tone-strong: hsl(from var(--tone) h s calc(l - 12));
	--tone-soft: hsl(from var(--tone) h calc(s - 20) calc(l + 28));
	--tone-border: rgb(from var(--tone) r g b / 0.2);
	--tone-shadow: rgb(from var(--tone) r g b / 0.25);

	border: 1px solid var(--tone-border);
	background-color: var(--tone-soft);
	box-shadow: 0 12px 24px var(--tone-shadow);
}

.callout strong {
	color: var(--tone-strong);
}
```

via https://css-tricks.com/whats-important-6/</summary>
	<content type="html"><![CDATA[<div lang="en" dir="ltr"><p><span class='lien_tag'>#<a href='https://seenthis.net/tag/css'>CSS</a></span> <span class='lien_tag'>#<a href='https://seenthis.net/tag/relative'>Relative</a></span> <span class='lien_tag'>#<a href='https://seenthis.net/tag/colors'>Colors</a></span>: Build UI <span class='lien_tag'>#<a href='https://seenthis.net/tag/palettes'>Palettes</a></span> Without a Color Picker<br><span class='lien_lien'><span class='lien_lien_total'><a href='https://seenthis.net/sites/7282461336008270005'>▻</a></span><a href="https://theosoti.com/blog/css-relative-colors" class='spip_out' title="Build UI Palettes Without a Color Picker" hreflang="en"><span class='lien_court'><span class='lien_protocol'>https://</span><span class='lien_racine'><span class='lien_host'>theosoti.com</span>/</span>blog/<span class='lien_fin'>css-relative-colors</span></span></a></span></p><blockquote lang="en" dir="ltr"><p> Relative colors shine when a component needs multiple accents. Here is a compact pattern for a callout card:</p><p>Keep derived tokens in one space so the relationships stay coherent. Mixing spaces is valid, but remember the source is converted to the output space for every calculation, which can subtly change the result.</p><p>The component only needs one input (&mdash;tone). Everything else follows. </p></blockquote><div class="precode"><pre class='spip_code spip_code_block' dir='ltr' style='text-align:left;'><code>.callout {
	--tone: #4b6bff;
	--tone-strong: hsl(from var(--tone) h s calc(l - 12));
	--tone-soft: hsl(from var(--tone) h calc(s - 20) calc(l + 28));
	--tone-border: rgb(from var(--tone) r g b / 0.2);
	--tone-shadow: rgb(from var(--tone) r g b / 0.25);

	border: 1px solid var(--tone-border);
	background-color: var(--tone-soft);
	box-shadow: 0 12px 24px var(--tone-shadow);
}

.callout strong {
	color: var(--tone-strong);
}</code></pre></div><p>via <span class='lien_lien'><span class='lien_lien_total'><a href='https://seenthis.net/sites/7282461336008270008'>▻</a></span><a href="https://css-tricks.com/whats-important-6" class='spip_out' title="What’s !important #6: :heading, border-shape, Truncating Text From the Middle, and More" hreflang="en"><span class='lien_court'><span class='lien_protocol'>https://</span><span class='lien_racine'><span class='lien_host'>css-tricks.com</span>/</span><span class='lien_fin'>whats-important-6</span></span></a></span></p></div>]]></content>
	
	<link rel="related" href="https://theosoti.com/blog/css-relative-colors" title="Build UI Palettes Without a Color Picker" hreflang="en"/>
	
	<link rel="related" href="https://css-tricks.com/whats-important-6" title="What's !important #6 : :heading, border-shape, Truncating Text From the Middle, and More" hreflang="en"/>
	
	
	<category term="CSS" label="CSS" scheme="https://seenthis.net/tag/css"/>
	<category term="Relative" label="Relative" scheme="https://seenthis.net/tag/relative"/>
	<category term="Colors" label="Colors" scheme="https://seenthis.net/tag/colors"/>
	<category term="Palettes" label="Palettes" scheme="https://seenthis.net/tag/palettes"/>
	<category term="4b6bff" label="4b6bff" scheme="https://seenthis.net/tag/4b6bff"/>
</entry>

	<entry>
	<id>urn:uuid:516a4613-1933-e659-bcdd-ba02eb0d70d2</id>
	<title>STPo &#8250; Portfolio &#8250; Direction artistique &#8250; J&#233;r&#233;mie Do Van Lanh</title>
	<author>
		<name>Nicolas Hoizey  (@nhoizey)</name>
		<uri>https://seenthis.net/people/nhoizey</uri>
		<email>nhoizey@seenthis.net</email>
		
	</author>
	<published>2015-02-23T16:44:51Z</published>
	<updated>2015-02-23T16:44:51Z</updated>
	
	 <link href="https://seenthis.net/messages/345024" />
	
	<link rel="edit" href="https://seenthis.net/api/messages/345024"/>
	<summary>STPo › Portfolio › Direction artistique › Jérémie Do Van Lanh
http://www.stpo.fr/portfolio/direction-artistique/jeremie-do-van-lanh-2/

❝"la #CSS a été codée intégralement en unités relatives (em), ce qui lui assure une interopérabilité robuste et une accessibilité renforcée" 		 		 		 		Tags: 				 	 #em 	 		 	 #intégration 	 		 	 CSS 	 		 	 #relative 	 		 	 accessibilité❞
#accessibilité</summary>
	<content type="html"><![CDATA[<div lang="fr" dir="ltr"><p>STPo › Portfolio › Direction artistique › Jérémie Do Van Lanh<br><span class='lien_lien'><span class='lien_lien_total'><a rel='nofollow' href='https://seenthis.net/sites/651301'>▻</a></span><a rel='nofollow' href="http://www.stpo.fr/portfolio/direction-artistique/jeremie-do-van-lanh-2" class='spip_out' title="STPo › Portfolio › Direction artistique › Jérémie Do Van Lanh" hreflang="fr"><span class='lien_court'><span class='lien_protocol'>http://</span><span class='lien_racine'><span class='lien_host'><span class='lien_www'>www.</span>stpo.fr</span>/</span><span class='lien_off'>portfolio/</span><span class='lien_off'>direction-artistique/</span><span class='lien_fin'>jeremie-do-van-lanh-2</span></span></a></span></p><blockquote lang="fr" dir="ltr"><p> &laquo;&nbsp;la <span class='lien_tag'>#<a rel='nofollow' href='https://seenthis.net/tag/css'>CSS</a></span> a été codée intégralement en unités relatives (em), ce qui lui assure une interopérabilité robuste et une accessibilité renforcée&nbsp;&raquo; 		 		 		 		Tags&nbsp;: 				 	 <span class='lien_tag'>#<a rel='nofollow' href='https://seenthis.net/tag/em'>em</a></span> 	 		 	 <span class='lien_tag'>#<a rel='nofollow' href='https://seenthis.net/tag/int%C3%A9gration'>intégration</a></span> 	 		 	 CSS 	 		 	 <span class='lien_tag'>#<a rel='nofollow' href='https://seenthis.net/tag/relative'>relative</a></span> 	 		 	 accessibilité </p></blockquote><p><span class='lien_tag'>#<a rel='nofollow' href='https://seenthis.net/tag/accessibilit%C3%A9'>accessibilité</a></span></p></div>]]></content>
	
	<link rel="related" href="http://www.stpo.fr/portfolio/direction-artistique/jeremie-do-van-lanh-2" title="STPo &#8250; Portfolio &#8250; Direction artistique &#8250; J&#233;r&#233;mie Do Van Lanh" hreflang="fr"/>
	
	
	<category term="CSS" label="CSS" scheme="https://seenthis.net/tag/css"/>
	<category term="em" label="em" scheme="https://seenthis.net/tag/em"/>
	<category term="int&#233;gration" label="int&#233;gration" scheme="https://seenthis.net/tag/int%C3%A9gration"/>
	<category term="relative" label="relative" scheme="https://seenthis.net/tag/relative"/>
	<category term="accessibilit&#233;" label="accessibilit&#233;" scheme="https://seenthis.net/tag/accessibilit%C3%A9"/>
	<category term="Person:Do Van Lanh" label="Do Van Lanh" scheme="https://seenthis.net/tag/person:do%20van%20lanh"/>
</entry>

	<entry>
	<id>urn:uuid:3f5b0565-8f59-8cad-8113-afa0076d9951</id>
	<title>Confused About rem and em ?</title>
	<author>
		<name>Nicolas Hoizey  (@nhoizey)</name>
		<uri>https://seenthis.net/people/nhoizey</uri>
		<email>nhoizey@seenthis.net</email>
		
	</author>
	<published>2014-02-27T23:37:18Z</published>
	<updated>2014-02-27T23:37:18Z</updated>
	
	 <link href="https://seenthis.net/messages/232301" />
	
	<link rel="edit" href="https://seenthis.net/api/messages/232301"/>
	<summary>Confused About #rem and #em?
http://j.eremy.net/confused-about-rem-and-em/

❝Tags: 				 	 em 	 		 	 rem 	 		 	 #px 	 		 	 unité 	 		 	 #CSS 	 		 	 #taille 	 		 	 #dimension 	 		 	 #relative❞
#unité</summary>
	<content type="html"><![CDATA[<div lang="en" dir="ltr"><p>Confused About <span class='lien_tag'>#<a rel='nofollow' href='https://seenthis.net/tag/rem'>rem</a></span> and <span class='lien_tag'>#<a rel='nofollow' href='https://seenthis.net/tag/em'>em</a></span>?<br><span class='lien_lien'><span class='lien_lien_total'><a rel='nofollow' href='https://seenthis.net/sites/426264'>▻</a></span><a rel='nofollow' href="http://j.eremy.net/confused-about-rem-and-em" class='spip_out' title="Confused About REM and EM?" hreflang="en"><span class='lien_court'><span class='lien_protocol'>http://</span><span class='lien_racine'><span class='lien_host'>j.eremy.net</span>/</span><span class='lien_fin'>confused-about-rem-and-em</span></span></a></span></p><blockquote lang="fr" dir="ltr"><p> Tags&nbsp;: 				 	 em 	 		 	 rem 	 		 	 <span class='lien_tag'>#<a rel='nofollow' href='https://seenthis.net/tag/px'>px</a></span> 	 		 	 unité 	 		 	 <span class='lien_tag'>#<a rel='nofollow' href='https://seenthis.net/tag/css'>CSS</a></span> 	 		 	 <span class='lien_tag'>#<a rel='nofollow' href='https://seenthis.net/tag/taille'>taille</a></span> 	 		 	 <span class='lien_tag'>#<a rel='nofollow' href='https://seenthis.net/tag/dimension'>dimension</a></span> 	 		 	 <span class='lien_tag'>#<a rel='nofollow' href='https://seenthis.net/tag/relative'>relative</a></span> </p></blockquote><p><span class='lien_tag'>#<a rel='nofollow' href='https://seenthis.net/tag/unit%C3%A9'>unité</a></span></p></div>]]></content>
	
	<link rel="related" href="http://j.eremy.net/confused-about-rem-and-em" title="Confused About REM and EM ?" hreflang="en"/>
	
	
	<category term="rem" label="rem" scheme="https://seenthis.net/tag/rem"/>
	<category term="em" label="em" scheme="https://seenthis.net/tag/em"/>
	<category term="px" label="px" scheme="https://seenthis.net/tag/px"/>
	<category term="CSS" label="CSS" scheme="https://seenthis.net/tag/css"/>
	<category term="taille" label="taille" scheme="https://seenthis.net/tag/taille"/>
	<category term="dimension" label="dimension" scheme="https://seenthis.net/tag/dimension"/>
	<category term="relative" label="relative" scheme="https://seenthis.net/tag/relative"/>
	<category term="unit&#233;" label="unit&#233;" scheme="https://seenthis.net/tag/unit%C3%A9"/>
	<category term="City:Paris" label="Paris" scheme="https://seenthis.net/tag/city:paris"/>
</entry>

</feed>
