techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

5.4K
active users

#openprops

0 posts0 participants0 posts today
GENKI<p>ライトモードとダークモードの切り替えはやっぱり <a href="https://social.vivaldi.net/tags/OpenProps" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>OpenProps</span></a> みたいに CSS 変数でやるべきだな</p><p><a href="https://social.vivaldi.net/tags/Tailwind" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Tailwind</span></a> が html タグに dark ってタグとか付けさせようとしててちょっとげんなりしている<br>まあマニュアル切り替えみたいなことするならそういうのもあるとは思うけど、なんかやっぱり Tailwind は CSS 知ってると遠回りでしかないように感じる</p><p><a href="https://tailwindcss.com/docs/dark-mode" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">tailwindcss.com/docs/dark-mode</span><span class="invisible"></span></a></p>
MelHamnavoe<p>I’m finding that <span class="h-card" translate="no"><a href="https://front-end.social/@argyleink" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>argyleink</span></a></span>’s <a href="https://phpc.social/tags/openprops" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>openprops</span></a> makes for a strong foundation to build modern <a href="https://phpc.social/tags/css" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>css</span></a> on top of. <br><a href="https://phpc.social/tags/webdev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webdev</span></a> <a href="https://phpc.social/tags/css" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>css</span></a></p>
GENKI<p><a href="https://social.vivaldi.net/tags/TailwindCSS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>TailwindCSS</span></a> の設定が <a href="https://social.vivaldi.net/tags/JS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>JS</span></a> ではなく <a href="https://social.vivaldi.net/tags/CSS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CSS</span></a> からできるようになるらしい。<br><a href="https://social.vivaldi.net/tags/OpenProps" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>OpenProps</span></a> とかで見慣れた <a href="https://social.vivaldi.net/tags/CSS%E5%A4%89%E6%95%B0" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CSS変数</span></a> <a href="https://social.vivaldi.net/tags/CSSVariables" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CSSVariables</span></a> で設定を上書きするスタイル。</p><p><a href="https://tailwindcss.com/docs/v4-beta#css-first-configuration" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">tailwindcss.com/docs/v4-beta#c</span><span class="invisible">ss-first-configuration</span></a></p>
🧿🪬🍄🌈🎮💻🚲🥓🎃💀🏴🛻🇺🇸<p><span class="h-card" translate="no"><a href="https://ruby.social/@konnorrogers" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>konnorrogers</span></a></span> what do you think of <a href="https://open-props.style/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">open-props.style/</span><span class="invisible"></span></a></p><p>Is custom property lockin better than <a href="https://mastodon.social/tags/css" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>css</span></a> classname lockin? </p><p><a href="https://mastodon.social/tags/openProps" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>openProps</span></a></p>
Sue<p><span class="h-card" translate="no"><a href="https://front-end.social/@argyleink" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>argyleink</span></a></span> hi Adam! looking for a nudge in the right direction. I think I've heard of a utility that maps an rbg to the closest open props color, but I can't find it. Is it real? Can you share a link? TYVM :) <a href="https://mastodon.social/tags/OpenProps" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>OpenProps</span></a></p>
westbrook<p>Re: <a href="https://front-end.social/@css/112802157138745287" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">front-end.social/@css/11280215</span><span class="invisible">7138745287</span></a></p><p>I've love to set default values for theme/component colors via a pallet of colors (say for instance <a href="https://open-props.style/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">open-props.style/</span><span class="invisible"></span></a>), e.g.:</p><p>@​property --surface {<br> syntax: "&lt;color&gt;";<br> inherits: true;<br> initial-value: light-dark(var(--gray-1), var(--gray-11));<br>}</p><p>Assuming those two gray values are also @​property, should that work? I'm not seeing it work, which makes me sad that `initial-value` would have less use when stacking vars.</p><p><a href="https://mastodon.social/tags/css" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>css</span></a> <a href="https://mastodon.social/tags/csswg" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>csswg</span></a> <a href="https://mastodon.social/tags/themeYourWorld" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>themeYourWorld</span></a> <a href="https://mastodon.social/tags/openProps" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>openProps</span></a></p>
GENKI<p><a href="https://social.vivaldi.net/tags/StateOfCSS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>StateOfCSS</span></a> の 2023 の CSS フレームワークの部、 <a href="https://social.vivaldi.net/tags/OpenProps" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>OpenProps</span></a> が興味と満足度で <a href="https://social.vivaldi.net/tags/TailwindCSS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>TailwindCSS</span></a> を上回ってた</p><p>やっぱそうだよね、という気持ち :tony_smiling: </p><p><a href="https://2023.stateofcss.com/ja-JP/css-frameworks/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">2023.stateofcss.com/ja-JP/css-</span><span class="invisible">frameworks/</span></a></p>
The Spicy Web<p>The results are in for the 2023 State of <a href="https://social.spicyweb.dev/tags/CSS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CSS</span></a> survey, and among many surprising (and some not so surprising) takeaways is that the honor of winning the “Highest Retention” award went to… <a href="https://social.spicyweb.dev/tags/OpenProps" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>OpenProps</span></a> 🎉</p><p>Congratulations! (And if you don't yet know what Open Props is, you don't know what you're missing! It's a super rad way to <a href="https://social.spicyweb.dev/tags/WebDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WebDev</span></a> your own design system using vanilla CSS variables)</p><p><a href="https://thathtml.blog/2023/08/open-props-wins-2023-state-of-css-survey/" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">thathtml.blog/2023/08/open-pro</span><span class="invisible">ps-wins-2023-state-of-css-survey/</span></a></p>
pablolarah<p>🏆 State of CSS 2023 results:<br>Highest Retention: Open Props @argyleink <br>Awarded to the technology with the highest percentage of returning users.<br><a href="https://mastodon.social/tags/OpenProps" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>OpenProps</span></a> <a href="https://mastodon.social/tags/css" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>css</span></a> <a href="https://mastodon.social/tags/webdev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webdev</span></a> </p><p><a href="https://2023.stateofcss.com/en-US/awards/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">2023.stateofcss.com/en-US/awar</span><span class="invisible">ds/</span></a></p>
Felix<p>I have this side project I’m working on where one of the goals was to write vanilla <a href="https://techhub.social/tags/css" class="mention hashtag" rel="tag">#<span>css</span></a> instead of using any library or post-processor. <a href="https://techhub.social/tags/openprops" class="mention hashtag" rel="tag">#<span>openprops</span></a> by <span class="h-card" translate="no"><a href="https://front-end.social/@argyleink" class="u-url mention">@<span>argyleink</span></a></span> was the only thing I needed and I was happy. UNTIL(dun dun duuu), I need a class to only position: relative. It annoyed me so much so I thought “let’s get <a href="https://techhub.social/tags/unocss" class="mention hashtag" rel="tag">#<span>unocss</span></a> by <span class="h-card" translate="no"><a href="https://m.webtoo.ls/@antfu" class="u-url mention">@<span>antfu</span></a></span> in to on-demand me those util classes”. One thing led to another and I’ve converted my whole project to UnoCSS and I don’t know what to feel 😂 </p><p>I do enjoy writing vanilla CSS more but man, those handy UnoCSS util classes and the possibility to “foolproof” your setup in a way CSS custom props can’t makes it hard to go vanilla CSS.</p>
GENKI<p>サンプルコードが特になんの注釈もなく <a href="https://social.vivaldi.net/tags/OpenProps" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>OpenProps</span></a> <a href="https://social.vivaldi.net/tags/CSS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CSS</span></a> 読み込んでる前提なのは、記事書いてる人がそもそもその作者だから :tony_laughing:</p><p>Adapting typography to user preferences with CSS</p><p><a href="https://web.dev/adapting-typography-to-user-preferences-with-css/" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">web.dev/adapting-typography-to</span><span class="invisible">-user-preferences-with-css/</span></a></p>
GENKI<p><a href="https://social.vivaldi.net/tags/OpenProps" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>OpenProps</span></a> の <a href="https://social.vivaldi.net/tags/Figma" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Figma</span></a> <a href="https://social.vivaldi.net/tags/Variables" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Variables</span></a> とかそのうち整備されそう(そしたら作り方の参考にしたい</p>
GENKI<p><a href="https://social.vivaldi.net/tags/OpenProps" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>OpenProps</span></a> でも採用されてる、あるスタイル内にスコープが閉じたローカル <a href="https://social.vivaldi.net/tags/CSS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CSS</span></a> 変数を --_foo って命名するやつ、もう結構メジャーなあれなのかな?(これ真似していく</p><p>CSS Pattern: Fancy backgrounds with CSS gradients <a href="https://css-pattern.com/" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="">css-pattern.com/</span><span class="invisible"></span></a></p>