[フレーム]
1 - 22 件 / 22件
タグ検索の該当結果が少ないため、タイトル検索結果を表示しています。
First and foremost, thank you to everyone who has contributed to styled-components over the years. Open Source is hard work, and many of the larger feature and/or refactoring drives probably would never have shipped without your support! As I write this in 2025, styled-components as a project is in "maintenance mode". There are a number of reasons for this: The React core team has decided to defac
1.はじめに 本記事はサイボウズの夏インターン(2022年)で取り組んだ内容の紹介を行います。インターンでは、サイボウズのフロントエンド領域における横断的組織であるフロントエンドエキスパートチームに配属されました。5日間のインターン期間でstyled-componentsを別のCSS in JSに自動置換するCLIツール・extract-styledの開発に取り組みました。 2. extract-styledの紹介 実装したextract-styledは、以下のようなCLI経由の実行を通して、styled-componentsで定義されたReactコンポーネントをtargetに指定した任意のCSS in JSに変換することができます。(現時点では変換先としてlinaria・vanilla-extractに対応) $ extract-styled \\ --path ./src/compon
Filed underReactoninJune 21st, 2021.Jun 2021.Last updatedoninJuly 17th, 2025.Jul 2025. When I first started using styled-components, it seemed like magic ✨. Somehow, using an obscure half-string-half-function syntax, the tool was able to take some arbitrary CSS and assign it to a React component, bypassing the CSS selectors we've always used. Like so many devs, I learned how to use styled-componen
弊社では現在UIコンポーネントのスタイルを当てるために、CSS-in-JSライブラリのひとつであるstyled-componentsを使っています。 styled-componentsで高度な使い方をしたときにスタイルが意図した優先度で当たらない現象の調査のためにstyled-componentsの仕組みを調べたので、覚え書きとして残しておきます。 前提知識styled-componentsについて: CSS-in-JS はスタイル定義をJavaScript内に書く手法の総称です。スタイルのコンポーネント間の結合を下げ、単一コンポーネント内の振舞いとスタイルの凝集を上げる狙いがあり、特に振舞いに依存して動的にスタイルが変わるようなケースでJSとスタイル定義をシームレスに結合させることができます。実際の実現方法はライブラリによってまちまちです。styled-componentsは比較的オーソ
Thank you - Open CollectiveFirst and foremost, thank you to everyone who has contributed to styled-components over the years. Open Source is hard work, and many of the larger feature and/or refactoring drives probably would never have shipped without your support! As... styled-components のメンテナンスモードへの移行が発表された。 これは、CSS in JS 並びに styling library の歴史において、1つの節目となる出来事である。 社内のプロダクトでは styled-components が使
この記事は食べログアドベントカレンダー2020の2日目の記事です。 こんにちは。食べログFE(フロントエンド)チームの金野です。 以前の記事でもご紹介しました通り、現在食べログは、jQuery+Railsだったフロントエンド環境をReact/TypeScriptに置き換えるリプレースを進めています。 CSSもSassからCSS Modulesを経てstyled-componentsに移行中です。 今回は、「どうしてその技術を選んだか」という技術選定の経緯や、どのような規約で運用しているかをご紹介します! なぜリプレースを始めたのかまず、CSSの技術選定について触れる前に、リプレースの目的について話さなくてはいけません。 食べログは今年で開設から15年となるサービスです。システムも組織も巨大で、且つ複雑な機能が多くあります。 特にフロントエンドは場当たり的な実装も多く、技術的負債が開発時のボ
3 行まとめ css mixin を使うことで、複数のコンポーネントで使い回せるスタイルヘルパを作成できるcsstype を使って、Typography, Space, Color などの型付き props を作ることができる基礎コンポーネントに型付き props を混ぜて受けられるようにし、mixin で受けてスタイリングさせることで、Chakra UI のような型安全なスタイル記述ができるようになる何がしたかったかこういう Chakra UI みたいな書き方がしたかったので、styled-components でやれるかを試したのが今回の記事の主題です。 export default function App() { return ( <VStack spacing={4} w="100vw" h="100vh" px={4} py={8} bgColor={palette.white
個人的には、styled-components以外でもdata-属性を使ってSCっぽさを取り入れた書き方をするのが好きです。 次のような感じです。クラス名をいくつも組み合わせるよりもすっきり書ける印象があります。 export const C: FC<{kind: 'a' | 'b'}> = ({kind}) => <div className='box' data-kind={kind}></div>
3月22日、styled-componentsチームは同プロジェクトの開発を事実上停止すると発表した。styled-componentsはReact環境におけるCSS-in-JSの代表格として広く普及し、Tagged Template Literalを用いた自然なAPIデザインにより、コンポーネント志向のスタイリング手法を大きく進化させた功績がある。特に、コンポーネント単位でCSSを管理できる利点とSSR(Server-Side Rendering)対応の柔軟性が注目され、多くのユーザーコミュニティを形成してきた。 しかし、ReactコアチームがContext API(移行パスがなくRSCでは利用できない)などを事実上非推奨としたことや、エコシステム全体の潮流がTailwindなどのユーティリティファーストなアプローチへ移行している現状が大きな転換点となった。加えて、styled-comp
The styled-components Happy Path My personal suite of "best practices" Filed underCSSoninJanuary 25th, 2021.Jan 2021.Last updatedoninJanuary 28th, 2025.Jan 2025. For a few years now, my #1 favourite tool for managing CSS in React apps has been 💅 styled-components. It's a wonderful tool. In many ways, it's changed how I think about CSS architecture, and has helped me keep my codebase clean and mod
styled-components is dead, but millions of components still need it. Our performance-focused forks gave Linear 40% faster renders while they plan their escape. Your React app might be 40% slower on first render than it needs to be. Not because you wrote bad code. Not because React is slow. But because styled-components never implemented React 18's useInsertionEffect hook: a feature specifically de
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
When working with multiple developers on one React application, it's always good to align the team on a common set of best practices. This holds also true for styling React components. Over the past years, I was fortunate to work with many React freelance developers on different applications where we had to align the best practices throughout the project. While there were certainly applications st
Get affordable and hassle-free WordPress hosting plans with Cloudways — start your free trial today. I like working with styled-components. They allow you write CSS in your JavaScript, keeping your CSS in very close proximity to your JavaScript for a single component. As a front-end developer who loves to dissect a web page and break it down into reusable components, the idea of styled-components
Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
styled-componentsの基礎知識 第1回 styled-componentsの前提知識 このシリーズではCSS in JS用のライブラリであるstyled-componentsについて解説します。第1回目はCSS in JSの予備知識と、styled-componentsの使いどころや、基本機能について解説します。 はじめに styled-componentsは、ReactコンポーネントにCSSのスタイルをどのように当てるかという課題をきっかけに作られたCSS in JSのライブラリです。 CSS in JSは読んで字のごとく、JavaScriptの中にCSSの記述を取り込んでしまう手法のことで、styled-componentsのほかにもglamorous、Emotion、Linariaなどのライブラリが存在します。 次の図はstyled-components、glamoro
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
styled-components v6 リリースなど: Cybozu Frontend Weekly (2023年07月04日号) はじめに こんにちは!サイボウズ株式会社フロントエンドエキスパートチームの BaHo です。 サイボウズでは毎週火曜日に Frontend Weekly という「1 週間の間にあったフロントエンドニュースを共有する会」を社内で開催しています。 今回は、2023年07月04日 の Frontend Weekly で取り上げた記事や話題を紹介します。 取り上げた記事・話題 Boshen/oxc Linter Roadmap oxc の linter 実装についてのロードマップです。 bike-shedding になりがちな style や convention 以外のルールにフォーカスして、この2ヶ月で実装していくそうです。 プラグインは GraphQL のような
css でスタイルを設定する方法はいくつか用意されておりライブラリも色々あります。 その中から良く使われている以下の5つの方法を紹介します。 インラインで指定 モジュールを使う方法 styled-jsx (CSS in JS) styled-components (CSS in JS) Emotion デフォルト(インライン) Reactでデフォルトで提供されている方法。 キャメルケースで変数名を宣言しCSSをオブジェクトで書いてインラインで指定。 export const InlineStyle = () => { const containerStyle = { border: "solid 2px #329eff", borderRadius: "20px", padding: "8px", margin: "8px", display: "flex", justifyContent
Reactでスタイリングする際に人気のライブラリーはstyled-componentsなのではないでしょうか。 事実、githubでは31.8kものStarをもらっています。しかし、まだまだ使ったことないという人が多いのが現実です。 styled-componentsについて知らない方も多いので、使うメリットや基本的な使い方について見ていきましょう。 styled-componentsとは? CSS in JSのライブラリの一つです。CSS in JSとはその名の通りJSの中にスタイルを記述する方法。 このCSS in JSを使うことでReact思想のコンポーネント単位での管理がスタイルにも可能になります。従来はJSとCSSで分けられていたものが、CSS in JSで統合できたためです。 styled-componentsを使うメリット styled-componentsを使うメリットは主
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く